_12gkDataSet.Designer.cs 556 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace WindowsFormsApp3 {
  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("_12gkDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class _12gkDataSet : global::System.Data.DataSet {
  22. private OrderDataTable tableOrder;
  23. private OrdersProduktsDataTable tableOrdersProdukts;
  24. private ProdyktDataTable tableProdykt;
  25. private RoleDataTable tableRole;
  26. private Users1DataTable tableUsers1;
  27. private ZakazDataTable tableZakaz;
  28. private ZakazTovaraDataTable tableZakazTovara;
  29. private ПунктВыдачиDataTable tableПунктВыдачи;
  30. private global::System.Data.DataRelation relationFK_OrdersProdukts_Order;
  31. private global::System.Data.DataRelation relationFK_Prodykt_OrdersProdukts;
  32. private global::System.Data.DataRelation relationFK_Role_Users1;
  33. private global::System.Data.DataRelation relationFK_ZakazTovara_Zakaz;
  34. private global::System.Data.DataRelation relationFK_ZakazTovara_ПунктВыдачи;
  35. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  36. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  37. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  38. public _12gkDataSet() {
  39. this.BeginInit();
  40. this.InitClass();
  41. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  42. base.Tables.CollectionChanged += schemaChangedHandler;
  43. base.Relations.CollectionChanged += schemaChangedHandler;
  44. this.EndInit();
  45. }
  46. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  47. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  48. protected _12gkDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  49. base(info, context, false) {
  50. if ((this.IsBinarySerialized(info, context) == true)) {
  51. this.InitVars(false);
  52. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  53. this.Tables.CollectionChanged += schemaChangedHandler1;
  54. this.Relations.CollectionChanged += schemaChangedHandler1;
  55. return;
  56. }
  57. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  58. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  59. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  60. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  61. if ((ds.Tables["Order"] != null)) {
  62. base.Tables.Add(new OrderDataTable(ds.Tables["Order"]));
  63. }
  64. if ((ds.Tables["OrdersProdukts"] != null)) {
  65. base.Tables.Add(new OrdersProduktsDataTable(ds.Tables["OrdersProdukts"]));
  66. }
  67. if ((ds.Tables["Prodykt"] != null)) {
  68. base.Tables.Add(new ProdyktDataTable(ds.Tables["Prodykt"]));
  69. }
  70. if ((ds.Tables["Role"] != null)) {
  71. base.Tables.Add(new RoleDataTable(ds.Tables["Role"]));
  72. }
  73. if ((ds.Tables["Users1"] != null)) {
  74. base.Tables.Add(new Users1DataTable(ds.Tables["Users1"]));
  75. }
  76. if ((ds.Tables["Zakaz"] != null)) {
  77. base.Tables.Add(new ZakazDataTable(ds.Tables["Zakaz"]));
  78. }
  79. if ((ds.Tables["ZakazTovara"] != null)) {
  80. base.Tables.Add(new ZakazTovaraDataTable(ds.Tables["ZakazTovara"]));
  81. }
  82. if ((ds.Tables["ПунктВыдачи"] != null)) {
  83. base.Tables.Add(new ПунктВыдачиDataTable(ds.Tables["ПунктВыдачи"]));
  84. }
  85. this.DataSetName = ds.DataSetName;
  86. this.Prefix = ds.Prefix;
  87. this.Namespace = ds.Namespace;
  88. this.Locale = ds.Locale;
  89. this.CaseSensitive = ds.CaseSensitive;
  90. this.EnforceConstraints = ds.EnforceConstraints;
  91. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  92. this.InitVars();
  93. }
  94. else {
  95. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  96. }
  97. this.GetSerializationData(info, context);
  98. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  99. base.Tables.CollectionChanged += schemaChangedHandler;
  100. this.Relations.CollectionChanged += schemaChangedHandler;
  101. }
  102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  103. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  104. [global::System.ComponentModel.Browsable(false)]
  105. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  106. public OrderDataTable Order {
  107. get {
  108. return this.tableOrder;
  109. }
  110. }
  111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  113. [global::System.ComponentModel.Browsable(false)]
  114. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  115. public OrdersProduktsDataTable OrdersProdukts {
  116. get {
  117. return this.tableOrdersProdukts;
  118. }
  119. }
  120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  122. [global::System.ComponentModel.Browsable(false)]
  123. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  124. public ProdyktDataTable Prodykt {
  125. get {
  126. return this.tableProdykt;
  127. }
  128. }
  129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  131. [global::System.ComponentModel.Browsable(false)]
  132. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  133. public RoleDataTable Role {
  134. get {
  135. return this.tableRole;
  136. }
  137. }
  138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  140. [global::System.ComponentModel.Browsable(false)]
  141. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  142. public Users1DataTable Users1 {
  143. get {
  144. return this.tableUsers1;
  145. }
  146. }
  147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  149. [global::System.ComponentModel.Browsable(false)]
  150. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  151. public ZakazDataTable Zakaz {
  152. get {
  153. return this.tableZakaz;
  154. }
  155. }
  156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  158. [global::System.ComponentModel.Browsable(false)]
  159. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  160. public ZakazTovaraDataTable ZakazTovara {
  161. get {
  162. return this.tableZakazTovara;
  163. }
  164. }
  165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  167. [global::System.ComponentModel.Browsable(false)]
  168. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  169. public ПунктВыдачиDataTable ПунктВыдачи {
  170. get {
  171. return this.tableПунктВыдачи;
  172. }
  173. }
  174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  176. [global::System.ComponentModel.BrowsableAttribute(true)]
  177. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  178. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  179. get {
  180. return this._schemaSerializationMode;
  181. }
  182. set {
  183. this._schemaSerializationMode = value;
  184. }
  185. }
  186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  188. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  189. public new global::System.Data.DataTableCollection Tables {
  190. get {
  191. return base.Tables;
  192. }
  193. }
  194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  196. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  197. public new global::System.Data.DataRelationCollection Relations {
  198. get {
  199. return base.Relations;
  200. }
  201. }
  202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  204. protected override void InitializeDerivedDataSet() {
  205. this.BeginInit();
  206. this.InitClass();
  207. this.EndInit();
  208. }
  209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  211. public override global::System.Data.DataSet Clone() {
  212. _12gkDataSet cln = ((_12gkDataSet)(base.Clone()));
  213. cln.InitVars();
  214. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  215. return cln;
  216. }
  217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  219. protected override bool ShouldSerializeTables() {
  220. return false;
  221. }
  222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  224. protected override bool ShouldSerializeRelations() {
  225. return false;
  226. }
  227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  229. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  230. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  231. this.Reset();
  232. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  233. ds.ReadXml(reader);
  234. if ((ds.Tables["Order"] != null)) {
  235. base.Tables.Add(new OrderDataTable(ds.Tables["Order"]));
  236. }
  237. if ((ds.Tables["OrdersProdukts"] != null)) {
  238. base.Tables.Add(new OrdersProduktsDataTable(ds.Tables["OrdersProdukts"]));
  239. }
  240. if ((ds.Tables["Prodykt"] != null)) {
  241. base.Tables.Add(new ProdyktDataTable(ds.Tables["Prodykt"]));
  242. }
  243. if ((ds.Tables["Role"] != null)) {
  244. base.Tables.Add(new RoleDataTable(ds.Tables["Role"]));
  245. }
  246. if ((ds.Tables["Users1"] != null)) {
  247. base.Tables.Add(new Users1DataTable(ds.Tables["Users1"]));
  248. }
  249. if ((ds.Tables["Zakaz"] != null)) {
  250. base.Tables.Add(new ZakazDataTable(ds.Tables["Zakaz"]));
  251. }
  252. if ((ds.Tables["ZakazTovara"] != null)) {
  253. base.Tables.Add(new ZakazTovaraDataTable(ds.Tables["ZakazTovara"]));
  254. }
  255. if ((ds.Tables["ПунктВыдачи"] != null)) {
  256. base.Tables.Add(new ПунктВыдачиDataTable(ds.Tables["ПунктВыдачи"]));
  257. }
  258. this.DataSetName = ds.DataSetName;
  259. this.Prefix = ds.Prefix;
  260. this.Namespace = ds.Namespace;
  261. this.Locale = ds.Locale;
  262. this.CaseSensitive = ds.CaseSensitive;
  263. this.EnforceConstraints = ds.EnforceConstraints;
  264. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  265. this.InitVars();
  266. }
  267. else {
  268. this.ReadXml(reader);
  269. this.InitVars();
  270. }
  271. }
  272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  274. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  275. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  276. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  277. stream.Position = 0;
  278. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  279. }
  280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  282. internal void InitVars() {
  283. this.InitVars(true);
  284. }
  285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  287. internal void InitVars(bool initTable) {
  288. this.tableOrder = ((OrderDataTable)(base.Tables["Order"]));
  289. if ((initTable == true)) {
  290. if ((this.tableOrder != null)) {
  291. this.tableOrder.InitVars();
  292. }
  293. }
  294. this.tableOrdersProdukts = ((OrdersProduktsDataTable)(base.Tables["OrdersProdukts"]));
  295. if ((initTable == true)) {
  296. if ((this.tableOrdersProdukts != null)) {
  297. this.tableOrdersProdukts.InitVars();
  298. }
  299. }
  300. this.tableProdykt = ((ProdyktDataTable)(base.Tables["Prodykt"]));
  301. if ((initTable == true)) {
  302. if ((this.tableProdykt != null)) {
  303. this.tableProdykt.InitVars();
  304. }
  305. }
  306. this.tableRole = ((RoleDataTable)(base.Tables["Role"]));
  307. if ((initTable == true)) {
  308. if ((this.tableRole != null)) {
  309. this.tableRole.InitVars();
  310. }
  311. }
  312. this.tableUsers1 = ((Users1DataTable)(base.Tables["Users1"]));
  313. if ((initTable == true)) {
  314. if ((this.tableUsers1 != null)) {
  315. this.tableUsers1.InitVars();
  316. }
  317. }
  318. this.tableZakaz = ((ZakazDataTable)(base.Tables["Zakaz"]));
  319. if ((initTable == true)) {
  320. if ((this.tableZakaz != null)) {
  321. this.tableZakaz.InitVars();
  322. }
  323. }
  324. this.tableZakazTovara = ((ZakazTovaraDataTable)(base.Tables["ZakazTovara"]));
  325. if ((initTable == true)) {
  326. if ((this.tableZakazTovara != null)) {
  327. this.tableZakazTovara.InitVars();
  328. }
  329. }
  330. this.tableПунктВыдачи = ((ПунктВыдачиDataTable)(base.Tables["ПунктВыдачи"]));
  331. if ((initTable == true)) {
  332. if ((this.tableПунктВыдачи != null)) {
  333. this.tableПунктВыдачи.InitVars();
  334. }
  335. }
  336. this.relationFK_OrdersProdukts_Order = this.Relations["FK_OrdersProdukts_Order"];
  337. this.relationFK_Prodykt_OrdersProdukts = this.Relations["FK_Prodykt_OrdersProdukts"];
  338. this.relationFK_Role_Users1 = this.Relations["FK_Role_Users1"];
  339. this.relationFK_ZakazTovara_Zakaz = this.Relations["FK_ZakazTovara_Zakaz"];
  340. this.relationFK_ZakazTovara_ПунктВыдачи = this.Relations["FK_ZakazTovara_ПунктВыдачи"];
  341. }
  342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  344. private void InitClass() {
  345. this.DataSetName = "_12gkDataSet";
  346. this.Prefix = "";
  347. this.Namespace = "http://tempuri.org/_12gkDataSet.xsd";
  348. this.EnforceConstraints = true;
  349. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  350. this.tableOrder = new OrderDataTable();
  351. base.Tables.Add(this.tableOrder);
  352. this.tableOrdersProdukts = new OrdersProduktsDataTable();
  353. base.Tables.Add(this.tableOrdersProdukts);
  354. this.tableProdykt = new ProdyktDataTable();
  355. base.Tables.Add(this.tableProdykt);
  356. this.tableRole = new RoleDataTable();
  357. base.Tables.Add(this.tableRole);
  358. this.tableUsers1 = new Users1DataTable();
  359. base.Tables.Add(this.tableUsers1);
  360. this.tableZakaz = new ZakazDataTable();
  361. base.Tables.Add(this.tableZakaz);
  362. this.tableZakazTovara = new ZakazTovaraDataTable();
  363. base.Tables.Add(this.tableZakazTovara);
  364. this.tableПунктВыдачи = new ПунктВыдачиDataTable();
  365. base.Tables.Add(this.tableПунктВыдачи);
  366. this.relationFK_OrdersProdukts_Order = new global::System.Data.DataRelation("FK_OrdersProdukts_Order", new global::System.Data.DataColumn[] {
  367. this.tableOrder.OrderIDColumn}, new global::System.Data.DataColumn[] {
  368. this.tableOrdersProdukts.OrderIDColumn}, false);
  369. this.Relations.Add(this.relationFK_OrdersProdukts_Order);
  370. this.relationFK_Prodykt_OrdersProdukts = new global::System.Data.DataRelation("FK_Prodykt_OrdersProdukts", new global::System.Data.DataColumn[] {
  371. this.tableOrdersProdukts.OrderIDColumn}, new global::System.Data.DataColumn[] {
  372. this.tableProdykt.OrderIDColumn}, false);
  373. this.Relations.Add(this.relationFK_Prodykt_OrdersProdukts);
  374. this.relationFK_Role_Users1 = new global::System.Data.DataRelation("FK_Role_Users1", new global::System.Data.DataColumn[] {
  375. this.tableUsers1.idColumn}, new global::System.Data.DataColumn[] {
  376. this.tableRole.RoleIDColumn}, false);
  377. this.Relations.Add(this.relationFK_Role_Users1);
  378. this.relationFK_ZakazTovara_Zakaz = new global::System.Data.DataRelation("FK_ZakazTovara_Zakaz", new global::System.Data.DataColumn[] {
  379. this.tableZakaz.idColumn}, new global::System.Data.DataColumn[] {
  380. this.tableZakazTovara.nomerZakazColumn}, false);
  381. this.Relations.Add(this.relationFK_ZakazTovara_Zakaz);
  382. this.relationFK_ZakazTovara_ПунктВыдачи = new global::System.Data.DataRelation("FK_ZakazTovara_ПунктВыдачи", new global::System.Data.DataColumn[] {
  383. this.tableПунктВыдачи.idColumn}, new global::System.Data.DataColumn[] {
  384. this.tableZakazTovara.id_punktColumn}, false);
  385. this.Relations.Add(this.relationFK_ZakazTovara_ПунктВыдачи);
  386. }
  387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  389. private bool ShouldSerializeOrder() {
  390. return false;
  391. }
  392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  394. private bool ShouldSerializeOrdersProdukts() {
  395. return false;
  396. }
  397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  399. private bool ShouldSerializeProdykt() {
  400. return false;
  401. }
  402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  403. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  404. private bool ShouldSerializeRole() {
  405. return false;
  406. }
  407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  408. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  409. private bool ShouldSerializeUsers1() {
  410. return false;
  411. }
  412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  413. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  414. private bool ShouldSerializeZakaz() {
  415. return false;
  416. }
  417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  419. private bool ShouldSerializeZakazTovara() {
  420. return false;
  421. }
  422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  423. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  424. private bool ShouldSerializeПунктВыдачи() {
  425. return false;
  426. }
  427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  429. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  430. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  431. this.InitVars();
  432. }
  433. }
  434. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  435. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  436. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  437. _12gkDataSet ds = new _12gkDataSet();
  438. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  439. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  440. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  441. any.Namespace = ds.Namespace;
  442. sequence.Items.Add(any);
  443. type.Particle = sequence;
  444. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  445. if (xs.Contains(dsSchema.TargetNamespace)) {
  446. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  447. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  448. try {
  449. global::System.Xml.Schema.XmlSchema schema = null;
  450. dsSchema.Write(s1);
  451. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  452. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  453. s2.SetLength(0);
  454. schema.Write(s2);
  455. if ((s1.Length == s2.Length)) {
  456. s1.Position = 0;
  457. s2.Position = 0;
  458. for (; ((s1.Position != s1.Length)
  459. && (s1.ReadByte() == s2.ReadByte())); ) {
  460. ;
  461. }
  462. if ((s1.Position == s1.Length)) {
  463. return type;
  464. }
  465. }
  466. }
  467. }
  468. finally {
  469. if ((s1 != null)) {
  470. s1.Close();
  471. }
  472. if ((s2 != null)) {
  473. s2.Close();
  474. }
  475. }
  476. }
  477. xs.Add(dsSchema);
  478. return type;
  479. }
  480. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  481. public delegate void OrderRowChangeEventHandler(object sender, OrderRowChangeEvent e);
  482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  483. public delegate void OrdersProduktsRowChangeEventHandler(object sender, OrdersProduktsRowChangeEvent e);
  484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  485. public delegate void ProdyktRowChangeEventHandler(object sender, ProdyktRowChangeEvent e);
  486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  487. public delegate void RoleRowChangeEventHandler(object sender, RoleRowChangeEvent e);
  488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  489. public delegate void Users1RowChangeEventHandler(object sender, Users1RowChangeEvent e);
  490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  491. public delegate void ZakazRowChangeEventHandler(object sender, ZakazRowChangeEvent e);
  492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  493. public delegate void ZakazTovaraRowChangeEventHandler(object sender, ZakazTovaraRowChangeEvent e);
  494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  495. public delegate void ПунктВыдачиRowChangeEventHandler(object sender, ПунктВыдачиRowChangeEvent e);
  496. /// <summary>
  497. ///Represents the strongly named DataTable class.
  498. ///</summary>
  499. [global::System.Serializable()]
  500. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  501. public partial class OrderDataTable : global::System.Data.TypedTableBase<OrderRow> {
  502. private global::System.Data.DataColumn columnOrderID;
  503. private global::System.Data.DataColumn columnOrderStatus;
  504. private global::System.Data.DataColumn columnOrderDeliveryDate;
  505. private global::System.Data.DataColumn columnOrderPickupPoint;
  506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  508. public OrderDataTable() {
  509. this.TableName = "Order";
  510. this.BeginInit();
  511. this.InitClass();
  512. this.EndInit();
  513. }
  514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  516. internal OrderDataTable(global::System.Data.DataTable table) {
  517. this.TableName = table.TableName;
  518. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  519. this.CaseSensitive = table.CaseSensitive;
  520. }
  521. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  522. this.Locale = table.Locale;
  523. }
  524. if ((table.Namespace != table.DataSet.Namespace)) {
  525. this.Namespace = table.Namespace;
  526. }
  527. this.Prefix = table.Prefix;
  528. this.MinimumCapacity = table.MinimumCapacity;
  529. }
  530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  532. protected OrderDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  533. base(info, context) {
  534. this.InitVars();
  535. }
  536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  538. public global::System.Data.DataColumn OrderIDColumn {
  539. get {
  540. return this.columnOrderID;
  541. }
  542. }
  543. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  544. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  545. public global::System.Data.DataColumn OrderStatusColumn {
  546. get {
  547. return this.columnOrderStatus;
  548. }
  549. }
  550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  552. public global::System.Data.DataColumn OrderDeliveryDateColumn {
  553. get {
  554. return this.columnOrderDeliveryDate;
  555. }
  556. }
  557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  559. public global::System.Data.DataColumn OrderPickupPointColumn {
  560. get {
  561. return this.columnOrderPickupPoint;
  562. }
  563. }
  564. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  566. [global::System.ComponentModel.Browsable(false)]
  567. public int Count {
  568. get {
  569. return this.Rows.Count;
  570. }
  571. }
  572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  574. public OrderRow this[int index] {
  575. get {
  576. return ((OrderRow)(this.Rows[index]));
  577. }
  578. }
  579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  580. public event OrderRowChangeEventHandler OrderRowChanging;
  581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  582. public event OrderRowChangeEventHandler OrderRowChanged;
  583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  584. public event OrderRowChangeEventHandler OrderRowDeleting;
  585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  586. public event OrderRowChangeEventHandler OrderRowDeleted;
  587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  589. public void AddOrderRow(OrderRow row) {
  590. this.Rows.Add(row);
  591. }
  592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  594. public OrderRow AddOrderRow(string OrderStatus, System.DateTime OrderDeliveryDate, string OrderPickupPoint) {
  595. OrderRow rowOrderRow = ((OrderRow)(this.NewRow()));
  596. object[] columnValuesArray = new object[] {
  597. null,
  598. OrderStatus,
  599. OrderDeliveryDate,
  600. OrderPickupPoint};
  601. rowOrderRow.ItemArray = columnValuesArray;
  602. this.Rows.Add(rowOrderRow);
  603. return rowOrderRow;
  604. }
  605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  607. public OrderRow FindByOrderID(int OrderID) {
  608. return ((OrderRow)(this.Rows.Find(new object[] {
  609. OrderID})));
  610. }
  611. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  612. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  613. public override global::System.Data.DataTable Clone() {
  614. OrderDataTable cln = ((OrderDataTable)(base.Clone()));
  615. cln.InitVars();
  616. return cln;
  617. }
  618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  620. protected override global::System.Data.DataTable CreateInstance() {
  621. return new OrderDataTable();
  622. }
  623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  625. internal void InitVars() {
  626. this.columnOrderID = base.Columns["OrderID"];
  627. this.columnOrderStatus = base.Columns["OrderStatus"];
  628. this.columnOrderDeliveryDate = base.Columns["OrderDeliveryDate"];
  629. this.columnOrderPickupPoint = base.Columns["OrderPickupPoint"];
  630. }
  631. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  633. private void InitClass() {
  634. this.columnOrderID = new global::System.Data.DataColumn("OrderID", typeof(int), null, global::System.Data.MappingType.Element);
  635. base.Columns.Add(this.columnOrderID);
  636. this.columnOrderStatus = new global::System.Data.DataColumn("OrderStatus", typeof(string), null, global::System.Data.MappingType.Element);
  637. base.Columns.Add(this.columnOrderStatus);
  638. this.columnOrderDeliveryDate = new global::System.Data.DataColumn("OrderDeliveryDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  639. base.Columns.Add(this.columnOrderDeliveryDate);
  640. this.columnOrderPickupPoint = new global::System.Data.DataColumn("OrderPickupPoint", typeof(string), null, global::System.Data.MappingType.Element);
  641. base.Columns.Add(this.columnOrderPickupPoint);
  642. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  643. this.columnOrderID}, true));
  644. this.columnOrderID.AutoIncrement = true;
  645. this.columnOrderID.AutoIncrementSeed = -1;
  646. this.columnOrderID.AutoIncrementStep = -1;
  647. this.columnOrderID.AllowDBNull = false;
  648. this.columnOrderID.ReadOnly = true;
  649. this.columnOrderID.Unique = true;
  650. this.columnOrderStatus.AllowDBNull = false;
  651. this.columnOrderStatus.MaxLength = 2147483647;
  652. this.columnOrderDeliveryDate.AllowDBNull = false;
  653. this.columnOrderPickupPoint.AllowDBNull = false;
  654. this.columnOrderPickupPoint.MaxLength = 2147483647;
  655. }
  656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  657. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  658. public OrderRow NewOrderRow() {
  659. return ((OrderRow)(this.NewRow()));
  660. }
  661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  663. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  664. return new OrderRow(builder);
  665. }
  666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  668. protected override global::System.Type GetRowType() {
  669. return typeof(OrderRow);
  670. }
  671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  673. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  674. base.OnRowChanged(e);
  675. if ((this.OrderRowChanged != null)) {
  676. this.OrderRowChanged(this, new OrderRowChangeEvent(((OrderRow)(e.Row)), e.Action));
  677. }
  678. }
  679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  681. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  682. base.OnRowChanging(e);
  683. if ((this.OrderRowChanging != null)) {
  684. this.OrderRowChanging(this, new OrderRowChangeEvent(((OrderRow)(e.Row)), e.Action));
  685. }
  686. }
  687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  689. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  690. base.OnRowDeleted(e);
  691. if ((this.OrderRowDeleted != null)) {
  692. this.OrderRowDeleted(this, new OrderRowChangeEvent(((OrderRow)(e.Row)), e.Action));
  693. }
  694. }
  695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  697. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  698. base.OnRowDeleting(e);
  699. if ((this.OrderRowDeleting != null)) {
  700. this.OrderRowDeleting(this, new OrderRowChangeEvent(((OrderRow)(e.Row)), e.Action));
  701. }
  702. }
  703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  705. public void RemoveOrderRow(OrderRow row) {
  706. this.Rows.Remove(row);
  707. }
  708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  710. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  711. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  712. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  713. _12gkDataSet ds = new _12gkDataSet();
  714. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  715. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  716. any1.MinOccurs = new decimal(0);
  717. any1.MaxOccurs = decimal.MaxValue;
  718. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  719. sequence.Items.Add(any1);
  720. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  721. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  722. any2.MinOccurs = new decimal(1);
  723. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  724. sequence.Items.Add(any2);
  725. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  726. attribute1.Name = "namespace";
  727. attribute1.FixedValue = ds.Namespace;
  728. type.Attributes.Add(attribute1);
  729. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  730. attribute2.Name = "tableTypeName";
  731. attribute2.FixedValue = "OrderDataTable";
  732. type.Attributes.Add(attribute2);
  733. type.Particle = sequence;
  734. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  735. if (xs.Contains(dsSchema.TargetNamespace)) {
  736. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  737. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  738. try {
  739. global::System.Xml.Schema.XmlSchema schema = null;
  740. dsSchema.Write(s1);
  741. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  742. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  743. s2.SetLength(0);
  744. schema.Write(s2);
  745. if ((s1.Length == s2.Length)) {
  746. s1.Position = 0;
  747. s2.Position = 0;
  748. for (; ((s1.Position != s1.Length)
  749. && (s1.ReadByte() == s2.ReadByte())); ) {
  750. ;
  751. }
  752. if ((s1.Position == s1.Length)) {
  753. return type;
  754. }
  755. }
  756. }
  757. }
  758. finally {
  759. if ((s1 != null)) {
  760. s1.Close();
  761. }
  762. if ((s2 != null)) {
  763. s2.Close();
  764. }
  765. }
  766. }
  767. xs.Add(dsSchema);
  768. return type;
  769. }
  770. }
  771. /// <summary>
  772. ///Represents the strongly named DataTable class.
  773. ///</summary>
  774. [global::System.Serializable()]
  775. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  776. public partial class OrdersProduktsDataTable : global::System.Data.TypedTableBase<OrdersProduktsRow> {
  777. private global::System.Data.DataColumn columnOrderID;
  778. private global::System.Data.DataColumn columnProductArticleNumber;
  779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  781. public OrdersProduktsDataTable() {
  782. this.TableName = "OrdersProdukts";
  783. this.BeginInit();
  784. this.InitClass();
  785. this.EndInit();
  786. }
  787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  788. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  789. internal OrdersProduktsDataTable(global::System.Data.DataTable table) {
  790. this.TableName = table.TableName;
  791. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  792. this.CaseSensitive = table.CaseSensitive;
  793. }
  794. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  795. this.Locale = table.Locale;
  796. }
  797. if ((table.Namespace != table.DataSet.Namespace)) {
  798. this.Namespace = table.Namespace;
  799. }
  800. this.Prefix = table.Prefix;
  801. this.MinimumCapacity = table.MinimumCapacity;
  802. }
  803. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  804. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  805. protected OrdersProduktsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  806. base(info, context) {
  807. this.InitVars();
  808. }
  809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  811. public global::System.Data.DataColumn OrderIDColumn {
  812. get {
  813. return this.columnOrderID;
  814. }
  815. }
  816. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  817. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  818. public global::System.Data.DataColumn ProductArticleNumberColumn {
  819. get {
  820. return this.columnProductArticleNumber;
  821. }
  822. }
  823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  825. [global::System.ComponentModel.Browsable(false)]
  826. public int Count {
  827. get {
  828. return this.Rows.Count;
  829. }
  830. }
  831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  832. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  833. public OrdersProduktsRow this[int index] {
  834. get {
  835. return ((OrdersProduktsRow)(this.Rows[index]));
  836. }
  837. }
  838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  839. public event OrdersProduktsRowChangeEventHandler OrdersProduktsRowChanging;
  840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  841. public event OrdersProduktsRowChangeEventHandler OrdersProduktsRowChanged;
  842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  843. public event OrdersProduktsRowChangeEventHandler OrdersProduktsRowDeleting;
  844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  845. public event OrdersProduktsRowChangeEventHandler OrdersProduktsRowDeleted;
  846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  848. public void AddOrdersProduktsRow(OrdersProduktsRow row) {
  849. this.Rows.Add(row);
  850. }
  851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  853. public OrdersProduktsRow AddOrdersProduktsRow(int ProductArticleNumber) {
  854. OrdersProduktsRow rowOrdersProduktsRow = ((OrdersProduktsRow)(this.NewRow()));
  855. object[] columnValuesArray = new object[] {
  856. null,
  857. ProductArticleNumber};
  858. rowOrdersProduktsRow.ItemArray = columnValuesArray;
  859. this.Rows.Add(rowOrdersProduktsRow);
  860. return rowOrdersProduktsRow;
  861. }
  862. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  863. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  864. public OrdersProduktsRow FindByOrderID(int OrderID) {
  865. return ((OrdersProduktsRow)(this.Rows.Find(new object[] {
  866. OrderID})));
  867. }
  868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  870. public override global::System.Data.DataTable Clone() {
  871. OrdersProduktsDataTable cln = ((OrdersProduktsDataTable)(base.Clone()));
  872. cln.InitVars();
  873. return cln;
  874. }
  875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  877. protected override global::System.Data.DataTable CreateInstance() {
  878. return new OrdersProduktsDataTable();
  879. }
  880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  881. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  882. internal void InitVars() {
  883. this.columnOrderID = base.Columns["OrderID"];
  884. this.columnProductArticleNumber = base.Columns["ProductArticleNumber"];
  885. }
  886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  888. private void InitClass() {
  889. this.columnOrderID = new global::System.Data.DataColumn("OrderID", typeof(int), null, global::System.Data.MappingType.Element);
  890. base.Columns.Add(this.columnOrderID);
  891. this.columnProductArticleNumber = new global::System.Data.DataColumn("ProductArticleNumber", typeof(int), null, global::System.Data.MappingType.Element);
  892. base.Columns.Add(this.columnProductArticleNumber);
  893. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  894. this.columnOrderID}, true));
  895. this.columnOrderID.AutoIncrement = true;
  896. this.columnOrderID.AutoIncrementSeed = -1;
  897. this.columnOrderID.AutoIncrementStep = -1;
  898. this.columnOrderID.AllowDBNull = false;
  899. this.columnOrderID.ReadOnly = true;
  900. this.columnOrderID.Unique = true;
  901. this.columnProductArticleNumber.AllowDBNull = false;
  902. }
  903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  904. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  905. public OrdersProduktsRow NewOrdersProduktsRow() {
  906. return ((OrdersProduktsRow)(this.NewRow()));
  907. }
  908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  910. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  911. return new OrdersProduktsRow(builder);
  912. }
  913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  915. protected override global::System.Type GetRowType() {
  916. return typeof(OrdersProduktsRow);
  917. }
  918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  920. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  921. base.OnRowChanged(e);
  922. if ((this.OrdersProduktsRowChanged != null)) {
  923. this.OrdersProduktsRowChanged(this, new OrdersProduktsRowChangeEvent(((OrdersProduktsRow)(e.Row)), e.Action));
  924. }
  925. }
  926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  928. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  929. base.OnRowChanging(e);
  930. if ((this.OrdersProduktsRowChanging != null)) {
  931. this.OrdersProduktsRowChanging(this, new OrdersProduktsRowChangeEvent(((OrdersProduktsRow)(e.Row)), e.Action));
  932. }
  933. }
  934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  935. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  936. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  937. base.OnRowDeleted(e);
  938. if ((this.OrdersProduktsRowDeleted != null)) {
  939. this.OrdersProduktsRowDeleted(this, new OrdersProduktsRowChangeEvent(((OrdersProduktsRow)(e.Row)), e.Action));
  940. }
  941. }
  942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  944. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  945. base.OnRowDeleting(e);
  946. if ((this.OrdersProduktsRowDeleting != null)) {
  947. this.OrdersProduktsRowDeleting(this, new OrdersProduktsRowChangeEvent(((OrdersProduktsRow)(e.Row)), e.Action));
  948. }
  949. }
  950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  952. public void RemoveOrdersProduktsRow(OrdersProduktsRow row) {
  953. this.Rows.Remove(row);
  954. }
  955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  956. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  957. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  958. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  959. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  960. _12gkDataSet ds = new _12gkDataSet();
  961. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  962. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  963. any1.MinOccurs = new decimal(0);
  964. any1.MaxOccurs = decimal.MaxValue;
  965. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  966. sequence.Items.Add(any1);
  967. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  968. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  969. any2.MinOccurs = new decimal(1);
  970. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  971. sequence.Items.Add(any2);
  972. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  973. attribute1.Name = "namespace";
  974. attribute1.FixedValue = ds.Namespace;
  975. type.Attributes.Add(attribute1);
  976. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  977. attribute2.Name = "tableTypeName";
  978. attribute2.FixedValue = "OrdersProduktsDataTable";
  979. type.Attributes.Add(attribute2);
  980. type.Particle = sequence;
  981. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  982. if (xs.Contains(dsSchema.TargetNamespace)) {
  983. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  984. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  985. try {
  986. global::System.Xml.Schema.XmlSchema schema = null;
  987. dsSchema.Write(s1);
  988. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  989. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  990. s2.SetLength(0);
  991. schema.Write(s2);
  992. if ((s1.Length == s2.Length)) {
  993. s1.Position = 0;
  994. s2.Position = 0;
  995. for (; ((s1.Position != s1.Length)
  996. && (s1.ReadByte() == s2.ReadByte())); ) {
  997. ;
  998. }
  999. if ((s1.Position == s1.Length)) {
  1000. return type;
  1001. }
  1002. }
  1003. }
  1004. }
  1005. finally {
  1006. if ((s1 != null)) {
  1007. s1.Close();
  1008. }
  1009. if ((s2 != null)) {
  1010. s2.Close();
  1011. }
  1012. }
  1013. }
  1014. xs.Add(dsSchema);
  1015. return type;
  1016. }
  1017. }
  1018. /// <summary>
  1019. ///Represents the strongly named DataTable class.
  1020. ///</summary>
  1021. [global::System.Serializable()]
  1022. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1023. public partial class ProdyktDataTable : global::System.Data.TypedTableBase<ProdyktRow> {
  1024. private global::System.Data.DataColumn columnArticleNumber;
  1025. private global::System.Data.DataColumn columnName;
  1026. private global::System.Data.DataColumn columnDescription;
  1027. private global::System.Data.DataColumn columnCategory;
  1028. private global::System.Data.DataColumn columnPhoto;
  1029. private global::System.Data.DataColumn columnManufacturer;
  1030. private global::System.Data.DataColumn columnPrais;
  1031. private global::System.Data.DataColumn columnЕдиница_измерения;
  1032. private global::System.Data.DataColumn columnРазмер_макс_скидки;
  1033. private global::System.Data.DataColumn columnПоставщик;
  1034. private global::System.Data.DataColumn columnДействующая_Скидка;
  1035. private global::System.Data.DataColumn columnКоличество_на_складе;
  1036. private global::System.Data.DataColumn columnCtatys;
  1037. private global::System.Data.DataColumn columnOrderID;
  1038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1039. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1040. public ProdyktDataTable() {
  1041. this.TableName = "Prodykt";
  1042. this.BeginInit();
  1043. this.InitClass();
  1044. this.EndInit();
  1045. }
  1046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1048. internal ProdyktDataTable(global::System.Data.DataTable table) {
  1049. this.TableName = table.TableName;
  1050. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1051. this.CaseSensitive = table.CaseSensitive;
  1052. }
  1053. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1054. this.Locale = table.Locale;
  1055. }
  1056. if ((table.Namespace != table.DataSet.Namespace)) {
  1057. this.Namespace = table.Namespace;
  1058. }
  1059. this.Prefix = table.Prefix;
  1060. this.MinimumCapacity = table.MinimumCapacity;
  1061. }
  1062. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1063. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1064. protected ProdyktDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1065. base(info, context) {
  1066. this.InitVars();
  1067. }
  1068. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1069. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1070. public global::System.Data.DataColumn ArticleNumberColumn {
  1071. get {
  1072. return this.columnArticleNumber;
  1073. }
  1074. }
  1075. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1076. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1077. public global::System.Data.DataColumn NameColumn {
  1078. get {
  1079. return this.columnName;
  1080. }
  1081. }
  1082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1084. public global::System.Data.DataColumn DescriptionColumn {
  1085. get {
  1086. return this.columnDescription;
  1087. }
  1088. }
  1089. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1090. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1091. public global::System.Data.DataColumn CategoryColumn {
  1092. get {
  1093. return this.columnCategory;
  1094. }
  1095. }
  1096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1098. public global::System.Data.DataColumn PhotoColumn {
  1099. get {
  1100. return this.columnPhoto;
  1101. }
  1102. }
  1103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1105. public global::System.Data.DataColumn ManufacturerColumn {
  1106. get {
  1107. return this.columnManufacturer;
  1108. }
  1109. }
  1110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1112. public global::System.Data.DataColumn PraisColumn {
  1113. get {
  1114. return this.columnPrais;
  1115. }
  1116. }
  1117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1119. public global::System.Data.DataColumn Единица_измеренияColumn {
  1120. get {
  1121. return this.columnЕдиница_измерения;
  1122. }
  1123. }
  1124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1126. public global::System.Data.DataColumn Размер_макс_скидкиColumn {
  1127. get {
  1128. return this.columnРазмер_макс_скидки;
  1129. }
  1130. }
  1131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1133. public global::System.Data.DataColumn ПоставщикColumn {
  1134. get {
  1135. return this.columnПоставщик;
  1136. }
  1137. }
  1138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1140. public global::System.Data.DataColumn Действующая_СкидкаColumn {
  1141. get {
  1142. return this.columnДействующая_Скидка;
  1143. }
  1144. }
  1145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1147. public global::System.Data.DataColumn Количество_на_складеColumn {
  1148. get {
  1149. return this.columnКоличество_на_складе;
  1150. }
  1151. }
  1152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1154. public global::System.Data.DataColumn CtatysColumn {
  1155. get {
  1156. return this.columnCtatys;
  1157. }
  1158. }
  1159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1161. public global::System.Data.DataColumn OrderIDColumn {
  1162. get {
  1163. return this.columnOrderID;
  1164. }
  1165. }
  1166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1168. [global::System.ComponentModel.Browsable(false)]
  1169. public int Count {
  1170. get {
  1171. return this.Rows.Count;
  1172. }
  1173. }
  1174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1176. public ProdyktRow this[int index] {
  1177. get {
  1178. return ((ProdyktRow)(this.Rows[index]));
  1179. }
  1180. }
  1181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1182. public event ProdyktRowChangeEventHandler ProdyktRowChanging;
  1183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1184. public event ProdyktRowChangeEventHandler ProdyktRowChanged;
  1185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1186. public event ProdyktRowChangeEventHandler ProdyktRowDeleting;
  1187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1188. public event ProdyktRowChangeEventHandler ProdyktRowDeleted;
  1189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1191. public void AddProdyktRow(ProdyktRow row) {
  1192. this.Rows.Add(row);
  1193. }
  1194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1196. public ProdyktRow AddProdyktRow(string ArticleNumber, string Name, string Description, string Category, byte[] Photo, string Manufacturer, decimal Prais, string Единица_измерения, int Размер_макс_скидки, string Поставщик, int Действующая_Скидка, int Количество_на_складе, string Ctatys, OrdersProduktsRow parentOrdersProduktsRowByFK_Prodykt_OrdersProdukts) {
  1197. ProdyktRow rowProdyktRow = ((ProdyktRow)(this.NewRow()));
  1198. object[] columnValuesArray = new object[] {
  1199. ArticleNumber,
  1200. Name,
  1201. Description,
  1202. Category,
  1203. Photo,
  1204. Manufacturer,
  1205. Prais,
  1206. Единица_измерения,
  1207. Размер_макс_скидки,
  1208. Поставщик,
  1209. Действующая_Скидка,
  1210. Количество_на_складе,
  1211. Ctatys,
  1212. null};
  1213. if ((parentOrdersProduktsRowByFK_Prodykt_OrdersProdukts != null)) {
  1214. columnValuesArray[13] = parentOrdersProduktsRowByFK_Prodykt_OrdersProdukts[0];
  1215. }
  1216. rowProdyktRow.ItemArray = columnValuesArray;
  1217. this.Rows.Add(rowProdyktRow);
  1218. return rowProdyktRow;
  1219. }
  1220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1222. public ProdyktRow FindByArticleNumber(string ArticleNumber) {
  1223. return ((ProdyktRow)(this.Rows.Find(new object[] {
  1224. ArticleNumber})));
  1225. }
  1226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1228. public override global::System.Data.DataTable Clone() {
  1229. ProdyktDataTable cln = ((ProdyktDataTable)(base.Clone()));
  1230. cln.InitVars();
  1231. return cln;
  1232. }
  1233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1235. protected override global::System.Data.DataTable CreateInstance() {
  1236. return new ProdyktDataTable();
  1237. }
  1238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1240. internal void InitVars() {
  1241. this.columnArticleNumber = base.Columns["ArticleNumber"];
  1242. this.columnName = base.Columns["Name"];
  1243. this.columnDescription = base.Columns["Description"];
  1244. this.columnCategory = base.Columns["Category"];
  1245. this.columnPhoto = base.Columns["Photo"];
  1246. this.columnManufacturer = base.Columns["Manufacturer"];
  1247. this.columnPrais = base.Columns["Prais"];
  1248. this.columnЕдиница_измерения = base.Columns["Единица_измерения"];
  1249. this.columnРазмер_макс_скидки = base.Columns["Размер_макс_скидки"];
  1250. this.columnПоставщик = base.Columns["Поставщик"];
  1251. this.columnДействующая_Скидка = base.Columns["Действующая_Скидка"];
  1252. this.columnКоличество_на_складе = base.Columns["Количество_на_складе"];
  1253. this.columnCtatys = base.Columns["Ctatys"];
  1254. this.columnOrderID = base.Columns["OrderID"];
  1255. }
  1256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1258. private void InitClass() {
  1259. this.columnArticleNumber = new global::System.Data.DataColumn("ArticleNumber", typeof(string), null, global::System.Data.MappingType.Element);
  1260. base.Columns.Add(this.columnArticleNumber);
  1261. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  1262. base.Columns.Add(this.columnName);
  1263. this.columnDescription = new global::System.Data.DataColumn("Description", typeof(string), null, global::System.Data.MappingType.Element);
  1264. base.Columns.Add(this.columnDescription);
  1265. this.columnCategory = new global::System.Data.DataColumn("Category", typeof(string), null, global::System.Data.MappingType.Element);
  1266. base.Columns.Add(this.columnCategory);
  1267. this.columnPhoto = new global::System.Data.DataColumn("Photo", typeof(byte[]), null, global::System.Data.MappingType.Element);
  1268. base.Columns.Add(this.columnPhoto);
  1269. this.columnManufacturer = new global::System.Data.DataColumn("Manufacturer", typeof(string), null, global::System.Data.MappingType.Element);
  1270. base.Columns.Add(this.columnManufacturer);
  1271. this.columnPrais = new global::System.Data.DataColumn("Prais", typeof(decimal), null, global::System.Data.MappingType.Element);
  1272. base.Columns.Add(this.columnPrais);
  1273. this.columnЕдиница_измерения = new global::System.Data.DataColumn("Единица_измерения", typeof(string), null, global::System.Data.MappingType.Element);
  1274. base.Columns.Add(this.columnЕдиница_измерения);
  1275. this.columnРазмер_макс_скидки = new global::System.Data.DataColumn("Размер_макс_скидки", typeof(int), null, global::System.Data.MappingType.Element);
  1276. base.Columns.Add(this.columnРазмер_макс_скидки);
  1277. this.columnПоставщик = new global::System.Data.DataColumn("Поставщик", typeof(string), null, global::System.Data.MappingType.Element);
  1278. base.Columns.Add(this.columnПоставщик);
  1279. this.columnДействующая_Скидка = new global::System.Data.DataColumn("Действующая_Скидка", typeof(int), null, global::System.Data.MappingType.Element);
  1280. base.Columns.Add(this.columnДействующая_Скидка);
  1281. this.columnКоличество_на_складе = new global::System.Data.DataColumn("Количество_на_складе", typeof(int), null, global::System.Data.MappingType.Element);
  1282. base.Columns.Add(this.columnКоличество_на_складе);
  1283. this.columnCtatys = new global::System.Data.DataColumn("Ctatys", typeof(string), null, global::System.Data.MappingType.Element);
  1284. base.Columns.Add(this.columnCtatys);
  1285. this.columnOrderID = new global::System.Data.DataColumn("OrderID", typeof(int), null, global::System.Data.MappingType.Element);
  1286. base.Columns.Add(this.columnOrderID);
  1287. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1288. this.columnArticleNumber}, true));
  1289. this.columnArticleNumber.AllowDBNull = false;
  1290. this.columnArticleNumber.Unique = true;
  1291. this.columnArticleNumber.MaxLength = 100;
  1292. this.columnName.MaxLength = 2147483647;
  1293. this.columnDescription.MaxLength = 2147483647;
  1294. this.columnCategory.MaxLength = 2147483647;
  1295. this.columnManufacturer.MaxLength = 2147483647;
  1296. this.columnЕдиница_измерения.MaxLength = 50;
  1297. this.columnПоставщик.MaxLength = 50;
  1298. this.columnCtatys.MaxLength = 2147483647;
  1299. }
  1300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1302. public ProdyktRow NewProdyktRow() {
  1303. return ((ProdyktRow)(this.NewRow()));
  1304. }
  1305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1306. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1307. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1308. return new ProdyktRow(builder);
  1309. }
  1310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1312. protected override global::System.Type GetRowType() {
  1313. return typeof(ProdyktRow);
  1314. }
  1315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1317. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1318. base.OnRowChanged(e);
  1319. if ((this.ProdyktRowChanged != null)) {
  1320. this.ProdyktRowChanged(this, new ProdyktRowChangeEvent(((ProdyktRow)(e.Row)), e.Action));
  1321. }
  1322. }
  1323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1325. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1326. base.OnRowChanging(e);
  1327. if ((this.ProdyktRowChanging != null)) {
  1328. this.ProdyktRowChanging(this, new ProdyktRowChangeEvent(((ProdyktRow)(e.Row)), e.Action));
  1329. }
  1330. }
  1331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1332. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1333. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1334. base.OnRowDeleted(e);
  1335. if ((this.ProdyktRowDeleted != null)) {
  1336. this.ProdyktRowDeleted(this, new ProdyktRowChangeEvent(((ProdyktRow)(e.Row)), e.Action));
  1337. }
  1338. }
  1339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1341. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1342. base.OnRowDeleting(e);
  1343. if ((this.ProdyktRowDeleting != null)) {
  1344. this.ProdyktRowDeleting(this, new ProdyktRowChangeEvent(((ProdyktRow)(e.Row)), e.Action));
  1345. }
  1346. }
  1347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1349. public void RemoveProdyktRow(ProdyktRow row) {
  1350. this.Rows.Remove(row);
  1351. }
  1352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1354. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1355. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1356. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1357. _12gkDataSet ds = new _12gkDataSet();
  1358. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1359. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1360. any1.MinOccurs = new decimal(0);
  1361. any1.MaxOccurs = decimal.MaxValue;
  1362. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1363. sequence.Items.Add(any1);
  1364. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1365. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1366. any2.MinOccurs = new decimal(1);
  1367. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1368. sequence.Items.Add(any2);
  1369. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1370. attribute1.Name = "namespace";
  1371. attribute1.FixedValue = ds.Namespace;
  1372. type.Attributes.Add(attribute1);
  1373. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1374. attribute2.Name = "tableTypeName";
  1375. attribute2.FixedValue = "ProdyktDataTable";
  1376. type.Attributes.Add(attribute2);
  1377. type.Particle = sequence;
  1378. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1379. if (xs.Contains(dsSchema.TargetNamespace)) {
  1380. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1381. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1382. try {
  1383. global::System.Xml.Schema.XmlSchema schema = null;
  1384. dsSchema.Write(s1);
  1385. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1386. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1387. s2.SetLength(0);
  1388. schema.Write(s2);
  1389. if ((s1.Length == s2.Length)) {
  1390. s1.Position = 0;
  1391. s2.Position = 0;
  1392. for (; ((s1.Position != s1.Length)
  1393. && (s1.ReadByte() == s2.ReadByte())); ) {
  1394. ;
  1395. }
  1396. if ((s1.Position == s1.Length)) {
  1397. return type;
  1398. }
  1399. }
  1400. }
  1401. }
  1402. finally {
  1403. if ((s1 != null)) {
  1404. s1.Close();
  1405. }
  1406. if ((s2 != null)) {
  1407. s2.Close();
  1408. }
  1409. }
  1410. }
  1411. xs.Add(dsSchema);
  1412. return type;
  1413. }
  1414. }
  1415. /// <summary>
  1416. ///Represents the strongly named DataTable class.
  1417. ///</summary>
  1418. [global::System.Serializable()]
  1419. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1420. public partial class RoleDataTable : global::System.Data.TypedTableBase<RoleRow> {
  1421. private global::System.Data.DataColumn columnRoleID;
  1422. private global::System.Data.DataColumn columnRoleName;
  1423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1425. public RoleDataTable() {
  1426. this.TableName = "Role";
  1427. this.BeginInit();
  1428. this.InitClass();
  1429. this.EndInit();
  1430. }
  1431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1433. internal RoleDataTable(global::System.Data.DataTable table) {
  1434. this.TableName = table.TableName;
  1435. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1436. this.CaseSensitive = table.CaseSensitive;
  1437. }
  1438. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1439. this.Locale = table.Locale;
  1440. }
  1441. if ((table.Namespace != table.DataSet.Namespace)) {
  1442. this.Namespace = table.Namespace;
  1443. }
  1444. this.Prefix = table.Prefix;
  1445. this.MinimumCapacity = table.MinimumCapacity;
  1446. }
  1447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1448. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1449. protected RoleDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1450. base(info, context) {
  1451. this.InitVars();
  1452. }
  1453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1454. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1455. public global::System.Data.DataColumn RoleIDColumn {
  1456. get {
  1457. return this.columnRoleID;
  1458. }
  1459. }
  1460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1462. public global::System.Data.DataColumn RoleNameColumn {
  1463. get {
  1464. return this.columnRoleName;
  1465. }
  1466. }
  1467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1469. [global::System.ComponentModel.Browsable(false)]
  1470. public int Count {
  1471. get {
  1472. return this.Rows.Count;
  1473. }
  1474. }
  1475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1477. public RoleRow this[int index] {
  1478. get {
  1479. return ((RoleRow)(this.Rows[index]));
  1480. }
  1481. }
  1482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1483. public event RoleRowChangeEventHandler RoleRowChanging;
  1484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1485. public event RoleRowChangeEventHandler RoleRowChanged;
  1486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1487. public event RoleRowChangeEventHandler RoleRowDeleting;
  1488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1489. public event RoleRowChangeEventHandler RoleRowDeleted;
  1490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1492. public void AddRoleRow(RoleRow row) {
  1493. this.Rows.Add(row);
  1494. }
  1495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1497. public RoleRow AddRoleRow(string RoleName) {
  1498. RoleRow rowRoleRow = ((RoleRow)(this.NewRow()));
  1499. object[] columnValuesArray = new object[] {
  1500. null,
  1501. RoleName};
  1502. rowRoleRow.ItemArray = columnValuesArray;
  1503. this.Rows.Add(rowRoleRow);
  1504. return rowRoleRow;
  1505. }
  1506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1508. public RoleRow FindByRoleID(int RoleID) {
  1509. return ((RoleRow)(this.Rows.Find(new object[] {
  1510. RoleID})));
  1511. }
  1512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1514. public override global::System.Data.DataTable Clone() {
  1515. RoleDataTable cln = ((RoleDataTable)(base.Clone()));
  1516. cln.InitVars();
  1517. return cln;
  1518. }
  1519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1521. protected override global::System.Data.DataTable CreateInstance() {
  1522. return new RoleDataTable();
  1523. }
  1524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1526. internal void InitVars() {
  1527. this.columnRoleID = base.Columns["RoleID"];
  1528. this.columnRoleName = base.Columns["RoleName"];
  1529. }
  1530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1532. private void InitClass() {
  1533. this.columnRoleID = new global::System.Data.DataColumn("RoleID", typeof(int), null, global::System.Data.MappingType.Element);
  1534. base.Columns.Add(this.columnRoleID);
  1535. this.columnRoleName = new global::System.Data.DataColumn("RoleName", typeof(string), null, global::System.Data.MappingType.Element);
  1536. base.Columns.Add(this.columnRoleName);
  1537. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1538. this.columnRoleID}, true));
  1539. this.columnRoleID.AutoIncrement = true;
  1540. this.columnRoleID.AutoIncrementSeed = -1;
  1541. this.columnRoleID.AutoIncrementStep = -1;
  1542. this.columnRoleID.AllowDBNull = false;
  1543. this.columnRoleID.ReadOnly = true;
  1544. this.columnRoleID.Unique = true;
  1545. this.columnRoleName.AllowDBNull = false;
  1546. this.columnRoleName.MaxLength = 100;
  1547. }
  1548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1549. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1550. public RoleRow NewRoleRow() {
  1551. return ((RoleRow)(this.NewRow()));
  1552. }
  1553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1555. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1556. return new RoleRow(builder);
  1557. }
  1558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1559. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1560. protected override global::System.Type GetRowType() {
  1561. return typeof(RoleRow);
  1562. }
  1563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1565. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1566. base.OnRowChanged(e);
  1567. if ((this.RoleRowChanged != null)) {
  1568. this.RoleRowChanged(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  1569. }
  1570. }
  1571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1573. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1574. base.OnRowChanging(e);
  1575. if ((this.RoleRowChanging != null)) {
  1576. this.RoleRowChanging(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  1577. }
  1578. }
  1579. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1580. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1581. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1582. base.OnRowDeleted(e);
  1583. if ((this.RoleRowDeleted != null)) {
  1584. this.RoleRowDeleted(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  1585. }
  1586. }
  1587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1589. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1590. base.OnRowDeleting(e);
  1591. if ((this.RoleRowDeleting != null)) {
  1592. this.RoleRowDeleting(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  1593. }
  1594. }
  1595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1597. public void RemoveRoleRow(RoleRow row) {
  1598. this.Rows.Remove(row);
  1599. }
  1600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1602. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1603. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1604. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1605. _12gkDataSet ds = new _12gkDataSet();
  1606. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1607. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1608. any1.MinOccurs = new decimal(0);
  1609. any1.MaxOccurs = decimal.MaxValue;
  1610. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1611. sequence.Items.Add(any1);
  1612. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1613. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1614. any2.MinOccurs = new decimal(1);
  1615. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1616. sequence.Items.Add(any2);
  1617. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1618. attribute1.Name = "namespace";
  1619. attribute1.FixedValue = ds.Namespace;
  1620. type.Attributes.Add(attribute1);
  1621. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1622. attribute2.Name = "tableTypeName";
  1623. attribute2.FixedValue = "RoleDataTable";
  1624. type.Attributes.Add(attribute2);
  1625. type.Particle = sequence;
  1626. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1627. if (xs.Contains(dsSchema.TargetNamespace)) {
  1628. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1629. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1630. try {
  1631. global::System.Xml.Schema.XmlSchema schema = null;
  1632. dsSchema.Write(s1);
  1633. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1634. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1635. s2.SetLength(0);
  1636. schema.Write(s2);
  1637. if ((s1.Length == s2.Length)) {
  1638. s1.Position = 0;
  1639. s2.Position = 0;
  1640. for (; ((s1.Position != s1.Length)
  1641. && (s1.ReadByte() == s2.ReadByte())); ) {
  1642. ;
  1643. }
  1644. if ((s1.Position == s1.Length)) {
  1645. return type;
  1646. }
  1647. }
  1648. }
  1649. }
  1650. finally {
  1651. if ((s1 != null)) {
  1652. s1.Close();
  1653. }
  1654. if ((s2 != null)) {
  1655. s2.Close();
  1656. }
  1657. }
  1658. }
  1659. xs.Add(dsSchema);
  1660. return type;
  1661. }
  1662. }
  1663. /// <summary>
  1664. ///Represents the strongly named DataTable class.
  1665. ///</summary>
  1666. [global::System.Serializable()]
  1667. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1668. public partial class Users1DataTable : global::System.Data.TypedTableBase<Users1Row> {
  1669. private global::System.Data.DataColumn columnid;
  1670. private global::System.Data.DataColumn columnfamilia;
  1671. private global::System.Data.DataColumn columnname;
  1672. private global::System.Data.DataColumn columnothestvo;
  1673. private global::System.Data.DataColumn columnlogin;
  1674. private global::System.Data.DataColumn columnpasword;
  1675. private global::System.Data.DataColumn columnpole;
  1676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1678. public Users1DataTable() {
  1679. this.TableName = "Users1";
  1680. this.BeginInit();
  1681. this.InitClass();
  1682. this.EndInit();
  1683. }
  1684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1686. internal Users1DataTable(global::System.Data.DataTable table) {
  1687. this.TableName = table.TableName;
  1688. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1689. this.CaseSensitive = table.CaseSensitive;
  1690. }
  1691. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1692. this.Locale = table.Locale;
  1693. }
  1694. if ((table.Namespace != table.DataSet.Namespace)) {
  1695. this.Namespace = table.Namespace;
  1696. }
  1697. this.Prefix = table.Prefix;
  1698. this.MinimumCapacity = table.MinimumCapacity;
  1699. }
  1700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1702. protected Users1DataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1703. base(info, context) {
  1704. this.InitVars();
  1705. }
  1706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1708. public global::System.Data.DataColumn idColumn {
  1709. get {
  1710. return this.columnid;
  1711. }
  1712. }
  1713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1715. public global::System.Data.DataColumn familiaColumn {
  1716. get {
  1717. return this.columnfamilia;
  1718. }
  1719. }
  1720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1722. public global::System.Data.DataColumn nameColumn {
  1723. get {
  1724. return this.columnname;
  1725. }
  1726. }
  1727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1729. public global::System.Data.DataColumn othestvoColumn {
  1730. get {
  1731. return this.columnothestvo;
  1732. }
  1733. }
  1734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1736. public global::System.Data.DataColumn loginColumn {
  1737. get {
  1738. return this.columnlogin;
  1739. }
  1740. }
  1741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1742. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1743. public global::System.Data.DataColumn paswordColumn {
  1744. get {
  1745. return this.columnpasword;
  1746. }
  1747. }
  1748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1750. public global::System.Data.DataColumn poleColumn {
  1751. get {
  1752. return this.columnpole;
  1753. }
  1754. }
  1755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1757. [global::System.ComponentModel.Browsable(false)]
  1758. public int Count {
  1759. get {
  1760. return this.Rows.Count;
  1761. }
  1762. }
  1763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1765. public Users1Row this[int index] {
  1766. get {
  1767. return ((Users1Row)(this.Rows[index]));
  1768. }
  1769. }
  1770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1771. public event Users1RowChangeEventHandler Users1RowChanging;
  1772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1773. public event Users1RowChangeEventHandler Users1RowChanged;
  1774. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1775. public event Users1RowChangeEventHandler Users1RowDeleting;
  1776. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1777. public event Users1RowChangeEventHandler Users1RowDeleted;
  1778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1780. public void AddUsers1Row(Users1Row row) {
  1781. this.Rows.Add(row);
  1782. }
  1783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1785. public Users1Row AddUsers1Row(string familia, string name, string othestvo, string login, string pasword, int pole) {
  1786. Users1Row rowUsers1Row = ((Users1Row)(this.NewRow()));
  1787. object[] columnValuesArray = new object[] {
  1788. null,
  1789. familia,
  1790. name,
  1791. othestvo,
  1792. login,
  1793. pasword,
  1794. pole};
  1795. rowUsers1Row.ItemArray = columnValuesArray;
  1796. this.Rows.Add(rowUsers1Row);
  1797. return rowUsers1Row;
  1798. }
  1799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1801. public Users1Row FindByid(int id) {
  1802. return ((Users1Row)(this.Rows.Find(new object[] {
  1803. id})));
  1804. }
  1805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1806. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1807. public override global::System.Data.DataTable Clone() {
  1808. Users1DataTable cln = ((Users1DataTable)(base.Clone()));
  1809. cln.InitVars();
  1810. return cln;
  1811. }
  1812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1814. protected override global::System.Data.DataTable CreateInstance() {
  1815. return new Users1DataTable();
  1816. }
  1817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1818. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1819. internal void InitVars() {
  1820. this.columnid = base.Columns["id"];
  1821. this.columnfamilia = base.Columns["familia"];
  1822. this.columnname = base.Columns["name"];
  1823. this.columnothestvo = base.Columns["othestvo"];
  1824. this.columnlogin = base.Columns["login"];
  1825. this.columnpasword = base.Columns["pasword"];
  1826. this.columnpole = base.Columns["pole"];
  1827. }
  1828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1830. private void InitClass() {
  1831. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  1832. base.Columns.Add(this.columnid);
  1833. this.columnfamilia = new global::System.Data.DataColumn("familia", typeof(string), null, global::System.Data.MappingType.Element);
  1834. base.Columns.Add(this.columnfamilia);
  1835. this.columnname = new global::System.Data.DataColumn("name", typeof(string), null, global::System.Data.MappingType.Element);
  1836. base.Columns.Add(this.columnname);
  1837. this.columnothestvo = new global::System.Data.DataColumn("othestvo", typeof(string), null, global::System.Data.MappingType.Element);
  1838. base.Columns.Add(this.columnothestvo);
  1839. this.columnlogin = new global::System.Data.DataColumn("login", typeof(string), null, global::System.Data.MappingType.Element);
  1840. base.Columns.Add(this.columnlogin);
  1841. this.columnpasword = new global::System.Data.DataColumn("pasword", typeof(string), null, global::System.Data.MappingType.Element);
  1842. base.Columns.Add(this.columnpasword);
  1843. this.columnpole = new global::System.Data.DataColumn("pole", typeof(int), null, global::System.Data.MappingType.Element);
  1844. base.Columns.Add(this.columnpole);
  1845. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1846. this.columnid}, true));
  1847. this.columnid.AutoIncrement = true;
  1848. this.columnid.AutoIncrementSeed = -1;
  1849. this.columnid.AutoIncrementStep = -1;
  1850. this.columnid.AllowDBNull = false;
  1851. this.columnid.ReadOnly = true;
  1852. this.columnid.Unique = true;
  1853. this.columnfamilia.MaxLength = 100;
  1854. this.columnname.MaxLength = 100;
  1855. this.columnothestvo.MaxLength = 100;
  1856. this.columnlogin.MaxLength = 2147483647;
  1857. this.columnpasword.MaxLength = 2147483647;
  1858. }
  1859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1861. public Users1Row NewUsers1Row() {
  1862. return ((Users1Row)(this.NewRow()));
  1863. }
  1864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1866. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1867. return new Users1Row(builder);
  1868. }
  1869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1871. protected override global::System.Type GetRowType() {
  1872. return typeof(Users1Row);
  1873. }
  1874. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1875. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1876. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1877. base.OnRowChanged(e);
  1878. if ((this.Users1RowChanged != null)) {
  1879. this.Users1RowChanged(this, new Users1RowChangeEvent(((Users1Row)(e.Row)), e.Action));
  1880. }
  1881. }
  1882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1884. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1885. base.OnRowChanging(e);
  1886. if ((this.Users1RowChanging != null)) {
  1887. this.Users1RowChanging(this, new Users1RowChangeEvent(((Users1Row)(e.Row)), e.Action));
  1888. }
  1889. }
  1890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1892. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1893. base.OnRowDeleted(e);
  1894. if ((this.Users1RowDeleted != null)) {
  1895. this.Users1RowDeleted(this, new Users1RowChangeEvent(((Users1Row)(e.Row)), e.Action));
  1896. }
  1897. }
  1898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1900. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1901. base.OnRowDeleting(e);
  1902. if ((this.Users1RowDeleting != null)) {
  1903. this.Users1RowDeleting(this, new Users1RowChangeEvent(((Users1Row)(e.Row)), e.Action));
  1904. }
  1905. }
  1906. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1907. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1908. public void RemoveUsers1Row(Users1Row row) {
  1909. this.Rows.Remove(row);
  1910. }
  1911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1913. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1914. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1915. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1916. _12gkDataSet ds = new _12gkDataSet();
  1917. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1918. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1919. any1.MinOccurs = new decimal(0);
  1920. any1.MaxOccurs = decimal.MaxValue;
  1921. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1922. sequence.Items.Add(any1);
  1923. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1924. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1925. any2.MinOccurs = new decimal(1);
  1926. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1927. sequence.Items.Add(any2);
  1928. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1929. attribute1.Name = "namespace";
  1930. attribute1.FixedValue = ds.Namespace;
  1931. type.Attributes.Add(attribute1);
  1932. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1933. attribute2.Name = "tableTypeName";
  1934. attribute2.FixedValue = "Users1DataTable";
  1935. type.Attributes.Add(attribute2);
  1936. type.Particle = sequence;
  1937. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1938. if (xs.Contains(dsSchema.TargetNamespace)) {
  1939. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1940. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1941. try {
  1942. global::System.Xml.Schema.XmlSchema schema = null;
  1943. dsSchema.Write(s1);
  1944. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1945. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1946. s2.SetLength(0);
  1947. schema.Write(s2);
  1948. if ((s1.Length == s2.Length)) {
  1949. s1.Position = 0;
  1950. s2.Position = 0;
  1951. for (; ((s1.Position != s1.Length)
  1952. && (s1.ReadByte() == s2.ReadByte())); ) {
  1953. ;
  1954. }
  1955. if ((s1.Position == s1.Length)) {
  1956. return type;
  1957. }
  1958. }
  1959. }
  1960. }
  1961. finally {
  1962. if ((s1 != null)) {
  1963. s1.Close();
  1964. }
  1965. if ((s2 != null)) {
  1966. s2.Close();
  1967. }
  1968. }
  1969. }
  1970. xs.Add(dsSchema);
  1971. return type;
  1972. }
  1973. }
  1974. /// <summary>
  1975. ///Represents the strongly named DataTable class.
  1976. ///</summary>
  1977. [global::System.Serializable()]
  1978. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1979. public partial class ZakazDataTable : global::System.Data.TypedTableBase<ZakazRow> {
  1980. private global::System.Data.DataColumn columnid;
  1981. private global::System.Data.DataColumn columndata;
  1982. private global::System.Data.DataColumn columndadaDostavki;
  1983. private global::System.Data.DataColumn columnPunkt;
  1984. private global::System.Data.DataColumn columnKlient;
  1985. private global::System.Data.DataColumn columnKodPoluhatil;
  1986. private global::System.Data.DataColumn columnStatus;
  1987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1989. public ZakazDataTable() {
  1990. this.TableName = "Zakaz";
  1991. this.BeginInit();
  1992. this.InitClass();
  1993. this.EndInit();
  1994. }
  1995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1997. internal ZakazDataTable(global::System.Data.DataTable table) {
  1998. this.TableName = table.TableName;
  1999. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2000. this.CaseSensitive = table.CaseSensitive;
  2001. }
  2002. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2003. this.Locale = table.Locale;
  2004. }
  2005. if ((table.Namespace != table.DataSet.Namespace)) {
  2006. this.Namespace = table.Namespace;
  2007. }
  2008. this.Prefix = table.Prefix;
  2009. this.MinimumCapacity = table.MinimumCapacity;
  2010. }
  2011. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2012. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2013. protected ZakazDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2014. base(info, context) {
  2015. this.InitVars();
  2016. }
  2017. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2019. public global::System.Data.DataColumn idColumn {
  2020. get {
  2021. return this.columnid;
  2022. }
  2023. }
  2024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2026. public global::System.Data.DataColumn dataColumn {
  2027. get {
  2028. return this.columndata;
  2029. }
  2030. }
  2031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2032. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2033. public global::System.Data.DataColumn dadaDostavkiColumn {
  2034. get {
  2035. return this.columndadaDostavki;
  2036. }
  2037. }
  2038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2039. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2040. public global::System.Data.DataColumn PunktColumn {
  2041. get {
  2042. return this.columnPunkt;
  2043. }
  2044. }
  2045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2047. public global::System.Data.DataColumn KlientColumn {
  2048. get {
  2049. return this.columnKlient;
  2050. }
  2051. }
  2052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2054. public global::System.Data.DataColumn KodPoluhatilColumn {
  2055. get {
  2056. return this.columnKodPoluhatil;
  2057. }
  2058. }
  2059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2061. public global::System.Data.DataColumn StatusColumn {
  2062. get {
  2063. return this.columnStatus;
  2064. }
  2065. }
  2066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2068. [global::System.ComponentModel.Browsable(false)]
  2069. public int Count {
  2070. get {
  2071. return this.Rows.Count;
  2072. }
  2073. }
  2074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2076. public ZakazRow this[int index] {
  2077. get {
  2078. return ((ZakazRow)(this.Rows[index]));
  2079. }
  2080. }
  2081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2082. public event ZakazRowChangeEventHandler ZakazRowChanging;
  2083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2084. public event ZakazRowChangeEventHandler ZakazRowChanged;
  2085. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2086. public event ZakazRowChangeEventHandler ZakazRowDeleting;
  2087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2088. public event ZakazRowChangeEventHandler ZakazRowDeleted;
  2089. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2090. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2091. public void AddZakazRow(ZakazRow row) {
  2092. this.Rows.Add(row);
  2093. }
  2094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2095. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2096. public ZakazRow AddZakazRow(System.DateTime data, System.DateTime dadaDostavki, int Punkt, int Klient, int KodPoluhatil, int Status) {
  2097. ZakazRow rowZakazRow = ((ZakazRow)(this.NewRow()));
  2098. object[] columnValuesArray = new object[] {
  2099. null,
  2100. data,
  2101. dadaDostavki,
  2102. Punkt,
  2103. Klient,
  2104. KodPoluhatil,
  2105. Status};
  2106. rowZakazRow.ItemArray = columnValuesArray;
  2107. this.Rows.Add(rowZakazRow);
  2108. return rowZakazRow;
  2109. }
  2110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2112. public ZakazRow FindByid(int id) {
  2113. return ((ZakazRow)(this.Rows.Find(new object[] {
  2114. id})));
  2115. }
  2116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2118. public override global::System.Data.DataTable Clone() {
  2119. ZakazDataTable cln = ((ZakazDataTable)(base.Clone()));
  2120. cln.InitVars();
  2121. return cln;
  2122. }
  2123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2125. protected override global::System.Data.DataTable CreateInstance() {
  2126. return new ZakazDataTable();
  2127. }
  2128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2130. internal void InitVars() {
  2131. this.columnid = base.Columns["id"];
  2132. this.columndata = base.Columns["data"];
  2133. this.columndadaDostavki = base.Columns["dadaDostavki"];
  2134. this.columnPunkt = base.Columns["Punkt"];
  2135. this.columnKlient = base.Columns["Klient"];
  2136. this.columnKodPoluhatil = base.Columns["KodPoluhatil"];
  2137. this.columnStatus = base.Columns["Status"];
  2138. }
  2139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2141. private void InitClass() {
  2142. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  2143. base.Columns.Add(this.columnid);
  2144. this.columndata = new global::System.Data.DataColumn("data", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  2145. base.Columns.Add(this.columndata);
  2146. this.columndadaDostavki = new global::System.Data.DataColumn("dadaDostavki", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  2147. base.Columns.Add(this.columndadaDostavki);
  2148. this.columnPunkt = new global::System.Data.DataColumn("Punkt", typeof(int), null, global::System.Data.MappingType.Element);
  2149. base.Columns.Add(this.columnPunkt);
  2150. this.columnKlient = new global::System.Data.DataColumn("Klient", typeof(int), null, global::System.Data.MappingType.Element);
  2151. base.Columns.Add(this.columnKlient);
  2152. this.columnKodPoluhatil = new global::System.Data.DataColumn("KodPoluhatil", typeof(int), null, global::System.Data.MappingType.Element);
  2153. base.Columns.Add(this.columnKodPoluhatil);
  2154. this.columnStatus = new global::System.Data.DataColumn("Status", typeof(int), null, global::System.Data.MappingType.Element);
  2155. base.Columns.Add(this.columnStatus);
  2156. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2157. this.columnid}, true));
  2158. this.columnid.AutoIncrement = true;
  2159. this.columnid.AutoIncrementSeed = -1;
  2160. this.columnid.AutoIncrementStep = -1;
  2161. this.columnid.AllowDBNull = false;
  2162. this.columnid.ReadOnly = true;
  2163. this.columnid.Unique = true;
  2164. }
  2165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2167. public ZakazRow NewZakazRow() {
  2168. return ((ZakazRow)(this.NewRow()));
  2169. }
  2170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2171. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2172. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2173. return new ZakazRow(builder);
  2174. }
  2175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2177. protected override global::System.Type GetRowType() {
  2178. return typeof(ZakazRow);
  2179. }
  2180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2182. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2183. base.OnRowChanged(e);
  2184. if ((this.ZakazRowChanged != null)) {
  2185. this.ZakazRowChanged(this, new ZakazRowChangeEvent(((ZakazRow)(e.Row)), e.Action));
  2186. }
  2187. }
  2188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2190. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2191. base.OnRowChanging(e);
  2192. if ((this.ZakazRowChanging != null)) {
  2193. this.ZakazRowChanging(this, new ZakazRowChangeEvent(((ZakazRow)(e.Row)), e.Action));
  2194. }
  2195. }
  2196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2198. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2199. base.OnRowDeleted(e);
  2200. if ((this.ZakazRowDeleted != null)) {
  2201. this.ZakazRowDeleted(this, new ZakazRowChangeEvent(((ZakazRow)(e.Row)), e.Action));
  2202. }
  2203. }
  2204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2206. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2207. base.OnRowDeleting(e);
  2208. if ((this.ZakazRowDeleting != null)) {
  2209. this.ZakazRowDeleting(this, new ZakazRowChangeEvent(((ZakazRow)(e.Row)), e.Action));
  2210. }
  2211. }
  2212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2213. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2214. public void RemoveZakazRow(ZakazRow row) {
  2215. this.Rows.Remove(row);
  2216. }
  2217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2219. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2220. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2221. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2222. _12gkDataSet ds = new _12gkDataSet();
  2223. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2224. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2225. any1.MinOccurs = new decimal(0);
  2226. any1.MaxOccurs = decimal.MaxValue;
  2227. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2228. sequence.Items.Add(any1);
  2229. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2230. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2231. any2.MinOccurs = new decimal(1);
  2232. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2233. sequence.Items.Add(any2);
  2234. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2235. attribute1.Name = "namespace";
  2236. attribute1.FixedValue = ds.Namespace;
  2237. type.Attributes.Add(attribute1);
  2238. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2239. attribute2.Name = "tableTypeName";
  2240. attribute2.FixedValue = "ZakazDataTable";
  2241. type.Attributes.Add(attribute2);
  2242. type.Particle = sequence;
  2243. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2244. if (xs.Contains(dsSchema.TargetNamespace)) {
  2245. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2246. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2247. try {
  2248. global::System.Xml.Schema.XmlSchema schema = null;
  2249. dsSchema.Write(s1);
  2250. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2251. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2252. s2.SetLength(0);
  2253. schema.Write(s2);
  2254. if ((s1.Length == s2.Length)) {
  2255. s1.Position = 0;
  2256. s2.Position = 0;
  2257. for (; ((s1.Position != s1.Length)
  2258. && (s1.ReadByte() == s2.ReadByte())); ) {
  2259. ;
  2260. }
  2261. if ((s1.Position == s1.Length)) {
  2262. return type;
  2263. }
  2264. }
  2265. }
  2266. }
  2267. finally {
  2268. if ((s1 != null)) {
  2269. s1.Close();
  2270. }
  2271. if ((s2 != null)) {
  2272. s2.Close();
  2273. }
  2274. }
  2275. }
  2276. xs.Add(dsSchema);
  2277. return type;
  2278. }
  2279. }
  2280. /// <summary>
  2281. ///Represents the strongly named DataTable class.
  2282. ///</summary>
  2283. [global::System.Serializable()]
  2284. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2285. public partial class ZakazTovaraDataTable : global::System.Data.TypedTableBase<ZakazTovaraRow> {
  2286. private global::System.Data.DataColumn columnid;
  2287. private global::System.Data.DataColumn columnnomerZakaz;
  2288. private global::System.Data.DataColumn columnnameTovar;
  2289. private global::System.Data.DataColumn columnkolichestvo;
  2290. private global::System.Data.DataColumn columnid_punkt;
  2291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2293. public ZakazTovaraDataTable() {
  2294. this.TableName = "ZakazTovara";
  2295. this.BeginInit();
  2296. this.InitClass();
  2297. this.EndInit();
  2298. }
  2299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2301. internal ZakazTovaraDataTable(global::System.Data.DataTable table) {
  2302. this.TableName = table.TableName;
  2303. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2304. this.CaseSensitive = table.CaseSensitive;
  2305. }
  2306. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2307. this.Locale = table.Locale;
  2308. }
  2309. if ((table.Namespace != table.DataSet.Namespace)) {
  2310. this.Namespace = table.Namespace;
  2311. }
  2312. this.Prefix = table.Prefix;
  2313. this.MinimumCapacity = table.MinimumCapacity;
  2314. }
  2315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2317. protected ZakazTovaraDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2318. base(info, context) {
  2319. this.InitVars();
  2320. }
  2321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2323. public global::System.Data.DataColumn idColumn {
  2324. get {
  2325. return this.columnid;
  2326. }
  2327. }
  2328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2330. public global::System.Data.DataColumn nomerZakazColumn {
  2331. get {
  2332. return this.columnnomerZakaz;
  2333. }
  2334. }
  2335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2337. public global::System.Data.DataColumn nameTovarColumn {
  2338. get {
  2339. return this.columnnameTovar;
  2340. }
  2341. }
  2342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2344. public global::System.Data.DataColumn kolichestvoColumn {
  2345. get {
  2346. return this.columnkolichestvo;
  2347. }
  2348. }
  2349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2351. public global::System.Data.DataColumn id_punktColumn {
  2352. get {
  2353. return this.columnid_punkt;
  2354. }
  2355. }
  2356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2358. [global::System.ComponentModel.Browsable(false)]
  2359. public int Count {
  2360. get {
  2361. return this.Rows.Count;
  2362. }
  2363. }
  2364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2366. public ZakazTovaraRow this[int index] {
  2367. get {
  2368. return ((ZakazTovaraRow)(this.Rows[index]));
  2369. }
  2370. }
  2371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2372. public event ZakazTovaraRowChangeEventHandler ZakazTovaraRowChanging;
  2373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2374. public event ZakazTovaraRowChangeEventHandler ZakazTovaraRowChanged;
  2375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2376. public event ZakazTovaraRowChangeEventHandler ZakazTovaraRowDeleting;
  2377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2378. public event ZakazTovaraRowChangeEventHandler ZakazTovaraRowDeleted;
  2379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2381. public void AddZakazTovaraRow(ZakazTovaraRow row) {
  2382. this.Rows.Add(row);
  2383. }
  2384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2386. public ZakazTovaraRow AddZakazTovaraRow(ZakazRow parentZakazRowByFK_ZakazTovara_Zakaz, string nameTovar, string kolichestvo, ПунктВыдачиRow parentПунктВыдачиRowByFK_ZakazTovara_ПунктВыдачи) {
  2387. ZakazTovaraRow rowZakazTovaraRow = ((ZakazTovaraRow)(this.NewRow()));
  2388. object[] columnValuesArray = new object[] {
  2389. null,
  2390. null,
  2391. nameTovar,
  2392. kolichestvo,
  2393. null};
  2394. if ((parentZakazRowByFK_ZakazTovara_Zakaz != null)) {
  2395. columnValuesArray[1] = parentZakazRowByFK_ZakazTovara_Zakaz[0];
  2396. }
  2397. if ((parentПунктВыдачиRowByFK_ZakazTovara_ПунктВыдачи != null)) {
  2398. columnValuesArray[4] = parentПунктВыдачиRowByFK_ZakazTovara_ПунктВыдачи[0];
  2399. }
  2400. rowZakazTovaraRow.ItemArray = columnValuesArray;
  2401. this.Rows.Add(rowZakazTovaraRow);
  2402. return rowZakazTovaraRow;
  2403. }
  2404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2406. public ZakazTovaraRow FindByid(int id) {
  2407. return ((ZakazTovaraRow)(this.Rows.Find(new object[] {
  2408. id})));
  2409. }
  2410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2412. public override global::System.Data.DataTable Clone() {
  2413. ZakazTovaraDataTable cln = ((ZakazTovaraDataTable)(base.Clone()));
  2414. cln.InitVars();
  2415. return cln;
  2416. }
  2417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2419. protected override global::System.Data.DataTable CreateInstance() {
  2420. return new ZakazTovaraDataTable();
  2421. }
  2422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2423. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2424. internal void InitVars() {
  2425. this.columnid = base.Columns["id"];
  2426. this.columnnomerZakaz = base.Columns["nomerZakaz"];
  2427. this.columnnameTovar = base.Columns["nameTovar"];
  2428. this.columnkolichestvo = base.Columns["kolichestvo"];
  2429. this.columnid_punkt = base.Columns["id_punkt"];
  2430. }
  2431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2433. private void InitClass() {
  2434. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  2435. base.Columns.Add(this.columnid);
  2436. this.columnnomerZakaz = new global::System.Data.DataColumn("nomerZakaz", typeof(int), null, global::System.Data.MappingType.Element);
  2437. base.Columns.Add(this.columnnomerZakaz);
  2438. this.columnnameTovar = new global::System.Data.DataColumn("nameTovar", typeof(string), null, global::System.Data.MappingType.Element);
  2439. base.Columns.Add(this.columnnameTovar);
  2440. this.columnkolichestvo = new global::System.Data.DataColumn("kolichestvo", typeof(string), null, global::System.Data.MappingType.Element);
  2441. base.Columns.Add(this.columnkolichestvo);
  2442. this.columnid_punkt = new global::System.Data.DataColumn("id_punkt", typeof(int), null, global::System.Data.MappingType.Element);
  2443. base.Columns.Add(this.columnid_punkt);
  2444. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2445. this.columnid}, true));
  2446. this.columnid.AutoIncrement = true;
  2447. this.columnid.AutoIncrementSeed = -1;
  2448. this.columnid.AutoIncrementStep = -1;
  2449. this.columnid.AllowDBNull = false;
  2450. this.columnid.ReadOnly = true;
  2451. this.columnid.Unique = true;
  2452. this.columnnameTovar.MaxLength = 10;
  2453. this.columnkolichestvo.MaxLength = 10;
  2454. }
  2455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2456. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2457. public ZakazTovaraRow NewZakazTovaraRow() {
  2458. return ((ZakazTovaraRow)(this.NewRow()));
  2459. }
  2460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2462. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2463. return new ZakazTovaraRow(builder);
  2464. }
  2465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2467. protected override global::System.Type GetRowType() {
  2468. return typeof(ZakazTovaraRow);
  2469. }
  2470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2471. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2472. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2473. base.OnRowChanged(e);
  2474. if ((this.ZakazTovaraRowChanged != null)) {
  2475. this.ZakazTovaraRowChanged(this, new ZakazTovaraRowChangeEvent(((ZakazTovaraRow)(e.Row)), e.Action));
  2476. }
  2477. }
  2478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2479. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2480. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2481. base.OnRowChanging(e);
  2482. if ((this.ZakazTovaraRowChanging != null)) {
  2483. this.ZakazTovaraRowChanging(this, new ZakazTovaraRowChangeEvent(((ZakazTovaraRow)(e.Row)), e.Action));
  2484. }
  2485. }
  2486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2488. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2489. base.OnRowDeleted(e);
  2490. if ((this.ZakazTovaraRowDeleted != null)) {
  2491. this.ZakazTovaraRowDeleted(this, new ZakazTovaraRowChangeEvent(((ZakazTovaraRow)(e.Row)), e.Action));
  2492. }
  2493. }
  2494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2496. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2497. base.OnRowDeleting(e);
  2498. if ((this.ZakazTovaraRowDeleting != null)) {
  2499. this.ZakazTovaraRowDeleting(this, new ZakazTovaraRowChangeEvent(((ZakazTovaraRow)(e.Row)), e.Action));
  2500. }
  2501. }
  2502. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2503. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2504. public void RemoveZakazTovaraRow(ZakazTovaraRow row) {
  2505. this.Rows.Remove(row);
  2506. }
  2507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2509. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2510. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2511. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2512. _12gkDataSet ds = new _12gkDataSet();
  2513. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2514. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2515. any1.MinOccurs = new decimal(0);
  2516. any1.MaxOccurs = decimal.MaxValue;
  2517. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2518. sequence.Items.Add(any1);
  2519. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2520. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2521. any2.MinOccurs = new decimal(1);
  2522. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2523. sequence.Items.Add(any2);
  2524. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2525. attribute1.Name = "namespace";
  2526. attribute1.FixedValue = ds.Namespace;
  2527. type.Attributes.Add(attribute1);
  2528. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2529. attribute2.Name = "tableTypeName";
  2530. attribute2.FixedValue = "ZakazTovaraDataTable";
  2531. type.Attributes.Add(attribute2);
  2532. type.Particle = sequence;
  2533. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2534. if (xs.Contains(dsSchema.TargetNamespace)) {
  2535. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2536. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2537. try {
  2538. global::System.Xml.Schema.XmlSchema schema = null;
  2539. dsSchema.Write(s1);
  2540. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2541. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2542. s2.SetLength(0);
  2543. schema.Write(s2);
  2544. if ((s1.Length == s2.Length)) {
  2545. s1.Position = 0;
  2546. s2.Position = 0;
  2547. for (; ((s1.Position != s1.Length)
  2548. && (s1.ReadByte() == s2.ReadByte())); ) {
  2549. ;
  2550. }
  2551. if ((s1.Position == s1.Length)) {
  2552. return type;
  2553. }
  2554. }
  2555. }
  2556. }
  2557. finally {
  2558. if ((s1 != null)) {
  2559. s1.Close();
  2560. }
  2561. if ((s2 != null)) {
  2562. s2.Close();
  2563. }
  2564. }
  2565. }
  2566. xs.Add(dsSchema);
  2567. return type;
  2568. }
  2569. }
  2570. /// <summary>
  2571. ///Represents the strongly named DataTable class.
  2572. ///</summary>
  2573. [global::System.Serializable()]
  2574. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2575. public partial class ПунктВыдачиDataTable : global::System.Data.TypedTableBase<ПунктВыдачиRow> {
  2576. private global::System.Data.DataColumn columnid;
  2577. private global::System.Data.DataColumn columnИдентификатор;
  2578. private global::System.Data.DataColumn columnГород;
  2579. private global::System.Data.DataColumn columnУлица;
  2580. private global::System.Data.DataColumn columnДом;
  2581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2583. public ПунктВыдачиDataTable() {
  2584. this.TableName = "ПунктВыдачи";
  2585. this.BeginInit();
  2586. this.InitClass();
  2587. this.EndInit();
  2588. }
  2589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2591. internal ПунктВыдачиDataTable(global::System.Data.DataTable table) {
  2592. this.TableName = table.TableName;
  2593. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2594. this.CaseSensitive = table.CaseSensitive;
  2595. }
  2596. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2597. this.Locale = table.Locale;
  2598. }
  2599. if ((table.Namespace != table.DataSet.Namespace)) {
  2600. this.Namespace = table.Namespace;
  2601. }
  2602. this.Prefix = table.Prefix;
  2603. this.MinimumCapacity = table.MinimumCapacity;
  2604. }
  2605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2607. protected ПунктВыдачиDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2608. base(info, context) {
  2609. this.InitVars();
  2610. }
  2611. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2612. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2613. public global::System.Data.DataColumn idColumn {
  2614. get {
  2615. return this.columnid;
  2616. }
  2617. }
  2618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2620. public global::System.Data.DataColumn ИдентификаторColumn {
  2621. get {
  2622. return this.columnИдентификатор;
  2623. }
  2624. }
  2625. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2626. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2627. public global::System.Data.DataColumn ГородColumn {
  2628. get {
  2629. return this.columnГород;
  2630. }
  2631. }
  2632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2634. public global::System.Data.DataColumn УлицаColumn {
  2635. get {
  2636. return this.columnУлица;
  2637. }
  2638. }
  2639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2641. public global::System.Data.DataColumn ДомColumn {
  2642. get {
  2643. return this.columnДом;
  2644. }
  2645. }
  2646. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2648. [global::System.ComponentModel.Browsable(false)]
  2649. public int Count {
  2650. get {
  2651. return this.Rows.Count;
  2652. }
  2653. }
  2654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2656. public ПунктВыдачиRow this[int index] {
  2657. get {
  2658. return ((ПунктВыдачиRow)(this.Rows[index]));
  2659. }
  2660. }
  2661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2662. public event ПунктВыдачиRowChangeEventHandler ПунктВыдачиRowChanging;
  2663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2664. public event ПунктВыдачиRowChangeEventHandler ПунктВыдачиRowChanged;
  2665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2666. public event ПунктВыдачиRowChangeEventHandler ПунктВыдачиRowDeleting;
  2667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2668. public event ПунктВыдачиRowChangeEventHandler ПунктВыдачиRowDeleted;
  2669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2671. public void AddПунктВыдачиRow(ПунктВыдачиRow row) {
  2672. this.Rows.Add(row);
  2673. }
  2674. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2676. public ПунктВыдачиRow AddПунктВыдачиRow(int Идентификатор, string Город, string Улица, int Дом) {
  2677. ПунктВыдачиRow rowПунктВыдачиRow = ((ПунктВыдачиRow)(this.NewRow()));
  2678. object[] columnValuesArray = new object[] {
  2679. null,
  2680. Идентификатор,
  2681. Город,
  2682. Улица,
  2683. Дом};
  2684. rowПунктВыдачиRow.ItemArray = columnValuesArray;
  2685. this.Rows.Add(rowПунктВыдачиRow);
  2686. return rowПунктВыдачиRow;
  2687. }
  2688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2690. public ПунктВыдачиRow FindByid(int id) {
  2691. return ((ПунктВыдачиRow)(this.Rows.Find(new object[] {
  2692. id})));
  2693. }
  2694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2696. public override global::System.Data.DataTable Clone() {
  2697. ПунктВыдачиDataTable cln = ((ПунктВыдачиDataTable)(base.Clone()));
  2698. cln.InitVars();
  2699. return cln;
  2700. }
  2701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2703. protected override global::System.Data.DataTable CreateInstance() {
  2704. return new ПунктВыдачиDataTable();
  2705. }
  2706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2708. internal void InitVars() {
  2709. this.columnid = base.Columns["id"];
  2710. this.columnИдентификатор = base.Columns["Идентификатор"];
  2711. this.columnГород = base.Columns["Город"];
  2712. this.columnУлица = base.Columns["Улица"];
  2713. this.columnДом = base.Columns["Дом"];
  2714. }
  2715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2717. private void InitClass() {
  2718. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  2719. base.Columns.Add(this.columnid);
  2720. this.columnИдентификатор = new global::System.Data.DataColumn("Идентификатор", typeof(int), null, global::System.Data.MappingType.Element);
  2721. base.Columns.Add(this.columnИдентификатор);
  2722. this.columnГород = new global::System.Data.DataColumn("Город", typeof(string), null, global::System.Data.MappingType.Element);
  2723. base.Columns.Add(this.columnГород);
  2724. this.columnУлица = new global::System.Data.DataColumn("Улица", typeof(string), null, global::System.Data.MappingType.Element);
  2725. base.Columns.Add(this.columnУлица);
  2726. this.columnДом = new global::System.Data.DataColumn("Дом", typeof(int), null, global::System.Data.MappingType.Element);
  2727. base.Columns.Add(this.columnДом);
  2728. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2729. this.columnid}, true));
  2730. this.columnid.AutoIncrement = true;
  2731. this.columnid.AutoIncrementSeed = -1;
  2732. this.columnid.AutoIncrementStep = -1;
  2733. this.columnid.AllowDBNull = false;
  2734. this.columnid.ReadOnly = true;
  2735. this.columnid.Unique = true;
  2736. this.columnИдентификатор.AllowDBNull = false;
  2737. this.columnГород.AllowDBNull = false;
  2738. this.columnГород.MaxLength = 50;
  2739. this.columnУлица.AllowDBNull = false;
  2740. this.columnУлица.MaxLength = 50;
  2741. }
  2742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2744. public ПунктВыдачиRow NewПунктВыдачиRow() {
  2745. return ((ПунктВыдачиRow)(this.NewRow()));
  2746. }
  2747. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2748. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2749. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2750. return new ПунктВыдачиRow(builder);
  2751. }
  2752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2754. protected override global::System.Type GetRowType() {
  2755. return typeof(ПунктВыдачиRow);
  2756. }
  2757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2759. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2760. base.OnRowChanged(e);
  2761. if ((this.ПунктВыдачиRowChanged != null)) {
  2762. this.ПунктВыдачиRowChanged(this, new ПунктВыдачиRowChangeEvent(((ПунктВыдачиRow)(e.Row)), e.Action));
  2763. }
  2764. }
  2765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2767. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2768. base.OnRowChanging(e);
  2769. if ((this.ПунктВыдачиRowChanging != null)) {
  2770. this.ПунктВыдачиRowChanging(this, new ПунктВыдачиRowChangeEvent(((ПунктВыдачиRow)(e.Row)), e.Action));
  2771. }
  2772. }
  2773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2774. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2775. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2776. base.OnRowDeleted(e);
  2777. if ((this.ПунктВыдачиRowDeleted != null)) {
  2778. this.ПунктВыдачиRowDeleted(this, new ПунктВыдачиRowChangeEvent(((ПунктВыдачиRow)(e.Row)), e.Action));
  2779. }
  2780. }
  2781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2783. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2784. base.OnRowDeleting(e);
  2785. if ((this.ПунктВыдачиRowDeleting != null)) {
  2786. this.ПунктВыдачиRowDeleting(this, new ПунктВыдачиRowChangeEvent(((ПунктВыдачиRow)(e.Row)), e.Action));
  2787. }
  2788. }
  2789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2791. public void RemoveПунктВыдачиRow(ПунктВыдачиRow row) {
  2792. this.Rows.Remove(row);
  2793. }
  2794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2796. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2797. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2798. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2799. _12gkDataSet ds = new _12gkDataSet();
  2800. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2801. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2802. any1.MinOccurs = new decimal(0);
  2803. any1.MaxOccurs = decimal.MaxValue;
  2804. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2805. sequence.Items.Add(any1);
  2806. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2807. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2808. any2.MinOccurs = new decimal(1);
  2809. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2810. sequence.Items.Add(any2);
  2811. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2812. attribute1.Name = "namespace";
  2813. attribute1.FixedValue = ds.Namespace;
  2814. type.Attributes.Add(attribute1);
  2815. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2816. attribute2.Name = "tableTypeName";
  2817. attribute2.FixedValue = "ПунктВыдачиDataTable";
  2818. type.Attributes.Add(attribute2);
  2819. type.Particle = sequence;
  2820. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2821. if (xs.Contains(dsSchema.TargetNamespace)) {
  2822. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2823. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2824. try {
  2825. global::System.Xml.Schema.XmlSchema schema = null;
  2826. dsSchema.Write(s1);
  2827. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2828. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2829. s2.SetLength(0);
  2830. schema.Write(s2);
  2831. if ((s1.Length == s2.Length)) {
  2832. s1.Position = 0;
  2833. s2.Position = 0;
  2834. for (; ((s1.Position != s1.Length)
  2835. && (s1.ReadByte() == s2.ReadByte())); ) {
  2836. ;
  2837. }
  2838. if ((s1.Position == s1.Length)) {
  2839. return type;
  2840. }
  2841. }
  2842. }
  2843. }
  2844. finally {
  2845. if ((s1 != null)) {
  2846. s1.Close();
  2847. }
  2848. if ((s2 != null)) {
  2849. s2.Close();
  2850. }
  2851. }
  2852. }
  2853. xs.Add(dsSchema);
  2854. return type;
  2855. }
  2856. }
  2857. /// <summary>
  2858. ///Represents strongly named DataRow class.
  2859. ///</summary>
  2860. public partial class OrderRow : global::System.Data.DataRow {
  2861. private OrderDataTable tableOrder;
  2862. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2863. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2864. internal OrderRow(global::System.Data.DataRowBuilder rb) :
  2865. base(rb) {
  2866. this.tableOrder = ((OrderDataTable)(this.Table));
  2867. }
  2868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2870. public int OrderID {
  2871. get {
  2872. return ((int)(this[this.tableOrder.OrderIDColumn]));
  2873. }
  2874. set {
  2875. this[this.tableOrder.OrderIDColumn] = value;
  2876. }
  2877. }
  2878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2880. public string OrderStatus {
  2881. get {
  2882. return ((string)(this[this.tableOrder.OrderStatusColumn]));
  2883. }
  2884. set {
  2885. this[this.tableOrder.OrderStatusColumn] = value;
  2886. }
  2887. }
  2888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2890. public System.DateTime OrderDeliveryDate {
  2891. get {
  2892. return ((global::System.DateTime)(this[this.tableOrder.OrderDeliveryDateColumn]));
  2893. }
  2894. set {
  2895. this[this.tableOrder.OrderDeliveryDateColumn] = value;
  2896. }
  2897. }
  2898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2900. public string OrderPickupPoint {
  2901. get {
  2902. return ((string)(this[this.tableOrder.OrderPickupPointColumn]));
  2903. }
  2904. set {
  2905. this[this.tableOrder.OrderPickupPointColumn] = value;
  2906. }
  2907. }
  2908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2910. public OrdersProduktsRow[] GetOrdersProduktsRows() {
  2911. if ((this.Table.ChildRelations["FK_OrdersProdukts_Order"] == null)) {
  2912. return new OrdersProduktsRow[0];
  2913. }
  2914. else {
  2915. return ((OrdersProduktsRow[])(base.GetChildRows(this.Table.ChildRelations["FK_OrdersProdukts_Order"])));
  2916. }
  2917. }
  2918. }
  2919. /// <summary>
  2920. ///Represents strongly named DataRow class.
  2921. ///</summary>
  2922. public partial class OrdersProduktsRow : global::System.Data.DataRow {
  2923. private OrdersProduktsDataTable tableOrdersProdukts;
  2924. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2925. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2926. internal OrdersProduktsRow(global::System.Data.DataRowBuilder rb) :
  2927. base(rb) {
  2928. this.tableOrdersProdukts = ((OrdersProduktsDataTable)(this.Table));
  2929. }
  2930. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2931. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2932. public int OrderID {
  2933. get {
  2934. return ((int)(this[this.tableOrdersProdukts.OrderIDColumn]));
  2935. }
  2936. set {
  2937. this[this.tableOrdersProdukts.OrderIDColumn] = value;
  2938. }
  2939. }
  2940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2942. public int ProductArticleNumber {
  2943. get {
  2944. return ((int)(this[this.tableOrdersProdukts.ProductArticleNumberColumn]));
  2945. }
  2946. set {
  2947. this[this.tableOrdersProdukts.ProductArticleNumberColumn] = value;
  2948. }
  2949. }
  2950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2952. public OrderRow OrderRow {
  2953. get {
  2954. return ((OrderRow)(this.GetParentRow(this.Table.ParentRelations["FK_OrdersProdukts_Order"])));
  2955. }
  2956. set {
  2957. this.SetParentRow(value, this.Table.ParentRelations["FK_OrdersProdukts_Order"]);
  2958. }
  2959. }
  2960. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2961. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2962. public ProdyktRow[] GetProdyktRows() {
  2963. if ((this.Table.ChildRelations["FK_Prodykt_OrdersProdukts"] == null)) {
  2964. return new ProdyktRow[0];
  2965. }
  2966. else {
  2967. return ((ProdyktRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Prodykt_OrdersProdukts"])));
  2968. }
  2969. }
  2970. }
  2971. /// <summary>
  2972. ///Represents strongly named DataRow class.
  2973. ///</summary>
  2974. public partial class ProdyktRow : global::System.Data.DataRow {
  2975. private ProdyktDataTable tableProdykt;
  2976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2978. internal ProdyktRow(global::System.Data.DataRowBuilder rb) :
  2979. base(rb) {
  2980. this.tableProdykt = ((ProdyktDataTable)(this.Table));
  2981. }
  2982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2984. public string ArticleNumber {
  2985. get {
  2986. return ((string)(this[this.tableProdykt.ArticleNumberColumn]));
  2987. }
  2988. set {
  2989. this[this.tableProdykt.ArticleNumberColumn] = value;
  2990. }
  2991. }
  2992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2994. public string Name {
  2995. get {
  2996. try {
  2997. return ((string)(this[this.tableProdykt.NameColumn]));
  2998. }
  2999. catch (global::System.InvalidCastException e) {
  3000. throw new global::System.Data.StrongTypingException("Значение для столбца \'Name\' в таблице \'Prodykt\' равно DBNull.", e);
  3001. }
  3002. }
  3003. set {
  3004. this[this.tableProdykt.NameColumn] = value;
  3005. }
  3006. }
  3007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3008. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3009. public string Description {
  3010. get {
  3011. try {
  3012. return ((string)(this[this.tableProdykt.DescriptionColumn]));
  3013. }
  3014. catch (global::System.InvalidCastException e) {
  3015. throw new global::System.Data.StrongTypingException("Значение для столбца \'Description\' в таблице \'Prodykt\' равно DBNull.", e);
  3016. }
  3017. }
  3018. set {
  3019. this[this.tableProdykt.DescriptionColumn] = value;
  3020. }
  3021. }
  3022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3024. public string Category {
  3025. get {
  3026. try {
  3027. return ((string)(this[this.tableProdykt.CategoryColumn]));
  3028. }
  3029. catch (global::System.InvalidCastException e) {
  3030. throw new global::System.Data.StrongTypingException("Значение для столбца \'Category\' в таблице \'Prodykt\' равно DBNull.", e);
  3031. }
  3032. }
  3033. set {
  3034. this[this.tableProdykt.CategoryColumn] = value;
  3035. }
  3036. }
  3037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3039. public byte[] Photo {
  3040. get {
  3041. try {
  3042. return ((byte[])(this[this.tableProdykt.PhotoColumn]));
  3043. }
  3044. catch (global::System.InvalidCastException e) {
  3045. throw new global::System.Data.StrongTypingException("Значение для столбца \'Photo\' в таблице \'Prodykt\' равно DBNull.", e);
  3046. }
  3047. }
  3048. set {
  3049. this[this.tableProdykt.PhotoColumn] = value;
  3050. }
  3051. }
  3052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3054. public string Manufacturer {
  3055. get {
  3056. try {
  3057. return ((string)(this[this.tableProdykt.ManufacturerColumn]));
  3058. }
  3059. catch (global::System.InvalidCastException e) {
  3060. throw new global::System.Data.StrongTypingException("Значение для столбца \'Manufacturer\' в таблице \'Prodykt\' равно DBNull.", e);
  3061. }
  3062. }
  3063. set {
  3064. this[this.tableProdykt.ManufacturerColumn] = value;
  3065. }
  3066. }
  3067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3069. public decimal Prais {
  3070. get {
  3071. try {
  3072. return ((decimal)(this[this.tableProdykt.PraisColumn]));
  3073. }
  3074. catch (global::System.InvalidCastException e) {
  3075. throw new global::System.Data.StrongTypingException("Значение для столбца \'Prais\' в таблице \'Prodykt\' равно DBNull.", e);
  3076. }
  3077. }
  3078. set {
  3079. this[this.tableProdykt.PraisColumn] = value;
  3080. }
  3081. }
  3082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3084. public string Единица_измерения {
  3085. get {
  3086. try {
  3087. return ((string)(this[this.tableProdykt.Единица_измеренияColumn]));
  3088. }
  3089. catch (global::System.InvalidCastException e) {
  3090. throw new global::System.Data.StrongTypingException("Значение для столбца \'Единица_измерения\' в таблице \'Prodykt\' равно DBNull.", e);
  3091. }
  3092. }
  3093. set {
  3094. this[this.tableProdykt.Единица_измеренияColumn] = value;
  3095. }
  3096. }
  3097. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3098. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3099. public int Размер_макс_скидки {
  3100. get {
  3101. try {
  3102. return ((int)(this[this.tableProdykt.Размер_макс_скидкиColumn]));
  3103. }
  3104. catch (global::System.InvalidCastException e) {
  3105. throw new global::System.Data.StrongTypingException("Значение для столбца \'Размер_макс_скидки\' в таблице \'Prodykt\' равно DBNull.", e);
  3106. }
  3107. }
  3108. set {
  3109. this[this.tableProdykt.Размер_макс_скидкиColumn] = value;
  3110. }
  3111. }
  3112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3113. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3114. public string Поставщик {
  3115. get {
  3116. try {
  3117. return ((string)(this[this.tableProdykt.ПоставщикColumn]));
  3118. }
  3119. catch (global::System.InvalidCastException e) {
  3120. throw new global::System.Data.StrongTypingException("Значение для столбца \'Поставщик\' в таблице \'Prodykt\' равно DBNull.", e);
  3121. }
  3122. }
  3123. set {
  3124. this[this.tableProdykt.ПоставщикColumn] = value;
  3125. }
  3126. }
  3127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3129. public int Действующая_Скидка {
  3130. get {
  3131. try {
  3132. return ((int)(this[this.tableProdykt.Действующая_СкидкаColumn]));
  3133. }
  3134. catch (global::System.InvalidCastException e) {
  3135. throw new global::System.Data.StrongTypingException("Значение для столбца \'Действующая_Скидка\' в таблице \'Prodykt\' равно DBNull.", e);
  3136. }
  3137. }
  3138. set {
  3139. this[this.tableProdykt.Действующая_СкидкаColumn] = value;
  3140. }
  3141. }
  3142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3144. public int Количество_на_складе {
  3145. get {
  3146. try {
  3147. return ((int)(this[this.tableProdykt.Количество_на_складеColumn]));
  3148. }
  3149. catch (global::System.InvalidCastException e) {
  3150. throw new global::System.Data.StrongTypingException("Значение для столбца \'Количество_на_складе\' в таблице \'Prodykt\' равно DBNull.", e);
  3151. }
  3152. }
  3153. set {
  3154. this[this.tableProdykt.Количество_на_складеColumn] = value;
  3155. }
  3156. }
  3157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3159. public string Ctatys {
  3160. get {
  3161. try {
  3162. return ((string)(this[this.tableProdykt.CtatysColumn]));
  3163. }
  3164. catch (global::System.InvalidCastException e) {
  3165. throw new global::System.Data.StrongTypingException("Значение для столбца \'Ctatys\' в таблице \'Prodykt\' равно DBNull.", e);
  3166. }
  3167. }
  3168. set {
  3169. this[this.tableProdykt.CtatysColumn] = value;
  3170. }
  3171. }
  3172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3174. public int OrderID {
  3175. get {
  3176. try {
  3177. return ((int)(this[this.tableProdykt.OrderIDColumn]));
  3178. }
  3179. catch (global::System.InvalidCastException e) {
  3180. throw new global::System.Data.StrongTypingException("Значение для столбца \'OrderID\' в таблице \'Prodykt\' равно DBNull.", e);
  3181. }
  3182. }
  3183. set {
  3184. this[this.tableProdykt.OrderIDColumn] = value;
  3185. }
  3186. }
  3187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3189. public OrdersProduktsRow OrdersProduktsRow {
  3190. get {
  3191. return ((OrdersProduktsRow)(this.GetParentRow(this.Table.ParentRelations["FK_Prodykt_OrdersProdukts"])));
  3192. }
  3193. set {
  3194. this.SetParentRow(value, this.Table.ParentRelations["FK_Prodykt_OrdersProdukts"]);
  3195. }
  3196. }
  3197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3199. public bool IsNameNull() {
  3200. return this.IsNull(this.tableProdykt.NameColumn);
  3201. }
  3202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3204. public void SetNameNull() {
  3205. this[this.tableProdykt.NameColumn] = global::System.Convert.DBNull;
  3206. }
  3207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3209. public bool IsDescriptionNull() {
  3210. return this.IsNull(this.tableProdykt.DescriptionColumn);
  3211. }
  3212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3213. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3214. public void SetDescriptionNull() {
  3215. this[this.tableProdykt.DescriptionColumn] = global::System.Convert.DBNull;
  3216. }
  3217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3219. public bool IsCategoryNull() {
  3220. return this.IsNull(this.tableProdykt.CategoryColumn);
  3221. }
  3222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3224. public void SetCategoryNull() {
  3225. this[this.tableProdykt.CategoryColumn] = global::System.Convert.DBNull;
  3226. }
  3227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3229. public bool IsPhotoNull() {
  3230. return this.IsNull(this.tableProdykt.PhotoColumn);
  3231. }
  3232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3234. public void SetPhotoNull() {
  3235. this[this.tableProdykt.PhotoColumn] = global::System.Convert.DBNull;
  3236. }
  3237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3239. public bool IsManufacturerNull() {
  3240. return this.IsNull(this.tableProdykt.ManufacturerColumn);
  3241. }
  3242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3244. public void SetManufacturerNull() {
  3245. this[this.tableProdykt.ManufacturerColumn] = global::System.Convert.DBNull;
  3246. }
  3247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3249. public bool IsPraisNull() {
  3250. return this.IsNull(this.tableProdykt.PraisColumn);
  3251. }
  3252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3254. public void SetPraisNull() {
  3255. this[this.tableProdykt.PraisColumn] = global::System.Convert.DBNull;
  3256. }
  3257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3259. public bool IsЕдиница_измеренияNull() {
  3260. return this.IsNull(this.tableProdykt.Единица_измеренияColumn);
  3261. }
  3262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3264. public void SetЕдиница_измеренияNull() {
  3265. this[this.tableProdykt.Единица_измеренияColumn] = global::System.Convert.DBNull;
  3266. }
  3267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3269. public bool IsРазмер_макс_скидкиNull() {
  3270. return this.IsNull(this.tableProdykt.Размер_макс_скидкиColumn);
  3271. }
  3272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3274. public void SetРазмер_макс_скидкиNull() {
  3275. this[this.tableProdykt.Размер_макс_скидкиColumn] = global::System.Convert.DBNull;
  3276. }
  3277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3279. public bool IsПоставщикNull() {
  3280. return this.IsNull(this.tableProdykt.ПоставщикColumn);
  3281. }
  3282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3284. public void SetПоставщикNull() {
  3285. this[this.tableProdykt.ПоставщикColumn] = global::System.Convert.DBNull;
  3286. }
  3287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3289. public bool IsДействующая_СкидкаNull() {
  3290. return this.IsNull(this.tableProdykt.Действующая_СкидкаColumn);
  3291. }
  3292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3294. public void SetДействующая_СкидкаNull() {
  3295. this[this.tableProdykt.Действующая_СкидкаColumn] = global::System.Convert.DBNull;
  3296. }
  3297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3299. public bool IsКоличество_на_складеNull() {
  3300. return this.IsNull(this.tableProdykt.Количество_на_складеColumn);
  3301. }
  3302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3304. public void SetКоличество_на_складеNull() {
  3305. this[this.tableProdykt.Количество_на_складеColumn] = global::System.Convert.DBNull;
  3306. }
  3307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3309. public bool IsCtatysNull() {
  3310. return this.IsNull(this.tableProdykt.CtatysColumn);
  3311. }
  3312. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3313. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3314. public void SetCtatysNull() {
  3315. this[this.tableProdykt.CtatysColumn] = global::System.Convert.DBNull;
  3316. }
  3317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3319. public bool IsOrderIDNull() {
  3320. return this.IsNull(this.tableProdykt.OrderIDColumn);
  3321. }
  3322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3324. public void SetOrderIDNull() {
  3325. this[this.tableProdykt.OrderIDColumn] = global::System.Convert.DBNull;
  3326. }
  3327. }
  3328. /// <summary>
  3329. ///Represents strongly named DataRow class.
  3330. ///</summary>
  3331. public partial class RoleRow : global::System.Data.DataRow {
  3332. private RoleDataTable tableRole;
  3333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3335. internal RoleRow(global::System.Data.DataRowBuilder rb) :
  3336. base(rb) {
  3337. this.tableRole = ((RoleDataTable)(this.Table));
  3338. }
  3339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3341. public int RoleID {
  3342. get {
  3343. return ((int)(this[this.tableRole.RoleIDColumn]));
  3344. }
  3345. set {
  3346. this[this.tableRole.RoleIDColumn] = value;
  3347. }
  3348. }
  3349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3351. public string RoleName {
  3352. get {
  3353. return ((string)(this[this.tableRole.RoleNameColumn]));
  3354. }
  3355. set {
  3356. this[this.tableRole.RoleNameColumn] = value;
  3357. }
  3358. }
  3359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3361. public Users1Row Users1Row {
  3362. get {
  3363. return ((Users1Row)(this.GetParentRow(this.Table.ParentRelations["FK_Role_Users1"])));
  3364. }
  3365. set {
  3366. this.SetParentRow(value, this.Table.ParentRelations["FK_Role_Users1"]);
  3367. }
  3368. }
  3369. }
  3370. /// <summary>
  3371. ///Represents strongly named DataRow class.
  3372. ///</summary>
  3373. public partial class Users1Row : global::System.Data.DataRow {
  3374. private Users1DataTable tableUsers1;
  3375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3377. internal Users1Row(global::System.Data.DataRowBuilder rb) :
  3378. base(rb) {
  3379. this.tableUsers1 = ((Users1DataTable)(this.Table));
  3380. }
  3381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3383. public int id {
  3384. get {
  3385. return ((int)(this[this.tableUsers1.idColumn]));
  3386. }
  3387. set {
  3388. this[this.tableUsers1.idColumn] = value;
  3389. }
  3390. }
  3391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3393. public string familia {
  3394. get {
  3395. try {
  3396. return ((string)(this[this.tableUsers1.familiaColumn]));
  3397. }
  3398. catch (global::System.InvalidCastException e) {
  3399. throw new global::System.Data.StrongTypingException("Значение для столбца \'familia\' в таблице \'Users1\' равно DBNull.", e);
  3400. }
  3401. }
  3402. set {
  3403. this[this.tableUsers1.familiaColumn] = value;
  3404. }
  3405. }
  3406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3408. public string name {
  3409. get {
  3410. try {
  3411. return ((string)(this[this.tableUsers1.nameColumn]));
  3412. }
  3413. catch (global::System.InvalidCastException e) {
  3414. throw new global::System.Data.StrongTypingException("Значение для столбца \'name\' в таблице \'Users1\' равно DBNull.", e);
  3415. }
  3416. }
  3417. set {
  3418. this[this.tableUsers1.nameColumn] = value;
  3419. }
  3420. }
  3421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3423. public string othestvo {
  3424. get {
  3425. try {
  3426. return ((string)(this[this.tableUsers1.othestvoColumn]));
  3427. }
  3428. catch (global::System.InvalidCastException e) {
  3429. throw new global::System.Data.StrongTypingException("Значение для столбца \'othestvo\' в таблице \'Users1\' равно DBNull.", e);
  3430. }
  3431. }
  3432. set {
  3433. this[this.tableUsers1.othestvoColumn] = value;
  3434. }
  3435. }
  3436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3438. public string login {
  3439. get {
  3440. try {
  3441. return ((string)(this[this.tableUsers1.loginColumn]));
  3442. }
  3443. catch (global::System.InvalidCastException e) {
  3444. throw new global::System.Data.StrongTypingException("Значение для столбца \'login\' в таблице \'Users1\' равно DBNull.", e);
  3445. }
  3446. }
  3447. set {
  3448. this[this.tableUsers1.loginColumn] = value;
  3449. }
  3450. }
  3451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3453. public string pasword {
  3454. get {
  3455. try {
  3456. return ((string)(this[this.tableUsers1.paswordColumn]));
  3457. }
  3458. catch (global::System.InvalidCastException e) {
  3459. throw new global::System.Data.StrongTypingException("Значение для столбца \'pasword\' в таблице \'Users1\' равно DBNull.", e);
  3460. }
  3461. }
  3462. set {
  3463. this[this.tableUsers1.paswordColumn] = value;
  3464. }
  3465. }
  3466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3468. public int pole {
  3469. get {
  3470. try {
  3471. return ((int)(this[this.tableUsers1.poleColumn]));
  3472. }
  3473. catch (global::System.InvalidCastException e) {
  3474. throw new global::System.Data.StrongTypingException("Значение для столбца \'pole\' в таблице \'Users1\' равно DBNull.", e);
  3475. }
  3476. }
  3477. set {
  3478. this[this.tableUsers1.poleColumn] = value;
  3479. }
  3480. }
  3481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3483. public bool IsfamiliaNull() {
  3484. return this.IsNull(this.tableUsers1.familiaColumn);
  3485. }
  3486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3488. public void SetfamiliaNull() {
  3489. this[this.tableUsers1.familiaColumn] = global::System.Convert.DBNull;
  3490. }
  3491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3493. public bool IsnameNull() {
  3494. return this.IsNull(this.tableUsers1.nameColumn);
  3495. }
  3496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3498. public void SetnameNull() {
  3499. this[this.tableUsers1.nameColumn] = global::System.Convert.DBNull;
  3500. }
  3501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3503. public bool IsothestvoNull() {
  3504. return this.IsNull(this.tableUsers1.othestvoColumn);
  3505. }
  3506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3508. public void SetothestvoNull() {
  3509. this[this.tableUsers1.othestvoColumn] = global::System.Convert.DBNull;
  3510. }
  3511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3513. public bool IsloginNull() {
  3514. return this.IsNull(this.tableUsers1.loginColumn);
  3515. }
  3516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3518. public void SetloginNull() {
  3519. this[this.tableUsers1.loginColumn] = global::System.Convert.DBNull;
  3520. }
  3521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3523. public bool IspaswordNull() {
  3524. return this.IsNull(this.tableUsers1.paswordColumn);
  3525. }
  3526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3528. public void SetpaswordNull() {
  3529. this[this.tableUsers1.paswordColumn] = global::System.Convert.DBNull;
  3530. }
  3531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3533. public bool IspoleNull() {
  3534. return this.IsNull(this.tableUsers1.poleColumn);
  3535. }
  3536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3538. public void SetpoleNull() {
  3539. this[this.tableUsers1.poleColumn] = global::System.Convert.DBNull;
  3540. }
  3541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3543. public RoleRow[] GetRoleRows() {
  3544. if ((this.Table.ChildRelations["FK_Role_Users1"] == null)) {
  3545. return new RoleRow[0];
  3546. }
  3547. else {
  3548. return ((RoleRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Role_Users1"])));
  3549. }
  3550. }
  3551. }
  3552. /// <summary>
  3553. ///Represents strongly named DataRow class.
  3554. ///</summary>
  3555. public partial class ZakazRow : global::System.Data.DataRow {
  3556. private ZakazDataTable tableZakaz;
  3557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3559. internal ZakazRow(global::System.Data.DataRowBuilder rb) :
  3560. base(rb) {
  3561. this.tableZakaz = ((ZakazDataTable)(this.Table));
  3562. }
  3563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3565. public int id {
  3566. get {
  3567. return ((int)(this[this.tableZakaz.idColumn]));
  3568. }
  3569. set {
  3570. this[this.tableZakaz.idColumn] = value;
  3571. }
  3572. }
  3573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3575. public System.DateTime data {
  3576. get {
  3577. try {
  3578. return ((global::System.DateTime)(this[this.tableZakaz.dataColumn]));
  3579. }
  3580. catch (global::System.InvalidCastException e) {
  3581. throw new global::System.Data.StrongTypingException("Значение для столбца \'data\' в таблице \'Zakaz\' равно DBNull.", e);
  3582. }
  3583. }
  3584. set {
  3585. this[this.tableZakaz.dataColumn] = value;
  3586. }
  3587. }
  3588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3590. public System.DateTime dadaDostavki {
  3591. get {
  3592. try {
  3593. return ((global::System.DateTime)(this[this.tableZakaz.dadaDostavkiColumn]));
  3594. }
  3595. catch (global::System.InvalidCastException e) {
  3596. throw new global::System.Data.StrongTypingException("Значение для столбца \'dadaDostavki\' в таблице \'Zakaz\' равно DBNull.", e);
  3597. }
  3598. }
  3599. set {
  3600. this[this.tableZakaz.dadaDostavkiColumn] = value;
  3601. }
  3602. }
  3603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3605. public int Punkt {
  3606. get {
  3607. try {
  3608. return ((int)(this[this.tableZakaz.PunktColumn]));
  3609. }
  3610. catch (global::System.InvalidCastException e) {
  3611. throw new global::System.Data.StrongTypingException("Значение для столбца \'Punkt\' в таблице \'Zakaz\' равно DBNull.", e);
  3612. }
  3613. }
  3614. set {
  3615. this[this.tableZakaz.PunktColumn] = value;
  3616. }
  3617. }
  3618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3620. public int Klient {
  3621. get {
  3622. try {
  3623. return ((int)(this[this.tableZakaz.KlientColumn]));
  3624. }
  3625. catch (global::System.InvalidCastException e) {
  3626. throw new global::System.Data.StrongTypingException("Значение для столбца \'Klient\' в таблице \'Zakaz\' равно DBNull.", e);
  3627. }
  3628. }
  3629. set {
  3630. this[this.tableZakaz.KlientColumn] = value;
  3631. }
  3632. }
  3633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3635. public int KodPoluhatil {
  3636. get {
  3637. try {
  3638. return ((int)(this[this.tableZakaz.KodPoluhatilColumn]));
  3639. }
  3640. catch (global::System.InvalidCastException e) {
  3641. throw new global::System.Data.StrongTypingException("Значение для столбца \'KodPoluhatil\' в таблице \'Zakaz\' равно DBNull.", e);
  3642. }
  3643. }
  3644. set {
  3645. this[this.tableZakaz.KodPoluhatilColumn] = value;
  3646. }
  3647. }
  3648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3649. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3650. public int Status {
  3651. get {
  3652. try {
  3653. return ((int)(this[this.tableZakaz.StatusColumn]));
  3654. }
  3655. catch (global::System.InvalidCastException e) {
  3656. throw new global::System.Data.StrongTypingException("Значение для столбца \'Status\' в таблице \'Zakaz\' равно DBNull.", e);
  3657. }
  3658. }
  3659. set {
  3660. this[this.tableZakaz.StatusColumn] = value;
  3661. }
  3662. }
  3663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3665. public bool IsdataNull() {
  3666. return this.IsNull(this.tableZakaz.dataColumn);
  3667. }
  3668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3670. public void SetdataNull() {
  3671. this[this.tableZakaz.dataColumn] = global::System.Convert.DBNull;
  3672. }
  3673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3675. public bool IsdadaDostavkiNull() {
  3676. return this.IsNull(this.tableZakaz.dadaDostavkiColumn);
  3677. }
  3678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3680. public void SetdadaDostavkiNull() {
  3681. this[this.tableZakaz.dadaDostavkiColumn] = global::System.Convert.DBNull;
  3682. }
  3683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3685. public bool IsPunktNull() {
  3686. return this.IsNull(this.tableZakaz.PunktColumn);
  3687. }
  3688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3690. public void SetPunktNull() {
  3691. this[this.tableZakaz.PunktColumn] = global::System.Convert.DBNull;
  3692. }
  3693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3695. public bool IsKlientNull() {
  3696. return this.IsNull(this.tableZakaz.KlientColumn);
  3697. }
  3698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3700. public void SetKlientNull() {
  3701. this[this.tableZakaz.KlientColumn] = global::System.Convert.DBNull;
  3702. }
  3703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3705. public bool IsKodPoluhatilNull() {
  3706. return this.IsNull(this.tableZakaz.KodPoluhatilColumn);
  3707. }
  3708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3710. public void SetKodPoluhatilNull() {
  3711. this[this.tableZakaz.KodPoluhatilColumn] = global::System.Convert.DBNull;
  3712. }
  3713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3715. public bool IsStatusNull() {
  3716. return this.IsNull(this.tableZakaz.StatusColumn);
  3717. }
  3718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3720. public void SetStatusNull() {
  3721. this[this.tableZakaz.StatusColumn] = global::System.Convert.DBNull;
  3722. }
  3723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3725. public ZakazTovaraRow[] GetZakazTovaraRows() {
  3726. if ((this.Table.ChildRelations["FK_ZakazTovara_Zakaz"] == null)) {
  3727. return new ZakazTovaraRow[0];
  3728. }
  3729. else {
  3730. return ((ZakazTovaraRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ZakazTovara_Zakaz"])));
  3731. }
  3732. }
  3733. }
  3734. /// <summary>
  3735. ///Represents strongly named DataRow class.
  3736. ///</summary>
  3737. public partial class ZakazTovaraRow : global::System.Data.DataRow {
  3738. private ZakazTovaraDataTable tableZakazTovara;
  3739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3741. internal ZakazTovaraRow(global::System.Data.DataRowBuilder rb) :
  3742. base(rb) {
  3743. this.tableZakazTovara = ((ZakazTovaraDataTable)(this.Table));
  3744. }
  3745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3747. public int id {
  3748. get {
  3749. return ((int)(this[this.tableZakazTovara.idColumn]));
  3750. }
  3751. set {
  3752. this[this.tableZakazTovara.idColumn] = value;
  3753. }
  3754. }
  3755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3757. public int nomerZakaz {
  3758. get {
  3759. try {
  3760. return ((int)(this[this.tableZakazTovara.nomerZakazColumn]));
  3761. }
  3762. catch (global::System.InvalidCastException e) {
  3763. throw new global::System.Data.StrongTypingException("Значение для столбца \'nomerZakaz\' в таблице \'ZakazTovara\' равно DBNull.", e);
  3764. }
  3765. }
  3766. set {
  3767. this[this.tableZakazTovara.nomerZakazColumn] = value;
  3768. }
  3769. }
  3770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3772. public string nameTovar {
  3773. get {
  3774. try {
  3775. return ((string)(this[this.tableZakazTovara.nameTovarColumn]));
  3776. }
  3777. catch (global::System.InvalidCastException e) {
  3778. throw new global::System.Data.StrongTypingException("Значение для столбца \'nameTovar\' в таблице \'ZakazTovara\' равно DBNull.", e);
  3779. }
  3780. }
  3781. set {
  3782. this[this.tableZakazTovara.nameTovarColumn] = value;
  3783. }
  3784. }
  3785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3786. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3787. public string kolichestvo {
  3788. get {
  3789. try {
  3790. return ((string)(this[this.tableZakazTovara.kolichestvoColumn]));
  3791. }
  3792. catch (global::System.InvalidCastException e) {
  3793. throw new global::System.Data.StrongTypingException("Значение для столбца \'kolichestvo\' в таблице \'ZakazTovara\' равно DBNull.", e);
  3794. }
  3795. }
  3796. set {
  3797. this[this.tableZakazTovara.kolichestvoColumn] = value;
  3798. }
  3799. }
  3800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3802. public int id_punkt {
  3803. get {
  3804. try {
  3805. return ((int)(this[this.tableZakazTovara.id_punktColumn]));
  3806. }
  3807. catch (global::System.InvalidCastException e) {
  3808. throw new global::System.Data.StrongTypingException("Значение для столбца \'id_punkt\' в таблице \'ZakazTovara\' равно DBNull.", e);
  3809. }
  3810. }
  3811. set {
  3812. this[this.tableZakazTovara.id_punktColumn] = value;
  3813. }
  3814. }
  3815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3817. public ZakazRow ZakazRow {
  3818. get {
  3819. return ((ZakazRow)(this.GetParentRow(this.Table.ParentRelations["FK_ZakazTovara_Zakaz"])));
  3820. }
  3821. set {
  3822. this.SetParentRow(value, this.Table.ParentRelations["FK_ZakazTovara_Zakaz"]);
  3823. }
  3824. }
  3825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3827. public ПунктВыдачиRow ПунктВыдачиRow {
  3828. get {
  3829. return ((ПунктВыдачиRow)(this.GetParentRow(this.Table.ParentRelations["FK_ZakazTovara_ПунктВыдачи"])));
  3830. }
  3831. set {
  3832. this.SetParentRow(value, this.Table.ParentRelations["FK_ZakazTovara_ПунктВыдачи"]);
  3833. }
  3834. }
  3835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3837. public bool IsnomerZakazNull() {
  3838. return this.IsNull(this.tableZakazTovara.nomerZakazColumn);
  3839. }
  3840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3841. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3842. public void SetnomerZakazNull() {
  3843. this[this.tableZakazTovara.nomerZakazColumn] = global::System.Convert.DBNull;
  3844. }
  3845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3847. public bool IsnameTovarNull() {
  3848. return this.IsNull(this.tableZakazTovara.nameTovarColumn);
  3849. }
  3850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3852. public void SetnameTovarNull() {
  3853. this[this.tableZakazTovara.nameTovarColumn] = global::System.Convert.DBNull;
  3854. }
  3855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3857. public bool IskolichestvoNull() {
  3858. return this.IsNull(this.tableZakazTovara.kolichestvoColumn);
  3859. }
  3860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3862. public void SetkolichestvoNull() {
  3863. this[this.tableZakazTovara.kolichestvoColumn] = global::System.Convert.DBNull;
  3864. }
  3865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3867. public bool Isid_punktNull() {
  3868. return this.IsNull(this.tableZakazTovara.id_punktColumn);
  3869. }
  3870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3872. public void Setid_punktNull() {
  3873. this[this.tableZakazTovara.id_punktColumn] = global::System.Convert.DBNull;
  3874. }
  3875. }
  3876. /// <summary>
  3877. ///Represents strongly named DataRow class.
  3878. ///</summary>
  3879. public partial class ПунктВыдачиRow : global::System.Data.DataRow {
  3880. private ПунктВыдачиDataTable tableПунктВыдачи;
  3881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3883. internal ПунктВыдачиRow(global::System.Data.DataRowBuilder rb) :
  3884. base(rb) {
  3885. this.tableПунктВыдачи = ((ПунктВыдачиDataTable)(this.Table));
  3886. }
  3887. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3888. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3889. public int id {
  3890. get {
  3891. return ((int)(this[this.tableПунктВыдачи.idColumn]));
  3892. }
  3893. set {
  3894. this[this.tableПунктВыдачи.idColumn] = value;
  3895. }
  3896. }
  3897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3899. public int Идентификатор {
  3900. get {
  3901. return ((int)(this[this.tableПунктВыдачи.ИдентификаторColumn]));
  3902. }
  3903. set {
  3904. this[this.tableПунктВыдачи.ИдентификаторColumn] = value;
  3905. }
  3906. }
  3907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3909. public string Город {
  3910. get {
  3911. return ((string)(this[this.tableПунктВыдачи.ГородColumn]));
  3912. }
  3913. set {
  3914. this[this.tableПунктВыдачи.ГородColumn] = value;
  3915. }
  3916. }
  3917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3919. public string Улица {
  3920. get {
  3921. return ((string)(this[this.tableПунктВыдачи.УлицаColumn]));
  3922. }
  3923. set {
  3924. this[this.tableПунктВыдачи.УлицаColumn] = value;
  3925. }
  3926. }
  3927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3929. public int Дом {
  3930. get {
  3931. try {
  3932. return ((int)(this[this.tableПунктВыдачи.ДомColumn]));
  3933. }
  3934. catch (global::System.InvalidCastException e) {
  3935. throw new global::System.Data.StrongTypingException("Значение для столбца \'Дом\' в таблице \'ПунктВыдачи\' равно DBNull.", e);
  3936. }
  3937. }
  3938. set {
  3939. this[this.tableПунктВыдачи.ДомColumn] = value;
  3940. }
  3941. }
  3942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3944. public bool IsДомNull() {
  3945. return this.IsNull(this.tableПунктВыдачи.ДомColumn);
  3946. }
  3947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3949. public void SetДомNull() {
  3950. this[this.tableПунктВыдачи.ДомColumn] = global::System.Convert.DBNull;
  3951. }
  3952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3953. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3954. public ZakazTovaraRow[] GetZakazTovaraRows() {
  3955. if ((this.Table.ChildRelations["FK_ZakazTovara_ПунктВыдачи"] == null)) {
  3956. return new ZakazTovaraRow[0];
  3957. }
  3958. else {
  3959. return ((ZakazTovaraRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ZakazTovara_ПунктВыдачи"])));
  3960. }
  3961. }
  3962. }
  3963. /// <summary>
  3964. ///Row event argument class
  3965. ///</summary>
  3966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3967. public class OrderRowChangeEvent : global::System.EventArgs {
  3968. private OrderRow eventRow;
  3969. private global::System.Data.DataRowAction eventAction;
  3970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3972. public OrderRowChangeEvent(OrderRow row, global::System.Data.DataRowAction action) {
  3973. this.eventRow = row;
  3974. this.eventAction = action;
  3975. }
  3976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3978. public OrderRow Row {
  3979. get {
  3980. return this.eventRow;
  3981. }
  3982. }
  3983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3984. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3985. public global::System.Data.DataRowAction Action {
  3986. get {
  3987. return this.eventAction;
  3988. }
  3989. }
  3990. }
  3991. /// <summary>
  3992. ///Row event argument class
  3993. ///</summary>
  3994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3995. public class OrdersProduktsRowChangeEvent : global::System.EventArgs {
  3996. private OrdersProduktsRow eventRow;
  3997. private global::System.Data.DataRowAction eventAction;
  3998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4000. public OrdersProduktsRowChangeEvent(OrdersProduktsRow row, global::System.Data.DataRowAction action) {
  4001. this.eventRow = row;
  4002. this.eventAction = action;
  4003. }
  4004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4006. public OrdersProduktsRow Row {
  4007. get {
  4008. return this.eventRow;
  4009. }
  4010. }
  4011. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4012. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4013. public global::System.Data.DataRowAction Action {
  4014. get {
  4015. return this.eventAction;
  4016. }
  4017. }
  4018. }
  4019. /// <summary>
  4020. ///Row event argument class
  4021. ///</summary>
  4022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4023. public class ProdyktRowChangeEvent : global::System.EventArgs {
  4024. private ProdyktRow eventRow;
  4025. private global::System.Data.DataRowAction eventAction;
  4026. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4027. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4028. public ProdyktRowChangeEvent(ProdyktRow row, global::System.Data.DataRowAction action) {
  4029. this.eventRow = row;
  4030. this.eventAction = action;
  4031. }
  4032. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4033. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4034. public ProdyktRow Row {
  4035. get {
  4036. return this.eventRow;
  4037. }
  4038. }
  4039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4041. public global::System.Data.DataRowAction Action {
  4042. get {
  4043. return this.eventAction;
  4044. }
  4045. }
  4046. }
  4047. /// <summary>
  4048. ///Row event argument class
  4049. ///</summary>
  4050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4051. public class RoleRowChangeEvent : global::System.EventArgs {
  4052. private RoleRow eventRow;
  4053. private global::System.Data.DataRowAction eventAction;
  4054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4056. public RoleRowChangeEvent(RoleRow row, global::System.Data.DataRowAction action) {
  4057. this.eventRow = row;
  4058. this.eventAction = action;
  4059. }
  4060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4062. public RoleRow Row {
  4063. get {
  4064. return this.eventRow;
  4065. }
  4066. }
  4067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4069. public global::System.Data.DataRowAction Action {
  4070. get {
  4071. return this.eventAction;
  4072. }
  4073. }
  4074. }
  4075. /// <summary>
  4076. ///Row event argument class
  4077. ///</summary>
  4078. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4079. public class Users1RowChangeEvent : global::System.EventArgs {
  4080. private Users1Row eventRow;
  4081. private global::System.Data.DataRowAction eventAction;
  4082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4084. public Users1RowChangeEvent(Users1Row row, global::System.Data.DataRowAction action) {
  4085. this.eventRow = row;
  4086. this.eventAction = action;
  4087. }
  4088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4090. public Users1Row Row {
  4091. get {
  4092. return this.eventRow;
  4093. }
  4094. }
  4095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4097. public global::System.Data.DataRowAction Action {
  4098. get {
  4099. return this.eventAction;
  4100. }
  4101. }
  4102. }
  4103. /// <summary>
  4104. ///Row event argument class
  4105. ///</summary>
  4106. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4107. public class ZakazRowChangeEvent : global::System.EventArgs {
  4108. private ZakazRow eventRow;
  4109. private global::System.Data.DataRowAction eventAction;
  4110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4112. public ZakazRowChangeEvent(ZakazRow row, global::System.Data.DataRowAction action) {
  4113. this.eventRow = row;
  4114. this.eventAction = action;
  4115. }
  4116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4118. public ZakazRow Row {
  4119. get {
  4120. return this.eventRow;
  4121. }
  4122. }
  4123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4125. public global::System.Data.DataRowAction Action {
  4126. get {
  4127. return this.eventAction;
  4128. }
  4129. }
  4130. }
  4131. /// <summary>
  4132. ///Row event argument class
  4133. ///</summary>
  4134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4135. public class ZakazTovaraRowChangeEvent : global::System.EventArgs {
  4136. private ZakazTovaraRow eventRow;
  4137. private global::System.Data.DataRowAction eventAction;
  4138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4140. public ZakazTovaraRowChangeEvent(ZakazTovaraRow row, global::System.Data.DataRowAction action) {
  4141. this.eventRow = row;
  4142. this.eventAction = action;
  4143. }
  4144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4146. public ZakazTovaraRow Row {
  4147. get {
  4148. return this.eventRow;
  4149. }
  4150. }
  4151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4153. public global::System.Data.DataRowAction Action {
  4154. get {
  4155. return this.eventAction;
  4156. }
  4157. }
  4158. }
  4159. /// <summary>
  4160. ///Row event argument class
  4161. ///</summary>
  4162. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4163. public class ПунктВыдачиRowChangeEvent : global::System.EventArgs {
  4164. private ПунктВыдачиRow eventRow;
  4165. private global::System.Data.DataRowAction eventAction;
  4166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4168. public ПунктВыдачиRowChangeEvent(ПунктВыдачиRow row, global::System.Data.DataRowAction action) {
  4169. this.eventRow = row;
  4170. this.eventAction = action;
  4171. }
  4172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4174. public ПунктВыдачиRow Row {
  4175. get {
  4176. return this.eventRow;
  4177. }
  4178. }
  4179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4181. public global::System.Data.DataRowAction Action {
  4182. get {
  4183. return this.eventAction;
  4184. }
  4185. }
  4186. }
  4187. }
  4188. }
  4189. namespace WindowsFormsApp3._12gkDataSetTableAdapters {
  4190. /// <summary>
  4191. ///Represents the connection and commands used to retrieve and save data.
  4192. ///</summary>
  4193. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4194. [global::System.ComponentModel.ToolboxItem(true)]
  4195. [global::System.ComponentModel.DataObjectAttribute(true)]
  4196. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4197. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4198. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4199. public partial class OrderTableAdapter : global::System.ComponentModel.Component {
  4200. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4201. private global::System.Data.SqlClient.SqlConnection _connection;
  4202. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4203. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4204. private bool _clearBeforeFill;
  4205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4207. public OrderTableAdapter() {
  4208. this.ClearBeforeFill = true;
  4209. }
  4210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4212. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4213. get {
  4214. if ((this._adapter == null)) {
  4215. this.InitAdapter();
  4216. }
  4217. return this._adapter;
  4218. }
  4219. }
  4220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4222. internal global::System.Data.SqlClient.SqlConnection Connection {
  4223. get {
  4224. if ((this._connection == null)) {
  4225. this.InitConnection();
  4226. }
  4227. return this._connection;
  4228. }
  4229. set {
  4230. this._connection = value;
  4231. if ((this.Adapter.InsertCommand != null)) {
  4232. this.Adapter.InsertCommand.Connection = value;
  4233. }
  4234. if ((this.Adapter.DeleteCommand != null)) {
  4235. this.Adapter.DeleteCommand.Connection = value;
  4236. }
  4237. if ((this.Adapter.UpdateCommand != null)) {
  4238. this.Adapter.UpdateCommand.Connection = value;
  4239. }
  4240. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4241. if ((this.CommandCollection[i] != null)) {
  4242. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4243. }
  4244. }
  4245. }
  4246. }
  4247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4249. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4250. get {
  4251. return this._transaction;
  4252. }
  4253. set {
  4254. this._transaction = value;
  4255. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4256. this.CommandCollection[i].Transaction = this._transaction;
  4257. }
  4258. if (((this.Adapter != null)
  4259. && (this.Adapter.DeleteCommand != null))) {
  4260. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4261. }
  4262. if (((this.Adapter != null)
  4263. && (this.Adapter.InsertCommand != null))) {
  4264. this.Adapter.InsertCommand.Transaction = this._transaction;
  4265. }
  4266. if (((this.Adapter != null)
  4267. && (this.Adapter.UpdateCommand != null))) {
  4268. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4269. }
  4270. }
  4271. }
  4272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4274. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4275. get {
  4276. if ((this._commandCollection == null)) {
  4277. this.InitCommandCollection();
  4278. }
  4279. return this._commandCollection;
  4280. }
  4281. }
  4282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4284. public bool ClearBeforeFill {
  4285. get {
  4286. return this._clearBeforeFill;
  4287. }
  4288. set {
  4289. this._clearBeforeFill = value;
  4290. }
  4291. }
  4292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4294. private void InitAdapter() {
  4295. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4296. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4297. tableMapping.SourceTable = "Table";
  4298. tableMapping.DataSetTable = "Order";
  4299. tableMapping.ColumnMappings.Add("OrderID", "OrderID");
  4300. tableMapping.ColumnMappings.Add("OrderStatus", "OrderStatus");
  4301. tableMapping.ColumnMappings.Add("OrderDeliveryDate", "OrderDeliveryDate");
  4302. tableMapping.ColumnMappings.Add("OrderPickupPoint", "OrderPickupPoint");
  4303. this._adapter.TableMappings.Add(tableMapping);
  4304. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4305. this._adapter.DeleteCommand.Connection = this.Connection;
  4306. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Order] WHERE (([OrderID] = @Original_OrderID) AND ([OrderDeliv" +
  4307. "eryDate] = @Original_OrderDeliveryDate))";
  4308. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4309. 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, "", "", ""));
  4310. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderDeliveryDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDeliveryDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4311. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4312. this._adapter.InsertCommand.Connection = this.Connection;
  4313. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Order] ([OrderStatus], [OrderDeliveryDate], [OrderPickupPoint]) VALUES (@OrderStatus, @OrderDeliveryDate, @OrderPickupPoint);
  4314. SELECT OrderID, OrderStatus, OrderDeliveryDate, OrderPickupPoint FROM [Order] WHERE (OrderID = SCOPE_IDENTITY())";
  4315. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4316. 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, "", "", ""));
  4317. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderDeliveryDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDeliveryDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4318. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderPickupPoint", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderPickupPoint", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4319. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4320. this._adapter.UpdateCommand.Connection = this.Connection;
  4321. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Order] SET [OrderStatus] = @OrderStatus, [OrderDeliveryDate] = @OrderDeliveryDate, [OrderPickupPoint] = @OrderPickupPoint WHERE (([OrderID] = @Original_OrderID) AND ([OrderDeliveryDate] = @Original_OrderDeliveryDate));
  4322. SELECT OrderID, OrderStatus, OrderDeliveryDate, OrderPickupPoint FROM [Order] WHERE (OrderID = @OrderID)";
  4323. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4324. 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, "", "", ""));
  4325. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderDeliveryDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDeliveryDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4326. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderPickupPoint", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderPickupPoint", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4327. 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, "", "", ""));
  4328. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderDeliveryDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDeliveryDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4329. 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, "", "", ""));
  4330. }
  4331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4332. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4333. private void InitConnection() {
  4334. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4335. this._connection.ConnectionString = global::WindowsFormsApp3.Properties.Settings.Default._12gkConnectionString;
  4336. }
  4337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4339. private void InitCommandCollection() {
  4340. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4341. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4342. this._commandCollection[0].Connection = this.Connection;
  4343. this._commandCollection[0].CommandText = "SELECT OrderID, OrderStatus, OrderDeliveryDate, OrderPickupPoint FROM dbo.[Order]" +
  4344. "";
  4345. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4346. }
  4347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4349. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4350. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4351. public virtual int Fill(_12gkDataSet.OrderDataTable dataTable) {
  4352. this.Adapter.SelectCommand = this.CommandCollection[0];
  4353. if ((this.ClearBeforeFill == true)) {
  4354. dataTable.Clear();
  4355. }
  4356. int returnValue = this.Adapter.Fill(dataTable);
  4357. return returnValue;
  4358. }
  4359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4361. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4362. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4363. public virtual _12gkDataSet.OrderDataTable GetData() {
  4364. this.Adapter.SelectCommand = this.CommandCollection[0];
  4365. _12gkDataSet.OrderDataTable dataTable = new _12gkDataSet.OrderDataTable();
  4366. this.Adapter.Fill(dataTable);
  4367. return dataTable;
  4368. }
  4369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4371. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4372. public virtual int Update(_12gkDataSet.OrderDataTable dataTable) {
  4373. return this.Adapter.Update(dataTable);
  4374. }
  4375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4377. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4378. public virtual int Update(_12gkDataSet dataSet) {
  4379. return this.Adapter.Update(dataSet, "Order");
  4380. }
  4381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4383. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4384. public virtual int Update(global::System.Data.DataRow dataRow) {
  4385. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4386. dataRow});
  4387. }
  4388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4390. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4391. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4392. return this.Adapter.Update(dataRows);
  4393. }
  4394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4396. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4397. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4398. public virtual int Delete(int Original_OrderID, System.DateTime Original_OrderDeliveryDate) {
  4399. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_OrderID));
  4400. this.Adapter.DeleteCommand.Parameters[1].Value = ((System.DateTime)(Original_OrderDeliveryDate));
  4401. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4402. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4403. != global::System.Data.ConnectionState.Open)) {
  4404. this.Adapter.DeleteCommand.Connection.Open();
  4405. }
  4406. try {
  4407. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4408. return returnValue;
  4409. }
  4410. finally {
  4411. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4412. this.Adapter.DeleteCommand.Connection.Close();
  4413. }
  4414. }
  4415. }
  4416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4418. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4419. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4420. public virtual int Insert(string OrderStatus, System.DateTime OrderDeliveryDate, string OrderPickupPoint) {
  4421. if ((OrderStatus == null)) {
  4422. throw new global::System.ArgumentNullException("OrderStatus");
  4423. }
  4424. else {
  4425. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(OrderStatus));
  4426. }
  4427. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(OrderDeliveryDate));
  4428. if ((OrderPickupPoint == null)) {
  4429. throw new global::System.ArgumentNullException("OrderPickupPoint");
  4430. }
  4431. else {
  4432. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(OrderPickupPoint));
  4433. }
  4434. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4435. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4436. != global::System.Data.ConnectionState.Open)) {
  4437. this.Adapter.InsertCommand.Connection.Open();
  4438. }
  4439. try {
  4440. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4441. return returnValue;
  4442. }
  4443. finally {
  4444. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4445. this.Adapter.InsertCommand.Connection.Close();
  4446. }
  4447. }
  4448. }
  4449. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4450. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4451. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4452. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4453. public virtual int Update(string OrderStatus, System.DateTime OrderDeliveryDate, string OrderPickupPoint, int Original_OrderID, System.DateTime Original_OrderDeliveryDate, int OrderID) {
  4454. if ((OrderStatus == null)) {
  4455. throw new global::System.ArgumentNullException("OrderStatus");
  4456. }
  4457. else {
  4458. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(OrderStatus));
  4459. }
  4460. this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(OrderDeliveryDate));
  4461. if ((OrderPickupPoint == null)) {
  4462. throw new global::System.ArgumentNullException("OrderPickupPoint");
  4463. }
  4464. else {
  4465. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(OrderPickupPoint));
  4466. }
  4467. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_OrderID));
  4468. this.Adapter.UpdateCommand.Parameters[4].Value = ((System.DateTime)(Original_OrderDeliveryDate));
  4469. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(OrderID));
  4470. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4471. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4472. != global::System.Data.ConnectionState.Open)) {
  4473. this.Adapter.UpdateCommand.Connection.Open();
  4474. }
  4475. try {
  4476. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4477. return returnValue;
  4478. }
  4479. finally {
  4480. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4481. this.Adapter.UpdateCommand.Connection.Close();
  4482. }
  4483. }
  4484. }
  4485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4487. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4488. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4489. public virtual int Update(string OrderStatus, System.DateTime OrderDeliveryDate, string OrderPickupPoint, int Original_OrderID, System.DateTime Original_OrderDeliveryDate) {
  4490. return this.Update(OrderStatus, OrderDeliveryDate, OrderPickupPoint, Original_OrderID, Original_OrderDeliveryDate, Original_OrderID);
  4491. }
  4492. }
  4493. /// <summary>
  4494. ///Represents the connection and commands used to retrieve and save data.
  4495. ///</summary>
  4496. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4497. [global::System.ComponentModel.ToolboxItem(true)]
  4498. [global::System.ComponentModel.DataObjectAttribute(true)]
  4499. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4500. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4501. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4502. public partial class OrdersProduktsTableAdapter : global::System.ComponentModel.Component {
  4503. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4504. private global::System.Data.SqlClient.SqlConnection _connection;
  4505. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4506. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4507. private bool _clearBeforeFill;
  4508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4510. public OrdersProduktsTableAdapter() {
  4511. this.ClearBeforeFill = true;
  4512. }
  4513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4515. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4516. get {
  4517. if ((this._adapter == null)) {
  4518. this.InitAdapter();
  4519. }
  4520. return this._adapter;
  4521. }
  4522. }
  4523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4525. internal global::System.Data.SqlClient.SqlConnection Connection {
  4526. get {
  4527. if ((this._connection == null)) {
  4528. this.InitConnection();
  4529. }
  4530. return this._connection;
  4531. }
  4532. set {
  4533. this._connection = value;
  4534. if ((this.Adapter.InsertCommand != null)) {
  4535. this.Adapter.InsertCommand.Connection = value;
  4536. }
  4537. if ((this.Adapter.DeleteCommand != null)) {
  4538. this.Adapter.DeleteCommand.Connection = value;
  4539. }
  4540. if ((this.Adapter.UpdateCommand != null)) {
  4541. this.Adapter.UpdateCommand.Connection = value;
  4542. }
  4543. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4544. if ((this.CommandCollection[i] != null)) {
  4545. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4546. }
  4547. }
  4548. }
  4549. }
  4550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4552. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4553. get {
  4554. return this._transaction;
  4555. }
  4556. set {
  4557. this._transaction = value;
  4558. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4559. this.CommandCollection[i].Transaction = this._transaction;
  4560. }
  4561. if (((this.Adapter != null)
  4562. && (this.Adapter.DeleteCommand != null))) {
  4563. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4564. }
  4565. if (((this.Adapter != null)
  4566. && (this.Adapter.InsertCommand != null))) {
  4567. this.Adapter.InsertCommand.Transaction = this._transaction;
  4568. }
  4569. if (((this.Adapter != null)
  4570. && (this.Adapter.UpdateCommand != null))) {
  4571. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4572. }
  4573. }
  4574. }
  4575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4577. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4578. get {
  4579. if ((this._commandCollection == null)) {
  4580. this.InitCommandCollection();
  4581. }
  4582. return this._commandCollection;
  4583. }
  4584. }
  4585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4587. public bool ClearBeforeFill {
  4588. get {
  4589. return this._clearBeforeFill;
  4590. }
  4591. set {
  4592. this._clearBeforeFill = value;
  4593. }
  4594. }
  4595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4597. private void InitAdapter() {
  4598. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4599. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4600. tableMapping.SourceTable = "Table";
  4601. tableMapping.DataSetTable = "OrdersProdukts";
  4602. tableMapping.ColumnMappings.Add("OrderID", "OrderID");
  4603. tableMapping.ColumnMappings.Add("ProductArticleNumber", "ProductArticleNumber");
  4604. this._adapter.TableMappings.Add(tableMapping);
  4605. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4606. this._adapter.DeleteCommand.Connection = this.Connection;
  4607. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[OrdersProdukts] WHERE (([OrderID] = @Original_OrderID) AND ([P" +
  4608. "roductArticleNumber] = @Original_ProductArticleNumber))";
  4609. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4610. 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, "", "", ""));
  4611. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductArticleNumber", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductArticleNumber", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4612. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4613. this._adapter.InsertCommand.Connection = this.Connection;
  4614. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[OrdersProdukts] ([ProductArticleNumber]) VALUES (@ProductArtic" +
  4615. "leNumber);\r\nSELECT OrderID, ProductArticleNumber FROM OrdersProdukts WHERE (Orde" +
  4616. "rID = SCOPE_IDENTITY())";
  4617. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4618. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductArticleNumber", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductArticleNumber", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4619. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4620. this._adapter.UpdateCommand.Connection = this.Connection;
  4621. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[OrdersProdukts] SET [ProductArticleNumber] = @ProductArticleNumber WHERE (([OrderID] = @Original_OrderID) AND ([ProductArticleNumber] = @Original_ProductArticleNumber));
  4622. SELECT OrderID, ProductArticleNumber FROM OrdersProdukts WHERE (OrderID = @OrderID)";
  4623. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4624. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductArticleNumber", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductArticleNumber", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4625. 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, "", "", ""));
  4626. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductArticleNumber", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductArticleNumber", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4627. 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, "", "", ""));
  4628. }
  4629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4631. private void InitConnection() {
  4632. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4633. this._connection.ConnectionString = global::WindowsFormsApp3.Properties.Settings.Default._12gkConnectionString;
  4634. }
  4635. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4636. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4637. private void InitCommandCollection() {
  4638. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4639. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4640. this._commandCollection[0].Connection = this.Connection;
  4641. this._commandCollection[0].CommandText = "SELECT OrderID, ProductArticleNumber FROM dbo.OrdersProdukts";
  4642. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4643. }
  4644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4646. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4647. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4648. public virtual int Fill(_12gkDataSet.OrdersProduktsDataTable dataTable) {
  4649. this.Adapter.SelectCommand = this.CommandCollection[0];
  4650. if ((this.ClearBeforeFill == true)) {
  4651. dataTable.Clear();
  4652. }
  4653. int returnValue = this.Adapter.Fill(dataTable);
  4654. return returnValue;
  4655. }
  4656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4657. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4658. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4659. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4660. public virtual _12gkDataSet.OrdersProduktsDataTable GetData() {
  4661. this.Adapter.SelectCommand = this.CommandCollection[0];
  4662. _12gkDataSet.OrdersProduktsDataTable dataTable = new _12gkDataSet.OrdersProduktsDataTable();
  4663. this.Adapter.Fill(dataTable);
  4664. return dataTable;
  4665. }
  4666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4668. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4669. public virtual int Update(_12gkDataSet.OrdersProduktsDataTable dataTable) {
  4670. return this.Adapter.Update(dataTable);
  4671. }
  4672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4674. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4675. public virtual int Update(_12gkDataSet dataSet) {
  4676. return this.Adapter.Update(dataSet, "OrdersProdukts");
  4677. }
  4678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4680. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4681. public virtual int Update(global::System.Data.DataRow dataRow) {
  4682. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4683. dataRow});
  4684. }
  4685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4687. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4688. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4689. return this.Adapter.Update(dataRows);
  4690. }
  4691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4693. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4694. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4695. public virtual int Delete(int Original_OrderID, int Original_ProductArticleNumber) {
  4696. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_OrderID));
  4697. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ProductArticleNumber));
  4698. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4699. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4700. != global::System.Data.ConnectionState.Open)) {
  4701. this.Adapter.DeleteCommand.Connection.Open();
  4702. }
  4703. try {
  4704. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4705. return returnValue;
  4706. }
  4707. finally {
  4708. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4709. this.Adapter.DeleteCommand.Connection.Close();
  4710. }
  4711. }
  4712. }
  4713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4715. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4716. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4717. public virtual int Insert(int ProductArticleNumber) {
  4718. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ProductArticleNumber));
  4719. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4720. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4721. != global::System.Data.ConnectionState.Open)) {
  4722. this.Adapter.InsertCommand.Connection.Open();
  4723. }
  4724. try {
  4725. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4726. return returnValue;
  4727. }
  4728. finally {
  4729. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4730. this.Adapter.InsertCommand.Connection.Close();
  4731. }
  4732. }
  4733. }
  4734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4736. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4737. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4738. public virtual int Update(int ProductArticleNumber, int Original_OrderID, int Original_ProductArticleNumber, int OrderID) {
  4739. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ProductArticleNumber));
  4740. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_OrderID));
  4741. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ProductArticleNumber));
  4742. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(OrderID));
  4743. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4744. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4745. != global::System.Data.ConnectionState.Open)) {
  4746. this.Adapter.UpdateCommand.Connection.Open();
  4747. }
  4748. try {
  4749. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4750. return returnValue;
  4751. }
  4752. finally {
  4753. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4754. this.Adapter.UpdateCommand.Connection.Close();
  4755. }
  4756. }
  4757. }
  4758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4760. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4761. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4762. public virtual int Update(int ProductArticleNumber, int Original_OrderID, int Original_ProductArticleNumber) {
  4763. return this.Update(ProductArticleNumber, Original_OrderID, Original_ProductArticleNumber, Original_OrderID);
  4764. }
  4765. }
  4766. /// <summary>
  4767. ///Represents the connection and commands used to retrieve and save data.
  4768. ///</summary>
  4769. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4770. [global::System.ComponentModel.ToolboxItem(true)]
  4771. [global::System.ComponentModel.DataObjectAttribute(true)]
  4772. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4773. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4774. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4775. public partial class ProdyktTableAdapter : global::System.ComponentModel.Component {
  4776. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4777. private global::System.Data.SqlClient.SqlConnection _connection;
  4778. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4779. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4780. private bool _clearBeforeFill;
  4781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4783. public ProdyktTableAdapter() {
  4784. this.ClearBeforeFill = true;
  4785. }
  4786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4788. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4789. get {
  4790. if ((this._adapter == null)) {
  4791. this.InitAdapter();
  4792. }
  4793. return this._adapter;
  4794. }
  4795. }
  4796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4798. internal global::System.Data.SqlClient.SqlConnection Connection {
  4799. get {
  4800. if ((this._connection == null)) {
  4801. this.InitConnection();
  4802. }
  4803. return this._connection;
  4804. }
  4805. set {
  4806. this._connection = value;
  4807. if ((this.Adapter.InsertCommand != null)) {
  4808. this.Adapter.InsertCommand.Connection = value;
  4809. }
  4810. if ((this.Adapter.DeleteCommand != null)) {
  4811. this.Adapter.DeleteCommand.Connection = value;
  4812. }
  4813. if ((this.Adapter.UpdateCommand != null)) {
  4814. this.Adapter.UpdateCommand.Connection = value;
  4815. }
  4816. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4817. if ((this.CommandCollection[i] != null)) {
  4818. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4819. }
  4820. }
  4821. }
  4822. }
  4823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4825. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4826. get {
  4827. return this._transaction;
  4828. }
  4829. set {
  4830. this._transaction = value;
  4831. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4832. this.CommandCollection[i].Transaction = this._transaction;
  4833. }
  4834. if (((this.Adapter != null)
  4835. && (this.Adapter.DeleteCommand != null))) {
  4836. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4837. }
  4838. if (((this.Adapter != null)
  4839. && (this.Adapter.InsertCommand != null))) {
  4840. this.Adapter.InsertCommand.Transaction = this._transaction;
  4841. }
  4842. if (((this.Adapter != null)
  4843. && (this.Adapter.UpdateCommand != null))) {
  4844. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4845. }
  4846. }
  4847. }
  4848. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4849. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4850. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4851. get {
  4852. if ((this._commandCollection == null)) {
  4853. this.InitCommandCollection();
  4854. }
  4855. return this._commandCollection;
  4856. }
  4857. }
  4858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4860. public bool ClearBeforeFill {
  4861. get {
  4862. return this._clearBeforeFill;
  4863. }
  4864. set {
  4865. this._clearBeforeFill = value;
  4866. }
  4867. }
  4868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4870. private void InitAdapter() {
  4871. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4872. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4873. tableMapping.SourceTable = "Table";
  4874. tableMapping.DataSetTable = "Prodykt";
  4875. tableMapping.ColumnMappings.Add("ArticleNumber", "ArticleNumber");
  4876. tableMapping.ColumnMappings.Add("Name", "Name");
  4877. tableMapping.ColumnMappings.Add("Description", "Description");
  4878. tableMapping.ColumnMappings.Add("Category", "Category");
  4879. tableMapping.ColumnMappings.Add("Photo", "Photo");
  4880. tableMapping.ColumnMappings.Add("Manufacturer", "Manufacturer");
  4881. tableMapping.ColumnMappings.Add("Prais", "Prais");
  4882. tableMapping.ColumnMappings.Add("Единица_измерения", "Единица_измерения");
  4883. tableMapping.ColumnMappings.Add("Размер_макс_скидки", "Размер_макс_скидки");
  4884. tableMapping.ColumnMappings.Add("Поставщик", "Поставщик");
  4885. tableMapping.ColumnMappings.Add("Действующая_Скидка", "Действующая_Скидка");
  4886. tableMapping.ColumnMappings.Add("Количество_на_складе", "Количество_на_складе");
  4887. tableMapping.ColumnMappings.Add("Ctatys", "Ctatys");
  4888. tableMapping.ColumnMappings.Add("OrderID", "OrderID");
  4889. this._adapter.TableMappings.Add(tableMapping);
  4890. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4891. this._adapter.DeleteCommand.Connection = this.Connection;
  4892. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Prodykt] WHERE (([ArticleNumber] = @Original_ArticleNumber) AND ((@IsNull_Prais = 1 AND [Prais] IS NULL) OR ([Prais] = @Original_Prais)) AND ((@IsNull_Единица_измерения = 1 AND [Единица_измерения] IS NULL) OR ([Единица_измерения] = @Original_Единица_измерения)) AND ((@IsNull_Размер_макс_скидки = 1 AND [Размер_макс_скидки] IS NULL) OR ([Размер_макс_скидки] = @Original_Размер_макс_скидки)) AND ((@IsNull_Поставщик = 1 AND [Поставщик] IS NULL) OR ([Поставщик] = @Original_Поставщик)) AND ((@IsNull_Действующая_Скидка = 1 AND [Действующая_Скидка] IS NULL) OR ([Действующая_Скидка] = @Original_Действующая_Скидка)) AND ((@IsNull_Количество_на_складе = 1 AND [Количество_на_складе] IS NULL) OR ([Количество_на_складе] = @Original_Количество_на_складе)) AND ((@IsNull_OrderID = 1 AND [OrderID] IS NULL) OR ([OrderID] = @Original_OrderID)))";
  4893. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4894. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ArticleNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ArticleNumber", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4895. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Prais", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Prais", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4896. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Prais", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Prais", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4897. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Единица_измерения", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Единица_измерения", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4898. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Единица_измерения", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Единица_измерения", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4899. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Размер_макс_скидки", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Размер_макс_скидки", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4900. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Размер_макс_скидки", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Размер_макс_скидки", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4901. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Поставщик", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Поставщик", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4902. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Поставщик", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Поставщик", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4903. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Действующая_Скидка", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_Скидка", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4904. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Действующая_Скидка", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_Скидка", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4905. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Количество_на_складе", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество_на_складе", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4906. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Количество_на_складе", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество_на_складе", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4907. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OrderID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4908. 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, "", "", ""));
  4909. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4910. this._adapter.InsertCommand.Connection = this.Connection;
  4911. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Prodykt] ([ArticleNumber], [Name], [Description], [Category], [Photo], [Manufacturer], [Prais], [Единица_измерения], [Размер_макс_скидки], [Поставщик], [Действующая_Скидка], [Количество_на_складе], [Ctatys], [OrderID]) VALUES (@ArticleNumber, @Name, @Description, @Category, @Photo, @Manufacturer, @Prais, @Единица_измерения, @Размер_макс_скидки, @Поставщик, @Действующая_Скидка, @Количество_на_складе, @Ctatys, @OrderID);
  4912. SELECT ArticleNumber, Name, Description, Category, Photo, Manufacturer, Prais, Единица_измерения, Размер_макс_скидки, Поставщик, Действующая_Скидка, Количество_на_складе, Ctatys, OrderID FROM Prodykt WHERE (ArticleNumber = @ArticleNumber)";
  4913. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4914. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ArticleNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ArticleNumber", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4915. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4916. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Description", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Description", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4917. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Category", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Category", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4918. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Photo", global::System.Data.SqlDbType.Image, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Photo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4919. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Manufacturer", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Manufacturer", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4920. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Prais", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Prais", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4921. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Единица_измерения", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Единица_измерения", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4922. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Размер_макс_скидки", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Размер_макс_скидки", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4923. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Поставщик", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Поставщик", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4924. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Действующая_Скидка", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_Скидка", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4925. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Количество_на_складе", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество_на_складе", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4926. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Ctatys", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Ctatys", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4927. 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, "", "", ""));
  4928. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4929. this._adapter.UpdateCommand.Connection = this.Connection;
  4930. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Prodykt] SET [ArticleNumber] = @ArticleNumber, [Name] = @Name, [Des" +
  4931. "cription] = @Description, [Category] = @Category, [Photo] = @Photo, [Manufacture" +
  4932. "r] = @Manufacturer, [Prais] = @Prais, [Единица_измерения] = @Единица_измерения, " +
  4933. "[Размер_макс_скидки] = @Размер_макс_скидки, [Поставщик] = @Поставщик, [Действующ" +
  4934. "ая_Скидка] = @Действующая_Скидка, [Количество_на_складе] = @Количество_на_складе" +
  4935. ", [Ctatys] = @Ctatys, [OrderID] = @OrderID WHERE (([ArticleNumber] = @Original_A" +
  4936. "rticleNumber) AND ((@IsNull_Prais = 1 AND [Prais] IS NULL) OR ([Prais] = @Origin" +
  4937. "al_Prais)) AND ((@IsNull_Единица_измерения = 1 AND [Единица_измерения] IS NULL) " +
  4938. "OR ([Единица_измерения] = @Original_Единица_измерения)) AND ((@IsNull_Размер_мак" +
  4939. "с_скидки = 1 AND [Размер_макс_скидки] IS NULL) OR ([Размер_макс_скидки] = @Origi" +
  4940. "nal_Размер_макс_скидки)) AND ((@IsNull_Поставщик = 1 AND [Поставщик] IS NULL) OR" +
  4941. " ([Поставщик] = @Original_Поставщик)) AND ((@IsNull_Действующая_Скидка = 1 AND [" +
  4942. "Действующая_Скидка] IS NULL) OR ([Действующая_Скидка] = @Original_Действующая_Ск" +
  4943. "идка)) AND ((@IsNull_Количество_на_складе = 1 AND [Количество_на_складе] IS NULL" +
  4944. ") OR ([Количество_на_складе] = @Original_Количество_на_складе)) AND ((@IsNull_Or" +
  4945. "derID = 1 AND [OrderID] IS NULL) OR ([OrderID] = @Original_OrderID)));\r\nSELECT A" +
  4946. "rticleNumber, Name, Description, Category, Photo, Manufacturer, Prais, Единица_и" +
  4947. "змерения, Размер_макс_скидки, Поставщик, Действующая_Скидка, Количество_на_склад" +
  4948. "е, Ctatys, OrderID FROM Prodykt WHERE (ArticleNumber = @ArticleNumber)";
  4949. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4950. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ArticleNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ArticleNumber", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4951. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4952. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Description", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Description", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4953. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Category", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Category", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4954. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Photo", global::System.Data.SqlDbType.Image, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Photo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4955. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Manufacturer", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Manufacturer", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4956. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Prais", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Prais", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4957. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Единица_измерения", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Единица_измерения", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4958. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Размер_макс_скидки", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Размер_макс_скидки", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4959. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Поставщик", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Поставщик", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4960. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Действующая_Скидка", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_Скидка", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4961. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Количество_на_складе", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество_на_складе", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4962. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Ctatys", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Ctatys", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4963. 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, "", "", ""));
  4964. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ArticleNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ArticleNumber", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4965. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Prais", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Prais", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4966. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Prais", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Prais", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4967. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Единица_измерения", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Единица_измерения", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4968. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Единица_измерения", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Единица_измерения", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4969. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Размер_макс_скидки", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Размер_макс_скидки", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4970. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Размер_макс_скидки", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Размер_макс_скидки", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4971. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Поставщик", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Поставщик", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4972. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Поставщик", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Поставщик", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4973. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Действующая_Скидка", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_Скидка", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4974. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Действующая_Скидка", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_Скидка", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4975. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Количество_на_складе", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество_на_складе", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4976. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Количество_на_складе", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество_на_складе", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4977. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OrderID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4978. 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, "", "", ""));
  4979. }
  4980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4981. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4982. private void InitConnection() {
  4983. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4984. this._connection.ConnectionString = global::WindowsFormsApp3.Properties.Settings.Default._12gkConnectionString;
  4985. }
  4986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4987. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4988. private void InitCommandCollection() {
  4989. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4990. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4991. this._commandCollection[0].Connection = this.Connection;
  4992. this._commandCollection[0].CommandText = "SELECT ArticleNumber, Name, Description, Category, Photo, Manufacturer, Prais, Ед" +
  4993. "иница_измерения, Размер_макс_скидки, Поставщик, Действующая_Скидка, Количество_н" +
  4994. "а_складе, Ctatys, OrderID FROM dbo.Prodykt";
  4995. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4996. }
  4997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4998. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4999. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5000. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5001. public virtual int Fill(_12gkDataSet.ProdyktDataTable dataTable) {
  5002. this.Adapter.SelectCommand = this.CommandCollection[0];
  5003. if ((this.ClearBeforeFill == true)) {
  5004. dataTable.Clear();
  5005. }
  5006. int returnValue = this.Adapter.Fill(dataTable);
  5007. return returnValue;
  5008. }
  5009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5011. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5012. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5013. public virtual _12gkDataSet.ProdyktDataTable GetData() {
  5014. this.Adapter.SelectCommand = this.CommandCollection[0];
  5015. _12gkDataSet.ProdyktDataTable dataTable = new _12gkDataSet.ProdyktDataTable();
  5016. this.Adapter.Fill(dataTable);
  5017. return dataTable;
  5018. }
  5019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5021. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5022. public virtual int Update(_12gkDataSet.ProdyktDataTable dataTable) {
  5023. return this.Adapter.Update(dataTable);
  5024. }
  5025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5027. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5028. public virtual int Update(_12gkDataSet dataSet) {
  5029. return this.Adapter.Update(dataSet, "Prodykt");
  5030. }
  5031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5032. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5033. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5034. public virtual int Update(global::System.Data.DataRow dataRow) {
  5035. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5036. dataRow});
  5037. }
  5038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5039. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5040. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5041. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5042. return this.Adapter.Update(dataRows);
  5043. }
  5044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5046. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5047. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5048. public virtual int Delete(string Original_ArticleNumber, global::System.Nullable<decimal> Original_Prais, string Original_Единица_измерения, global::System.Nullable<int> Original_Размер_макс_скидки, string Original_Поставщик, global::System.Nullable<int> Original_Действующая_Скидка, global::System.Nullable<int> Original_Количество_на_складе, global::System.Nullable<int> Original_OrderID) {
  5049. if ((Original_ArticleNumber == null)) {
  5050. throw new global::System.ArgumentNullException("Original_ArticleNumber");
  5051. }
  5052. else {
  5053. this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_ArticleNumber));
  5054. }
  5055. if ((Original_Prais.HasValue == true)) {
  5056. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  5057. this.Adapter.DeleteCommand.Parameters[2].Value = ((decimal)(Original_Prais.Value));
  5058. }
  5059. else {
  5060. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  5061. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  5062. }
  5063. if ((Original_Единица_измерения == null)) {
  5064. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  5065. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  5066. }
  5067. else {
  5068. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  5069. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Единица_измерения));
  5070. }
  5071. if ((Original_Размер_макс_скидки.HasValue == true)) {
  5072. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  5073. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_Размер_макс_скидки.Value));
  5074. }
  5075. else {
  5076. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  5077. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  5078. }
  5079. if ((Original_Поставщик == null)) {
  5080. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  5081. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  5082. }
  5083. else {
  5084. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  5085. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Поставщик));
  5086. }
  5087. if ((Original_Действующая_Скидка.HasValue == true)) {
  5088. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  5089. this.Adapter.DeleteCommand.Parameters[10].Value = ((int)(Original_Действующая_Скидка.Value));
  5090. }
  5091. else {
  5092. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  5093. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  5094. }
  5095. if ((Original_Количество_на_складе.HasValue == true)) {
  5096. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  5097. this.Adapter.DeleteCommand.Parameters[12].Value = ((int)(Original_Количество_на_складе.Value));
  5098. }
  5099. else {
  5100. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  5101. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  5102. }
  5103. if ((Original_OrderID.HasValue == true)) {
  5104. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
  5105. this.Adapter.DeleteCommand.Parameters[14].Value = ((int)(Original_OrderID.Value));
  5106. }
  5107. else {
  5108. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
  5109. this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
  5110. }
  5111. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5112. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5113. != global::System.Data.ConnectionState.Open)) {
  5114. this.Adapter.DeleteCommand.Connection.Open();
  5115. }
  5116. try {
  5117. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5118. return returnValue;
  5119. }
  5120. finally {
  5121. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5122. this.Adapter.DeleteCommand.Connection.Close();
  5123. }
  5124. }
  5125. }
  5126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5128. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5129. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5130. public virtual int Insert(string ArticleNumber, string Name, string Description, string Category, byte[] Photo, string Manufacturer, global::System.Nullable<decimal> Prais, string Единица_измерения, global::System.Nullable<int> Размер_макс_скидки, string Поставщик, global::System.Nullable<int> Действующая_Скидка, global::System.Nullable<int> Количество_на_складе, string Ctatys, global::System.Nullable<int> OrderID) {
  5131. if ((ArticleNumber == null)) {
  5132. throw new global::System.ArgumentNullException("ArticleNumber");
  5133. }
  5134. else {
  5135. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(ArticleNumber));
  5136. }
  5137. if ((Name == null)) {
  5138. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  5139. }
  5140. else {
  5141. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Name));
  5142. }
  5143. if ((Description == null)) {
  5144. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  5145. }
  5146. else {
  5147. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Description));
  5148. }
  5149. if ((Category == null)) {
  5150. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  5151. }
  5152. else {
  5153. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Category));
  5154. }
  5155. if ((Photo == null)) {
  5156. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  5157. }
  5158. else {
  5159. this.Adapter.InsertCommand.Parameters[4].Value = ((byte[])(Photo));
  5160. }
  5161. if ((Manufacturer == null)) {
  5162. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  5163. }
  5164. else {
  5165. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Manufacturer));
  5166. }
  5167. if ((Prais.HasValue == true)) {
  5168. this.Adapter.InsertCommand.Parameters[6].Value = ((decimal)(Prais.Value));
  5169. }
  5170. else {
  5171. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  5172. }
  5173. if ((Единица_измерения == null)) {
  5174. this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
  5175. }
  5176. else {
  5177. this.Adapter.InsertCommand.Parameters[7].Value = ((string)(Единица_измерения));
  5178. }
  5179. if ((Размер_макс_скидки.HasValue == true)) {
  5180. this.Adapter.InsertCommand.Parameters[8].Value = ((int)(Размер_макс_скидки.Value));
  5181. }
  5182. else {
  5183. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  5184. }
  5185. if ((Поставщик == null)) {
  5186. this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value;
  5187. }
  5188. else {
  5189. this.Adapter.InsertCommand.Parameters[9].Value = ((string)(Поставщик));
  5190. }
  5191. if ((Действующая_Скидка.HasValue == true)) {
  5192. this.Adapter.InsertCommand.Parameters[10].Value = ((int)(Действующая_Скидка.Value));
  5193. }
  5194. else {
  5195. this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value;
  5196. }
  5197. if ((Количество_на_складе.HasValue == true)) {
  5198. this.Adapter.InsertCommand.Parameters[11].Value = ((int)(Количество_на_складе.Value));
  5199. }
  5200. else {
  5201. this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value;
  5202. }
  5203. if ((Ctatys == null)) {
  5204. this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value;
  5205. }
  5206. else {
  5207. this.Adapter.InsertCommand.Parameters[12].Value = ((string)(Ctatys));
  5208. }
  5209. if ((OrderID.HasValue == true)) {
  5210. this.Adapter.InsertCommand.Parameters[13].Value = ((int)(OrderID.Value));
  5211. }
  5212. else {
  5213. this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value;
  5214. }
  5215. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5216. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5217. != global::System.Data.ConnectionState.Open)) {
  5218. this.Adapter.InsertCommand.Connection.Open();
  5219. }
  5220. try {
  5221. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5222. return returnValue;
  5223. }
  5224. finally {
  5225. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5226. this.Adapter.InsertCommand.Connection.Close();
  5227. }
  5228. }
  5229. }
  5230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5232. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5233. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5234. public virtual int Update(
  5235. string ArticleNumber,
  5236. string Name,
  5237. string Description,
  5238. string Category,
  5239. byte[] Photo,
  5240. string Manufacturer,
  5241. global::System.Nullable<decimal> Prais,
  5242. string Единица_измерения,
  5243. global::System.Nullable<int> Размер_макс_скидки,
  5244. string Поставщик,
  5245. global::System.Nullable<int> Действующая_Скидка,
  5246. global::System.Nullable<int> Количество_на_складе,
  5247. string Ctatys,
  5248. global::System.Nullable<int> OrderID,
  5249. string Original_ArticleNumber,
  5250. global::System.Nullable<decimal> Original_Prais,
  5251. string Original_Единица_измерения,
  5252. global::System.Nullable<int> Original_Размер_макс_скидки,
  5253. string Original_Поставщик,
  5254. global::System.Nullable<int> Original_Действующая_Скидка,
  5255. global::System.Nullable<int> Original_Количество_на_складе,
  5256. global::System.Nullable<int> Original_OrderID) {
  5257. if ((ArticleNumber == null)) {
  5258. throw new global::System.ArgumentNullException("ArticleNumber");
  5259. }
  5260. else {
  5261. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(ArticleNumber));
  5262. }
  5263. if ((Name == null)) {
  5264. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  5265. }
  5266. else {
  5267. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Name));
  5268. }
  5269. if ((Description == null)) {
  5270. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  5271. }
  5272. else {
  5273. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Description));
  5274. }
  5275. if ((Category == null)) {
  5276. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  5277. }
  5278. else {
  5279. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Category));
  5280. }
  5281. if ((Photo == null)) {
  5282. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  5283. }
  5284. else {
  5285. this.Adapter.UpdateCommand.Parameters[4].Value = ((byte[])(Photo));
  5286. }
  5287. if ((Manufacturer == null)) {
  5288. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  5289. }
  5290. else {
  5291. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Manufacturer));
  5292. }
  5293. if ((Prais.HasValue == true)) {
  5294. this.Adapter.UpdateCommand.Parameters[6].Value = ((decimal)(Prais.Value));
  5295. }
  5296. else {
  5297. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  5298. }
  5299. if ((Единица_измерения == null)) {
  5300. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  5301. }
  5302. else {
  5303. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Единица_измерения));
  5304. }
  5305. if ((Размер_макс_скидки.HasValue == true)) {
  5306. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Размер_макс_скидки.Value));
  5307. }
  5308. else {
  5309. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  5310. }
  5311. if ((Поставщик == null)) {
  5312. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  5313. }
  5314. else {
  5315. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Поставщик));
  5316. }
  5317. if ((Действующая_Скидка.HasValue == true)) {
  5318. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Действующая_Скидка.Value));
  5319. }
  5320. else {
  5321. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  5322. }
  5323. if ((Количество_на_складе.HasValue == true)) {
  5324. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Количество_на_складе.Value));
  5325. }
  5326. else {
  5327. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  5328. }
  5329. if ((Ctatys == null)) {
  5330. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  5331. }
  5332. else {
  5333. this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Ctatys));
  5334. }
  5335. if ((OrderID.HasValue == true)) {
  5336. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(OrderID.Value));
  5337. }
  5338. else {
  5339. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  5340. }
  5341. if ((Original_ArticleNumber == null)) {
  5342. throw new global::System.ArgumentNullException("Original_ArticleNumber");
  5343. }
  5344. else {
  5345. this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_ArticleNumber));
  5346. }
  5347. if ((Original_Prais.HasValue == true)) {
  5348. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  5349. this.Adapter.UpdateCommand.Parameters[16].Value = ((decimal)(Original_Prais.Value));
  5350. }
  5351. else {
  5352. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  5353. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  5354. }
  5355. if ((Original_Единица_измерения == null)) {
  5356. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
  5357. this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
  5358. }
  5359. else {
  5360. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
  5361. this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_Единица_измерения));
  5362. }
  5363. if ((Original_Размер_макс_скидки.HasValue == true)) {
  5364. this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(0));
  5365. this.Adapter.UpdateCommand.Parameters[20].Value = ((int)(Original_Размер_макс_скидки.Value));
  5366. }
  5367. else {
  5368. this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(1));
  5369. this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value;
  5370. }
  5371. if ((Original_Поставщик == null)) {
  5372. this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(1));
  5373. this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value;
  5374. }
  5375. else {
  5376. this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(0));
  5377. this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(Original_Поставщик));
  5378. }
  5379. if ((Original_Действующая_Скидка.HasValue == true)) {
  5380. this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(0));
  5381. this.Adapter.UpdateCommand.Parameters[24].Value = ((int)(Original_Действующая_Скидка.Value));
  5382. }
  5383. else {
  5384. this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(1));
  5385. this.Adapter.UpdateCommand.Parameters[24].Value = global::System.DBNull.Value;
  5386. }
  5387. if ((Original_Количество_на_складе.HasValue == true)) {
  5388. this.Adapter.UpdateCommand.Parameters[25].Value = ((object)(0));
  5389. this.Adapter.UpdateCommand.Parameters[26].Value = ((int)(Original_Количество_на_складе.Value));
  5390. }
  5391. else {
  5392. this.Adapter.UpdateCommand.Parameters[25].Value = ((object)(1));
  5393. this.Adapter.UpdateCommand.Parameters[26].Value = global::System.DBNull.Value;
  5394. }
  5395. if ((Original_OrderID.HasValue == true)) {
  5396. this.Adapter.UpdateCommand.Parameters[27].Value = ((object)(0));
  5397. this.Adapter.UpdateCommand.Parameters[28].Value = ((int)(Original_OrderID.Value));
  5398. }
  5399. else {
  5400. this.Adapter.UpdateCommand.Parameters[27].Value = ((object)(1));
  5401. this.Adapter.UpdateCommand.Parameters[28].Value = global::System.DBNull.Value;
  5402. }
  5403. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5404. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5405. != global::System.Data.ConnectionState.Open)) {
  5406. this.Adapter.UpdateCommand.Connection.Open();
  5407. }
  5408. try {
  5409. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5410. return returnValue;
  5411. }
  5412. finally {
  5413. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5414. this.Adapter.UpdateCommand.Connection.Close();
  5415. }
  5416. }
  5417. }
  5418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5420. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5421. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5422. public virtual int Update(
  5423. string Name,
  5424. string Description,
  5425. string Category,
  5426. byte[] Photo,
  5427. string Manufacturer,
  5428. global::System.Nullable<decimal> Prais,
  5429. string Единица_измерения,
  5430. global::System.Nullable<int> Размер_макс_скидки,
  5431. string Поставщик,
  5432. global::System.Nullable<int> Действующая_Скидка,
  5433. global::System.Nullable<int> Количество_на_складе,
  5434. string Ctatys,
  5435. global::System.Nullable<int> OrderID,
  5436. string Original_ArticleNumber,
  5437. global::System.Nullable<decimal> Original_Prais,
  5438. string Original_Единица_измерения,
  5439. global::System.Nullable<int> Original_Размер_макс_скидки,
  5440. string Original_Поставщик,
  5441. global::System.Nullable<int> Original_Действующая_Скидка,
  5442. global::System.Nullable<int> Original_Количество_на_складе,
  5443. global::System.Nullable<int> Original_OrderID) {
  5444. return this.Update(Original_ArticleNumber, Name, Description, Category, Photo, Manufacturer, Prais, Единица_измерения, Размер_макс_скидки, Поставщик, Действующая_Скидка, Количество_на_складе, Ctatys, OrderID, Original_ArticleNumber, Original_Prais, Original_Единица_измерения, Original_Размер_макс_скидки, Original_Поставщик, Original_Действующая_Скидка, Original_Количество_на_складе, Original_OrderID);
  5445. }
  5446. }
  5447. /// <summary>
  5448. ///Represents the connection and commands used to retrieve and save data.
  5449. ///</summary>
  5450. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5451. [global::System.ComponentModel.ToolboxItem(true)]
  5452. [global::System.ComponentModel.DataObjectAttribute(true)]
  5453. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5454. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5455. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5456. public partial class RoleTableAdapter : global::System.ComponentModel.Component {
  5457. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5458. private global::System.Data.SqlClient.SqlConnection _connection;
  5459. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5460. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5461. private bool _clearBeforeFill;
  5462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5464. public RoleTableAdapter() {
  5465. this.ClearBeforeFill = true;
  5466. }
  5467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5469. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5470. get {
  5471. if ((this._adapter == null)) {
  5472. this.InitAdapter();
  5473. }
  5474. return this._adapter;
  5475. }
  5476. }
  5477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5479. internal global::System.Data.SqlClient.SqlConnection Connection {
  5480. get {
  5481. if ((this._connection == null)) {
  5482. this.InitConnection();
  5483. }
  5484. return this._connection;
  5485. }
  5486. set {
  5487. this._connection = value;
  5488. if ((this.Adapter.InsertCommand != null)) {
  5489. this.Adapter.InsertCommand.Connection = value;
  5490. }
  5491. if ((this.Adapter.DeleteCommand != null)) {
  5492. this.Adapter.DeleteCommand.Connection = value;
  5493. }
  5494. if ((this.Adapter.UpdateCommand != null)) {
  5495. this.Adapter.UpdateCommand.Connection = value;
  5496. }
  5497. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5498. if ((this.CommandCollection[i] != null)) {
  5499. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5500. }
  5501. }
  5502. }
  5503. }
  5504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5506. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5507. get {
  5508. return this._transaction;
  5509. }
  5510. set {
  5511. this._transaction = value;
  5512. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5513. this.CommandCollection[i].Transaction = this._transaction;
  5514. }
  5515. if (((this.Adapter != null)
  5516. && (this.Adapter.DeleteCommand != null))) {
  5517. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5518. }
  5519. if (((this.Adapter != null)
  5520. && (this.Adapter.InsertCommand != null))) {
  5521. this.Adapter.InsertCommand.Transaction = this._transaction;
  5522. }
  5523. if (((this.Adapter != null)
  5524. && (this.Adapter.UpdateCommand != null))) {
  5525. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5526. }
  5527. }
  5528. }
  5529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5531. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5532. get {
  5533. if ((this._commandCollection == null)) {
  5534. this.InitCommandCollection();
  5535. }
  5536. return this._commandCollection;
  5537. }
  5538. }
  5539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5541. public bool ClearBeforeFill {
  5542. get {
  5543. return this._clearBeforeFill;
  5544. }
  5545. set {
  5546. this._clearBeforeFill = value;
  5547. }
  5548. }
  5549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5551. private void InitAdapter() {
  5552. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5553. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5554. tableMapping.SourceTable = "Table";
  5555. tableMapping.DataSetTable = "Role";
  5556. tableMapping.ColumnMappings.Add("RoleID", "RoleID");
  5557. tableMapping.ColumnMappings.Add("RoleName", "RoleName");
  5558. this._adapter.TableMappings.Add(tableMapping);
  5559. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5560. this._adapter.DeleteCommand.Connection = this.Connection;
  5561. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Role] WHERE (([RoleID] = @Original_RoleID) AND ([RoleName] = @" +
  5562. "Original_RoleName))";
  5563. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5564. 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, "", "", ""));
  5565. 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, "", "", ""));
  5566. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5567. this._adapter.InsertCommand.Connection = this.Connection;
  5568. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Role] ([RoleName]) VALUES (@RoleName);\r\nSELECT RoleID, RoleNam" +
  5569. "e FROM Role WHERE (RoleID = SCOPE_IDENTITY())";
  5570. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5571. 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, "", "", ""));
  5572. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5573. this._adapter.UpdateCommand.Connection = this.Connection;
  5574. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Role] SET [RoleName] = @RoleName WHERE (([RoleID] = @Original_RoleI" +
  5575. "D) AND ([RoleName] = @Original_RoleName));\r\nSELECT RoleID, RoleName FROM Role WH" +
  5576. "ERE (RoleID = @RoleID)";
  5577. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5578. 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, "", "", ""));
  5579. 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, "", "", ""));
  5580. 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, "", "", ""));
  5581. 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, "", "", ""));
  5582. }
  5583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5585. private void InitConnection() {
  5586. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5587. this._connection.ConnectionString = global::WindowsFormsApp3.Properties.Settings.Default._12gkConnectionString;
  5588. }
  5589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5591. private void InitCommandCollection() {
  5592. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5593. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5594. this._commandCollection[0].Connection = this.Connection;
  5595. this._commandCollection[0].CommandText = "SELECT RoleID, RoleName FROM dbo.Role";
  5596. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5597. }
  5598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5600. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5601. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5602. public virtual int Fill(_12gkDataSet.RoleDataTable dataTable) {
  5603. this.Adapter.SelectCommand = this.CommandCollection[0];
  5604. if ((this.ClearBeforeFill == true)) {
  5605. dataTable.Clear();
  5606. }
  5607. int returnValue = this.Adapter.Fill(dataTable);
  5608. return returnValue;
  5609. }
  5610. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5611. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5612. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5613. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5614. public virtual _12gkDataSet.RoleDataTable GetData() {
  5615. this.Adapter.SelectCommand = this.CommandCollection[0];
  5616. _12gkDataSet.RoleDataTable dataTable = new _12gkDataSet.RoleDataTable();
  5617. this.Adapter.Fill(dataTable);
  5618. return dataTable;
  5619. }
  5620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5622. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5623. public virtual int Update(_12gkDataSet.RoleDataTable dataTable) {
  5624. return this.Adapter.Update(dataTable);
  5625. }
  5626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5628. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5629. public virtual int Update(_12gkDataSet dataSet) {
  5630. return this.Adapter.Update(dataSet, "Role");
  5631. }
  5632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5634. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5635. public virtual int Update(global::System.Data.DataRow dataRow) {
  5636. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5637. dataRow});
  5638. }
  5639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5641. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5642. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5643. return this.Adapter.Update(dataRows);
  5644. }
  5645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5647. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5648. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5649. public virtual int Delete(int Original_RoleID, string Original_RoleName) {
  5650. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_RoleID));
  5651. if ((Original_RoleName == null)) {
  5652. throw new global::System.ArgumentNullException("Original_RoleName");
  5653. }
  5654. else {
  5655. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_RoleName));
  5656. }
  5657. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5658. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5659. != global::System.Data.ConnectionState.Open)) {
  5660. this.Adapter.DeleteCommand.Connection.Open();
  5661. }
  5662. try {
  5663. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5664. return returnValue;
  5665. }
  5666. finally {
  5667. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5668. this.Adapter.DeleteCommand.Connection.Close();
  5669. }
  5670. }
  5671. }
  5672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5674. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5675. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5676. public virtual int Insert(string RoleName) {
  5677. if ((RoleName == null)) {
  5678. throw new global::System.ArgumentNullException("RoleName");
  5679. }
  5680. else {
  5681. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(RoleName));
  5682. }
  5683. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5684. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5685. != global::System.Data.ConnectionState.Open)) {
  5686. this.Adapter.InsertCommand.Connection.Open();
  5687. }
  5688. try {
  5689. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5690. return returnValue;
  5691. }
  5692. finally {
  5693. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5694. this.Adapter.InsertCommand.Connection.Close();
  5695. }
  5696. }
  5697. }
  5698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5700. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5701. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5702. public virtual int Update(string RoleName, int Original_RoleID, string Original_RoleName, int RoleID) {
  5703. if ((RoleName == null)) {
  5704. throw new global::System.ArgumentNullException("RoleName");
  5705. }
  5706. else {
  5707. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(RoleName));
  5708. }
  5709. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_RoleID));
  5710. if ((Original_RoleName == null)) {
  5711. throw new global::System.ArgumentNullException("Original_RoleName");
  5712. }
  5713. else {
  5714. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_RoleName));
  5715. }
  5716. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(RoleID));
  5717. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5718. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5719. != global::System.Data.ConnectionState.Open)) {
  5720. this.Adapter.UpdateCommand.Connection.Open();
  5721. }
  5722. try {
  5723. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5724. return returnValue;
  5725. }
  5726. finally {
  5727. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5728. this.Adapter.UpdateCommand.Connection.Close();
  5729. }
  5730. }
  5731. }
  5732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5734. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5735. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5736. public virtual int Update(string RoleName, int Original_RoleID, string Original_RoleName) {
  5737. return this.Update(RoleName, Original_RoleID, Original_RoleName, Original_RoleID);
  5738. }
  5739. }
  5740. /// <summary>
  5741. ///Represents the connection and commands used to retrieve and save data.
  5742. ///</summary>
  5743. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5744. [global::System.ComponentModel.ToolboxItem(true)]
  5745. [global::System.ComponentModel.DataObjectAttribute(true)]
  5746. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5747. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5748. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5749. public partial class Users1TableAdapter : global::System.ComponentModel.Component {
  5750. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5751. private global::System.Data.SqlClient.SqlConnection _connection;
  5752. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5753. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5754. private bool _clearBeforeFill;
  5755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5757. public Users1TableAdapter() {
  5758. this.ClearBeforeFill = true;
  5759. }
  5760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5761. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5762. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5763. get {
  5764. if ((this._adapter == null)) {
  5765. this.InitAdapter();
  5766. }
  5767. return this._adapter;
  5768. }
  5769. }
  5770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5772. internal global::System.Data.SqlClient.SqlConnection Connection {
  5773. get {
  5774. if ((this._connection == null)) {
  5775. this.InitConnection();
  5776. }
  5777. return this._connection;
  5778. }
  5779. set {
  5780. this._connection = value;
  5781. if ((this.Adapter.InsertCommand != null)) {
  5782. this.Adapter.InsertCommand.Connection = value;
  5783. }
  5784. if ((this.Adapter.DeleteCommand != null)) {
  5785. this.Adapter.DeleteCommand.Connection = value;
  5786. }
  5787. if ((this.Adapter.UpdateCommand != null)) {
  5788. this.Adapter.UpdateCommand.Connection = value;
  5789. }
  5790. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5791. if ((this.CommandCollection[i] != null)) {
  5792. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5793. }
  5794. }
  5795. }
  5796. }
  5797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5799. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5800. get {
  5801. return this._transaction;
  5802. }
  5803. set {
  5804. this._transaction = value;
  5805. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5806. this.CommandCollection[i].Transaction = this._transaction;
  5807. }
  5808. if (((this.Adapter != null)
  5809. && (this.Adapter.DeleteCommand != null))) {
  5810. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5811. }
  5812. if (((this.Adapter != null)
  5813. && (this.Adapter.InsertCommand != null))) {
  5814. this.Adapter.InsertCommand.Transaction = this._transaction;
  5815. }
  5816. if (((this.Adapter != null)
  5817. && (this.Adapter.UpdateCommand != null))) {
  5818. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5819. }
  5820. }
  5821. }
  5822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5824. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5825. get {
  5826. if ((this._commandCollection == null)) {
  5827. this.InitCommandCollection();
  5828. }
  5829. return this._commandCollection;
  5830. }
  5831. }
  5832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5834. public bool ClearBeforeFill {
  5835. get {
  5836. return this._clearBeforeFill;
  5837. }
  5838. set {
  5839. this._clearBeforeFill = value;
  5840. }
  5841. }
  5842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5844. private void InitAdapter() {
  5845. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5846. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5847. tableMapping.SourceTable = "Table";
  5848. tableMapping.DataSetTable = "Users1";
  5849. tableMapping.ColumnMappings.Add("id", "id");
  5850. tableMapping.ColumnMappings.Add("familia", "familia");
  5851. tableMapping.ColumnMappings.Add("name", "name");
  5852. tableMapping.ColumnMappings.Add("othestvo", "othestvo");
  5853. tableMapping.ColumnMappings.Add("login", "login");
  5854. tableMapping.ColumnMappings.Add("pasword", "pasword");
  5855. tableMapping.ColumnMappings.Add("pole", "pole");
  5856. this._adapter.TableMappings.Add(tableMapping);
  5857. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5858. this._adapter.DeleteCommand.Connection = this.Connection;
  5859. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Users1] WHERE (([id] = @Original_id) AND ((@IsNull_familia = 1 AND [familia] IS NULL) OR ([familia] = @Original_familia)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_othestvo = 1 AND [othestvo] IS NULL) OR ([othestvo] = @Original_othestvo)) AND ((@IsNull_pole = 1 AND [pole] IS NULL) OR ([pole] = @Original_pole)))";
  5860. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5861. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5862. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_familia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "familia", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5863. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_familia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "familia", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5864. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5865. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5866. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_othestvo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "othestvo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5867. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_othestvo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "othestvo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5868. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pole", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5869. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pole", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5870. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5871. this._adapter.InsertCommand.Connection = this.Connection;
  5872. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Users1] ([familia], [name], [othestvo], [login], [pasword], [p" +
  5873. "ole]) VALUES (@familia, @name, @othestvo, @login, @pasword, @pole);\r\nSELECT id, " +
  5874. "familia, name, othestvo, login, pasword, pole FROM Users1 WHERE (id = SCOPE_IDEN" +
  5875. "TITY())";
  5876. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5877. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@familia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "familia", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5878. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5879. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@othestvo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "othestvo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5880. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "login", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5881. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pasword", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pasword", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5882. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pole", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5883. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5884. this._adapter.UpdateCommand.Connection = this.Connection;
  5885. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Users1] SET [familia] = @familia, [name] = @name, [othestvo] = @othestvo, [login] = @login, [pasword] = @pasword, [pole] = @pole WHERE (([id] = @Original_id) AND ((@IsNull_familia = 1 AND [familia] IS NULL) OR ([familia] = @Original_familia)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_othestvo = 1 AND [othestvo] IS NULL) OR ([othestvo] = @Original_othestvo)) AND ((@IsNull_pole = 1 AND [pole] IS NULL) OR ([pole] = @Original_pole)));
  5886. SELECT id, familia, name, othestvo, login, pasword, pole FROM Users1 WHERE (id = @id)";
  5887. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5888. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@familia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "familia", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5889. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5890. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@othestvo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "othestvo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5891. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "login", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5892. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pasword", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pasword", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5893. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pole", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5894. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5895. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_familia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "familia", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5896. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_familia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "familia", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5897. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5898. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5899. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_othestvo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "othestvo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5900. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_othestvo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "othestvo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5901. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pole", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5902. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pole", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5903. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5904. }
  5905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5907. private void InitConnection() {
  5908. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5909. this._connection.ConnectionString = global::WindowsFormsApp3.Properties.Settings.Default._12gkConnectionString;
  5910. }
  5911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5913. private void InitCommandCollection() {
  5914. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5915. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5916. this._commandCollection[0].Connection = this.Connection;
  5917. this._commandCollection[0].CommandText = "SELECT id, familia, name, othestvo, login, pasword, pole FROM dbo.Users1";
  5918. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5919. }
  5920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5921. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5922. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5923. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5924. public virtual int Fill(_12gkDataSet.Users1DataTable dataTable) {
  5925. this.Adapter.SelectCommand = this.CommandCollection[0];
  5926. if ((this.ClearBeforeFill == true)) {
  5927. dataTable.Clear();
  5928. }
  5929. int returnValue = this.Adapter.Fill(dataTable);
  5930. return returnValue;
  5931. }
  5932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5934. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5935. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5936. public virtual _12gkDataSet.Users1DataTable GetData() {
  5937. this.Adapter.SelectCommand = this.CommandCollection[0];
  5938. _12gkDataSet.Users1DataTable dataTable = new _12gkDataSet.Users1DataTable();
  5939. this.Adapter.Fill(dataTable);
  5940. return dataTable;
  5941. }
  5942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5944. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5945. public virtual int Update(_12gkDataSet.Users1DataTable dataTable) {
  5946. return this.Adapter.Update(dataTable);
  5947. }
  5948. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5949. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5950. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5951. public virtual int Update(_12gkDataSet dataSet) {
  5952. return this.Adapter.Update(dataSet, "Users1");
  5953. }
  5954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5955. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5956. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5957. public virtual int Update(global::System.Data.DataRow dataRow) {
  5958. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5959. dataRow});
  5960. }
  5961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5963. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5964. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5965. return this.Adapter.Update(dataRows);
  5966. }
  5967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5969. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5970. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5971. public virtual int Delete(int Original_id, string Original_familia, string Original_name, string Original_othestvo, global::System.Nullable<int> Original_pole) {
  5972. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  5973. if ((Original_familia == null)) {
  5974. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  5975. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  5976. }
  5977. else {
  5978. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  5979. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_familia));
  5980. }
  5981. if ((Original_name == null)) {
  5982. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  5983. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  5984. }
  5985. else {
  5986. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  5987. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_name));
  5988. }
  5989. if ((Original_othestvo == null)) {
  5990. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  5991. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  5992. }
  5993. else {
  5994. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  5995. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_othestvo));
  5996. }
  5997. if ((Original_pole.HasValue == true)) {
  5998. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  5999. this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_pole.Value));
  6000. }
  6001. else {
  6002. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  6003. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  6004. }
  6005. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6006. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6007. != global::System.Data.ConnectionState.Open)) {
  6008. this.Adapter.DeleteCommand.Connection.Open();
  6009. }
  6010. try {
  6011. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6012. return returnValue;
  6013. }
  6014. finally {
  6015. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6016. this.Adapter.DeleteCommand.Connection.Close();
  6017. }
  6018. }
  6019. }
  6020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6022. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6023. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6024. public virtual int Insert(string familia, string name, string othestvo, string login, string pasword, global::System.Nullable<int> pole) {
  6025. if ((familia == null)) {
  6026. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6027. }
  6028. else {
  6029. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(familia));
  6030. }
  6031. if ((name == null)) {
  6032. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  6033. }
  6034. else {
  6035. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(name));
  6036. }
  6037. if ((othestvo == null)) {
  6038. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6039. }
  6040. else {
  6041. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(othestvo));
  6042. }
  6043. if ((login == null)) {
  6044. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  6045. }
  6046. else {
  6047. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(login));
  6048. }
  6049. if ((pasword == null)) {
  6050. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  6051. }
  6052. else {
  6053. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(pasword));
  6054. }
  6055. if ((pole.HasValue == true)) {
  6056. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(pole.Value));
  6057. }
  6058. else {
  6059. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  6060. }
  6061. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6062. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6063. != global::System.Data.ConnectionState.Open)) {
  6064. this.Adapter.InsertCommand.Connection.Open();
  6065. }
  6066. try {
  6067. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6068. return returnValue;
  6069. }
  6070. finally {
  6071. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6072. this.Adapter.InsertCommand.Connection.Close();
  6073. }
  6074. }
  6075. }
  6076. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6077. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6078. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6079. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6080. public virtual int Update(string familia, string name, string othestvo, string login, string pasword, global::System.Nullable<int> pole, int Original_id, string Original_familia, string Original_name, string Original_othestvo, global::System.Nullable<int> Original_pole, int id) {
  6081. if ((familia == null)) {
  6082. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6083. }
  6084. else {
  6085. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(familia));
  6086. }
  6087. if ((name == null)) {
  6088. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  6089. }
  6090. else {
  6091. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(name));
  6092. }
  6093. if ((othestvo == null)) {
  6094. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  6095. }
  6096. else {
  6097. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(othestvo));
  6098. }
  6099. if ((login == null)) {
  6100. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6101. }
  6102. else {
  6103. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(login));
  6104. }
  6105. if ((pasword == null)) {
  6106. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  6107. }
  6108. else {
  6109. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(pasword));
  6110. }
  6111. if ((pole.HasValue == true)) {
  6112. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(pole.Value));
  6113. }
  6114. else {
  6115. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  6116. }
  6117. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_id));
  6118. if ((Original_familia == null)) {
  6119. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  6120. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  6121. }
  6122. else {
  6123. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  6124. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_familia));
  6125. }
  6126. if ((Original_name == null)) {
  6127. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  6128. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  6129. }
  6130. else {
  6131. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  6132. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_name));
  6133. }
  6134. if ((Original_othestvo == null)) {
  6135. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  6136. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  6137. }
  6138. else {
  6139. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  6140. this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_othestvo));
  6141. }
  6142. if ((Original_pole.HasValue == true)) {
  6143. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  6144. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(Original_pole.Value));
  6145. }
  6146. else {
  6147. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  6148. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  6149. }
  6150. this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(id));
  6151. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6152. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6153. != global::System.Data.ConnectionState.Open)) {
  6154. this.Adapter.UpdateCommand.Connection.Open();
  6155. }
  6156. try {
  6157. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6158. return returnValue;
  6159. }
  6160. finally {
  6161. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6162. this.Adapter.UpdateCommand.Connection.Close();
  6163. }
  6164. }
  6165. }
  6166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6168. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6169. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6170. public virtual int Update(string familia, string name, string othestvo, string login, string pasword, global::System.Nullable<int> pole, int Original_id, string Original_familia, string Original_name, string Original_othestvo, global::System.Nullable<int> Original_pole) {
  6171. return this.Update(familia, name, othestvo, login, pasword, pole, Original_id, Original_familia, Original_name, Original_othestvo, Original_pole, Original_id);
  6172. }
  6173. }
  6174. /// <summary>
  6175. ///Represents the connection and commands used to retrieve and save data.
  6176. ///</summary>
  6177. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6178. [global::System.ComponentModel.ToolboxItem(true)]
  6179. [global::System.ComponentModel.DataObjectAttribute(true)]
  6180. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6181. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6182. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6183. public partial class ZakazTableAdapter : global::System.ComponentModel.Component {
  6184. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6185. private global::System.Data.SqlClient.SqlConnection _connection;
  6186. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6187. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6188. private bool _clearBeforeFill;
  6189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6191. public ZakazTableAdapter() {
  6192. this.ClearBeforeFill = true;
  6193. }
  6194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6196. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6197. get {
  6198. if ((this._adapter == null)) {
  6199. this.InitAdapter();
  6200. }
  6201. return this._adapter;
  6202. }
  6203. }
  6204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6206. internal global::System.Data.SqlClient.SqlConnection Connection {
  6207. get {
  6208. if ((this._connection == null)) {
  6209. this.InitConnection();
  6210. }
  6211. return this._connection;
  6212. }
  6213. set {
  6214. this._connection = value;
  6215. if ((this.Adapter.InsertCommand != null)) {
  6216. this.Adapter.InsertCommand.Connection = value;
  6217. }
  6218. if ((this.Adapter.DeleteCommand != null)) {
  6219. this.Adapter.DeleteCommand.Connection = value;
  6220. }
  6221. if ((this.Adapter.UpdateCommand != null)) {
  6222. this.Adapter.UpdateCommand.Connection = value;
  6223. }
  6224. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6225. if ((this.CommandCollection[i] != null)) {
  6226. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6227. }
  6228. }
  6229. }
  6230. }
  6231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6233. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6234. get {
  6235. return this._transaction;
  6236. }
  6237. set {
  6238. this._transaction = value;
  6239. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6240. this.CommandCollection[i].Transaction = this._transaction;
  6241. }
  6242. if (((this.Adapter != null)
  6243. && (this.Adapter.DeleteCommand != null))) {
  6244. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6245. }
  6246. if (((this.Adapter != null)
  6247. && (this.Adapter.InsertCommand != null))) {
  6248. this.Adapter.InsertCommand.Transaction = this._transaction;
  6249. }
  6250. if (((this.Adapter != null)
  6251. && (this.Adapter.UpdateCommand != null))) {
  6252. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6253. }
  6254. }
  6255. }
  6256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6258. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6259. get {
  6260. if ((this._commandCollection == null)) {
  6261. this.InitCommandCollection();
  6262. }
  6263. return this._commandCollection;
  6264. }
  6265. }
  6266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6268. public bool ClearBeforeFill {
  6269. get {
  6270. return this._clearBeforeFill;
  6271. }
  6272. set {
  6273. this._clearBeforeFill = value;
  6274. }
  6275. }
  6276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6278. private void InitAdapter() {
  6279. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6280. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6281. tableMapping.SourceTable = "Table";
  6282. tableMapping.DataSetTable = "Zakaz";
  6283. tableMapping.ColumnMappings.Add("id", "id");
  6284. tableMapping.ColumnMappings.Add("data", "data");
  6285. tableMapping.ColumnMappings.Add("dadaDostavki", "dadaDostavki");
  6286. tableMapping.ColumnMappings.Add("Punkt", "Punkt");
  6287. tableMapping.ColumnMappings.Add("Klient", "Klient");
  6288. tableMapping.ColumnMappings.Add("KodPoluhatil", "KodPoluhatil");
  6289. tableMapping.ColumnMappings.Add("Status", "Status");
  6290. this._adapter.TableMappings.Add(tableMapping);
  6291. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6292. this._adapter.DeleteCommand.Connection = this.Connection;
  6293. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Zakaz] WHERE (([id] = @Original_id) AND ((@IsNull_data = 1 AND [data] IS NULL) OR ([data] = @Original_data)) AND ((@IsNull_dadaDostavki = 1 AND [dadaDostavki] IS NULL) OR ([dadaDostavki] = @Original_dadaDostavki)) AND ((@IsNull_Punkt = 1 AND [Punkt] IS NULL) OR ([Punkt] = @Original_Punkt)) AND ((@IsNull_Klient = 1 AND [Klient] IS NULL) OR ([Klient] = @Original_Klient)) AND ((@IsNull_KodPoluhatil = 1 AND [KodPoluhatil] IS NULL) OR ([KodPoluhatil] = @Original_KodPoluhatil)) AND ((@IsNull_Status = 1 AND [Status] IS NULL) OR ([Status] = @Original_Status)))";
  6294. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6295. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6296. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_data", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "data", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6297. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_data", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "data", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6298. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_dadaDostavki", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dadaDostavki", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6299. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_dadaDostavki", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dadaDostavki", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6300. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Punkt", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Punkt", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6301. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Punkt", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Punkt", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6302. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Klient", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Klient", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6303. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Klient", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Klient", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6304. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_KodPoluhatil", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KodPoluhatil", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6305. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KodPoluhatil", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KodPoluhatil", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6306. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Status", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Status", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6307. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Status", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Status", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6308. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6309. this._adapter.InsertCommand.Connection = this.Connection;
  6310. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Zakaz] ([data], [dadaDostavki], [Punkt], [Klient], [KodPoluhatil], [Status]) VALUES (@data, @dadaDostavki, @Punkt, @Klient, @KodPoluhatil, @Status);
  6311. SELECT id, data, dadaDostavki, Punkt, Klient, KodPoluhatil, Status FROM Zakaz WHERE (id = SCOPE_IDENTITY())";
  6312. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6313. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@data", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "data", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6314. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dadaDostavki", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dadaDostavki", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6315. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Punkt", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Punkt", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6316. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Klient", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Klient", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6317. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KodPoluhatil", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KodPoluhatil", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6318. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Status", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Status", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6319. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6320. this._adapter.UpdateCommand.Connection = this.Connection;
  6321. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Zakaz] SET [data] = @data, [dadaDostavki] = @dadaDostavki, [Punkt] = @Punkt, [Klient] = @Klient, [KodPoluhatil] = @KodPoluhatil, [Status] = @Status WHERE (([id] = @Original_id) AND ((@IsNull_data = 1 AND [data] IS NULL) OR ([data] = @Original_data)) AND ((@IsNull_dadaDostavki = 1 AND [dadaDostavki] IS NULL) OR ([dadaDostavki] = @Original_dadaDostavki)) AND ((@IsNull_Punkt = 1 AND [Punkt] IS NULL) OR ([Punkt] = @Original_Punkt)) AND ((@IsNull_Klient = 1 AND [Klient] IS NULL) OR ([Klient] = @Original_Klient)) AND ((@IsNull_KodPoluhatil = 1 AND [KodPoluhatil] IS NULL) OR ([KodPoluhatil] = @Original_KodPoluhatil)) AND ((@IsNull_Status = 1 AND [Status] IS NULL) OR ([Status] = @Original_Status)));
  6322. SELECT id, data, dadaDostavki, Punkt, Klient, KodPoluhatil, Status FROM Zakaz WHERE (id = @id)";
  6323. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6324. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@data", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "data", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6325. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dadaDostavki", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dadaDostavki", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6326. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Punkt", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Punkt", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6327. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Klient", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Klient", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6328. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KodPoluhatil", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KodPoluhatil", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6329. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Status", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Status", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6330. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6331. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_data", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "data", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6332. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_data", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "data", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6333. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_dadaDostavki", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dadaDostavki", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6334. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_dadaDostavki", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dadaDostavki", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6335. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Punkt", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Punkt", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6336. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Punkt", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Punkt", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6337. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Klient", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Klient", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6338. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Klient", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Klient", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6339. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_KodPoluhatil", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KodPoluhatil", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6340. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KodPoluhatil", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KodPoluhatil", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6341. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Status", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Status", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6342. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Status", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Status", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6343. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6344. }
  6345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6347. private void InitConnection() {
  6348. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6349. this._connection.ConnectionString = global::WindowsFormsApp3.Properties.Settings.Default._12gkConnectionString;
  6350. }
  6351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6352. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6353. private void InitCommandCollection() {
  6354. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6355. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6356. this._commandCollection[0].Connection = this.Connection;
  6357. this._commandCollection[0].CommandText = "SELECT id, data, dadaDostavki, Punkt, Klient, KodPoluhatil, Status FROM dbo.Zakaz" +
  6358. "";
  6359. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6360. }
  6361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6363. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6364. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6365. public virtual int Fill(_12gkDataSet.ZakazDataTable dataTable) {
  6366. this.Adapter.SelectCommand = this.CommandCollection[0];
  6367. if ((this.ClearBeforeFill == true)) {
  6368. dataTable.Clear();
  6369. }
  6370. int returnValue = this.Adapter.Fill(dataTable);
  6371. return returnValue;
  6372. }
  6373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6375. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6376. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6377. public virtual _12gkDataSet.ZakazDataTable GetData() {
  6378. this.Adapter.SelectCommand = this.CommandCollection[0];
  6379. _12gkDataSet.ZakazDataTable dataTable = new _12gkDataSet.ZakazDataTable();
  6380. this.Adapter.Fill(dataTable);
  6381. return dataTable;
  6382. }
  6383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6385. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6386. public virtual int Update(_12gkDataSet.ZakazDataTable dataTable) {
  6387. return this.Adapter.Update(dataTable);
  6388. }
  6389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6391. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6392. public virtual int Update(_12gkDataSet dataSet) {
  6393. return this.Adapter.Update(dataSet, "Zakaz");
  6394. }
  6395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6397. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6398. public virtual int Update(global::System.Data.DataRow dataRow) {
  6399. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6400. dataRow});
  6401. }
  6402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6403. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6404. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6405. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6406. return this.Adapter.Update(dataRows);
  6407. }
  6408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6410. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6411. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6412. public virtual int Delete(int Original_id, global::System.Nullable<global::System.DateTime> Original_data, global::System.Nullable<global::System.DateTime> Original_dadaDostavki, global::System.Nullable<int> Original_Punkt, global::System.Nullable<int> Original_Klient, global::System.Nullable<int> Original_KodPoluhatil, global::System.Nullable<int> Original_Status) {
  6413. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  6414. if ((Original_data.HasValue == true)) {
  6415. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6416. this.Adapter.DeleteCommand.Parameters[2].Value = ((System.DateTime)(Original_data.Value));
  6417. }
  6418. else {
  6419. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6420. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6421. }
  6422. if ((Original_dadaDostavki.HasValue == true)) {
  6423. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  6424. this.Adapter.DeleteCommand.Parameters[4].Value = ((System.DateTime)(Original_dadaDostavki.Value));
  6425. }
  6426. else {
  6427. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  6428. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  6429. }
  6430. if ((Original_Punkt.HasValue == true)) {
  6431. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  6432. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_Punkt.Value));
  6433. }
  6434. else {
  6435. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  6436. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  6437. }
  6438. if ((Original_Klient.HasValue == true)) {
  6439. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  6440. this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_Klient.Value));
  6441. }
  6442. else {
  6443. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  6444. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  6445. }
  6446. if ((Original_KodPoluhatil.HasValue == true)) {
  6447. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  6448. this.Adapter.DeleteCommand.Parameters[10].Value = ((int)(Original_KodPoluhatil.Value));
  6449. }
  6450. else {
  6451. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  6452. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  6453. }
  6454. if ((Original_Status.HasValue == true)) {
  6455. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  6456. this.Adapter.DeleteCommand.Parameters[12].Value = ((int)(Original_Status.Value));
  6457. }
  6458. else {
  6459. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  6460. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  6461. }
  6462. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6463. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6464. != global::System.Data.ConnectionState.Open)) {
  6465. this.Adapter.DeleteCommand.Connection.Open();
  6466. }
  6467. try {
  6468. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6469. return returnValue;
  6470. }
  6471. finally {
  6472. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6473. this.Adapter.DeleteCommand.Connection.Close();
  6474. }
  6475. }
  6476. }
  6477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6479. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6480. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6481. public virtual int Insert(global::System.Nullable<global::System.DateTime> data, global::System.Nullable<global::System.DateTime> dadaDostavki, global::System.Nullable<int> Punkt, global::System.Nullable<int> Klient, global::System.Nullable<int> KodPoluhatil, global::System.Nullable<int> Status) {
  6482. if ((data.HasValue == true)) {
  6483. this.Adapter.InsertCommand.Parameters[0].Value = ((System.DateTime)(data.Value));
  6484. }
  6485. else {
  6486. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6487. }
  6488. if ((dadaDostavki.HasValue == true)) {
  6489. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(dadaDostavki.Value));
  6490. }
  6491. else {
  6492. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  6493. }
  6494. if ((Punkt.HasValue == true)) {
  6495. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Punkt.Value));
  6496. }
  6497. else {
  6498. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6499. }
  6500. if ((Klient.HasValue == true)) {
  6501. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Klient.Value));
  6502. }
  6503. else {
  6504. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  6505. }
  6506. if ((KodPoluhatil.HasValue == true)) {
  6507. this.Adapter.InsertCommand.Parameters[4].Value = ((int)(KodPoluhatil.Value));
  6508. }
  6509. else {
  6510. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  6511. }
  6512. if ((Status.HasValue == true)) {
  6513. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(Status.Value));
  6514. }
  6515. else {
  6516. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  6517. }
  6518. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6519. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6520. != global::System.Data.ConnectionState.Open)) {
  6521. this.Adapter.InsertCommand.Connection.Open();
  6522. }
  6523. try {
  6524. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6525. return returnValue;
  6526. }
  6527. finally {
  6528. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6529. this.Adapter.InsertCommand.Connection.Close();
  6530. }
  6531. }
  6532. }
  6533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6535. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6536. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6537. public virtual int Update(global::System.Nullable<global::System.DateTime> data, global::System.Nullable<global::System.DateTime> dadaDostavki, global::System.Nullable<int> Punkt, global::System.Nullable<int> Klient, global::System.Nullable<int> KodPoluhatil, global::System.Nullable<int> Status, int Original_id, global::System.Nullable<global::System.DateTime> Original_data, global::System.Nullable<global::System.DateTime> Original_dadaDostavki, global::System.Nullable<int> Original_Punkt, global::System.Nullable<int> Original_Klient, global::System.Nullable<int> Original_KodPoluhatil, global::System.Nullable<int> Original_Status, int id) {
  6538. if ((data.HasValue == true)) {
  6539. this.Adapter.UpdateCommand.Parameters[0].Value = ((System.DateTime)(data.Value));
  6540. }
  6541. else {
  6542. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6543. }
  6544. if ((dadaDostavki.HasValue == true)) {
  6545. this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(dadaDostavki.Value));
  6546. }
  6547. else {
  6548. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  6549. }
  6550. if ((Punkt.HasValue == true)) {
  6551. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Punkt.Value));
  6552. }
  6553. else {
  6554. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  6555. }
  6556. if ((Klient.HasValue == true)) {
  6557. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Klient.Value));
  6558. }
  6559. else {
  6560. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6561. }
  6562. if ((KodPoluhatil.HasValue == true)) {
  6563. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(KodPoluhatil.Value));
  6564. }
  6565. else {
  6566. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  6567. }
  6568. if ((Status.HasValue == true)) {
  6569. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Status.Value));
  6570. }
  6571. else {
  6572. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  6573. }
  6574. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_id));
  6575. if ((Original_data.HasValue == true)) {
  6576. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  6577. this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(Original_data.Value));
  6578. }
  6579. else {
  6580. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  6581. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  6582. }
  6583. if ((Original_dadaDostavki.HasValue == true)) {
  6584. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  6585. this.Adapter.UpdateCommand.Parameters[10].Value = ((System.DateTime)(Original_dadaDostavki.Value));
  6586. }
  6587. else {
  6588. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  6589. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  6590. }
  6591. if ((Original_Punkt.HasValue == true)) {
  6592. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  6593. this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_Punkt.Value));
  6594. }
  6595. else {
  6596. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  6597. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  6598. }
  6599. if ((Original_Klient.HasValue == true)) {
  6600. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  6601. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(Original_Klient.Value));
  6602. }
  6603. else {
  6604. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  6605. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  6606. }
  6607. if ((Original_KodPoluhatil.HasValue == true)) {
  6608. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  6609. this.Adapter.UpdateCommand.Parameters[16].Value = ((int)(Original_KodPoluhatil.Value));
  6610. }
  6611. else {
  6612. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  6613. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  6614. }
  6615. if ((Original_Status.HasValue == true)) {
  6616. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
  6617. this.Adapter.UpdateCommand.Parameters[18].Value = ((int)(Original_Status.Value));
  6618. }
  6619. else {
  6620. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
  6621. this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
  6622. }
  6623. this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(id));
  6624. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6625. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6626. != global::System.Data.ConnectionState.Open)) {
  6627. this.Adapter.UpdateCommand.Connection.Open();
  6628. }
  6629. try {
  6630. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6631. return returnValue;
  6632. }
  6633. finally {
  6634. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6635. this.Adapter.UpdateCommand.Connection.Close();
  6636. }
  6637. }
  6638. }
  6639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6641. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6642. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6643. public virtual int Update(global::System.Nullable<global::System.DateTime> data, global::System.Nullable<global::System.DateTime> dadaDostavki, global::System.Nullable<int> Punkt, global::System.Nullable<int> Klient, global::System.Nullable<int> KodPoluhatil, global::System.Nullable<int> Status, int Original_id, global::System.Nullable<global::System.DateTime> Original_data, global::System.Nullable<global::System.DateTime> Original_dadaDostavki, global::System.Nullable<int> Original_Punkt, global::System.Nullable<int> Original_Klient, global::System.Nullable<int> Original_KodPoluhatil, global::System.Nullable<int> Original_Status) {
  6644. return this.Update(data, dadaDostavki, Punkt, Klient, KodPoluhatil, Status, Original_id, Original_data, Original_dadaDostavki, Original_Punkt, Original_Klient, Original_KodPoluhatil, Original_Status, Original_id);
  6645. }
  6646. }
  6647. /// <summary>
  6648. ///Represents the connection and commands used to retrieve and save data.
  6649. ///</summary>
  6650. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6651. [global::System.ComponentModel.ToolboxItem(true)]
  6652. [global::System.ComponentModel.DataObjectAttribute(true)]
  6653. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6654. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6655. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6656. public partial class ZakazTovaraTableAdapter : global::System.ComponentModel.Component {
  6657. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6658. private global::System.Data.SqlClient.SqlConnection _connection;
  6659. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6660. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6661. private bool _clearBeforeFill;
  6662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6664. public ZakazTovaraTableAdapter() {
  6665. this.ClearBeforeFill = true;
  6666. }
  6667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6668. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6669. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6670. get {
  6671. if ((this._adapter == null)) {
  6672. this.InitAdapter();
  6673. }
  6674. return this._adapter;
  6675. }
  6676. }
  6677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6678. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6679. internal global::System.Data.SqlClient.SqlConnection Connection {
  6680. get {
  6681. if ((this._connection == null)) {
  6682. this.InitConnection();
  6683. }
  6684. return this._connection;
  6685. }
  6686. set {
  6687. this._connection = value;
  6688. if ((this.Adapter.InsertCommand != null)) {
  6689. this.Adapter.InsertCommand.Connection = value;
  6690. }
  6691. if ((this.Adapter.DeleteCommand != null)) {
  6692. this.Adapter.DeleteCommand.Connection = value;
  6693. }
  6694. if ((this.Adapter.UpdateCommand != null)) {
  6695. this.Adapter.UpdateCommand.Connection = value;
  6696. }
  6697. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6698. if ((this.CommandCollection[i] != null)) {
  6699. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6700. }
  6701. }
  6702. }
  6703. }
  6704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6706. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6707. get {
  6708. return this._transaction;
  6709. }
  6710. set {
  6711. this._transaction = value;
  6712. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6713. this.CommandCollection[i].Transaction = this._transaction;
  6714. }
  6715. if (((this.Adapter != null)
  6716. && (this.Adapter.DeleteCommand != null))) {
  6717. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6718. }
  6719. if (((this.Adapter != null)
  6720. && (this.Adapter.InsertCommand != null))) {
  6721. this.Adapter.InsertCommand.Transaction = this._transaction;
  6722. }
  6723. if (((this.Adapter != null)
  6724. && (this.Adapter.UpdateCommand != null))) {
  6725. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6726. }
  6727. }
  6728. }
  6729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6731. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6732. get {
  6733. if ((this._commandCollection == null)) {
  6734. this.InitCommandCollection();
  6735. }
  6736. return this._commandCollection;
  6737. }
  6738. }
  6739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6741. public bool ClearBeforeFill {
  6742. get {
  6743. return this._clearBeforeFill;
  6744. }
  6745. set {
  6746. this._clearBeforeFill = value;
  6747. }
  6748. }
  6749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6751. private void InitAdapter() {
  6752. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6753. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6754. tableMapping.SourceTable = "Table";
  6755. tableMapping.DataSetTable = "ZakazTovara";
  6756. tableMapping.ColumnMappings.Add("id", "id");
  6757. tableMapping.ColumnMappings.Add("nomerZakaz", "nomerZakaz");
  6758. tableMapping.ColumnMappings.Add("nameTovar", "nameTovar");
  6759. tableMapping.ColumnMappings.Add("kolichestvo", "kolichestvo");
  6760. tableMapping.ColumnMappings.Add("id_punkt", "id_punkt");
  6761. this._adapter.TableMappings.Add(tableMapping);
  6762. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6763. this._adapter.DeleteCommand.Connection = this.Connection;
  6764. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[ZakazTovara] WHERE (([id] = @Original_id) AND ((@IsNull_nomerZakaz = 1 AND [nomerZakaz] IS NULL) OR ([nomerZakaz] = @Original_nomerZakaz)) AND ((@IsNull_nameTovar = 1 AND [nameTovar] IS NULL) OR ([nameTovar] = @Original_nameTovar)) AND ((@IsNull_kolichestvo = 1 AND [kolichestvo] IS NULL) OR ([kolichestvo] = @Original_kolichestvo)) AND ((@IsNull_id_punkt = 1 AND [id_punkt] IS NULL) OR ([id_punkt] = @Original_id_punkt)))";
  6765. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6766. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6767. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_nomerZakaz", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nomerZakaz", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6768. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_nomerZakaz", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nomerZakaz", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6769. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_nameTovar", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nameTovar", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6770. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_nameTovar", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nameTovar", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6771. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_kolichestvo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kolichestvo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6772. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_kolichestvo", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kolichestvo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6773. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_id_punkt", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_punkt", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6774. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_punkt", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_punkt", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6775. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6776. this._adapter.InsertCommand.Connection = this.Connection;
  6777. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ZakazTovara] ([nomerZakaz], [nameTovar], [kolichestvo], [id_pu" +
  6778. "nkt]) VALUES (@nomerZakaz, @nameTovar, @kolichestvo, @id_punkt);\r\nSELECT id, nom" +
  6779. "erZakaz, nameTovar, kolichestvo, id_punkt FROM ZakazTovara WHERE (id = SCOPE_IDE" +
  6780. "NTITY())";
  6781. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6782. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@nomerZakaz", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nomerZakaz", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6783. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@nameTovar", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nameTovar", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6784. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@kolichestvo", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kolichestvo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6785. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_punkt", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_punkt", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6786. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6787. this._adapter.UpdateCommand.Connection = this.Connection;
  6788. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ZakazTovara] SET [nomerZakaz] = @nomerZakaz, [nameTovar] = @nameTovar, [kolichestvo] = @kolichestvo, [id_punkt] = @id_punkt WHERE (([id] = @Original_id) AND ((@IsNull_nomerZakaz = 1 AND [nomerZakaz] IS NULL) OR ([nomerZakaz] = @Original_nomerZakaz)) AND ((@IsNull_nameTovar = 1 AND [nameTovar] IS NULL) OR ([nameTovar] = @Original_nameTovar)) AND ((@IsNull_kolichestvo = 1 AND [kolichestvo] IS NULL) OR ([kolichestvo] = @Original_kolichestvo)) AND ((@IsNull_id_punkt = 1 AND [id_punkt] IS NULL) OR ([id_punkt] = @Original_id_punkt)));
  6789. SELECT id, nomerZakaz, nameTovar, kolichestvo, id_punkt FROM ZakazTovara WHERE (id = @id)";
  6790. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6791. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@nomerZakaz", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nomerZakaz", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6792. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@nameTovar", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nameTovar", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6793. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@kolichestvo", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kolichestvo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6794. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_punkt", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_punkt", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6795. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6796. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_nomerZakaz", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nomerZakaz", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6797. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_nomerZakaz", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nomerZakaz", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6798. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_nameTovar", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nameTovar", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6799. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_nameTovar", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nameTovar", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6800. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_kolichestvo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kolichestvo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6801. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_kolichestvo", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kolichestvo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6802. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_id_punkt", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_punkt", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6803. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_punkt", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_punkt", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6804. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6805. }
  6806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6808. private void InitConnection() {
  6809. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6810. this._connection.ConnectionString = global::WindowsFormsApp3.Properties.Settings.Default._12gkConnectionString;
  6811. }
  6812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6814. private void InitCommandCollection() {
  6815. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6816. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6817. this._commandCollection[0].Connection = this.Connection;
  6818. this._commandCollection[0].CommandText = "SELECT id, nomerZakaz, nameTovar, kolichestvo, id_punkt FROM dbo.ZakazTovara";
  6819. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6820. }
  6821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6823. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6824. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6825. public virtual int Fill(_12gkDataSet.ZakazTovaraDataTable dataTable) {
  6826. this.Adapter.SelectCommand = this.CommandCollection[0];
  6827. if ((this.ClearBeforeFill == true)) {
  6828. dataTable.Clear();
  6829. }
  6830. int returnValue = this.Adapter.Fill(dataTable);
  6831. return returnValue;
  6832. }
  6833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6835. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6836. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6837. public virtual _12gkDataSet.ZakazTovaraDataTable GetData() {
  6838. this.Adapter.SelectCommand = this.CommandCollection[0];
  6839. _12gkDataSet.ZakazTovaraDataTable dataTable = new _12gkDataSet.ZakazTovaraDataTable();
  6840. this.Adapter.Fill(dataTable);
  6841. return dataTable;
  6842. }
  6843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6845. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6846. public virtual int Update(_12gkDataSet.ZakazTovaraDataTable dataTable) {
  6847. return this.Adapter.Update(dataTable);
  6848. }
  6849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6851. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6852. public virtual int Update(_12gkDataSet dataSet) {
  6853. return this.Adapter.Update(dataSet, "ZakazTovara");
  6854. }
  6855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6857. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6858. public virtual int Update(global::System.Data.DataRow dataRow) {
  6859. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6860. dataRow});
  6861. }
  6862. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6863. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6864. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6865. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6866. return this.Adapter.Update(dataRows);
  6867. }
  6868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6870. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6871. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6872. public virtual int Delete(int Original_id, global::System.Nullable<int> Original_nomerZakaz, string Original_nameTovar, string Original_kolichestvo, global::System.Nullable<int> Original_id_punkt) {
  6873. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  6874. if ((Original_nomerZakaz.HasValue == true)) {
  6875. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6876. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_nomerZakaz.Value));
  6877. }
  6878. else {
  6879. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6880. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6881. }
  6882. if ((Original_nameTovar == null)) {
  6883. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  6884. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  6885. }
  6886. else {
  6887. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  6888. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_nameTovar));
  6889. }
  6890. if ((Original_kolichestvo == null)) {
  6891. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  6892. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  6893. }
  6894. else {
  6895. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  6896. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_kolichestvo));
  6897. }
  6898. if ((Original_id_punkt.HasValue == true)) {
  6899. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  6900. this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_id_punkt.Value));
  6901. }
  6902. else {
  6903. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  6904. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  6905. }
  6906. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6907. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6908. != global::System.Data.ConnectionState.Open)) {
  6909. this.Adapter.DeleteCommand.Connection.Open();
  6910. }
  6911. try {
  6912. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6913. return returnValue;
  6914. }
  6915. finally {
  6916. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6917. this.Adapter.DeleteCommand.Connection.Close();
  6918. }
  6919. }
  6920. }
  6921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6923. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6924. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6925. public virtual int Insert(global::System.Nullable<int> nomerZakaz, string nameTovar, string kolichestvo, global::System.Nullable<int> id_punkt) {
  6926. if ((nomerZakaz.HasValue == true)) {
  6927. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(nomerZakaz.Value));
  6928. }
  6929. else {
  6930. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6931. }
  6932. if ((nameTovar == null)) {
  6933. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  6934. }
  6935. else {
  6936. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(nameTovar));
  6937. }
  6938. if ((kolichestvo == null)) {
  6939. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6940. }
  6941. else {
  6942. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(kolichestvo));
  6943. }
  6944. if ((id_punkt.HasValue == true)) {
  6945. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(id_punkt.Value));
  6946. }
  6947. else {
  6948. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  6949. }
  6950. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6951. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6952. != global::System.Data.ConnectionState.Open)) {
  6953. this.Adapter.InsertCommand.Connection.Open();
  6954. }
  6955. try {
  6956. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6957. return returnValue;
  6958. }
  6959. finally {
  6960. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6961. this.Adapter.InsertCommand.Connection.Close();
  6962. }
  6963. }
  6964. }
  6965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6967. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6968. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6969. public virtual int Update(global::System.Nullable<int> nomerZakaz, string nameTovar, string kolichestvo, global::System.Nullable<int> id_punkt, int Original_id, global::System.Nullable<int> Original_nomerZakaz, string Original_nameTovar, string Original_kolichestvo, global::System.Nullable<int> Original_id_punkt, int id) {
  6970. if ((nomerZakaz.HasValue == true)) {
  6971. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(nomerZakaz.Value));
  6972. }
  6973. else {
  6974. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6975. }
  6976. if ((nameTovar == null)) {
  6977. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  6978. }
  6979. else {
  6980. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(nameTovar));
  6981. }
  6982. if ((kolichestvo == null)) {
  6983. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  6984. }
  6985. else {
  6986. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(kolichestvo));
  6987. }
  6988. if ((id_punkt.HasValue == true)) {
  6989. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(id_punkt.Value));
  6990. }
  6991. else {
  6992. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6993. }
  6994. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_id));
  6995. if ((Original_nomerZakaz.HasValue == true)) {
  6996. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  6997. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_nomerZakaz.Value));
  6998. }
  6999. else {
  7000. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  7001. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  7002. }
  7003. if ((Original_nameTovar == null)) {
  7004. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  7005. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  7006. }
  7007. else {
  7008. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  7009. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_nameTovar));
  7010. }
  7011. if ((Original_kolichestvo == null)) {
  7012. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  7013. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  7014. }
  7015. else {
  7016. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  7017. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_kolichestvo));
  7018. }
  7019. if ((Original_id_punkt.HasValue == true)) {
  7020. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  7021. this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_id_punkt.Value));
  7022. }
  7023. else {
  7024. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  7025. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  7026. }
  7027. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(id));
  7028. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7029. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7030. != global::System.Data.ConnectionState.Open)) {
  7031. this.Adapter.UpdateCommand.Connection.Open();
  7032. }
  7033. try {
  7034. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7035. return returnValue;
  7036. }
  7037. finally {
  7038. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7039. this.Adapter.UpdateCommand.Connection.Close();
  7040. }
  7041. }
  7042. }
  7043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7045. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7046. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7047. public virtual int Update(global::System.Nullable<int> nomerZakaz, string nameTovar, string kolichestvo, global::System.Nullable<int> id_punkt, int Original_id, global::System.Nullable<int> Original_nomerZakaz, string Original_nameTovar, string Original_kolichestvo, global::System.Nullable<int> Original_id_punkt) {
  7048. return this.Update(nomerZakaz, nameTovar, kolichestvo, id_punkt, Original_id, Original_nomerZakaz, Original_nameTovar, Original_kolichestvo, Original_id_punkt, Original_id);
  7049. }
  7050. }
  7051. /// <summary>
  7052. ///Represents the connection and commands used to retrieve and save data.
  7053. ///</summary>
  7054. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7055. [global::System.ComponentModel.ToolboxItem(true)]
  7056. [global::System.ComponentModel.DataObjectAttribute(true)]
  7057. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7058. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7059. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7060. public partial class ПунктВыдачиTableAdapter : global::System.ComponentModel.Component {
  7061. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7062. private global::System.Data.SqlClient.SqlConnection _connection;
  7063. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7064. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7065. private bool _clearBeforeFill;
  7066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7068. public ПунктВыдачиTableAdapter() {
  7069. this.ClearBeforeFill = true;
  7070. }
  7071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7073. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7074. get {
  7075. if ((this._adapter == null)) {
  7076. this.InitAdapter();
  7077. }
  7078. return this._adapter;
  7079. }
  7080. }
  7081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7083. internal global::System.Data.SqlClient.SqlConnection Connection {
  7084. get {
  7085. if ((this._connection == null)) {
  7086. this.InitConnection();
  7087. }
  7088. return this._connection;
  7089. }
  7090. set {
  7091. this._connection = value;
  7092. if ((this.Adapter.InsertCommand != null)) {
  7093. this.Adapter.InsertCommand.Connection = value;
  7094. }
  7095. if ((this.Adapter.DeleteCommand != null)) {
  7096. this.Adapter.DeleteCommand.Connection = value;
  7097. }
  7098. if ((this.Adapter.UpdateCommand != null)) {
  7099. this.Adapter.UpdateCommand.Connection = value;
  7100. }
  7101. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7102. if ((this.CommandCollection[i] != null)) {
  7103. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7104. }
  7105. }
  7106. }
  7107. }
  7108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7110. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7111. get {
  7112. return this._transaction;
  7113. }
  7114. set {
  7115. this._transaction = value;
  7116. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7117. this.CommandCollection[i].Transaction = this._transaction;
  7118. }
  7119. if (((this.Adapter != null)
  7120. && (this.Adapter.DeleteCommand != null))) {
  7121. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7122. }
  7123. if (((this.Adapter != null)
  7124. && (this.Adapter.InsertCommand != null))) {
  7125. this.Adapter.InsertCommand.Transaction = this._transaction;
  7126. }
  7127. if (((this.Adapter != null)
  7128. && (this.Adapter.UpdateCommand != null))) {
  7129. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7130. }
  7131. }
  7132. }
  7133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7135. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7136. get {
  7137. if ((this._commandCollection == null)) {
  7138. this.InitCommandCollection();
  7139. }
  7140. return this._commandCollection;
  7141. }
  7142. }
  7143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7145. public bool ClearBeforeFill {
  7146. get {
  7147. return this._clearBeforeFill;
  7148. }
  7149. set {
  7150. this._clearBeforeFill = value;
  7151. }
  7152. }
  7153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7155. private void InitAdapter() {
  7156. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7157. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7158. tableMapping.SourceTable = "Table";
  7159. tableMapping.DataSetTable = "ПунктВыдачи";
  7160. tableMapping.ColumnMappings.Add("id", "id");
  7161. tableMapping.ColumnMappings.Add("Идентификатор", "Идентификатор");
  7162. tableMapping.ColumnMappings.Add("Город", "Город");
  7163. tableMapping.ColumnMappings.Add("Улица", "Улица");
  7164. tableMapping.ColumnMappings.Add("Дом", "Дом");
  7165. this._adapter.TableMappings.Add(tableMapping);
  7166. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7167. this._adapter.DeleteCommand.Connection = this.Connection;
  7168. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ПунктВыдачи] WHERE (([id] = @Original_id) AND ([Идентификатор]" +
  7169. " = @Original_Идентификатор) AND ([Город] = @Original_Город) AND ([Улица] = @Orig" +
  7170. "inal_Улица) AND ((@IsNull_Дом = 1 AND [Дом] IS NULL) OR ([Дом] = @Original_Дом))" +
  7171. ")";
  7172. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7173. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7174. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Идентификатор", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Идентификатор", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7175. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Город", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Город", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7176. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Улица", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Улица", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7177. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Дом", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дом", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7178. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дом", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дом", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7179. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7180. this._adapter.InsertCommand.Connection = this.Connection;
  7181. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ПунктВыдачи] ([Идентификатор], [Город], [Улица], [Дом]) VALUES" +
  7182. " (@Идентификатор, @Город, @Улица, @Дом);\r\nSELECT id, Идентификатор, Город, Улица" +
  7183. ", Дом FROM ПунктВыдачи WHERE (id = SCOPE_IDENTITY())";
  7184. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7185. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Идентификатор", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Идентификатор", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7186. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Город", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Город", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7187. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Улица", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Улица", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7188. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дом", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дом", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7189. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7190. this._adapter.UpdateCommand.Connection = this.Connection;
  7191. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ПунктВыдачи] SET [Идентификатор] = @Идентификатор, [Город] = @Город, [Улица] = @Улица, [Дом] = @Дом WHERE (([id] = @Original_id) AND ([Идентификатор] = @Original_Идентификатор) AND ([Город] = @Original_Город) AND ([Улица] = @Original_Улица) AND ((@IsNull_Дом = 1 AND [Дом] IS NULL) OR ([Дом] = @Original_Дом)));
  7192. SELECT id, Идентификатор, Город, Улица, Дом FROM ПунктВыдачи WHERE (id = @id)";
  7193. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7194. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Идентификатор", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Идентификатор", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7195. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Город", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Город", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7196. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Улица", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Улица", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7197. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дом", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дом", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7198. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7199. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Идентификатор", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Идентификатор", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7200. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Город", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Город", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7201. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Улица", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Улица", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7202. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Дом", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дом", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7203. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дом", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дом", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7204. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7205. }
  7206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7208. private void InitConnection() {
  7209. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7210. this._connection.ConnectionString = global::WindowsFormsApp3.Properties.Settings.Default._12gkConnectionString;
  7211. }
  7212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7213. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7214. private void InitCommandCollection() {
  7215. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7216. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7217. this._commandCollection[0].Connection = this.Connection;
  7218. this._commandCollection[0].CommandText = "SELECT id, Идентификатор, Город, Улица, Дом FROM dbo.ПунктВыдачи";
  7219. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7220. }
  7221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7223. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7224. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7225. public virtual int Fill(_12gkDataSet.ПунктВыдачиDataTable dataTable) {
  7226. this.Adapter.SelectCommand = this.CommandCollection[0];
  7227. if ((this.ClearBeforeFill == true)) {
  7228. dataTable.Clear();
  7229. }
  7230. int returnValue = this.Adapter.Fill(dataTable);
  7231. return returnValue;
  7232. }
  7233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7235. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7236. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7237. public virtual _12gkDataSet.ПунктВыдачиDataTable GetData() {
  7238. this.Adapter.SelectCommand = this.CommandCollection[0];
  7239. _12gkDataSet.ПунктВыдачиDataTable dataTable = new _12gkDataSet.ПунктВыдачиDataTable();
  7240. this.Adapter.Fill(dataTable);
  7241. return dataTable;
  7242. }
  7243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7245. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7246. public virtual int Update(_12gkDataSet.ПунктВыдачиDataTable dataTable) {
  7247. return this.Adapter.Update(dataTable);
  7248. }
  7249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7251. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7252. public virtual int Update(_12gkDataSet dataSet) {
  7253. return this.Adapter.Update(dataSet, "ПунктВыдачи");
  7254. }
  7255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7257. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7258. public virtual int Update(global::System.Data.DataRow dataRow) {
  7259. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7260. dataRow});
  7261. }
  7262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7264. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7265. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7266. return this.Adapter.Update(dataRows);
  7267. }
  7268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7270. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7271. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7272. public virtual int Delete(int Original_id, int Original_Идентификатор, string Original_Город, string Original_Улица, global::System.Nullable<int> Original_Дом) {
  7273. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  7274. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_Идентификатор));
  7275. if ((Original_Город == null)) {
  7276. throw new global::System.ArgumentNullException("Original_Город");
  7277. }
  7278. else {
  7279. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Город));
  7280. }
  7281. if ((Original_Улица == null)) {
  7282. throw new global::System.ArgumentNullException("Original_Улица");
  7283. }
  7284. else {
  7285. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_Улица));
  7286. }
  7287. if ((Original_Дом.HasValue == true)) {
  7288. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  7289. this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_Дом.Value));
  7290. }
  7291. else {
  7292. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  7293. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  7294. }
  7295. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7296. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7297. != global::System.Data.ConnectionState.Open)) {
  7298. this.Adapter.DeleteCommand.Connection.Open();
  7299. }
  7300. try {
  7301. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7302. return returnValue;
  7303. }
  7304. finally {
  7305. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7306. this.Adapter.DeleteCommand.Connection.Close();
  7307. }
  7308. }
  7309. }
  7310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7312. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7313. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7314. public virtual int Insert(int Идентификатор, string Город, string Улица, global::System.Nullable<int> Дом) {
  7315. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Идентификатор));
  7316. if ((Город == null)) {
  7317. throw new global::System.ArgumentNullException("Город");
  7318. }
  7319. else {
  7320. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Город));
  7321. }
  7322. if ((Улица == null)) {
  7323. throw new global::System.ArgumentNullException("Улица");
  7324. }
  7325. else {
  7326. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Улица));
  7327. }
  7328. if ((Дом.HasValue == true)) {
  7329. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Дом.Value));
  7330. }
  7331. else {
  7332. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  7333. }
  7334. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7335. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7336. != global::System.Data.ConnectionState.Open)) {
  7337. this.Adapter.InsertCommand.Connection.Open();
  7338. }
  7339. try {
  7340. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7341. return returnValue;
  7342. }
  7343. finally {
  7344. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7345. this.Adapter.InsertCommand.Connection.Close();
  7346. }
  7347. }
  7348. }
  7349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7351. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7352. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7353. public virtual int Update(int Идентификатор, string Город, string Улица, global::System.Nullable<int> Дом, int Original_id, int Original_Идентификатор, string Original_Город, string Original_Улица, global::System.Nullable<int> Original_Дом, int id) {
  7354. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(Идентификатор));
  7355. if ((Город == null)) {
  7356. throw new global::System.ArgumentNullException("Город");
  7357. }
  7358. else {
  7359. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Город));
  7360. }
  7361. if ((Улица == null)) {
  7362. throw new global::System.ArgumentNullException("Улица");
  7363. }
  7364. else {
  7365. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Улица));
  7366. }
  7367. if ((Дом.HasValue == true)) {
  7368. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Дом.Value));
  7369. }
  7370. else {
  7371. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  7372. }
  7373. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_id));
  7374. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_Идентификатор));
  7375. if ((Original_Город == null)) {
  7376. throw new global::System.ArgumentNullException("Original_Город");
  7377. }
  7378. else {
  7379. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_Город));
  7380. }
  7381. if ((Original_Улица == null)) {
  7382. throw new global::System.ArgumentNullException("Original_Улица");
  7383. }
  7384. else {
  7385. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Улица));
  7386. }
  7387. if ((Original_Дом.HasValue == true)) {
  7388. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  7389. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_Дом.Value));
  7390. }
  7391. else {
  7392. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  7393. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  7394. }
  7395. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(id));
  7396. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7397. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7398. != global::System.Data.ConnectionState.Open)) {
  7399. this.Adapter.UpdateCommand.Connection.Open();
  7400. }
  7401. try {
  7402. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7403. return returnValue;
  7404. }
  7405. finally {
  7406. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7407. this.Adapter.UpdateCommand.Connection.Close();
  7408. }
  7409. }
  7410. }
  7411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7413. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7414. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7415. public virtual int Update(int Идентификатор, string Город, string Улица, global::System.Nullable<int> Дом, int Original_id, int Original_Идентификатор, string Original_Город, string Original_Улица, global::System.Nullable<int> Original_Дом) {
  7416. return this.Update(Идентификатор, Город, Улица, Дом, Original_id, Original_Идентификатор, Original_Город, Original_Улица, Original_Дом, Original_id);
  7417. }
  7418. }
  7419. /// <summary>
  7420. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  7421. ///</summary>
  7422. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7423. [global::System.ComponentModel.ToolboxItem(true)]
  7424. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  7425. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7426. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  7427. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  7428. private UpdateOrderOption _updateOrder;
  7429. private OrderTableAdapter _orderTableAdapter;
  7430. private OrdersProduktsTableAdapter _ordersProduktsTableAdapter;
  7431. private ProdyktTableAdapter _prodyktTableAdapter;
  7432. private RoleTableAdapter _roleTableAdapter;
  7433. private Users1TableAdapter _users1TableAdapter;
  7434. private ZakazTableAdapter _zakazTableAdapter;
  7435. private ZakazTovaraTableAdapter _zakazTovaraTableAdapter;
  7436. private ПунктВыдачиTableAdapter _пунктВыдачиTableAdapter;
  7437. private bool _backupDataSetBeforeUpdate;
  7438. private global::System.Data.IDbConnection _connection;
  7439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7441. public UpdateOrderOption UpdateOrder {
  7442. get {
  7443. return this._updateOrder;
  7444. }
  7445. set {
  7446. this._updateOrder = value;
  7447. }
  7448. }
  7449. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7450. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7451. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  7452. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  7453. "a", "System.Drawing.Design.UITypeEditor")]
  7454. public OrderTableAdapter OrderTableAdapter {
  7455. get {
  7456. return this._orderTableAdapter;
  7457. }
  7458. set {
  7459. this._orderTableAdapter = value;
  7460. }
  7461. }
  7462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7464. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  7465. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  7466. "a", "System.Drawing.Design.UITypeEditor")]
  7467. public OrdersProduktsTableAdapter OrdersProduktsTableAdapter {
  7468. get {
  7469. return this._ordersProduktsTableAdapter;
  7470. }
  7471. set {
  7472. this._ordersProduktsTableAdapter = value;
  7473. }
  7474. }
  7475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7477. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  7478. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  7479. "a", "System.Drawing.Design.UITypeEditor")]
  7480. public ProdyktTableAdapter ProdyktTableAdapter {
  7481. get {
  7482. return this._prodyktTableAdapter;
  7483. }
  7484. set {
  7485. this._prodyktTableAdapter = value;
  7486. }
  7487. }
  7488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7490. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  7491. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  7492. "a", "System.Drawing.Design.UITypeEditor")]
  7493. public RoleTableAdapter RoleTableAdapter {
  7494. get {
  7495. return this._roleTableAdapter;
  7496. }
  7497. set {
  7498. this._roleTableAdapter = value;
  7499. }
  7500. }
  7501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7503. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  7504. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  7505. "a", "System.Drawing.Design.UITypeEditor")]
  7506. public Users1TableAdapter Users1TableAdapter {
  7507. get {
  7508. return this._users1TableAdapter;
  7509. }
  7510. set {
  7511. this._users1TableAdapter = value;
  7512. }
  7513. }
  7514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7516. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  7517. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  7518. "a", "System.Drawing.Design.UITypeEditor")]
  7519. public ZakazTableAdapter ZakazTableAdapter {
  7520. get {
  7521. return this._zakazTableAdapter;
  7522. }
  7523. set {
  7524. this._zakazTableAdapter = value;
  7525. }
  7526. }
  7527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7529. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  7530. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  7531. "a", "System.Drawing.Design.UITypeEditor")]
  7532. public ZakazTovaraTableAdapter ZakazTovaraTableAdapter {
  7533. get {
  7534. return this._zakazTovaraTableAdapter;
  7535. }
  7536. set {
  7537. this._zakazTovaraTableAdapter = value;
  7538. }
  7539. }
  7540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7542. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  7543. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  7544. "a", "System.Drawing.Design.UITypeEditor")]
  7545. public ПунктВыдачиTableAdapter ПунктВыдачиTableAdapter {
  7546. get {
  7547. return this._пунктВыдачиTableAdapter;
  7548. }
  7549. set {
  7550. this._пунктВыдачиTableAdapter = value;
  7551. }
  7552. }
  7553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7555. public bool BackupDataSetBeforeUpdate {
  7556. get {
  7557. return this._backupDataSetBeforeUpdate;
  7558. }
  7559. set {
  7560. this._backupDataSetBeforeUpdate = value;
  7561. }
  7562. }
  7563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7565. [global::System.ComponentModel.Browsable(false)]
  7566. public global::System.Data.IDbConnection Connection {
  7567. get {
  7568. if ((this._connection != null)) {
  7569. return this._connection;
  7570. }
  7571. if (((this._orderTableAdapter != null)
  7572. && (this._orderTableAdapter.Connection != null))) {
  7573. return this._orderTableAdapter.Connection;
  7574. }
  7575. if (((this._ordersProduktsTableAdapter != null)
  7576. && (this._ordersProduktsTableAdapter.Connection != null))) {
  7577. return this._ordersProduktsTableAdapter.Connection;
  7578. }
  7579. if (((this._prodyktTableAdapter != null)
  7580. && (this._prodyktTableAdapter.Connection != null))) {
  7581. return this._prodyktTableAdapter.Connection;
  7582. }
  7583. if (((this._roleTableAdapter != null)
  7584. && (this._roleTableAdapter.Connection != null))) {
  7585. return this._roleTableAdapter.Connection;
  7586. }
  7587. if (((this._users1TableAdapter != null)
  7588. && (this._users1TableAdapter.Connection != null))) {
  7589. return this._users1TableAdapter.Connection;
  7590. }
  7591. if (((this._zakazTableAdapter != null)
  7592. && (this._zakazTableAdapter.Connection != null))) {
  7593. return this._zakazTableAdapter.Connection;
  7594. }
  7595. if (((this._zakazTovaraTableAdapter != null)
  7596. && (this._zakazTovaraTableAdapter.Connection != null))) {
  7597. return this._zakazTovaraTableAdapter.Connection;
  7598. }
  7599. if (((this._пунктВыдачиTableAdapter != null)
  7600. && (this._пунктВыдачиTableAdapter.Connection != null))) {
  7601. return this._пунктВыдачиTableAdapter.Connection;
  7602. }
  7603. return null;
  7604. }
  7605. set {
  7606. this._connection = value;
  7607. }
  7608. }
  7609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7611. [global::System.ComponentModel.Browsable(false)]
  7612. public int TableAdapterInstanceCount {
  7613. get {
  7614. int count = 0;
  7615. if ((this._orderTableAdapter != null)) {
  7616. count = (count + 1);
  7617. }
  7618. if ((this._ordersProduktsTableAdapter != null)) {
  7619. count = (count + 1);
  7620. }
  7621. if ((this._prodyktTableAdapter != null)) {
  7622. count = (count + 1);
  7623. }
  7624. if ((this._roleTableAdapter != null)) {
  7625. count = (count + 1);
  7626. }
  7627. if ((this._users1TableAdapter != null)) {
  7628. count = (count + 1);
  7629. }
  7630. if ((this._zakazTableAdapter != null)) {
  7631. count = (count + 1);
  7632. }
  7633. if ((this._zakazTovaraTableAdapter != null)) {
  7634. count = (count + 1);
  7635. }
  7636. if ((this._пунктВыдачиTableAdapter != null)) {
  7637. count = (count + 1);
  7638. }
  7639. return count;
  7640. }
  7641. }
  7642. /// <summary>
  7643. ///Update rows in top-down order.
  7644. ///</summary>
  7645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7647. private int UpdateUpdatedRows(_12gkDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  7648. int result = 0;
  7649. if ((this._orderTableAdapter != null)) {
  7650. global::System.Data.DataRow[] updatedRows = dataSet.Order.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  7651. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  7652. if (((updatedRows != null)
  7653. && (0 < updatedRows.Length))) {
  7654. result = (result + this._orderTableAdapter.Update(updatedRows));
  7655. allChangedRows.AddRange(updatedRows);
  7656. }
  7657. }
  7658. if ((this._ordersProduktsTableAdapter != null)) {
  7659. global::System.Data.DataRow[] updatedRows = dataSet.OrdersProdukts.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  7660. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  7661. if (((updatedRows != null)
  7662. && (0 < updatedRows.Length))) {
  7663. result = (result + this._ordersProduktsTableAdapter.Update(updatedRows));
  7664. allChangedRows.AddRange(updatedRows);
  7665. }
  7666. }
  7667. if ((this._users1TableAdapter != null)) {
  7668. global::System.Data.DataRow[] updatedRows = dataSet.Users1.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  7669. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  7670. if (((updatedRows != null)
  7671. && (0 < updatedRows.Length))) {
  7672. result = (result + this._users1TableAdapter.Update(updatedRows));
  7673. allChangedRows.AddRange(updatedRows);
  7674. }
  7675. }
  7676. if ((this._zakazTableAdapter != null)) {
  7677. global::System.Data.DataRow[] updatedRows = dataSet.Zakaz.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  7678. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  7679. if (((updatedRows != null)
  7680. && (0 < updatedRows.Length))) {
  7681. result = (result + this._zakazTableAdapter.Update(updatedRows));
  7682. allChangedRows.AddRange(updatedRows);
  7683. }
  7684. }
  7685. if ((this._пунктВыдачиTableAdapter != null)) {
  7686. global::System.Data.DataRow[] updatedRows = dataSet.ПунктВыдачи.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  7687. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  7688. if (((updatedRows != null)
  7689. && (0 < updatedRows.Length))) {
  7690. result = (result + this._пунктВыдачиTableAdapter.Update(updatedRows));
  7691. allChangedRows.AddRange(updatedRows);
  7692. }
  7693. }
  7694. if ((this._prodyktTableAdapter != null)) {
  7695. global::System.Data.DataRow[] updatedRows = dataSet.Prodykt.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  7696. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  7697. if (((updatedRows != null)
  7698. && (0 < updatedRows.Length))) {
  7699. result = (result + this._prodyktTableAdapter.Update(updatedRows));
  7700. allChangedRows.AddRange(updatedRows);
  7701. }
  7702. }
  7703. if ((this._roleTableAdapter != null)) {
  7704. global::System.Data.DataRow[] updatedRows = dataSet.Role.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  7705. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  7706. if (((updatedRows != null)
  7707. && (0 < updatedRows.Length))) {
  7708. result = (result + this._roleTableAdapter.Update(updatedRows));
  7709. allChangedRows.AddRange(updatedRows);
  7710. }
  7711. }
  7712. if ((this._zakazTovaraTableAdapter != null)) {
  7713. global::System.Data.DataRow[] updatedRows = dataSet.ZakazTovara.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  7714. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  7715. if (((updatedRows != null)
  7716. && (0 < updatedRows.Length))) {
  7717. result = (result + this._zakazTovaraTableAdapter.Update(updatedRows));
  7718. allChangedRows.AddRange(updatedRows);
  7719. }
  7720. }
  7721. return result;
  7722. }
  7723. /// <summary>
  7724. ///Insert rows in top-down order.
  7725. ///</summary>
  7726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7728. private int UpdateInsertedRows(_12gkDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  7729. int result = 0;
  7730. if ((this._orderTableAdapter != null)) {
  7731. global::System.Data.DataRow[] addedRows = dataSet.Order.Select(null, null, global::System.Data.DataViewRowState.Added);
  7732. if (((addedRows != null)
  7733. && (0 < addedRows.Length))) {
  7734. result = (result + this._orderTableAdapter.Update(addedRows));
  7735. allAddedRows.AddRange(addedRows);
  7736. }
  7737. }
  7738. if ((this._ordersProduktsTableAdapter != null)) {
  7739. global::System.Data.DataRow[] addedRows = dataSet.OrdersProdukts.Select(null, null, global::System.Data.DataViewRowState.Added);
  7740. if (((addedRows != null)
  7741. && (0 < addedRows.Length))) {
  7742. result = (result + this._ordersProduktsTableAdapter.Update(addedRows));
  7743. allAddedRows.AddRange(addedRows);
  7744. }
  7745. }
  7746. if ((this._users1TableAdapter != null)) {
  7747. global::System.Data.DataRow[] addedRows = dataSet.Users1.Select(null, null, global::System.Data.DataViewRowState.Added);
  7748. if (((addedRows != null)
  7749. && (0 < addedRows.Length))) {
  7750. result = (result + this._users1TableAdapter.Update(addedRows));
  7751. allAddedRows.AddRange(addedRows);
  7752. }
  7753. }
  7754. if ((this._zakazTableAdapter != null)) {
  7755. global::System.Data.DataRow[] addedRows = dataSet.Zakaz.Select(null, null, global::System.Data.DataViewRowState.Added);
  7756. if (((addedRows != null)
  7757. && (0 < addedRows.Length))) {
  7758. result = (result + this._zakazTableAdapter.Update(addedRows));
  7759. allAddedRows.AddRange(addedRows);
  7760. }
  7761. }
  7762. if ((this._пунктВыдачиTableAdapter != null)) {
  7763. global::System.Data.DataRow[] addedRows = dataSet.ПунктВыдачи.Select(null, null, global::System.Data.DataViewRowState.Added);
  7764. if (((addedRows != null)
  7765. && (0 < addedRows.Length))) {
  7766. result = (result + this._пунктВыдачиTableAdapter.Update(addedRows));
  7767. allAddedRows.AddRange(addedRows);
  7768. }
  7769. }
  7770. if ((this._prodyktTableAdapter != null)) {
  7771. global::System.Data.DataRow[] addedRows = dataSet.Prodykt.Select(null, null, global::System.Data.DataViewRowState.Added);
  7772. if (((addedRows != null)
  7773. && (0 < addedRows.Length))) {
  7774. result = (result + this._prodyktTableAdapter.Update(addedRows));
  7775. allAddedRows.AddRange(addedRows);
  7776. }
  7777. }
  7778. if ((this._roleTableAdapter != null)) {
  7779. global::System.Data.DataRow[] addedRows = dataSet.Role.Select(null, null, global::System.Data.DataViewRowState.Added);
  7780. if (((addedRows != null)
  7781. && (0 < addedRows.Length))) {
  7782. result = (result + this._roleTableAdapter.Update(addedRows));
  7783. allAddedRows.AddRange(addedRows);
  7784. }
  7785. }
  7786. if ((this._zakazTovaraTableAdapter != null)) {
  7787. global::System.Data.DataRow[] addedRows = dataSet.ZakazTovara.Select(null, null, global::System.Data.DataViewRowState.Added);
  7788. if (((addedRows != null)
  7789. && (0 < addedRows.Length))) {
  7790. result = (result + this._zakazTovaraTableAdapter.Update(addedRows));
  7791. allAddedRows.AddRange(addedRows);
  7792. }
  7793. }
  7794. return result;
  7795. }
  7796. /// <summary>
  7797. ///Delete rows in bottom-up order.
  7798. ///</summary>
  7799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7801. private int UpdateDeletedRows(_12gkDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  7802. int result = 0;
  7803. if ((this._zakazTovaraTableAdapter != null)) {
  7804. global::System.Data.DataRow[] deletedRows = dataSet.ZakazTovara.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  7805. if (((deletedRows != null)
  7806. && (0 < deletedRows.Length))) {
  7807. result = (result + this._zakazTovaraTableAdapter.Update(deletedRows));
  7808. allChangedRows.AddRange(deletedRows);
  7809. }
  7810. }
  7811. if ((this._roleTableAdapter != null)) {
  7812. global::System.Data.DataRow[] deletedRows = dataSet.Role.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  7813. if (((deletedRows != null)
  7814. && (0 < deletedRows.Length))) {
  7815. result = (result + this._roleTableAdapter.Update(deletedRows));
  7816. allChangedRows.AddRange(deletedRows);
  7817. }
  7818. }
  7819. if ((this._prodyktTableAdapter != null)) {
  7820. global::System.Data.DataRow[] deletedRows = dataSet.Prodykt.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  7821. if (((deletedRows != null)
  7822. && (0 < deletedRows.Length))) {
  7823. result = (result + this._prodyktTableAdapter.Update(deletedRows));
  7824. allChangedRows.AddRange(deletedRows);
  7825. }
  7826. }
  7827. if ((this._пунктВыдачиTableAdapter != null)) {
  7828. global::System.Data.DataRow[] deletedRows = dataSet.ПунктВыдачи.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  7829. if (((deletedRows != null)
  7830. && (0 < deletedRows.Length))) {
  7831. result = (result + this._пунктВыдачиTableAdapter.Update(deletedRows));
  7832. allChangedRows.AddRange(deletedRows);
  7833. }
  7834. }
  7835. if ((this._zakazTableAdapter != null)) {
  7836. global::System.Data.DataRow[] deletedRows = dataSet.Zakaz.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  7837. if (((deletedRows != null)
  7838. && (0 < deletedRows.Length))) {
  7839. result = (result + this._zakazTableAdapter.Update(deletedRows));
  7840. allChangedRows.AddRange(deletedRows);
  7841. }
  7842. }
  7843. if ((this._users1TableAdapter != null)) {
  7844. global::System.Data.DataRow[] deletedRows = dataSet.Users1.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  7845. if (((deletedRows != null)
  7846. && (0 < deletedRows.Length))) {
  7847. result = (result + this._users1TableAdapter.Update(deletedRows));
  7848. allChangedRows.AddRange(deletedRows);
  7849. }
  7850. }
  7851. if ((this._ordersProduktsTableAdapter != null)) {
  7852. global::System.Data.DataRow[] deletedRows = dataSet.OrdersProdukts.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  7853. if (((deletedRows != null)
  7854. && (0 < deletedRows.Length))) {
  7855. result = (result + this._ordersProduktsTableAdapter.Update(deletedRows));
  7856. allChangedRows.AddRange(deletedRows);
  7857. }
  7858. }
  7859. if ((this._orderTableAdapter != null)) {
  7860. global::System.Data.DataRow[] deletedRows = dataSet.Order.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  7861. if (((deletedRows != null)
  7862. && (0 < deletedRows.Length))) {
  7863. result = (result + this._orderTableAdapter.Update(deletedRows));
  7864. allChangedRows.AddRange(deletedRows);
  7865. }
  7866. }
  7867. return result;
  7868. }
  7869. /// <summary>
  7870. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  7871. ///</summary>
  7872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7874. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  7875. if (((updatedRows == null)
  7876. || (updatedRows.Length < 1))) {
  7877. return updatedRows;
  7878. }
  7879. if (((allAddedRows == null)
  7880. || (allAddedRows.Count < 1))) {
  7881. return updatedRows;
  7882. }
  7883. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  7884. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  7885. global::System.Data.DataRow row = updatedRows[i];
  7886. if ((allAddedRows.Contains(row) == false)) {
  7887. realUpdatedRows.Add(row);
  7888. }
  7889. }
  7890. return realUpdatedRows.ToArray();
  7891. }
  7892. /// <summary>
  7893. ///Update all changes to the dataset.
  7894. ///</summary>
  7895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7897. public virtual int UpdateAll(_12gkDataSet dataSet) {
  7898. if ((dataSet == null)) {
  7899. throw new global::System.ArgumentNullException("dataSet");
  7900. }
  7901. if ((dataSet.HasChanges() == false)) {
  7902. return 0;
  7903. }
  7904. if (((this._orderTableAdapter != null)
  7905. && (this.MatchTableAdapterConnection(this._orderTableAdapter.Connection) == false))) {
  7906. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  7907. "r, должны использовать одинаковую строку подключения.");
  7908. }
  7909. if (((this._ordersProduktsTableAdapter != null)
  7910. && (this.MatchTableAdapterConnection(this._ordersProduktsTableAdapter.Connection) == false))) {
  7911. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  7912. "r, должны использовать одинаковую строку подключения.");
  7913. }
  7914. if (((this._prodyktTableAdapter != null)
  7915. && (this.MatchTableAdapterConnection(this._prodyktTableAdapter.Connection) == false))) {
  7916. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  7917. "r, должны использовать одинаковую строку подключения.");
  7918. }
  7919. if (((this._roleTableAdapter != null)
  7920. && (this.MatchTableAdapterConnection(this._roleTableAdapter.Connection) == false))) {
  7921. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  7922. "r, должны использовать одинаковую строку подключения.");
  7923. }
  7924. if (((this._users1TableAdapter != null)
  7925. && (this.MatchTableAdapterConnection(this._users1TableAdapter.Connection) == false))) {
  7926. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  7927. "r, должны использовать одинаковую строку подключения.");
  7928. }
  7929. if (((this._zakazTableAdapter != null)
  7930. && (this.MatchTableAdapterConnection(this._zakazTableAdapter.Connection) == false))) {
  7931. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  7932. "r, должны использовать одинаковую строку подключения.");
  7933. }
  7934. if (((this._zakazTovaraTableAdapter != null)
  7935. && (this.MatchTableAdapterConnection(this._zakazTovaraTableAdapter.Connection) == false))) {
  7936. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  7937. "r, должны использовать одинаковую строку подключения.");
  7938. }
  7939. if (((this._пунктВыдачиTableAdapter != null)
  7940. && (this.MatchTableAdapterConnection(this._пунктВыдачиTableAdapter.Connection) == false))) {
  7941. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  7942. "r, должны использовать одинаковую строку подключения.");
  7943. }
  7944. global::System.Data.IDbConnection workConnection = this.Connection;
  7945. if ((workConnection == null)) {
  7946. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  7947. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  7948. }
  7949. bool workConnOpened = false;
  7950. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  7951. == global::System.Data.ConnectionState.Broken)) {
  7952. workConnection.Close();
  7953. }
  7954. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  7955. workConnection.Open();
  7956. workConnOpened = true;
  7957. }
  7958. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  7959. if ((workTransaction == null)) {
  7960. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  7961. "и или текущее состояние не позволяет начать транзакцию.");
  7962. }
  7963. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  7964. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  7965. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  7966. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  7967. int result = 0;
  7968. global::System.Data.DataSet backupDataSet = null;
  7969. if (this.BackupDataSetBeforeUpdate) {
  7970. backupDataSet = new global::System.Data.DataSet();
  7971. backupDataSet.Merge(dataSet);
  7972. }
  7973. try {
  7974. // ---- Prepare for update -----------
  7975. //
  7976. if ((this._orderTableAdapter != null)) {
  7977. revertConnections.Add(this._orderTableAdapter, this._orderTableAdapter.Connection);
  7978. this._orderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  7979. this._orderTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  7980. if (this._orderTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  7981. this._orderTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  7982. adaptersWithAcceptChangesDuringUpdate.Add(this._orderTableAdapter.Adapter);
  7983. }
  7984. }
  7985. if ((this._ordersProduktsTableAdapter != null)) {
  7986. revertConnections.Add(this._ordersProduktsTableAdapter, this._ordersProduktsTableAdapter.Connection);
  7987. this._ordersProduktsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  7988. this._ordersProduktsTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  7989. if (this._ordersProduktsTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  7990. this._ordersProduktsTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  7991. adaptersWithAcceptChangesDuringUpdate.Add(this._ordersProduktsTableAdapter.Adapter);
  7992. }
  7993. }
  7994. if ((this._prodyktTableAdapter != null)) {
  7995. revertConnections.Add(this._prodyktTableAdapter, this._prodyktTableAdapter.Connection);
  7996. this._prodyktTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  7997. this._prodyktTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  7998. if (this._prodyktTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  7999. this._prodyktTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  8000. adaptersWithAcceptChangesDuringUpdate.Add(this._prodyktTableAdapter.Adapter);
  8001. }
  8002. }
  8003. if ((this._roleTableAdapter != null)) {
  8004. revertConnections.Add(this._roleTableAdapter, this._roleTableAdapter.Connection);
  8005. this._roleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  8006. this._roleTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  8007. if (this._roleTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  8008. this._roleTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  8009. adaptersWithAcceptChangesDuringUpdate.Add(this._roleTableAdapter.Adapter);
  8010. }
  8011. }
  8012. if ((this._users1TableAdapter != null)) {
  8013. revertConnections.Add(this._users1TableAdapter, this._users1TableAdapter.Connection);
  8014. this._users1TableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  8015. this._users1TableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  8016. if (this._users1TableAdapter.Adapter.AcceptChangesDuringUpdate) {
  8017. this._users1TableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  8018. adaptersWithAcceptChangesDuringUpdate.Add(this._users1TableAdapter.Adapter);
  8019. }
  8020. }
  8021. if ((this._zakazTableAdapter != null)) {
  8022. revertConnections.Add(this._zakazTableAdapter, this._zakazTableAdapter.Connection);
  8023. this._zakazTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  8024. this._zakazTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  8025. if (this._zakazTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  8026. this._zakazTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  8027. adaptersWithAcceptChangesDuringUpdate.Add(this._zakazTableAdapter.Adapter);
  8028. }
  8029. }
  8030. if ((this._zakazTovaraTableAdapter != null)) {
  8031. revertConnections.Add(this._zakazTovaraTableAdapter, this._zakazTovaraTableAdapter.Connection);
  8032. this._zakazTovaraTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  8033. this._zakazTovaraTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  8034. if (this._zakazTovaraTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  8035. this._zakazTovaraTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  8036. adaptersWithAcceptChangesDuringUpdate.Add(this._zakazTovaraTableAdapter.Adapter);
  8037. }
  8038. }
  8039. if ((this._пунктВыдачиTableAdapter != null)) {
  8040. revertConnections.Add(this._пунктВыдачиTableAdapter, this._пунктВыдачиTableAdapter.Connection);
  8041. this._пунктВыдачиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  8042. this._пунктВыдачиTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  8043. if (this._пунктВыдачиTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  8044. this._пунктВыдачиTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  8045. adaptersWithAcceptChangesDuringUpdate.Add(this._пунктВыдачиTableAdapter.Adapter);
  8046. }
  8047. }
  8048. //
  8049. //---- Perform updates -----------
  8050. //
  8051. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  8052. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  8053. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  8054. }
  8055. else {
  8056. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  8057. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  8058. }
  8059. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  8060. //
  8061. //---- Commit updates -----------
  8062. //
  8063. workTransaction.Commit();
  8064. if ((0 < allAddedRows.Count)) {
  8065. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  8066. allAddedRows.CopyTo(rows);
  8067. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  8068. global::System.Data.DataRow row = rows[i];
  8069. row.AcceptChanges();
  8070. }
  8071. }
  8072. if ((0 < allChangedRows.Count)) {
  8073. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  8074. allChangedRows.CopyTo(rows);
  8075. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  8076. global::System.Data.DataRow row = rows[i];
  8077. row.AcceptChanges();
  8078. }
  8079. }
  8080. }
  8081. catch (global::System.Exception ex) {
  8082. workTransaction.Rollback();
  8083. // ---- Restore the dataset -----------
  8084. if (this.BackupDataSetBeforeUpdate) {
  8085. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  8086. dataSet.Clear();
  8087. dataSet.Merge(backupDataSet);
  8088. }
  8089. else {
  8090. if ((0 < allAddedRows.Count)) {
  8091. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  8092. allAddedRows.CopyTo(rows);
  8093. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  8094. global::System.Data.DataRow row = rows[i];
  8095. row.AcceptChanges();
  8096. row.SetAdded();
  8097. }
  8098. }
  8099. }
  8100. throw ex;
  8101. }
  8102. finally {
  8103. if (workConnOpened) {
  8104. workConnection.Close();
  8105. }
  8106. if ((this._orderTableAdapter != null)) {
  8107. this._orderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._orderTableAdapter]));
  8108. this._orderTableAdapter.Transaction = null;
  8109. }
  8110. if ((this._ordersProduktsTableAdapter != null)) {
  8111. this._ordersProduktsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._ordersProduktsTableAdapter]));
  8112. this._ordersProduktsTableAdapter.Transaction = null;
  8113. }
  8114. if ((this._prodyktTableAdapter != null)) {
  8115. this._prodyktTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._prodyktTableAdapter]));
  8116. this._prodyktTableAdapter.Transaction = null;
  8117. }
  8118. if ((this._roleTableAdapter != null)) {
  8119. this._roleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._roleTableAdapter]));
  8120. this._roleTableAdapter.Transaction = null;
  8121. }
  8122. if ((this._users1TableAdapter != null)) {
  8123. this._users1TableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._users1TableAdapter]));
  8124. this._users1TableAdapter.Transaction = null;
  8125. }
  8126. if ((this._zakazTableAdapter != null)) {
  8127. this._zakazTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._zakazTableAdapter]));
  8128. this._zakazTableAdapter.Transaction = null;
  8129. }
  8130. if ((this._zakazTovaraTableAdapter != null)) {
  8131. this._zakazTovaraTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._zakazTovaraTableAdapter]));
  8132. this._zakazTovaraTableAdapter.Transaction = null;
  8133. }
  8134. if ((this._пунктВыдачиTableAdapter != null)) {
  8135. this._пунктВыдачиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._пунктВыдачиTableAdapter]));
  8136. this._пунктВыдачиTableAdapter.Transaction = null;
  8137. }
  8138. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  8139. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  8140. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  8141. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  8142. global::System.Data.Common.DataAdapter adapter = adapters[i];
  8143. adapter.AcceptChangesDuringUpdate = true;
  8144. }
  8145. }
  8146. }
  8147. return result;
  8148. }
  8149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8151. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  8152. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  8153. }
  8154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8156. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  8157. if ((this._connection != null)) {
  8158. return true;
  8159. }
  8160. if (((this.Connection == null)
  8161. || (inputConnection == null))) {
  8162. return true;
  8163. }
  8164. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  8165. return true;
  8166. }
  8167. return false;
  8168. }
  8169. /// <summary>
  8170. ///Update Order Option
  8171. ///</summary>
  8172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8173. public enum UpdateOrderOption {
  8174. InsertUpdateDelete = 0,
  8175. UpdateInsertDelete = 1,
  8176. }
  8177. /// <summary>
  8178. ///Used to sort self-referenced table's rows
  8179. ///</summary>
  8180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8181. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  8182. private global::System.Data.DataRelation _relation;
  8183. private int _childFirst;
  8184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8186. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  8187. this._relation = relation;
  8188. if (childFirst) {
  8189. this._childFirst = -1;
  8190. }
  8191. else {
  8192. this._childFirst = 1;
  8193. }
  8194. }
  8195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8197. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  8198. global::System.Diagnostics.Debug.Assert((row != null));
  8199. global::System.Data.DataRow root = row;
  8200. distance = 0;
  8201. 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>();
  8202. traversedRows[row] = row;
  8203. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  8204. for (
  8205. ; ((parent != null)
  8206. && (traversedRows.ContainsKey(parent) == false));
  8207. ) {
  8208. distance = (distance + 1);
  8209. root = parent;
  8210. traversedRows[parent] = parent;
  8211. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  8212. }
  8213. if ((distance == 0)) {
  8214. traversedRows.Clear();
  8215. traversedRows[row] = row;
  8216. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  8217. for (
  8218. ; ((parent != null)
  8219. && (traversedRows.ContainsKey(parent) == false));
  8220. ) {
  8221. distance = (distance + 1);
  8222. root = parent;
  8223. traversedRows[parent] = parent;
  8224. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  8225. }
  8226. }
  8227. return root;
  8228. }
  8229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8231. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  8232. if (object.ReferenceEquals(row1, row2)) {
  8233. return 0;
  8234. }
  8235. if ((row1 == null)) {
  8236. return -1;
  8237. }
  8238. if ((row2 == null)) {
  8239. return 1;
  8240. }
  8241. int distance1 = 0;
  8242. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  8243. int distance2 = 0;
  8244. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  8245. if (object.ReferenceEquals(root1, root2)) {
  8246. return (this._childFirst * distance1.CompareTo(distance2));
  8247. }
  8248. else {
  8249. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  8250. && (root2.Table != null)));
  8251. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  8252. return -1;
  8253. }
  8254. else {
  8255. return 1;
  8256. }
  8257. }
  8258. }
  8259. }
  8260. }
  8261. }
  8262. #pragma warning restore 1591