trade02DataSet.Designer.cs 465 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace _02trade {
  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("trade02DataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class trade02DataSet : global::System.Data.DataSet {
  22. private OrderDataTable tableOrder;
  23. private OrderProductDataTable tableOrderProduct;
  24. private ProductDataTable tableProduct;
  25. private punkt_vidachiDataTable tablepunkt_vidachi;
  26. private RoleDataTable tableRole;
  27. private UserDataTable tableUser;
  28. private UserTableDataTable tableUserTable;
  29. private global::System.Data.DataRelation relationFK_Order_punkt_vidachi;
  30. private global::System.Data.DataRelation relationFK_OrderProduct_Order;
  31. private global::System.Data.DataRelation relationFK__User__UserRole__25869641;
  32. private global::System.Data.DataRelation relationFK__User__UserRole__258696411;
  33. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  34. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  35. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  36. public trade02DataSet() {
  37. this.BeginInit();
  38. this.InitClass();
  39. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  40. base.Tables.CollectionChanged += schemaChangedHandler;
  41. base.Relations.CollectionChanged += schemaChangedHandler;
  42. this.EndInit();
  43. }
  44. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  45. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  46. protected trade02DataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  47. base(info, context, false) {
  48. if ((this.IsBinarySerialized(info, context) == true)) {
  49. this.InitVars(false);
  50. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  51. this.Tables.CollectionChanged += schemaChangedHandler1;
  52. this.Relations.CollectionChanged += schemaChangedHandler1;
  53. return;
  54. }
  55. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  56. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  57. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  58. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  59. if ((ds.Tables["Order"] != null)) {
  60. base.Tables.Add(new OrderDataTable(ds.Tables["Order"]));
  61. }
  62. if ((ds.Tables["OrderProduct"] != null)) {
  63. base.Tables.Add(new OrderProductDataTable(ds.Tables["OrderProduct"]));
  64. }
  65. if ((ds.Tables["Product"] != null)) {
  66. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  67. }
  68. if ((ds.Tables["punkt_vidachi"] != null)) {
  69. base.Tables.Add(new punkt_vidachiDataTable(ds.Tables["punkt_vidachi"]));
  70. }
  71. if ((ds.Tables["Role"] != null)) {
  72. base.Tables.Add(new RoleDataTable(ds.Tables["Role"]));
  73. }
  74. if ((ds.Tables["User"] != null)) {
  75. base.Tables.Add(new UserDataTable(ds.Tables["User"]));
  76. }
  77. if ((ds.Tables["UserTable"] != null)) {
  78. base.Tables.Add(new UserTableDataTable(ds.Tables["UserTable"]));
  79. }
  80. this.DataSetName = ds.DataSetName;
  81. this.Prefix = ds.Prefix;
  82. this.Namespace = ds.Namespace;
  83. this.Locale = ds.Locale;
  84. this.CaseSensitive = ds.CaseSensitive;
  85. this.EnforceConstraints = ds.EnforceConstraints;
  86. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  87. this.InitVars();
  88. }
  89. else {
  90. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  91. }
  92. this.GetSerializationData(info, context);
  93. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  94. base.Tables.CollectionChanged += schemaChangedHandler;
  95. this.Relations.CollectionChanged += schemaChangedHandler;
  96. }
  97. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  98. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  99. [global::System.ComponentModel.Browsable(false)]
  100. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  101. public OrderDataTable Order {
  102. get {
  103. return this.tableOrder;
  104. }
  105. }
  106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  108. [global::System.ComponentModel.Browsable(false)]
  109. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  110. public OrderProductDataTable OrderProduct {
  111. get {
  112. return this.tableOrderProduct;
  113. }
  114. }
  115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  117. [global::System.ComponentModel.Browsable(false)]
  118. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  119. public ProductDataTable Product {
  120. get {
  121. return this.tableProduct;
  122. }
  123. }
  124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  126. [global::System.ComponentModel.Browsable(false)]
  127. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  128. public punkt_vidachiDataTable punkt_vidachi {
  129. get {
  130. return this.tablepunkt_vidachi;
  131. }
  132. }
  133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  135. [global::System.ComponentModel.Browsable(false)]
  136. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  137. public RoleDataTable Role {
  138. get {
  139. return this.tableRole;
  140. }
  141. }
  142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  144. [global::System.ComponentModel.Browsable(false)]
  145. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  146. public UserDataTable User {
  147. get {
  148. return this.tableUser;
  149. }
  150. }
  151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  153. [global::System.ComponentModel.Browsable(false)]
  154. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  155. public UserTableDataTable UserTable {
  156. get {
  157. return this.tableUserTable;
  158. }
  159. }
  160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  162. [global::System.ComponentModel.BrowsableAttribute(true)]
  163. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  164. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  165. get {
  166. return this._schemaSerializationMode;
  167. }
  168. set {
  169. this._schemaSerializationMode = value;
  170. }
  171. }
  172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  174. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  175. public new global::System.Data.DataTableCollection Tables {
  176. get {
  177. return base.Tables;
  178. }
  179. }
  180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  182. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  183. public new global::System.Data.DataRelationCollection Relations {
  184. get {
  185. return base.Relations;
  186. }
  187. }
  188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  190. protected override void InitializeDerivedDataSet() {
  191. this.BeginInit();
  192. this.InitClass();
  193. this.EndInit();
  194. }
  195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  197. public override global::System.Data.DataSet Clone() {
  198. trade02DataSet cln = ((trade02DataSet)(base.Clone()));
  199. cln.InitVars();
  200. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  201. return cln;
  202. }
  203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  205. protected override bool ShouldSerializeTables() {
  206. return false;
  207. }
  208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  210. protected override bool ShouldSerializeRelations() {
  211. return false;
  212. }
  213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  215. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  216. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  217. this.Reset();
  218. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  219. ds.ReadXml(reader);
  220. if ((ds.Tables["Order"] != null)) {
  221. base.Tables.Add(new OrderDataTable(ds.Tables["Order"]));
  222. }
  223. if ((ds.Tables["OrderProduct"] != null)) {
  224. base.Tables.Add(new OrderProductDataTable(ds.Tables["OrderProduct"]));
  225. }
  226. if ((ds.Tables["Product"] != null)) {
  227. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  228. }
  229. if ((ds.Tables["punkt_vidachi"] != null)) {
  230. base.Tables.Add(new punkt_vidachiDataTable(ds.Tables["punkt_vidachi"]));
  231. }
  232. if ((ds.Tables["Role"] != null)) {
  233. base.Tables.Add(new RoleDataTable(ds.Tables["Role"]));
  234. }
  235. if ((ds.Tables["User"] != null)) {
  236. base.Tables.Add(new UserDataTable(ds.Tables["User"]));
  237. }
  238. if ((ds.Tables["UserTable"] != null)) {
  239. base.Tables.Add(new UserTableDataTable(ds.Tables["UserTable"]));
  240. }
  241. this.DataSetName = ds.DataSetName;
  242. this.Prefix = ds.Prefix;
  243. this.Namespace = ds.Namespace;
  244. this.Locale = ds.Locale;
  245. this.CaseSensitive = ds.CaseSensitive;
  246. this.EnforceConstraints = ds.EnforceConstraints;
  247. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  248. this.InitVars();
  249. }
  250. else {
  251. this.ReadXml(reader);
  252. this.InitVars();
  253. }
  254. }
  255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  257. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  258. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  259. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  260. stream.Position = 0;
  261. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  262. }
  263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  265. internal void InitVars() {
  266. this.InitVars(true);
  267. }
  268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  270. internal void InitVars(bool initTable) {
  271. this.tableOrder = ((OrderDataTable)(base.Tables["Order"]));
  272. if ((initTable == true)) {
  273. if ((this.tableOrder != null)) {
  274. this.tableOrder.InitVars();
  275. }
  276. }
  277. this.tableOrderProduct = ((OrderProductDataTable)(base.Tables["OrderProduct"]));
  278. if ((initTable == true)) {
  279. if ((this.tableOrderProduct != null)) {
  280. this.tableOrderProduct.InitVars();
  281. }
  282. }
  283. this.tableProduct = ((ProductDataTable)(base.Tables["Product"]));
  284. if ((initTable == true)) {
  285. if ((this.tableProduct != null)) {
  286. this.tableProduct.InitVars();
  287. }
  288. }
  289. this.tablepunkt_vidachi = ((punkt_vidachiDataTable)(base.Tables["punkt_vidachi"]));
  290. if ((initTable == true)) {
  291. if ((this.tablepunkt_vidachi != null)) {
  292. this.tablepunkt_vidachi.InitVars();
  293. }
  294. }
  295. this.tableRole = ((RoleDataTable)(base.Tables["Role"]));
  296. if ((initTable == true)) {
  297. if ((this.tableRole != null)) {
  298. this.tableRole.InitVars();
  299. }
  300. }
  301. this.tableUser = ((UserDataTable)(base.Tables["User"]));
  302. if ((initTable == true)) {
  303. if ((this.tableUser != null)) {
  304. this.tableUser.InitVars();
  305. }
  306. }
  307. this.tableUserTable = ((UserTableDataTable)(base.Tables["UserTable"]));
  308. if ((initTable == true)) {
  309. if ((this.tableUserTable != null)) {
  310. this.tableUserTable.InitVars();
  311. }
  312. }
  313. this.relationFK_Order_punkt_vidachi = this.Relations["FK_Order_punkt_vidachi"];
  314. this.relationFK_OrderProduct_Order = this.Relations["FK_OrderProduct_Order"];
  315. this.relationFK__User__UserRole__25869641 = this.Relations["FK__User__UserRole__25869641"];
  316. this.relationFK__User__UserRole__258696411 = this.Relations["FK__User__UserRole__258696411"];
  317. }
  318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  320. private void InitClass() {
  321. this.DataSetName = "trade02DataSet";
  322. this.Prefix = "";
  323. this.Namespace = "http://tempuri.org/trade02DataSet.xsd";
  324. this.EnforceConstraints = true;
  325. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  326. this.tableOrder = new OrderDataTable();
  327. base.Tables.Add(this.tableOrder);
  328. this.tableOrderProduct = new OrderProductDataTable();
  329. base.Tables.Add(this.tableOrderProduct);
  330. this.tableProduct = new ProductDataTable();
  331. base.Tables.Add(this.tableProduct);
  332. this.tablepunkt_vidachi = new punkt_vidachiDataTable();
  333. base.Tables.Add(this.tablepunkt_vidachi);
  334. this.tableRole = new RoleDataTable();
  335. base.Tables.Add(this.tableRole);
  336. this.tableUser = new UserDataTable();
  337. base.Tables.Add(this.tableUser);
  338. this.tableUserTable = new UserTableDataTable();
  339. base.Tables.Add(this.tableUserTable);
  340. this.relationFK_Order_punkt_vidachi = new global::System.Data.DataRelation("FK_Order_punkt_vidachi", new global::System.Data.DataColumn[] {
  341. this.tablepunkt_vidachi.idColumn}, new global::System.Data.DataColumn[] {
  342. this.tableOrder.OrderPickupPointColumn}, false);
  343. this.Relations.Add(this.relationFK_Order_punkt_vidachi);
  344. this.relationFK_OrderProduct_Order = new global::System.Data.DataRelation("FK_OrderProduct_Order", new global::System.Data.DataColumn[] {
  345. this.tableOrder.OrderIDColumn}, new global::System.Data.DataColumn[] {
  346. this.tableOrderProduct.OrderIDColumn}, false);
  347. this.Relations.Add(this.relationFK_OrderProduct_Order);
  348. this.relationFK__User__UserRole__25869641 = new global::System.Data.DataRelation("FK__User__UserRole__25869641", new global::System.Data.DataColumn[] {
  349. this.tableRole.RoleIDColumn}, new global::System.Data.DataColumn[] {
  350. this.tableUser.UserRoleColumn}, false);
  351. this.Relations.Add(this.relationFK__User__UserRole__25869641);
  352. this.relationFK__User__UserRole__258696411 = new global::System.Data.DataRelation("FK__User__UserRole__258696411", new global::System.Data.DataColumn[] {
  353. this.tableRole.RoleIDColumn}, new global::System.Data.DataColumn[] {
  354. this.tableUserTable.UserRoleColumn}, false);
  355. this.Relations.Add(this.relationFK__User__UserRole__258696411);
  356. }
  357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  359. private bool ShouldSerializeOrder() {
  360. return false;
  361. }
  362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  364. private bool ShouldSerializeOrderProduct() {
  365. return false;
  366. }
  367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  369. private bool ShouldSerializeProduct() {
  370. return false;
  371. }
  372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  374. private bool ShouldSerializepunkt_vidachi() {
  375. return false;
  376. }
  377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  378. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  379. private bool ShouldSerializeRole() {
  380. return false;
  381. }
  382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  384. private bool ShouldSerializeUser() {
  385. return false;
  386. }
  387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  389. private bool ShouldSerializeUserTable() {
  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 void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  395. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  396. this.InitVars();
  397. }
  398. }
  399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  401. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  402. trade02DataSet ds = new trade02DataSet();
  403. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  404. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  405. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  406. any.Namespace = ds.Namespace;
  407. sequence.Items.Add(any);
  408. type.Particle = sequence;
  409. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  410. if (xs.Contains(dsSchema.TargetNamespace)) {
  411. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  412. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  413. try {
  414. global::System.Xml.Schema.XmlSchema schema = null;
  415. dsSchema.Write(s1);
  416. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  417. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  418. s2.SetLength(0);
  419. schema.Write(s2);
  420. if ((s1.Length == s2.Length)) {
  421. s1.Position = 0;
  422. s2.Position = 0;
  423. for (; ((s1.Position != s1.Length)
  424. && (s1.ReadByte() == s2.ReadByte())); ) {
  425. ;
  426. }
  427. if ((s1.Position == s1.Length)) {
  428. return type;
  429. }
  430. }
  431. }
  432. }
  433. finally {
  434. if ((s1 != null)) {
  435. s1.Close();
  436. }
  437. if ((s2 != null)) {
  438. s2.Close();
  439. }
  440. }
  441. }
  442. xs.Add(dsSchema);
  443. return type;
  444. }
  445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  446. public delegate void OrderRowChangeEventHandler(object sender, OrderRowChangeEvent e);
  447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  448. public delegate void OrderProductRowChangeEventHandler(object sender, OrderProductRowChangeEvent e);
  449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  450. public delegate void ProductRowChangeEventHandler(object sender, ProductRowChangeEvent e);
  451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  452. public delegate void punkt_vidachiRowChangeEventHandler(object sender, punkt_vidachiRowChangeEvent e);
  453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  454. public delegate void RoleRowChangeEventHandler(object sender, RoleRowChangeEvent e);
  455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  456. public delegate void UserRowChangeEventHandler(object sender, UserRowChangeEvent e);
  457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  458. public delegate void UserTableRowChangeEventHandler(object sender, UserTableRowChangeEvent e);
  459. /// <summary>
  460. ///Represents the strongly named DataTable class.
  461. ///</summary>
  462. [global::System.Serializable()]
  463. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  464. public partial class OrderDataTable : global::System.Data.TypedTableBase<OrderRow> {
  465. private global::System.Data.DataColumn columnOrderID;
  466. private global::System.Data.DataColumn columnOrderStatus;
  467. private global::System.Data.DataColumn columnOrderDeliveryDate;
  468. private global::System.Data.DataColumn columnOrderPickupPoint;
  469. private global::System.Data.DataColumn columnDateZakaza;
  470. private global::System.Data.DataColumn columnfioKlienta;
  471. private global::System.Data.DataColumn columnKodPolycheniya;
  472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  474. public OrderDataTable() {
  475. this.TableName = "Order";
  476. this.BeginInit();
  477. this.InitClass();
  478. this.EndInit();
  479. }
  480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  482. internal OrderDataTable(global::System.Data.DataTable table) {
  483. this.TableName = table.TableName;
  484. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  485. this.CaseSensitive = table.CaseSensitive;
  486. }
  487. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  488. this.Locale = table.Locale;
  489. }
  490. if ((table.Namespace != table.DataSet.Namespace)) {
  491. this.Namespace = table.Namespace;
  492. }
  493. this.Prefix = table.Prefix;
  494. this.MinimumCapacity = table.MinimumCapacity;
  495. }
  496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  498. protected OrderDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  499. base(info, context) {
  500. this.InitVars();
  501. }
  502. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  503. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  504. public global::System.Data.DataColumn OrderIDColumn {
  505. get {
  506. return this.columnOrderID;
  507. }
  508. }
  509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  511. public global::System.Data.DataColumn OrderStatusColumn {
  512. get {
  513. return this.columnOrderStatus;
  514. }
  515. }
  516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  518. public global::System.Data.DataColumn OrderDeliveryDateColumn {
  519. get {
  520. return this.columnOrderDeliveryDate;
  521. }
  522. }
  523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  525. public global::System.Data.DataColumn OrderPickupPointColumn {
  526. get {
  527. return this.columnOrderPickupPoint;
  528. }
  529. }
  530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  532. public global::System.Data.DataColumn DateZakazaColumn {
  533. get {
  534. return this.columnDateZakaza;
  535. }
  536. }
  537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  539. public global::System.Data.DataColumn fioKlientaColumn {
  540. get {
  541. return this.columnfioKlienta;
  542. }
  543. }
  544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  545. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  546. public global::System.Data.DataColumn KodPolycheniyaColumn {
  547. get {
  548. return this.columnKodPolycheniya;
  549. }
  550. }
  551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  553. [global::System.ComponentModel.Browsable(false)]
  554. public int Count {
  555. get {
  556. return this.Rows.Count;
  557. }
  558. }
  559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  561. public OrderRow this[int index] {
  562. get {
  563. return ((OrderRow)(this.Rows[index]));
  564. }
  565. }
  566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  567. public event OrderRowChangeEventHandler OrderRowChanging;
  568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  569. public event OrderRowChangeEventHandler OrderRowChanged;
  570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  571. public event OrderRowChangeEventHandler OrderRowDeleting;
  572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  573. public event OrderRowChangeEventHandler OrderRowDeleted;
  574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  576. public void AddOrderRow(OrderRow row) {
  577. this.Rows.Add(row);
  578. }
  579. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  580. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  581. public OrderRow AddOrderRow(string OrderStatus, System.DateTime OrderDeliveryDate, punkt_vidachiRow parentpunkt_vidachiRowByFK_Order_punkt_vidachi, System.DateTime DateZakaza, string fioKlienta, int KodPolycheniya) {
  582. OrderRow rowOrderRow = ((OrderRow)(this.NewRow()));
  583. object[] columnValuesArray = new object[] {
  584. null,
  585. OrderStatus,
  586. OrderDeliveryDate,
  587. null,
  588. DateZakaza,
  589. fioKlienta,
  590. KodPolycheniya};
  591. if ((parentpunkt_vidachiRowByFK_Order_punkt_vidachi != null)) {
  592. columnValuesArray[3] = parentpunkt_vidachiRowByFK_Order_punkt_vidachi[0];
  593. }
  594. rowOrderRow.ItemArray = columnValuesArray;
  595. this.Rows.Add(rowOrderRow);
  596. return rowOrderRow;
  597. }
  598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  600. public OrderRow FindByOrderID(int OrderID) {
  601. return ((OrderRow)(this.Rows.Find(new object[] {
  602. OrderID})));
  603. }
  604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  606. public override global::System.Data.DataTable Clone() {
  607. OrderDataTable cln = ((OrderDataTable)(base.Clone()));
  608. cln.InitVars();
  609. return cln;
  610. }
  611. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  612. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  613. protected override global::System.Data.DataTable CreateInstance() {
  614. return new OrderDataTable();
  615. }
  616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  618. internal void InitVars() {
  619. this.columnOrderID = base.Columns["OrderID"];
  620. this.columnOrderStatus = base.Columns["OrderStatus"];
  621. this.columnOrderDeliveryDate = base.Columns["OrderDeliveryDate"];
  622. this.columnOrderPickupPoint = base.Columns["OrderPickupPoint"];
  623. this.columnDateZakaza = base.Columns["DateZakaza"];
  624. this.columnfioKlienta = base.Columns["fioKlienta"];
  625. this.columnKodPolycheniya = base.Columns["KodPolycheniya"];
  626. }
  627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  629. private void InitClass() {
  630. this.columnOrderID = new global::System.Data.DataColumn("OrderID", typeof(int), null, global::System.Data.MappingType.Element);
  631. base.Columns.Add(this.columnOrderID);
  632. this.columnOrderStatus = new global::System.Data.DataColumn("OrderStatus", typeof(string), null, global::System.Data.MappingType.Element);
  633. base.Columns.Add(this.columnOrderStatus);
  634. this.columnOrderDeliveryDate = new global::System.Data.DataColumn("OrderDeliveryDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  635. base.Columns.Add(this.columnOrderDeliveryDate);
  636. this.columnOrderPickupPoint = new global::System.Data.DataColumn("OrderPickupPoint", typeof(byte), null, global::System.Data.MappingType.Element);
  637. base.Columns.Add(this.columnOrderPickupPoint);
  638. this.columnDateZakaza = new global::System.Data.DataColumn("DateZakaza", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  639. base.Columns.Add(this.columnDateZakaza);
  640. this.columnfioKlienta = new global::System.Data.DataColumn("fioKlienta", typeof(string), null, global::System.Data.MappingType.Element);
  641. base.Columns.Add(this.columnfioKlienta);
  642. this.columnKodPolycheniya = new global::System.Data.DataColumn("KodPolycheniya", typeof(int), null, global::System.Data.MappingType.Element);
  643. base.Columns.Add(this.columnKodPolycheniya);
  644. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  645. this.columnOrderID}, true));
  646. this.columnOrderID.AutoIncrement = true;
  647. this.columnOrderID.AutoIncrementSeed = -1;
  648. this.columnOrderID.AutoIncrementStep = -1;
  649. this.columnOrderID.AllowDBNull = false;
  650. this.columnOrderID.ReadOnly = true;
  651. this.columnOrderID.Unique = true;
  652. this.columnOrderStatus.AllowDBNull = false;
  653. this.columnOrderStatus.MaxLength = 2147483647;
  654. this.columnOrderDeliveryDate.AllowDBNull = false;
  655. this.columnOrderPickupPoint.AllowDBNull = false;
  656. this.columnfioKlienta.MaxLength = 2147483647;
  657. }
  658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  660. public OrderRow NewOrderRow() {
  661. return ((OrderRow)(this.NewRow()));
  662. }
  663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  665. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  666. return new OrderRow(builder);
  667. }
  668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  670. protected override global::System.Type GetRowType() {
  671. return typeof(OrderRow);
  672. }
  673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  675. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  676. base.OnRowChanged(e);
  677. if ((this.OrderRowChanged != null)) {
  678. this.OrderRowChanged(this, new OrderRowChangeEvent(((OrderRow)(e.Row)), e.Action));
  679. }
  680. }
  681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  683. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  684. base.OnRowChanging(e);
  685. if ((this.OrderRowChanging != null)) {
  686. this.OrderRowChanging(this, new OrderRowChangeEvent(((OrderRow)(e.Row)), e.Action));
  687. }
  688. }
  689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  690. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  691. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  692. base.OnRowDeleted(e);
  693. if ((this.OrderRowDeleted != null)) {
  694. this.OrderRowDeleted(this, new OrderRowChangeEvent(((OrderRow)(e.Row)), e.Action));
  695. }
  696. }
  697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  699. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  700. base.OnRowDeleting(e);
  701. if ((this.OrderRowDeleting != null)) {
  702. this.OrderRowDeleting(this, new OrderRowChangeEvent(((OrderRow)(e.Row)), e.Action));
  703. }
  704. }
  705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  707. public void RemoveOrderRow(OrderRow row) {
  708. this.Rows.Remove(row);
  709. }
  710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  711. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  712. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  713. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  714. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  715. trade02DataSet ds = new trade02DataSet();
  716. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  717. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  718. any1.MinOccurs = new decimal(0);
  719. any1.MaxOccurs = decimal.MaxValue;
  720. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  721. sequence.Items.Add(any1);
  722. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  723. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  724. any2.MinOccurs = new decimal(1);
  725. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  726. sequence.Items.Add(any2);
  727. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  728. attribute1.Name = "namespace";
  729. attribute1.FixedValue = ds.Namespace;
  730. type.Attributes.Add(attribute1);
  731. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  732. attribute2.Name = "tableTypeName";
  733. attribute2.FixedValue = "OrderDataTable";
  734. type.Attributes.Add(attribute2);
  735. type.Particle = sequence;
  736. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  737. if (xs.Contains(dsSchema.TargetNamespace)) {
  738. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  739. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  740. try {
  741. global::System.Xml.Schema.XmlSchema schema = null;
  742. dsSchema.Write(s1);
  743. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  744. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  745. s2.SetLength(0);
  746. schema.Write(s2);
  747. if ((s1.Length == s2.Length)) {
  748. s1.Position = 0;
  749. s2.Position = 0;
  750. for (; ((s1.Position != s1.Length)
  751. && (s1.ReadByte() == s2.ReadByte())); ) {
  752. ;
  753. }
  754. if ((s1.Position == s1.Length)) {
  755. return type;
  756. }
  757. }
  758. }
  759. }
  760. finally {
  761. if ((s1 != null)) {
  762. s1.Close();
  763. }
  764. if ((s2 != null)) {
  765. s2.Close();
  766. }
  767. }
  768. }
  769. xs.Add(dsSchema);
  770. return type;
  771. }
  772. }
  773. /// <summary>
  774. ///Represents the strongly named DataTable class.
  775. ///</summary>
  776. [global::System.Serializable()]
  777. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  778. public partial class OrderProductDataTable : global::System.Data.TypedTableBase<OrderProductRow> {
  779. private global::System.Data.DataColumn columnOrderID;
  780. private global::System.Data.DataColumn columnProductArticleNumber;
  781. private global::System.Data.DataColumn columnКоличество_товара;
  782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  784. public OrderProductDataTable() {
  785. this.TableName = "OrderProduct";
  786. this.BeginInit();
  787. this.InitClass();
  788. this.EndInit();
  789. }
  790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  792. internal OrderProductDataTable(global::System.Data.DataTable table) {
  793. this.TableName = table.TableName;
  794. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  795. this.CaseSensitive = table.CaseSensitive;
  796. }
  797. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  798. this.Locale = table.Locale;
  799. }
  800. if ((table.Namespace != table.DataSet.Namespace)) {
  801. this.Namespace = table.Namespace;
  802. }
  803. this.Prefix = table.Prefix;
  804. this.MinimumCapacity = table.MinimumCapacity;
  805. }
  806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  808. protected OrderProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  809. base(info, context) {
  810. this.InitVars();
  811. }
  812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  814. public global::System.Data.DataColumn OrderIDColumn {
  815. get {
  816. return this.columnOrderID;
  817. }
  818. }
  819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  821. public global::System.Data.DataColumn ProductArticleNumberColumn {
  822. get {
  823. return this.columnProductArticleNumber;
  824. }
  825. }
  826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  828. public global::System.Data.DataColumn Количество_товараColumn {
  829. get {
  830. return this.columnКоличество_товара;
  831. }
  832. }
  833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  835. [global::System.ComponentModel.Browsable(false)]
  836. public int Count {
  837. get {
  838. return this.Rows.Count;
  839. }
  840. }
  841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  843. public OrderProductRow this[int index] {
  844. get {
  845. return ((OrderProductRow)(this.Rows[index]));
  846. }
  847. }
  848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  849. public event OrderProductRowChangeEventHandler OrderProductRowChanging;
  850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  851. public event OrderProductRowChangeEventHandler OrderProductRowChanged;
  852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  853. public event OrderProductRowChangeEventHandler OrderProductRowDeleting;
  854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  855. public event OrderProductRowChangeEventHandler OrderProductRowDeleted;
  856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  858. public void AddOrderProductRow(OrderProductRow row) {
  859. this.Rows.Add(row);
  860. }
  861. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  862. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  863. public OrderProductRow AddOrderProductRow(OrderRow parentOrderRowByFK_OrderProduct_Order, string ProductArticleNumber, int Количество_товара) {
  864. OrderProductRow rowOrderProductRow = ((OrderProductRow)(this.NewRow()));
  865. object[] columnValuesArray = new object[] {
  866. null,
  867. ProductArticleNumber,
  868. Количество_товара};
  869. if ((parentOrderRowByFK_OrderProduct_Order != null)) {
  870. columnValuesArray[0] = parentOrderRowByFK_OrderProduct_Order[0];
  871. }
  872. rowOrderProductRow.ItemArray = columnValuesArray;
  873. this.Rows.Add(rowOrderProductRow);
  874. return rowOrderProductRow;
  875. }
  876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  878. public OrderProductRow FindByOrderIDProductArticleNumber(int OrderID, string ProductArticleNumber) {
  879. return ((OrderProductRow)(this.Rows.Find(new object[] {
  880. OrderID,
  881. ProductArticleNumber})));
  882. }
  883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  885. public override global::System.Data.DataTable Clone() {
  886. OrderProductDataTable cln = ((OrderProductDataTable)(base.Clone()));
  887. cln.InitVars();
  888. return cln;
  889. }
  890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  892. protected override global::System.Data.DataTable CreateInstance() {
  893. return new OrderProductDataTable();
  894. }
  895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  897. internal void InitVars() {
  898. this.columnOrderID = base.Columns["OrderID"];
  899. this.columnProductArticleNumber = base.Columns["ProductArticleNumber"];
  900. this.columnКоличество_товара = base.Columns["Количество_товара"];
  901. }
  902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  904. private void InitClass() {
  905. this.columnOrderID = new global::System.Data.DataColumn("OrderID", typeof(int), null, global::System.Data.MappingType.Element);
  906. base.Columns.Add(this.columnOrderID);
  907. this.columnProductArticleNumber = new global::System.Data.DataColumn("ProductArticleNumber", typeof(string), null, global::System.Data.MappingType.Element);
  908. base.Columns.Add(this.columnProductArticleNumber);
  909. this.columnКоличество_товара = new global::System.Data.DataColumn("Количество_товара", typeof(int), null, global::System.Data.MappingType.Element);
  910. base.Columns.Add(this.columnКоличество_товара);
  911. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  912. this.columnOrderID,
  913. this.columnProductArticleNumber}, true));
  914. this.columnOrderID.AllowDBNull = false;
  915. this.columnProductArticleNumber.AllowDBNull = false;
  916. this.columnProductArticleNumber.MaxLength = 100;
  917. }
  918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  920. public OrderProductRow NewOrderProductRow() {
  921. return ((OrderProductRow)(this.NewRow()));
  922. }
  923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  925. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  926. return new OrderProductRow(builder);
  927. }
  928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  930. protected override global::System.Type GetRowType() {
  931. return typeof(OrderProductRow);
  932. }
  933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  934. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  935. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  936. base.OnRowChanged(e);
  937. if ((this.OrderProductRowChanged != null)) {
  938. this.OrderProductRowChanged(this, new OrderProductRowChangeEvent(((OrderProductRow)(e.Row)), e.Action));
  939. }
  940. }
  941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  942. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  943. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  944. base.OnRowChanging(e);
  945. if ((this.OrderProductRowChanging != null)) {
  946. this.OrderProductRowChanging(this, new OrderProductRowChangeEvent(((OrderProductRow)(e.Row)), e.Action));
  947. }
  948. }
  949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  950. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  951. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  952. base.OnRowDeleted(e);
  953. if ((this.OrderProductRowDeleted != null)) {
  954. this.OrderProductRowDeleted(this, new OrderProductRowChangeEvent(((OrderProductRow)(e.Row)), e.Action));
  955. }
  956. }
  957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  959. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  960. base.OnRowDeleting(e);
  961. if ((this.OrderProductRowDeleting != null)) {
  962. this.OrderProductRowDeleting(this, new OrderProductRowChangeEvent(((OrderProductRow)(e.Row)), e.Action));
  963. }
  964. }
  965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  967. public void RemoveOrderProductRow(OrderProductRow row) {
  968. this.Rows.Remove(row);
  969. }
  970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  972. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  973. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  974. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  975. trade02DataSet ds = new trade02DataSet();
  976. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  977. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  978. any1.MinOccurs = new decimal(0);
  979. any1.MaxOccurs = decimal.MaxValue;
  980. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  981. sequence.Items.Add(any1);
  982. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  983. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  984. any2.MinOccurs = new decimal(1);
  985. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  986. sequence.Items.Add(any2);
  987. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  988. attribute1.Name = "namespace";
  989. attribute1.FixedValue = ds.Namespace;
  990. type.Attributes.Add(attribute1);
  991. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  992. attribute2.Name = "tableTypeName";
  993. attribute2.FixedValue = "OrderProductDataTable";
  994. type.Attributes.Add(attribute2);
  995. type.Particle = sequence;
  996. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  997. if (xs.Contains(dsSchema.TargetNamespace)) {
  998. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  999. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1000. try {
  1001. global::System.Xml.Schema.XmlSchema schema = null;
  1002. dsSchema.Write(s1);
  1003. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1004. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1005. s2.SetLength(0);
  1006. schema.Write(s2);
  1007. if ((s1.Length == s2.Length)) {
  1008. s1.Position = 0;
  1009. s2.Position = 0;
  1010. for (; ((s1.Position != s1.Length)
  1011. && (s1.ReadByte() == s2.ReadByte())); ) {
  1012. ;
  1013. }
  1014. if ((s1.Position == s1.Length)) {
  1015. return type;
  1016. }
  1017. }
  1018. }
  1019. }
  1020. finally {
  1021. if ((s1 != null)) {
  1022. s1.Close();
  1023. }
  1024. if ((s2 != null)) {
  1025. s2.Close();
  1026. }
  1027. }
  1028. }
  1029. xs.Add(dsSchema);
  1030. return type;
  1031. }
  1032. }
  1033. /// <summary>
  1034. ///Represents the strongly named DataTable class.
  1035. ///</summary>
  1036. [global::System.Serializable()]
  1037. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1038. public partial class ProductDataTable : global::System.Data.TypedTableBase<ProductRow> {
  1039. private global::System.Data.DataColumn columnProductArticleNumber;
  1040. private global::System.Data.DataColumn columnProductName;
  1041. private global::System.Data.DataColumn columnProductDescription;
  1042. private global::System.Data.DataColumn columnProductCategory;
  1043. private global::System.Data.DataColumn columnProductPhoto;
  1044. private global::System.Data.DataColumn columnProductManufacturer;
  1045. private global::System.Data.DataColumn columnProductCost;
  1046. private global::System.Data.DataColumn columnProductDiscountAmount;
  1047. private global::System.Data.DataColumn columnProductMaxDiscount;
  1048. private global::System.Data.DataColumn columnProductQuantityInStock;
  1049. private global::System.Data.DataColumn columnProductStatus;
  1050. private global::System.Data.DataColumn columnId;
  1051. private global::System.Data.DataColumn columnProductPhormat;
  1052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1054. public ProductDataTable() {
  1055. this.TableName = "Product";
  1056. this.BeginInit();
  1057. this.InitClass();
  1058. this.EndInit();
  1059. }
  1060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1062. internal ProductDataTable(global::System.Data.DataTable table) {
  1063. this.TableName = table.TableName;
  1064. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1065. this.CaseSensitive = table.CaseSensitive;
  1066. }
  1067. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1068. this.Locale = table.Locale;
  1069. }
  1070. if ((table.Namespace != table.DataSet.Namespace)) {
  1071. this.Namespace = table.Namespace;
  1072. }
  1073. this.Prefix = table.Prefix;
  1074. this.MinimumCapacity = table.MinimumCapacity;
  1075. }
  1076. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1077. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1078. protected ProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1079. base(info, context) {
  1080. this.InitVars();
  1081. }
  1082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1084. public global::System.Data.DataColumn ProductArticleNumberColumn {
  1085. get {
  1086. return this.columnProductArticleNumber;
  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 ProductNameColumn {
  1092. get {
  1093. return this.columnProductName;
  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 ProductDescriptionColumn {
  1099. get {
  1100. return this.columnProductDescription;
  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 ProductCategoryColumn {
  1106. get {
  1107. return this.columnProductCategory;
  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 ProductPhotoColumn {
  1113. get {
  1114. return this.columnProductPhoto;
  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 ProductManufacturerColumn {
  1120. get {
  1121. return this.columnProductManufacturer;
  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 ProductCostColumn {
  1127. get {
  1128. return this.columnProductCost;
  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 ProductDiscountAmountColumn {
  1134. get {
  1135. return this.columnProductDiscountAmount;
  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 ProductMaxDiscountColumn {
  1141. get {
  1142. return this.columnProductMaxDiscount;
  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 ProductQuantityInStockColumn {
  1148. get {
  1149. return this.columnProductQuantityInStock;
  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 ProductStatusColumn {
  1155. get {
  1156. return this.columnProductStatus;
  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 IdColumn {
  1162. get {
  1163. return this.columnId;
  1164. }
  1165. }
  1166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1168. public global::System.Data.DataColumn ProductPhormatColumn {
  1169. get {
  1170. return this.columnProductPhormat;
  1171. }
  1172. }
  1173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1175. [global::System.ComponentModel.Browsable(false)]
  1176. public int Count {
  1177. get {
  1178. return this.Rows.Count;
  1179. }
  1180. }
  1181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1183. public ProductRow this[int index] {
  1184. get {
  1185. return ((ProductRow)(this.Rows[index]));
  1186. }
  1187. }
  1188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1189. public event ProductRowChangeEventHandler ProductRowChanging;
  1190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1191. public event ProductRowChangeEventHandler ProductRowChanged;
  1192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1193. public event ProductRowChangeEventHandler ProductRowDeleting;
  1194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1195. public event ProductRowChangeEventHandler ProductRowDeleted;
  1196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1198. public void AddProductRow(ProductRow row) {
  1199. this.Rows.Add(row);
  1200. }
  1201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1203. public ProductRow AddProductRow(string ProductArticleNumber, string ProductName, string ProductDescription, string ProductCategory, byte[] ProductPhoto, string ProductManufacturer, decimal ProductCost, byte ProductDiscountAmount, byte ProductMaxDiscount, int ProductQuantityInStock, string ProductStatus, string ProductPhormat) {
  1204. ProductRow rowProductRow = ((ProductRow)(this.NewRow()));
  1205. object[] columnValuesArray = new object[] {
  1206. ProductArticleNumber,
  1207. ProductName,
  1208. ProductDescription,
  1209. ProductCategory,
  1210. ProductPhoto,
  1211. ProductManufacturer,
  1212. ProductCost,
  1213. ProductDiscountAmount,
  1214. ProductMaxDiscount,
  1215. ProductQuantityInStock,
  1216. ProductStatus,
  1217. null,
  1218. ProductPhormat};
  1219. rowProductRow.ItemArray = columnValuesArray;
  1220. this.Rows.Add(rowProductRow);
  1221. return rowProductRow;
  1222. }
  1223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1225. public ProductRow FindByProductArticleNumber(string ProductArticleNumber) {
  1226. return ((ProductRow)(this.Rows.Find(new object[] {
  1227. ProductArticleNumber})));
  1228. }
  1229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1231. public override global::System.Data.DataTable Clone() {
  1232. ProductDataTable cln = ((ProductDataTable)(base.Clone()));
  1233. cln.InitVars();
  1234. return cln;
  1235. }
  1236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1238. protected override global::System.Data.DataTable CreateInstance() {
  1239. return new ProductDataTable();
  1240. }
  1241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1243. internal void InitVars() {
  1244. this.columnProductArticleNumber = base.Columns["ProductArticleNumber"];
  1245. this.columnProductName = base.Columns["ProductName"];
  1246. this.columnProductDescription = base.Columns["ProductDescription"];
  1247. this.columnProductCategory = base.Columns["ProductCategory"];
  1248. this.columnProductPhoto = base.Columns["ProductPhoto"];
  1249. this.columnProductManufacturer = base.Columns["ProductManufacturer"];
  1250. this.columnProductCost = base.Columns["ProductCost"];
  1251. this.columnProductDiscountAmount = base.Columns["ProductDiscountAmount"];
  1252. this.columnProductMaxDiscount = base.Columns["ProductMaxDiscount"];
  1253. this.columnProductQuantityInStock = base.Columns["ProductQuantityInStock"];
  1254. this.columnProductStatus = base.Columns["ProductStatus"];
  1255. this.columnId = base.Columns["Id"];
  1256. this.columnProductPhormat = base.Columns["ProductPhormat"];
  1257. }
  1258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1260. private void InitClass() {
  1261. this.columnProductArticleNumber = new global::System.Data.DataColumn("ProductArticleNumber", typeof(string), null, global::System.Data.MappingType.Element);
  1262. base.Columns.Add(this.columnProductArticleNumber);
  1263. this.columnProductName = new global::System.Data.DataColumn("ProductName", typeof(string), null, global::System.Data.MappingType.Element);
  1264. base.Columns.Add(this.columnProductName);
  1265. this.columnProductDescription = new global::System.Data.DataColumn("ProductDescription", typeof(string), null, global::System.Data.MappingType.Element);
  1266. base.Columns.Add(this.columnProductDescription);
  1267. this.columnProductCategory = new global::System.Data.DataColumn("ProductCategory", typeof(string), null, global::System.Data.MappingType.Element);
  1268. base.Columns.Add(this.columnProductCategory);
  1269. this.columnProductPhoto = new global::System.Data.DataColumn("ProductPhoto", typeof(byte[]), null, global::System.Data.MappingType.Element);
  1270. base.Columns.Add(this.columnProductPhoto);
  1271. this.columnProductManufacturer = new global::System.Data.DataColumn("ProductManufacturer", typeof(string), null, global::System.Data.MappingType.Element);
  1272. base.Columns.Add(this.columnProductManufacturer);
  1273. this.columnProductCost = new global::System.Data.DataColumn("ProductCost", typeof(decimal), null, global::System.Data.MappingType.Element);
  1274. base.Columns.Add(this.columnProductCost);
  1275. this.columnProductDiscountAmount = new global::System.Data.DataColumn("ProductDiscountAmount", typeof(byte), null, global::System.Data.MappingType.Element);
  1276. base.Columns.Add(this.columnProductDiscountAmount);
  1277. this.columnProductMaxDiscount = new global::System.Data.DataColumn("ProductMaxDiscount", typeof(byte), null, global::System.Data.MappingType.Element);
  1278. base.Columns.Add(this.columnProductMaxDiscount);
  1279. this.columnProductQuantityInStock = new global::System.Data.DataColumn("ProductQuantityInStock", typeof(int), null, global::System.Data.MappingType.Element);
  1280. base.Columns.Add(this.columnProductQuantityInStock);
  1281. this.columnProductStatus = new global::System.Data.DataColumn("ProductStatus", typeof(string), null, global::System.Data.MappingType.Element);
  1282. base.Columns.Add(this.columnProductStatus);
  1283. this.columnId = new global::System.Data.DataColumn("Id", typeof(int), null, global::System.Data.MappingType.Element);
  1284. base.Columns.Add(this.columnId);
  1285. this.columnProductPhormat = new global::System.Data.DataColumn("ProductPhormat", typeof(string), null, global::System.Data.MappingType.Element);
  1286. base.Columns.Add(this.columnProductPhormat);
  1287. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1288. this.columnProductArticleNumber}, true));
  1289. this.columnProductArticleNumber.AllowDBNull = false;
  1290. this.columnProductArticleNumber.Unique = true;
  1291. this.columnProductArticleNumber.MaxLength = 100;
  1292. this.columnProductName.AllowDBNull = false;
  1293. this.columnProductName.MaxLength = 2147483647;
  1294. this.columnProductDescription.AllowDBNull = false;
  1295. this.columnProductDescription.MaxLength = 2147483647;
  1296. this.columnProductCategory.AllowDBNull = false;
  1297. this.columnProductCategory.MaxLength = 2147483647;
  1298. this.columnProductManufacturer.AllowDBNull = false;
  1299. this.columnProductManufacturer.MaxLength = 2147483647;
  1300. this.columnProductCost.AllowDBNull = false;
  1301. this.columnProductQuantityInStock.AllowDBNull = false;
  1302. this.columnProductStatus.MaxLength = 2147483647;
  1303. this.columnId.AutoIncrement = true;
  1304. this.columnId.AutoIncrementSeed = -1;
  1305. this.columnId.AutoIncrementStep = -1;
  1306. this.columnId.AllowDBNull = false;
  1307. this.columnId.ReadOnly = true;
  1308. this.columnProductPhormat.AllowDBNull = false;
  1309. this.columnProductPhormat.MaxLength = 50;
  1310. }
  1311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1313. public ProductRow NewProductRow() {
  1314. return ((ProductRow)(this.NewRow()));
  1315. }
  1316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1317. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1318. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1319. return new ProductRow(builder);
  1320. }
  1321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1323. protected override global::System.Type GetRowType() {
  1324. return typeof(ProductRow);
  1325. }
  1326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1327. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1328. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1329. base.OnRowChanged(e);
  1330. if ((this.ProductRowChanged != null)) {
  1331. this.ProductRowChanged(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  1332. }
  1333. }
  1334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1336. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1337. base.OnRowChanging(e);
  1338. if ((this.ProductRowChanging != null)) {
  1339. this.ProductRowChanging(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  1340. }
  1341. }
  1342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1344. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1345. base.OnRowDeleted(e);
  1346. if ((this.ProductRowDeleted != null)) {
  1347. this.ProductRowDeleted(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  1348. }
  1349. }
  1350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1352. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1353. base.OnRowDeleting(e);
  1354. if ((this.ProductRowDeleting != null)) {
  1355. this.ProductRowDeleting(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  1356. }
  1357. }
  1358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1359. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1360. public void RemoveProductRow(ProductRow row) {
  1361. this.Rows.Remove(row);
  1362. }
  1363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1365. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1366. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1367. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1368. trade02DataSet ds = new trade02DataSet();
  1369. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1370. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1371. any1.MinOccurs = new decimal(0);
  1372. any1.MaxOccurs = decimal.MaxValue;
  1373. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1374. sequence.Items.Add(any1);
  1375. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1376. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1377. any2.MinOccurs = new decimal(1);
  1378. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1379. sequence.Items.Add(any2);
  1380. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1381. attribute1.Name = "namespace";
  1382. attribute1.FixedValue = ds.Namespace;
  1383. type.Attributes.Add(attribute1);
  1384. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1385. attribute2.Name = "tableTypeName";
  1386. attribute2.FixedValue = "ProductDataTable";
  1387. type.Attributes.Add(attribute2);
  1388. type.Particle = sequence;
  1389. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1390. if (xs.Contains(dsSchema.TargetNamespace)) {
  1391. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1392. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1393. try {
  1394. global::System.Xml.Schema.XmlSchema schema = null;
  1395. dsSchema.Write(s1);
  1396. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1397. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1398. s2.SetLength(0);
  1399. schema.Write(s2);
  1400. if ((s1.Length == s2.Length)) {
  1401. s1.Position = 0;
  1402. s2.Position = 0;
  1403. for (; ((s1.Position != s1.Length)
  1404. && (s1.ReadByte() == s2.ReadByte())); ) {
  1405. ;
  1406. }
  1407. if ((s1.Position == s1.Length)) {
  1408. return type;
  1409. }
  1410. }
  1411. }
  1412. }
  1413. finally {
  1414. if ((s1 != null)) {
  1415. s1.Close();
  1416. }
  1417. if ((s2 != null)) {
  1418. s2.Close();
  1419. }
  1420. }
  1421. }
  1422. xs.Add(dsSchema);
  1423. return type;
  1424. }
  1425. }
  1426. /// <summary>
  1427. ///Represents the strongly named DataTable class.
  1428. ///</summary>
  1429. [global::System.Serializable()]
  1430. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1431. public partial class punkt_vidachiDataTable : global::System.Data.TypedTableBase<punkt_vidachiRow> {
  1432. private global::System.Data.DataColumn columnid;
  1433. private global::System.Data.DataColumn columnindex;
  1434. private global::System.Data.DataColumn columngorod;
  1435. private global::System.Data.DataColumn columnulica;
  1436. private global::System.Data.DataColumn columndom;
  1437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1439. public punkt_vidachiDataTable() {
  1440. this.TableName = "punkt_vidachi";
  1441. this.BeginInit();
  1442. this.InitClass();
  1443. this.EndInit();
  1444. }
  1445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1446. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1447. internal punkt_vidachiDataTable(global::System.Data.DataTable table) {
  1448. this.TableName = table.TableName;
  1449. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1450. this.CaseSensitive = table.CaseSensitive;
  1451. }
  1452. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1453. this.Locale = table.Locale;
  1454. }
  1455. if ((table.Namespace != table.DataSet.Namespace)) {
  1456. this.Namespace = table.Namespace;
  1457. }
  1458. this.Prefix = table.Prefix;
  1459. this.MinimumCapacity = table.MinimumCapacity;
  1460. }
  1461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1463. protected punkt_vidachiDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1464. base(info, context) {
  1465. this.InitVars();
  1466. }
  1467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1469. public global::System.Data.DataColumn idColumn {
  1470. get {
  1471. return this.columnid;
  1472. }
  1473. }
  1474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1476. public global::System.Data.DataColumn indexColumn {
  1477. get {
  1478. return this.columnindex;
  1479. }
  1480. }
  1481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1483. public global::System.Data.DataColumn gorodColumn {
  1484. get {
  1485. return this.columngorod;
  1486. }
  1487. }
  1488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1490. public global::System.Data.DataColumn ulicaColumn {
  1491. get {
  1492. return this.columnulica;
  1493. }
  1494. }
  1495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1497. public global::System.Data.DataColumn domColumn {
  1498. get {
  1499. return this.columndom;
  1500. }
  1501. }
  1502. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1503. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1504. [global::System.ComponentModel.Browsable(false)]
  1505. public int Count {
  1506. get {
  1507. return this.Rows.Count;
  1508. }
  1509. }
  1510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1512. public punkt_vidachiRow this[int index] {
  1513. get {
  1514. return ((punkt_vidachiRow)(this.Rows[index]));
  1515. }
  1516. }
  1517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1518. public event punkt_vidachiRowChangeEventHandler punkt_vidachiRowChanging;
  1519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1520. public event punkt_vidachiRowChangeEventHandler punkt_vidachiRowChanged;
  1521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1522. public event punkt_vidachiRowChangeEventHandler punkt_vidachiRowDeleting;
  1523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1524. public event punkt_vidachiRowChangeEventHandler punkt_vidachiRowDeleted;
  1525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1526. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1527. public void Addpunkt_vidachiRow(punkt_vidachiRow row) {
  1528. this.Rows.Add(row);
  1529. }
  1530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1532. public punkt_vidachiRow Addpunkt_vidachiRow(byte id, int index, string gorod, string ulica, byte dom) {
  1533. punkt_vidachiRow rowpunkt_vidachiRow = ((punkt_vidachiRow)(this.NewRow()));
  1534. object[] columnValuesArray = new object[] {
  1535. id,
  1536. index,
  1537. gorod,
  1538. ulica,
  1539. dom};
  1540. rowpunkt_vidachiRow.ItemArray = columnValuesArray;
  1541. this.Rows.Add(rowpunkt_vidachiRow);
  1542. return rowpunkt_vidachiRow;
  1543. }
  1544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1545. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1546. public punkt_vidachiRow FindByid(byte id) {
  1547. return ((punkt_vidachiRow)(this.Rows.Find(new object[] {
  1548. id})));
  1549. }
  1550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1552. public override global::System.Data.DataTable Clone() {
  1553. punkt_vidachiDataTable cln = ((punkt_vidachiDataTable)(base.Clone()));
  1554. cln.InitVars();
  1555. return cln;
  1556. }
  1557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1559. protected override global::System.Data.DataTable CreateInstance() {
  1560. return new punkt_vidachiDataTable();
  1561. }
  1562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1564. internal void InitVars() {
  1565. this.columnid = base.Columns["id"];
  1566. this.columnindex = base.Columns["index"];
  1567. this.columngorod = base.Columns["gorod"];
  1568. this.columnulica = base.Columns["ulica"];
  1569. this.columndom = base.Columns["dom"];
  1570. }
  1571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1573. private void InitClass() {
  1574. this.columnid = new global::System.Data.DataColumn("id", typeof(byte), null, global::System.Data.MappingType.Element);
  1575. base.Columns.Add(this.columnid);
  1576. this.columnindex = new global::System.Data.DataColumn("index", typeof(int), null, global::System.Data.MappingType.Element);
  1577. base.Columns.Add(this.columnindex);
  1578. this.columngorod = new global::System.Data.DataColumn("gorod", typeof(string), null, global::System.Data.MappingType.Element);
  1579. base.Columns.Add(this.columngorod);
  1580. this.columnulica = new global::System.Data.DataColumn("ulica", typeof(string), null, global::System.Data.MappingType.Element);
  1581. base.Columns.Add(this.columnulica);
  1582. this.columndom = new global::System.Data.DataColumn("dom", typeof(byte), null, global::System.Data.MappingType.Element);
  1583. base.Columns.Add(this.columndom);
  1584. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1585. this.columnid}, true));
  1586. this.columnid.AllowDBNull = false;
  1587. this.columnid.ReadOnly = true;
  1588. this.columnid.Unique = true;
  1589. this.columnindex.AllowDBNull = false;
  1590. this.columngorod.AllowDBNull = false;
  1591. this.columngorod.MaxLength = 50;
  1592. this.columnulica.AllowDBNull = false;
  1593. this.columnulica.MaxLength = 50;
  1594. }
  1595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1597. public punkt_vidachiRow Newpunkt_vidachiRow() {
  1598. return ((punkt_vidachiRow)(this.NewRow()));
  1599. }
  1600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1602. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1603. return new punkt_vidachiRow(builder);
  1604. }
  1605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1607. protected override global::System.Type GetRowType() {
  1608. return typeof(punkt_vidachiRow);
  1609. }
  1610. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1611. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1612. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1613. base.OnRowChanged(e);
  1614. if ((this.punkt_vidachiRowChanged != null)) {
  1615. this.punkt_vidachiRowChanged(this, new punkt_vidachiRowChangeEvent(((punkt_vidachiRow)(e.Row)), e.Action));
  1616. }
  1617. }
  1618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1620. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1621. base.OnRowChanging(e);
  1622. if ((this.punkt_vidachiRowChanging != null)) {
  1623. this.punkt_vidachiRowChanging(this, new punkt_vidachiRowChangeEvent(((punkt_vidachiRow)(e.Row)), e.Action));
  1624. }
  1625. }
  1626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1628. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1629. base.OnRowDeleted(e);
  1630. if ((this.punkt_vidachiRowDeleted != null)) {
  1631. this.punkt_vidachiRowDeleted(this, new punkt_vidachiRowChangeEvent(((punkt_vidachiRow)(e.Row)), e.Action));
  1632. }
  1633. }
  1634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1636. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1637. base.OnRowDeleting(e);
  1638. if ((this.punkt_vidachiRowDeleting != null)) {
  1639. this.punkt_vidachiRowDeleting(this, new punkt_vidachiRowChangeEvent(((punkt_vidachiRow)(e.Row)), e.Action));
  1640. }
  1641. }
  1642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1644. public void Removepunkt_vidachiRow(punkt_vidachiRow row) {
  1645. this.Rows.Remove(row);
  1646. }
  1647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1649. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1650. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1651. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1652. trade02DataSet ds = new trade02DataSet();
  1653. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1654. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1655. any1.MinOccurs = new decimal(0);
  1656. any1.MaxOccurs = decimal.MaxValue;
  1657. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1658. sequence.Items.Add(any1);
  1659. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1660. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1661. any2.MinOccurs = new decimal(1);
  1662. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1663. sequence.Items.Add(any2);
  1664. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1665. attribute1.Name = "namespace";
  1666. attribute1.FixedValue = ds.Namespace;
  1667. type.Attributes.Add(attribute1);
  1668. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1669. attribute2.Name = "tableTypeName";
  1670. attribute2.FixedValue = "punkt_vidachiDataTable";
  1671. type.Attributes.Add(attribute2);
  1672. type.Particle = sequence;
  1673. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1674. if (xs.Contains(dsSchema.TargetNamespace)) {
  1675. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1676. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1677. try {
  1678. global::System.Xml.Schema.XmlSchema schema = null;
  1679. dsSchema.Write(s1);
  1680. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1681. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1682. s2.SetLength(0);
  1683. schema.Write(s2);
  1684. if ((s1.Length == s2.Length)) {
  1685. s1.Position = 0;
  1686. s2.Position = 0;
  1687. for (; ((s1.Position != s1.Length)
  1688. && (s1.ReadByte() == s2.ReadByte())); ) {
  1689. ;
  1690. }
  1691. if ((s1.Position == s1.Length)) {
  1692. return type;
  1693. }
  1694. }
  1695. }
  1696. }
  1697. finally {
  1698. if ((s1 != null)) {
  1699. s1.Close();
  1700. }
  1701. if ((s2 != null)) {
  1702. s2.Close();
  1703. }
  1704. }
  1705. }
  1706. xs.Add(dsSchema);
  1707. return type;
  1708. }
  1709. }
  1710. /// <summary>
  1711. ///Represents the strongly named DataTable class.
  1712. ///</summary>
  1713. [global::System.Serializable()]
  1714. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1715. public partial class RoleDataTable : global::System.Data.TypedTableBase<RoleRow> {
  1716. private global::System.Data.DataColumn columnRoleID;
  1717. private global::System.Data.DataColumn columnRoleName;
  1718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1720. public RoleDataTable() {
  1721. this.TableName = "Role";
  1722. this.BeginInit();
  1723. this.InitClass();
  1724. this.EndInit();
  1725. }
  1726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1728. internal RoleDataTable(global::System.Data.DataTable table) {
  1729. this.TableName = table.TableName;
  1730. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1731. this.CaseSensitive = table.CaseSensitive;
  1732. }
  1733. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1734. this.Locale = table.Locale;
  1735. }
  1736. if ((table.Namespace != table.DataSet.Namespace)) {
  1737. this.Namespace = table.Namespace;
  1738. }
  1739. this.Prefix = table.Prefix;
  1740. this.MinimumCapacity = table.MinimumCapacity;
  1741. }
  1742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1744. protected RoleDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1745. base(info, context) {
  1746. this.InitVars();
  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 RoleIDColumn {
  1751. get {
  1752. return this.columnRoleID;
  1753. }
  1754. }
  1755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1757. public global::System.Data.DataColumn RoleNameColumn {
  1758. get {
  1759. return this.columnRoleName;
  1760. }
  1761. }
  1762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1764. [global::System.ComponentModel.Browsable(false)]
  1765. public int Count {
  1766. get {
  1767. return this.Rows.Count;
  1768. }
  1769. }
  1770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1772. public RoleRow this[int index] {
  1773. get {
  1774. return ((RoleRow)(this.Rows[index]));
  1775. }
  1776. }
  1777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1778. public event RoleRowChangeEventHandler RoleRowChanging;
  1779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1780. public event RoleRowChangeEventHandler RoleRowChanged;
  1781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1782. public event RoleRowChangeEventHandler RoleRowDeleting;
  1783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1784. public event RoleRowChangeEventHandler RoleRowDeleted;
  1785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1786. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1787. public void AddRoleRow(RoleRow row) {
  1788. this.Rows.Add(row);
  1789. }
  1790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1792. public RoleRow AddRoleRow(string RoleName) {
  1793. RoleRow rowRoleRow = ((RoleRow)(this.NewRow()));
  1794. object[] columnValuesArray = new object[] {
  1795. null,
  1796. RoleName};
  1797. rowRoleRow.ItemArray = columnValuesArray;
  1798. this.Rows.Add(rowRoleRow);
  1799. return rowRoleRow;
  1800. }
  1801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1803. public RoleRow FindByRoleID(int RoleID) {
  1804. return ((RoleRow)(this.Rows.Find(new object[] {
  1805. RoleID})));
  1806. }
  1807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1809. public override global::System.Data.DataTable Clone() {
  1810. RoleDataTable cln = ((RoleDataTable)(base.Clone()));
  1811. cln.InitVars();
  1812. return cln;
  1813. }
  1814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1816. protected override global::System.Data.DataTable CreateInstance() {
  1817. return new RoleDataTable();
  1818. }
  1819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1821. internal void InitVars() {
  1822. this.columnRoleID = base.Columns["RoleID"];
  1823. this.columnRoleName = base.Columns["RoleName"];
  1824. }
  1825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1827. private void InitClass() {
  1828. this.columnRoleID = new global::System.Data.DataColumn("RoleID", typeof(int), null, global::System.Data.MappingType.Element);
  1829. base.Columns.Add(this.columnRoleID);
  1830. this.columnRoleName = new global::System.Data.DataColumn("RoleName", typeof(string), null, global::System.Data.MappingType.Element);
  1831. base.Columns.Add(this.columnRoleName);
  1832. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1833. this.columnRoleID}, true));
  1834. this.columnRoleID.AutoIncrement = true;
  1835. this.columnRoleID.AutoIncrementSeed = -1;
  1836. this.columnRoleID.AutoIncrementStep = -1;
  1837. this.columnRoleID.AllowDBNull = false;
  1838. this.columnRoleID.ReadOnly = true;
  1839. this.columnRoleID.Unique = true;
  1840. this.columnRoleName.AllowDBNull = false;
  1841. this.columnRoleName.MaxLength = 100;
  1842. }
  1843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1845. public RoleRow NewRoleRow() {
  1846. return ((RoleRow)(this.NewRow()));
  1847. }
  1848. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1849. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1850. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1851. return new RoleRow(builder);
  1852. }
  1853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1855. protected override global::System.Type GetRowType() {
  1856. return typeof(RoleRow);
  1857. }
  1858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1860. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1861. base.OnRowChanged(e);
  1862. if ((this.RoleRowChanged != null)) {
  1863. this.RoleRowChanged(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  1864. }
  1865. }
  1866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1868. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1869. base.OnRowChanging(e);
  1870. if ((this.RoleRowChanging != null)) {
  1871. this.RoleRowChanging(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  1872. }
  1873. }
  1874. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1875. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1876. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1877. base.OnRowDeleted(e);
  1878. if ((this.RoleRowDeleted != null)) {
  1879. this.RoleRowDeleted(this, new RoleRowChangeEvent(((RoleRow)(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 OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1885. base.OnRowDeleting(e);
  1886. if ((this.RoleRowDeleting != null)) {
  1887. this.RoleRowDeleting(this, new RoleRowChangeEvent(((RoleRow)(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. public void RemoveRoleRow(RoleRow row) {
  1893. this.Rows.Remove(row);
  1894. }
  1895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1897. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1898. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1899. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1900. trade02DataSet ds = new trade02DataSet();
  1901. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1902. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1903. any1.MinOccurs = new decimal(0);
  1904. any1.MaxOccurs = decimal.MaxValue;
  1905. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1906. sequence.Items.Add(any1);
  1907. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1908. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1909. any2.MinOccurs = new decimal(1);
  1910. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1911. sequence.Items.Add(any2);
  1912. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1913. attribute1.Name = "namespace";
  1914. attribute1.FixedValue = ds.Namespace;
  1915. type.Attributes.Add(attribute1);
  1916. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1917. attribute2.Name = "tableTypeName";
  1918. attribute2.FixedValue = "RoleDataTable";
  1919. type.Attributes.Add(attribute2);
  1920. type.Particle = sequence;
  1921. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1922. if (xs.Contains(dsSchema.TargetNamespace)) {
  1923. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1924. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1925. try {
  1926. global::System.Xml.Schema.XmlSchema schema = null;
  1927. dsSchema.Write(s1);
  1928. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1929. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1930. s2.SetLength(0);
  1931. schema.Write(s2);
  1932. if ((s1.Length == s2.Length)) {
  1933. s1.Position = 0;
  1934. s2.Position = 0;
  1935. for (; ((s1.Position != s1.Length)
  1936. && (s1.ReadByte() == s2.ReadByte())); ) {
  1937. ;
  1938. }
  1939. if ((s1.Position == s1.Length)) {
  1940. return type;
  1941. }
  1942. }
  1943. }
  1944. }
  1945. finally {
  1946. if ((s1 != null)) {
  1947. s1.Close();
  1948. }
  1949. if ((s2 != null)) {
  1950. s2.Close();
  1951. }
  1952. }
  1953. }
  1954. xs.Add(dsSchema);
  1955. return type;
  1956. }
  1957. }
  1958. /// <summary>
  1959. ///Represents the strongly named DataTable class.
  1960. ///</summary>
  1961. [global::System.Serializable()]
  1962. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1963. public partial class UserDataTable : global::System.Data.TypedTableBase<UserRow> {
  1964. private global::System.Data.DataColumn columnUserID;
  1965. private global::System.Data.DataColumn columnUserSurname;
  1966. private global::System.Data.DataColumn columnUserName;
  1967. private global::System.Data.DataColumn columnUserPatronymic;
  1968. private global::System.Data.DataColumn columnUserLogin;
  1969. private global::System.Data.DataColumn columnUserPassword;
  1970. private global::System.Data.DataColumn columnUserRole;
  1971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1972. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1973. public UserDataTable() {
  1974. this.TableName = "User";
  1975. this.BeginInit();
  1976. this.InitClass();
  1977. this.EndInit();
  1978. }
  1979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1981. internal UserDataTable(global::System.Data.DataTable table) {
  1982. this.TableName = table.TableName;
  1983. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1984. this.CaseSensitive = table.CaseSensitive;
  1985. }
  1986. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1987. this.Locale = table.Locale;
  1988. }
  1989. if ((table.Namespace != table.DataSet.Namespace)) {
  1990. this.Namespace = table.Namespace;
  1991. }
  1992. this.Prefix = table.Prefix;
  1993. this.MinimumCapacity = table.MinimumCapacity;
  1994. }
  1995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1997. protected UserDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1998. base(info, context) {
  1999. this.InitVars();
  2000. }
  2001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2003. public global::System.Data.DataColumn UserIDColumn {
  2004. get {
  2005. return this.columnUserID;
  2006. }
  2007. }
  2008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2010. public global::System.Data.DataColumn UserSurnameColumn {
  2011. get {
  2012. return this.columnUserSurname;
  2013. }
  2014. }
  2015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2017. public global::System.Data.DataColumn UserNameColumn {
  2018. get {
  2019. return this.columnUserName;
  2020. }
  2021. }
  2022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2024. public global::System.Data.DataColumn UserPatronymicColumn {
  2025. get {
  2026. return this.columnUserPatronymic;
  2027. }
  2028. }
  2029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2031. public global::System.Data.DataColumn UserLoginColumn {
  2032. get {
  2033. return this.columnUserLogin;
  2034. }
  2035. }
  2036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2038. public global::System.Data.DataColumn UserPasswordColumn {
  2039. get {
  2040. return this.columnUserPassword;
  2041. }
  2042. }
  2043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2045. public global::System.Data.DataColumn UserRoleColumn {
  2046. get {
  2047. return this.columnUserRole;
  2048. }
  2049. }
  2050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2052. [global::System.ComponentModel.Browsable(false)]
  2053. public int Count {
  2054. get {
  2055. return this.Rows.Count;
  2056. }
  2057. }
  2058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2060. public UserRow this[int index] {
  2061. get {
  2062. return ((UserRow)(this.Rows[index]));
  2063. }
  2064. }
  2065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2066. public event UserRowChangeEventHandler UserRowChanging;
  2067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2068. public event UserRowChangeEventHandler UserRowChanged;
  2069. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2070. public event UserRowChangeEventHandler UserRowDeleting;
  2071. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2072. public event UserRowChangeEventHandler UserRowDeleted;
  2073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2075. public void AddUserRow(UserRow row) {
  2076. this.Rows.Add(row);
  2077. }
  2078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2080. public UserRow AddUserRow(string UserSurname, string UserName, string UserPatronymic, string UserLogin, string UserPassword, RoleRow parentRoleRowByFK__User__UserRole__25869641) {
  2081. UserRow rowUserRow = ((UserRow)(this.NewRow()));
  2082. object[] columnValuesArray = new object[] {
  2083. null,
  2084. UserSurname,
  2085. UserName,
  2086. UserPatronymic,
  2087. UserLogin,
  2088. UserPassword,
  2089. null};
  2090. if ((parentRoleRowByFK__User__UserRole__25869641 != null)) {
  2091. columnValuesArray[6] = parentRoleRowByFK__User__UserRole__25869641[0];
  2092. }
  2093. rowUserRow.ItemArray = columnValuesArray;
  2094. this.Rows.Add(rowUserRow);
  2095. return rowUserRow;
  2096. }
  2097. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2098. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2099. public UserRow FindByUserID(int UserID) {
  2100. return ((UserRow)(this.Rows.Find(new object[] {
  2101. UserID})));
  2102. }
  2103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2105. public override global::System.Data.DataTable Clone() {
  2106. UserDataTable cln = ((UserDataTable)(base.Clone()));
  2107. cln.InitVars();
  2108. return cln;
  2109. }
  2110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2112. protected override global::System.Data.DataTable CreateInstance() {
  2113. return new UserDataTable();
  2114. }
  2115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2117. internal void InitVars() {
  2118. this.columnUserID = base.Columns["UserID"];
  2119. this.columnUserSurname = base.Columns["UserSurname"];
  2120. this.columnUserName = base.Columns["UserName"];
  2121. this.columnUserPatronymic = base.Columns["UserPatronymic"];
  2122. this.columnUserLogin = base.Columns["UserLogin"];
  2123. this.columnUserPassword = base.Columns["UserPassword"];
  2124. this.columnUserRole = base.Columns["UserRole"];
  2125. }
  2126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2128. private void InitClass() {
  2129. this.columnUserID = new global::System.Data.DataColumn("UserID", typeof(int), null, global::System.Data.MappingType.Element);
  2130. base.Columns.Add(this.columnUserID);
  2131. this.columnUserSurname = new global::System.Data.DataColumn("UserSurname", typeof(string), null, global::System.Data.MappingType.Element);
  2132. base.Columns.Add(this.columnUserSurname);
  2133. this.columnUserName = new global::System.Data.DataColumn("UserName", typeof(string), null, global::System.Data.MappingType.Element);
  2134. base.Columns.Add(this.columnUserName);
  2135. this.columnUserPatronymic = new global::System.Data.DataColumn("UserPatronymic", typeof(string), null, global::System.Data.MappingType.Element);
  2136. base.Columns.Add(this.columnUserPatronymic);
  2137. this.columnUserLogin = new global::System.Data.DataColumn("UserLogin", typeof(string), null, global::System.Data.MappingType.Element);
  2138. base.Columns.Add(this.columnUserLogin);
  2139. this.columnUserPassword = new global::System.Data.DataColumn("UserPassword", typeof(string), null, global::System.Data.MappingType.Element);
  2140. base.Columns.Add(this.columnUserPassword);
  2141. this.columnUserRole = new global::System.Data.DataColumn("UserRole", typeof(int), null, global::System.Data.MappingType.Element);
  2142. base.Columns.Add(this.columnUserRole);
  2143. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2144. this.columnUserID}, true));
  2145. this.columnUserID.AutoIncrement = true;
  2146. this.columnUserID.AutoIncrementSeed = -1;
  2147. this.columnUserID.AutoIncrementStep = -1;
  2148. this.columnUserID.AllowDBNull = false;
  2149. this.columnUserID.ReadOnly = true;
  2150. this.columnUserID.Unique = true;
  2151. this.columnUserSurname.AllowDBNull = false;
  2152. this.columnUserSurname.MaxLength = 100;
  2153. this.columnUserName.AllowDBNull = false;
  2154. this.columnUserName.MaxLength = 100;
  2155. this.columnUserPatronymic.AllowDBNull = false;
  2156. this.columnUserPatronymic.MaxLength = 100;
  2157. this.columnUserLogin.AllowDBNull = false;
  2158. this.columnUserLogin.MaxLength = 2147483647;
  2159. this.columnUserPassword.AllowDBNull = false;
  2160. this.columnUserPassword.MaxLength = 2147483647;
  2161. this.columnUserRole.AllowDBNull = false;
  2162. }
  2163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2165. public UserRow NewUserRow() {
  2166. return ((UserRow)(this.NewRow()));
  2167. }
  2168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2170. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2171. return new UserRow(builder);
  2172. }
  2173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2175. protected override global::System.Type GetRowType() {
  2176. return typeof(UserRow);
  2177. }
  2178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2180. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2181. base.OnRowChanged(e);
  2182. if ((this.UserRowChanged != null)) {
  2183. this.UserRowChanged(this, new UserRowChangeEvent(((UserRow)(e.Row)), e.Action));
  2184. }
  2185. }
  2186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2188. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2189. base.OnRowChanging(e);
  2190. if ((this.UserRowChanging != null)) {
  2191. this.UserRowChanging(this, new UserRowChangeEvent(((UserRow)(e.Row)), e.Action));
  2192. }
  2193. }
  2194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2196. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2197. base.OnRowDeleted(e);
  2198. if ((this.UserRowDeleted != null)) {
  2199. this.UserRowDeleted(this, new UserRowChangeEvent(((UserRow)(e.Row)), e.Action));
  2200. }
  2201. }
  2202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2204. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2205. base.OnRowDeleting(e);
  2206. if ((this.UserRowDeleting != null)) {
  2207. this.UserRowDeleting(this, new UserRowChangeEvent(((UserRow)(e.Row)), e.Action));
  2208. }
  2209. }
  2210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2212. public void RemoveUserRow(UserRow row) {
  2213. this.Rows.Remove(row);
  2214. }
  2215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2217. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2218. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2219. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2220. trade02DataSet ds = new trade02DataSet();
  2221. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2222. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2223. any1.MinOccurs = new decimal(0);
  2224. any1.MaxOccurs = decimal.MaxValue;
  2225. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2226. sequence.Items.Add(any1);
  2227. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2228. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2229. any2.MinOccurs = new decimal(1);
  2230. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2231. sequence.Items.Add(any2);
  2232. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2233. attribute1.Name = "namespace";
  2234. attribute1.FixedValue = ds.Namespace;
  2235. type.Attributes.Add(attribute1);
  2236. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2237. attribute2.Name = "tableTypeName";
  2238. attribute2.FixedValue = "UserDataTable";
  2239. type.Attributes.Add(attribute2);
  2240. type.Particle = sequence;
  2241. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2242. if (xs.Contains(dsSchema.TargetNamespace)) {
  2243. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2244. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2245. try {
  2246. global::System.Xml.Schema.XmlSchema schema = null;
  2247. dsSchema.Write(s1);
  2248. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2249. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2250. s2.SetLength(0);
  2251. schema.Write(s2);
  2252. if ((s1.Length == s2.Length)) {
  2253. s1.Position = 0;
  2254. s2.Position = 0;
  2255. for (; ((s1.Position != s1.Length)
  2256. && (s1.ReadByte() == s2.ReadByte())); ) {
  2257. ;
  2258. }
  2259. if ((s1.Position == s1.Length)) {
  2260. return type;
  2261. }
  2262. }
  2263. }
  2264. }
  2265. finally {
  2266. if ((s1 != null)) {
  2267. s1.Close();
  2268. }
  2269. if ((s2 != null)) {
  2270. s2.Close();
  2271. }
  2272. }
  2273. }
  2274. xs.Add(dsSchema);
  2275. return type;
  2276. }
  2277. }
  2278. /// <summary>
  2279. ///Represents the strongly named DataTable class.
  2280. ///</summary>
  2281. [global::System.Serializable()]
  2282. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2283. public partial class UserTableDataTable : global::System.Data.TypedTableBase<UserTableRow> {
  2284. private global::System.Data.DataColumn columnUserID;
  2285. private global::System.Data.DataColumn columnUserSurname;
  2286. private global::System.Data.DataColumn columnUserName;
  2287. private global::System.Data.DataColumn columnUserPatronymic;
  2288. private global::System.Data.DataColumn columnUserLogin;
  2289. private global::System.Data.DataColumn columnUserPassword;
  2290. private global::System.Data.DataColumn columnUserRole;
  2291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2293. public UserTableDataTable() {
  2294. this.TableName = "UserTable";
  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 UserTableDataTable(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 UserTableDataTable(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 UserIDColumn {
  2324. get {
  2325. return this.columnUserID;
  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 UserSurnameColumn {
  2331. get {
  2332. return this.columnUserSurname;
  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 UserNameColumn {
  2338. get {
  2339. return this.columnUserName;
  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 UserPatronymicColumn {
  2345. get {
  2346. return this.columnUserPatronymic;
  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 UserLoginColumn {
  2352. get {
  2353. return this.columnUserLogin;
  2354. }
  2355. }
  2356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2358. public global::System.Data.DataColumn UserPasswordColumn {
  2359. get {
  2360. return this.columnUserPassword;
  2361. }
  2362. }
  2363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2365. public global::System.Data.DataColumn UserRoleColumn {
  2366. get {
  2367. return this.columnUserRole;
  2368. }
  2369. }
  2370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2372. [global::System.ComponentModel.Browsable(false)]
  2373. public int Count {
  2374. get {
  2375. return this.Rows.Count;
  2376. }
  2377. }
  2378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2379. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2380. public UserTableRow this[int index] {
  2381. get {
  2382. return ((UserTableRow)(this.Rows[index]));
  2383. }
  2384. }
  2385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2386. public event UserTableRowChangeEventHandler UserTableRowChanging;
  2387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2388. public event UserTableRowChangeEventHandler UserTableRowChanged;
  2389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2390. public event UserTableRowChangeEventHandler UserTableRowDeleting;
  2391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2392. public event UserTableRowChangeEventHandler UserTableRowDeleted;
  2393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2395. public void AddUserTableRow(UserTableRow row) {
  2396. this.Rows.Add(row);
  2397. }
  2398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2400. public UserTableRow AddUserTableRow(string UserSurname, string UserName, string UserPatronymic, string UserLogin, string UserPassword, RoleRow parentRoleRowByFK__User__UserRole__258696411) {
  2401. UserTableRow rowUserTableRow = ((UserTableRow)(this.NewRow()));
  2402. object[] columnValuesArray = new object[] {
  2403. null,
  2404. UserSurname,
  2405. UserName,
  2406. UserPatronymic,
  2407. UserLogin,
  2408. UserPassword,
  2409. null};
  2410. if ((parentRoleRowByFK__User__UserRole__258696411 != null)) {
  2411. columnValuesArray[6] = parentRoleRowByFK__User__UserRole__258696411[0];
  2412. }
  2413. rowUserTableRow.ItemArray = columnValuesArray;
  2414. this.Rows.Add(rowUserTableRow);
  2415. return rowUserTableRow;
  2416. }
  2417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2419. public UserTableRow FindByUserID(int UserID) {
  2420. return ((UserTableRow)(this.Rows.Find(new object[] {
  2421. UserID})));
  2422. }
  2423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2425. public override global::System.Data.DataTable Clone() {
  2426. UserTableDataTable cln = ((UserTableDataTable)(base.Clone()));
  2427. cln.InitVars();
  2428. return cln;
  2429. }
  2430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2432. protected override global::System.Data.DataTable CreateInstance() {
  2433. return new UserTableDataTable();
  2434. }
  2435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2437. internal void InitVars() {
  2438. this.columnUserID = base.Columns["UserID"];
  2439. this.columnUserSurname = base.Columns["UserSurname"];
  2440. this.columnUserName = base.Columns["UserName"];
  2441. this.columnUserPatronymic = base.Columns["UserPatronymic"];
  2442. this.columnUserLogin = base.Columns["UserLogin"];
  2443. this.columnUserPassword = base.Columns["UserPassword"];
  2444. this.columnUserRole = base.Columns["UserRole"];
  2445. }
  2446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2448. private void InitClass() {
  2449. this.columnUserID = new global::System.Data.DataColumn("UserID", typeof(int), null, global::System.Data.MappingType.Element);
  2450. base.Columns.Add(this.columnUserID);
  2451. this.columnUserSurname = new global::System.Data.DataColumn("UserSurname", typeof(string), null, global::System.Data.MappingType.Element);
  2452. base.Columns.Add(this.columnUserSurname);
  2453. this.columnUserName = new global::System.Data.DataColumn("UserName", typeof(string), null, global::System.Data.MappingType.Element);
  2454. base.Columns.Add(this.columnUserName);
  2455. this.columnUserPatronymic = new global::System.Data.DataColumn("UserPatronymic", typeof(string), null, global::System.Data.MappingType.Element);
  2456. base.Columns.Add(this.columnUserPatronymic);
  2457. this.columnUserLogin = new global::System.Data.DataColumn("UserLogin", typeof(string), null, global::System.Data.MappingType.Element);
  2458. base.Columns.Add(this.columnUserLogin);
  2459. this.columnUserPassword = new global::System.Data.DataColumn("UserPassword", typeof(string), null, global::System.Data.MappingType.Element);
  2460. base.Columns.Add(this.columnUserPassword);
  2461. this.columnUserRole = new global::System.Data.DataColumn("UserRole", typeof(int), null, global::System.Data.MappingType.Element);
  2462. base.Columns.Add(this.columnUserRole);
  2463. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2464. this.columnUserID}, true));
  2465. this.columnUserID.AutoIncrement = true;
  2466. this.columnUserID.AutoIncrementSeed = -1;
  2467. this.columnUserID.AutoIncrementStep = -1;
  2468. this.columnUserID.AllowDBNull = false;
  2469. this.columnUserID.ReadOnly = true;
  2470. this.columnUserID.Unique = true;
  2471. this.columnUserSurname.AllowDBNull = false;
  2472. this.columnUserSurname.MaxLength = 100;
  2473. this.columnUserName.AllowDBNull = false;
  2474. this.columnUserName.MaxLength = 100;
  2475. this.columnUserPatronymic.AllowDBNull = false;
  2476. this.columnUserPatronymic.MaxLength = 100;
  2477. this.columnUserLogin.AllowDBNull = false;
  2478. this.columnUserLogin.MaxLength = 2147483647;
  2479. this.columnUserPassword.AllowDBNull = false;
  2480. this.columnUserPassword.MaxLength = 2147483647;
  2481. this.columnUserRole.AllowDBNull = false;
  2482. }
  2483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2485. public UserTableRow NewUserTableRow() {
  2486. return ((UserTableRow)(this.NewRow()));
  2487. }
  2488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2490. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2491. return new UserTableRow(builder);
  2492. }
  2493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2495. protected override global::System.Type GetRowType() {
  2496. return typeof(UserTableRow);
  2497. }
  2498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2500. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2501. base.OnRowChanged(e);
  2502. if ((this.UserTableRowChanged != null)) {
  2503. this.UserTableRowChanged(this, new UserTableRowChangeEvent(((UserTableRow)(e.Row)), e.Action));
  2504. }
  2505. }
  2506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2508. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2509. base.OnRowChanging(e);
  2510. if ((this.UserTableRowChanging != null)) {
  2511. this.UserTableRowChanging(this, new UserTableRowChangeEvent(((UserTableRow)(e.Row)), e.Action));
  2512. }
  2513. }
  2514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2516. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2517. base.OnRowDeleted(e);
  2518. if ((this.UserTableRowDeleted != null)) {
  2519. this.UserTableRowDeleted(this, new UserTableRowChangeEvent(((UserTableRow)(e.Row)), e.Action));
  2520. }
  2521. }
  2522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2524. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2525. base.OnRowDeleting(e);
  2526. if ((this.UserTableRowDeleting != null)) {
  2527. this.UserTableRowDeleting(this, new UserTableRowChangeEvent(((UserTableRow)(e.Row)), e.Action));
  2528. }
  2529. }
  2530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2532. public void RemoveUserTableRow(UserTableRow row) {
  2533. this.Rows.Remove(row);
  2534. }
  2535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2537. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2538. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2539. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2540. trade02DataSet ds = new trade02DataSet();
  2541. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2542. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2543. any1.MinOccurs = new decimal(0);
  2544. any1.MaxOccurs = decimal.MaxValue;
  2545. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2546. sequence.Items.Add(any1);
  2547. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2548. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2549. any2.MinOccurs = new decimal(1);
  2550. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2551. sequence.Items.Add(any2);
  2552. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2553. attribute1.Name = "namespace";
  2554. attribute1.FixedValue = ds.Namespace;
  2555. type.Attributes.Add(attribute1);
  2556. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2557. attribute2.Name = "tableTypeName";
  2558. attribute2.FixedValue = "UserTableDataTable";
  2559. type.Attributes.Add(attribute2);
  2560. type.Particle = sequence;
  2561. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2562. if (xs.Contains(dsSchema.TargetNamespace)) {
  2563. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2564. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2565. try {
  2566. global::System.Xml.Schema.XmlSchema schema = null;
  2567. dsSchema.Write(s1);
  2568. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2569. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2570. s2.SetLength(0);
  2571. schema.Write(s2);
  2572. if ((s1.Length == s2.Length)) {
  2573. s1.Position = 0;
  2574. s2.Position = 0;
  2575. for (; ((s1.Position != s1.Length)
  2576. && (s1.ReadByte() == s2.ReadByte())); ) {
  2577. ;
  2578. }
  2579. if ((s1.Position == s1.Length)) {
  2580. return type;
  2581. }
  2582. }
  2583. }
  2584. }
  2585. finally {
  2586. if ((s1 != null)) {
  2587. s1.Close();
  2588. }
  2589. if ((s2 != null)) {
  2590. s2.Close();
  2591. }
  2592. }
  2593. }
  2594. xs.Add(dsSchema);
  2595. return type;
  2596. }
  2597. }
  2598. /// <summary>
  2599. ///Represents strongly named DataRow class.
  2600. ///</summary>
  2601. public partial class OrderRow : global::System.Data.DataRow {
  2602. private OrderDataTable tableOrder;
  2603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2605. internal OrderRow(global::System.Data.DataRowBuilder rb) :
  2606. base(rb) {
  2607. this.tableOrder = ((OrderDataTable)(this.Table));
  2608. }
  2609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2611. public int OrderID {
  2612. get {
  2613. return ((int)(this[this.tableOrder.OrderIDColumn]));
  2614. }
  2615. set {
  2616. this[this.tableOrder.OrderIDColumn] = value;
  2617. }
  2618. }
  2619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2621. public string OrderStatus {
  2622. get {
  2623. return ((string)(this[this.tableOrder.OrderStatusColumn]));
  2624. }
  2625. set {
  2626. this[this.tableOrder.OrderStatusColumn] = value;
  2627. }
  2628. }
  2629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2631. public System.DateTime OrderDeliveryDate {
  2632. get {
  2633. return ((global::System.DateTime)(this[this.tableOrder.OrderDeliveryDateColumn]));
  2634. }
  2635. set {
  2636. this[this.tableOrder.OrderDeliveryDateColumn] = value;
  2637. }
  2638. }
  2639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2641. public byte OrderPickupPoint {
  2642. get {
  2643. return ((byte)(this[this.tableOrder.OrderPickupPointColumn]));
  2644. }
  2645. set {
  2646. this[this.tableOrder.OrderPickupPointColumn] = value;
  2647. }
  2648. }
  2649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2651. public System.DateTime DateZakaza {
  2652. get {
  2653. try {
  2654. return ((global::System.DateTime)(this[this.tableOrder.DateZakazaColumn]));
  2655. }
  2656. catch (global::System.InvalidCastException e) {
  2657. throw new global::System.Data.StrongTypingException("Значение для столбца \'DateZakaza\' в таблице \'Order\' равно DBNull.", e);
  2658. }
  2659. }
  2660. set {
  2661. this[this.tableOrder.DateZakazaColumn] = value;
  2662. }
  2663. }
  2664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2666. public string fioKlienta {
  2667. get {
  2668. try {
  2669. return ((string)(this[this.tableOrder.fioKlientaColumn]));
  2670. }
  2671. catch (global::System.InvalidCastException e) {
  2672. throw new global::System.Data.StrongTypingException("Значение для столбца \'fioKlienta\' в таблице \'Order\' равно DBNull.", e);
  2673. }
  2674. }
  2675. set {
  2676. this[this.tableOrder.fioKlientaColumn] = value;
  2677. }
  2678. }
  2679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2681. public int KodPolycheniya {
  2682. get {
  2683. try {
  2684. return ((int)(this[this.tableOrder.KodPolycheniyaColumn]));
  2685. }
  2686. catch (global::System.InvalidCastException e) {
  2687. throw new global::System.Data.StrongTypingException("Значение для столбца \'KodPolycheniya\' в таблице \'Order\' равно DBNull.", e);
  2688. }
  2689. }
  2690. set {
  2691. this[this.tableOrder.KodPolycheniyaColumn] = value;
  2692. }
  2693. }
  2694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2696. public punkt_vidachiRow punkt_vidachiRow {
  2697. get {
  2698. return ((punkt_vidachiRow)(this.GetParentRow(this.Table.ParentRelations["FK_Order_punkt_vidachi"])));
  2699. }
  2700. set {
  2701. this.SetParentRow(value, this.Table.ParentRelations["FK_Order_punkt_vidachi"]);
  2702. }
  2703. }
  2704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2706. public bool IsDateZakazaNull() {
  2707. return this.IsNull(this.tableOrder.DateZakazaColumn);
  2708. }
  2709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2711. public void SetDateZakazaNull() {
  2712. this[this.tableOrder.DateZakazaColumn] = global::System.Convert.DBNull;
  2713. }
  2714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2716. public bool IsfioKlientaNull() {
  2717. return this.IsNull(this.tableOrder.fioKlientaColumn);
  2718. }
  2719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2721. public void SetfioKlientaNull() {
  2722. this[this.tableOrder.fioKlientaColumn] = global::System.Convert.DBNull;
  2723. }
  2724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2725. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2726. public bool IsKodPolycheniyaNull() {
  2727. return this.IsNull(this.tableOrder.KodPolycheniyaColumn);
  2728. }
  2729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2731. public void SetKodPolycheniyaNull() {
  2732. this[this.tableOrder.KodPolycheniyaColumn] = global::System.Convert.DBNull;
  2733. }
  2734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2736. public OrderProductRow[] GetOrderProductRows() {
  2737. if ((this.Table.ChildRelations["FK_OrderProduct_Order"] == null)) {
  2738. return new OrderProductRow[0];
  2739. }
  2740. else {
  2741. return ((OrderProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_OrderProduct_Order"])));
  2742. }
  2743. }
  2744. }
  2745. /// <summary>
  2746. ///Represents strongly named DataRow class.
  2747. ///</summary>
  2748. public partial class OrderProductRow : global::System.Data.DataRow {
  2749. private OrderProductDataTable tableOrderProduct;
  2750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2752. internal OrderProductRow(global::System.Data.DataRowBuilder rb) :
  2753. base(rb) {
  2754. this.tableOrderProduct = ((OrderProductDataTable)(this.Table));
  2755. }
  2756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2758. public int OrderID {
  2759. get {
  2760. return ((int)(this[this.tableOrderProduct.OrderIDColumn]));
  2761. }
  2762. set {
  2763. this[this.tableOrderProduct.OrderIDColumn] = value;
  2764. }
  2765. }
  2766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2768. public string ProductArticleNumber {
  2769. get {
  2770. return ((string)(this[this.tableOrderProduct.ProductArticleNumberColumn]));
  2771. }
  2772. set {
  2773. this[this.tableOrderProduct.ProductArticleNumberColumn] = value;
  2774. }
  2775. }
  2776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2778. public int Количество_товара {
  2779. get {
  2780. try {
  2781. return ((int)(this[this.tableOrderProduct.Количество_товараColumn]));
  2782. }
  2783. catch (global::System.InvalidCastException e) {
  2784. throw new global::System.Data.StrongTypingException("Значение для столбца \'Количество_товара\' в таблице \'OrderProduct\' равно DBNull.", e);
  2785. }
  2786. }
  2787. set {
  2788. this[this.tableOrderProduct.Количество_товараColumn] = value;
  2789. }
  2790. }
  2791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2793. public OrderRow OrderRow {
  2794. get {
  2795. return ((OrderRow)(this.GetParentRow(this.Table.ParentRelations["FK_OrderProduct_Order"])));
  2796. }
  2797. set {
  2798. this.SetParentRow(value, this.Table.ParentRelations["FK_OrderProduct_Order"]);
  2799. }
  2800. }
  2801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2803. public bool IsКоличество_товараNull() {
  2804. return this.IsNull(this.tableOrderProduct.Количество_товараColumn);
  2805. }
  2806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2808. public void SetКоличество_товараNull() {
  2809. this[this.tableOrderProduct.Количество_товараColumn] = global::System.Convert.DBNull;
  2810. }
  2811. }
  2812. /// <summary>
  2813. ///Represents strongly named DataRow class.
  2814. ///</summary>
  2815. public partial class ProductRow : global::System.Data.DataRow {
  2816. private ProductDataTable tableProduct;
  2817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2818. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2819. internal ProductRow(global::System.Data.DataRowBuilder rb) :
  2820. base(rb) {
  2821. this.tableProduct = ((ProductDataTable)(this.Table));
  2822. }
  2823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2825. public string ProductArticleNumber {
  2826. get {
  2827. return ((string)(this[this.tableProduct.ProductArticleNumberColumn]));
  2828. }
  2829. set {
  2830. this[this.tableProduct.ProductArticleNumberColumn] = value;
  2831. }
  2832. }
  2833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2835. public string ProductName {
  2836. get {
  2837. return ((string)(this[this.tableProduct.ProductNameColumn]));
  2838. }
  2839. set {
  2840. this[this.tableProduct.ProductNameColumn] = value;
  2841. }
  2842. }
  2843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2845. public string ProductDescription {
  2846. get {
  2847. return ((string)(this[this.tableProduct.ProductDescriptionColumn]));
  2848. }
  2849. set {
  2850. this[this.tableProduct.ProductDescriptionColumn] = value;
  2851. }
  2852. }
  2853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2855. public string ProductCategory {
  2856. get {
  2857. return ((string)(this[this.tableProduct.ProductCategoryColumn]));
  2858. }
  2859. set {
  2860. this[this.tableProduct.ProductCategoryColumn] = value;
  2861. }
  2862. }
  2863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2865. public byte[] ProductPhoto {
  2866. get {
  2867. try {
  2868. return ((byte[])(this[this.tableProduct.ProductPhotoColumn]));
  2869. }
  2870. catch (global::System.InvalidCastException e) {
  2871. throw new global::System.Data.StrongTypingException("Значение для столбца \'ProductPhoto\' в таблице \'Product\' равно DBNull.", e);
  2872. }
  2873. }
  2874. set {
  2875. this[this.tableProduct.ProductPhotoColumn] = 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 ProductManufacturer {
  2881. get {
  2882. return ((string)(this[this.tableProduct.ProductManufacturerColumn]));
  2883. }
  2884. set {
  2885. this[this.tableProduct.ProductManufacturerColumn] = value;
  2886. }
  2887. }
  2888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2890. public decimal ProductCost {
  2891. get {
  2892. return ((decimal)(this[this.tableProduct.ProductCostColumn]));
  2893. }
  2894. set {
  2895. this[this.tableProduct.ProductCostColumn] = value;
  2896. }
  2897. }
  2898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2900. public byte ProductDiscountAmount {
  2901. get {
  2902. try {
  2903. return ((byte)(this[this.tableProduct.ProductDiscountAmountColumn]));
  2904. }
  2905. catch (global::System.InvalidCastException e) {
  2906. throw new global::System.Data.StrongTypingException("Значение для столбца \'ProductDiscountAmount\' в таблице \'Product\' равно DBNull.", e);
  2907. }
  2908. }
  2909. set {
  2910. this[this.tableProduct.ProductDiscountAmountColumn] = value;
  2911. }
  2912. }
  2913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2915. public byte ProductMaxDiscount {
  2916. get {
  2917. try {
  2918. return ((byte)(this[this.tableProduct.ProductMaxDiscountColumn]));
  2919. }
  2920. catch (global::System.InvalidCastException e) {
  2921. throw new global::System.Data.StrongTypingException("Значение для столбца \'ProductMaxDiscount\' в таблице \'Product\' равно DBNull.", e);
  2922. }
  2923. }
  2924. set {
  2925. this[this.tableProduct.ProductMaxDiscountColumn] = value;
  2926. }
  2927. }
  2928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2930. public int ProductQuantityInStock {
  2931. get {
  2932. return ((int)(this[this.tableProduct.ProductQuantityInStockColumn]));
  2933. }
  2934. set {
  2935. this[this.tableProduct.ProductQuantityInStockColumn] = value;
  2936. }
  2937. }
  2938. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2939. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2940. public string ProductStatus {
  2941. get {
  2942. try {
  2943. return ((string)(this[this.tableProduct.ProductStatusColumn]));
  2944. }
  2945. catch (global::System.InvalidCastException e) {
  2946. throw new global::System.Data.StrongTypingException("Значение для столбца \'ProductStatus\' в таблице \'Product\' равно DBNull.", e);
  2947. }
  2948. }
  2949. set {
  2950. this[this.tableProduct.ProductStatusColumn] = value;
  2951. }
  2952. }
  2953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2955. public int Id {
  2956. get {
  2957. return ((int)(this[this.tableProduct.IdColumn]));
  2958. }
  2959. set {
  2960. this[this.tableProduct.IdColumn] = value;
  2961. }
  2962. }
  2963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2965. public string ProductPhormat {
  2966. get {
  2967. return ((string)(this[this.tableProduct.ProductPhormatColumn]));
  2968. }
  2969. set {
  2970. this[this.tableProduct.ProductPhormatColumn] = value;
  2971. }
  2972. }
  2973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2975. public bool IsProductPhotoNull() {
  2976. return this.IsNull(this.tableProduct.ProductPhotoColumn);
  2977. }
  2978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2980. public void SetProductPhotoNull() {
  2981. this[this.tableProduct.ProductPhotoColumn] = global::System.Convert.DBNull;
  2982. }
  2983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2984. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2985. public bool IsProductDiscountAmountNull() {
  2986. return this.IsNull(this.tableProduct.ProductDiscountAmountColumn);
  2987. }
  2988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2989. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2990. public void SetProductDiscountAmountNull() {
  2991. this[this.tableProduct.ProductDiscountAmountColumn] = global::System.Convert.DBNull;
  2992. }
  2993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2995. public bool IsProductMaxDiscountNull() {
  2996. return this.IsNull(this.tableProduct.ProductMaxDiscountColumn);
  2997. }
  2998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3000. public void SetProductMaxDiscountNull() {
  3001. this[this.tableProduct.ProductMaxDiscountColumn] = global::System.Convert.DBNull;
  3002. }
  3003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3005. public bool IsProductStatusNull() {
  3006. return this.IsNull(this.tableProduct.ProductStatusColumn);
  3007. }
  3008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3010. public void SetProductStatusNull() {
  3011. this[this.tableProduct.ProductStatusColumn] = global::System.Convert.DBNull;
  3012. }
  3013. }
  3014. /// <summary>
  3015. ///Represents strongly named DataRow class.
  3016. ///</summary>
  3017. public partial class punkt_vidachiRow : global::System.Data.DataRow {
  3018. private punkt_vidachiDataTable tablepunkt_vidachi;
  3019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3021. internal punkt_vidachiRow(global::System.Data.DataRowBuilder rb) :
  3022. base(rb) {
  3023. this.tablepunkt_vidachi = ((punkt_vidachiDataTable)(this.Table));
  3024. }
  3025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3027. public byte id {
  3028. get {
  3029. return ((byte)(this[this.tablepunkt_vidachi.idColumn]));
  3030. }
  3031. set {
  3032. this[this.tablepunkt_vidachi.idColumn] = value;
  3033. }
  3034. }
  3035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3037. public int index {
  3038. get {
  3039. return ((int)(this[this.tablepunkt_vidachi.indexColumn]));
  3040. }
  3041. set {
  3042. this[this.tablepunkt_vidachi.indexColumn] = value;
  3043. }
  3044. }
  3045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3047. public string gorod {
  3048. get {
  3049. return ((string)(this[this.tablepunkt_vidachi.gorodColumn]));
  3050. }
  3051. set {
  3052. this[this.tablepunkt_vidachi.gorodColumn] = value;
  3053. }
  3054. }
  3055. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3056. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3057. public string ulica {
  3058. get {
  3059. return ((string)(this[this.tablepunkt_vidachi.ulicaColumn]));
  3060. }
  3061. set {
  3062. this[this.tablepunkt_vidachi.ulicaColumn] = value;
  3063. }
  3064. }
  3065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3067. public byte dom {
  3068. get {
  3069. try {
  3070. return ((byte)(this[this.tablepunkt_vidachi.domColumn]));
  3071. }
  3072. catch (global::System.InvalidCastException e) {
  3073. throw new global::System.Data.StrongTypingException("Значение для столбца \'dom\' в таблице \'punkt_vidachi\' равно DBNull.", e);
  3074. }
  3075. }
  3076. set {
  3077. this[this.tablepunkt_vidachi.domColumn] = value;
  3078. }
  3079. }
  3080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3082. public bool IsdomNull() {
  3083. return this.IsNull(this.tablepunkt_vidachi.domColumn);
  3084. }
  3085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3087. public void SetdomNull() {
  3088. this[this.tablepunkt_vidachi.domColumn] = global::System.Convert.DBNull;
  3089. }
  3090. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3091. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3092. public OrderRow[] GetOrderRows() {
  3093. if ((this.Table.ChildRelations["FK_Order_punkt_vidachi"] == null)) {
  3094. return new OrderRow[0];
  3095. }
  3096. else {
  3097. return ((OrderRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Order_punkt_vidachi"])));
  3098. }
  3099. }
  3100. }
  3101. /// <summary>
  3102. ///Represents strongly named DataRow class.
  3103. ///</summary>
  3104. public partial class RoleRow : global::System.Data.DataRow {
  3105. private RoleDataTable tableRole;
  3106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3108. internal RoleRow(global::System.Data.DataRowBuilder rb) :
  3109. base(rb) {
  3110. this.tableRole = ((RoleDataTable)(this.Table));
  3111. }
  3112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3113. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3114. public int RoleID {
  3115. get {
  3116. return ((int)(this[this.tableRole.RoleIDColumn]));
  3117. }
  3118. set {
  3119. this[this.tableRole.RoleIDColumn] = value;
  3120. }
  3121. }
  3122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3123. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3124. public string RoleName {
  3125. get {
  3126. return ((string)(this[this.tableRole.RoleNameColumn]));
  3127. }
  3128. set {
  3129. this[this.tableRole.RoleNameColumn] = value;
  3130. }
  3131. }
  3132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3133. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3134. public UserRow[] GetUserRows() {
  3135. if ((this.Table.ChildRelations["FK__User__UserRole__25869641"] == null)) {
  3136. return new UserRow[0];
  3137. }
  3138. else {
  3139. return ((UserRow[])(base.GetChildRows(this.Table.ChildRelations["FK__User__UserRole__25869641"])));
  3140. }
  3141. }
  3142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3144. public UserTableRow[] GetUserTableRows() {
  3145. if ((this.Table.ChildRelations["FK__User__UserRole__258696411"] == null)) {
  3146. return new UserTableRow[0];
  3147. }
  3148. else {
  3149. return ((UserTableRow[])(base.GetChildRows(this.Table.ChildRelations["FK__User__UserRole__258696411"])));
  3150. }
  3151. }
  3152. }
  3153. /// <summary>
  3154. ///Represents strongly named DataRow class.
  3155. ///</summary>
  3156. public partial class UserRow : global::System.Data.DataRow {
  3157. private UserDataTable tableUser;
  3158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3160. internal UserRow(global::System.Data.DataRowBuilder rb) :
  3161. base(rb) {
  3162. this.tableUser = ((UserDataTable)(this.Table));
  3163. }
  3164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3166. public int UserID {
  3167. get {
  3168. return ((int)(this[this.tableUser.UserIDColumn]));
  3169. }
  3170. set {
  3171. this[this.tableUser.UserIDColumn] = value;
  3172. }
  3173. }
  3174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3176. public string UserSurname {
  3177. get {
  3178. return ((string)(this[this.tableUser.UserSurnameColumn]));
  3179. }
  3180. set {
  3181. this[this.tableUser.UserSurnameColumn] = value;
  3182. }
  3183. }
  3184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3186. public string UserName {
  3187. get {
  3188. return ((string)(this[this.tableUser.UserNameColumn]));
  3189. }
  3190. set {
  3191. this[this.tableUser.UserNameColumn] = value;
  3192. }
  3193. }
  3194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3196. public string UserPatronymic {
  3197. get {
  3198. return ((string)(this[this.tableUser.UserPatronymicColumn]));
  3199. }
  3200. set {
  3201. this[this.tableUser.UserPatronymicColumn] = value;
  3202. }
  3203. }
  3204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3206. public string UserLogin {
  3207. get {
  3208. return ((string)(this[this.tableUser.UserLoginColumn]));
  3209. }
  3210. set {
  3211. this[this.tableUser.UserLoginColumn] = value;
  3212. }
  3213. }
  3214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3216. public string UserPassword {
  3217. get {
  3218. return ((string)(this[this.tableUser.UserPasswordColumn]));
  3219. }
  3220. set {
  3221. this[this.tableUser.UserPasswordColumn] = value;
  3222. }
  3223. }
  3224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3226. public int UserRole {
  3227. get {
  3228. return ((int)(this[this.tableUser.UserRoleColumn]));
  3229. }
  3230. set {
  3231. this[this.tableUser.UserRoleColumn] = value;
  3232. }
  3233. }
  3234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3236. public RoleRow RoleRow {
  3237. get {
  3238. return ((RoleRow)(this.GetParentRow(this.Table.ParentRelations["FK__User__UserRole__25869641"])));
  3239. }
  3240. set {
  3241. this.SetParentRow(value, this.Table.ParentRelations["FK__User__UserRole__25869641"]);
  3242. }
  3243. }
  3244. }
  3245. /// <summary>
  3246. ///Represents strongly named DataRow class.
  3247. ///</summary>
  3248. public partial class UserTableRow : global::System.Data.DataRow {
  3249. private UserTableDataTable tableUserTable;
  3250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3252. internal UserTableRow(global::System.Data.DataRowBuilder rb) :
  3253. base(rb) {
  3254. this.tableUserTable = ((UserTableDataTable)(this.Table));
  3255. }
  3256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3258. public int UserID {
  3259. get {
  3260. return ((int)(this[this.tableUserTable.UserIDColumn]));
  3261. }
  3262. set {
  3263. this[this.tableUserTable.UserIDColumn] = value;
  3264. }
  3265. }
  3266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3268. public string UserSurname {
  3269. get {
  3270. return ((string)(this[this.tableUserTable.UserSurnameColumn]));
  3271. }
  3272. set {
  3273. this[this.tableUserTable.UserSurnameColumn] = value;
  3274. }
  3275. }
  3276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3278. public string UserName {
  3279. get {
  3280. return ((string)(this[this.tableUserTable.UserNameColumn]));
  3281. }
  3282. set {
  3283. this[this.tableUserTable.UserNameColumn] = value;
  3284. }
  3285. }
  3286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3287. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3288. public string UserPatronymic {
  3289. get {
  3290. return ((string)(this[this.tableUserTable.UserPatronymicColumn]));
  3291. }
  3292. set {
  3293. this[this.tableUserTable.UserPatronymicColumn] = value;
  3294. }
  3295. }
  3296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3297. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3298. public string UserLogin {
  3299. get {
  3300. return ((string)(this[this.tableUserTable.UserLoginColumn]));
  3301. }
  3302. set {
  3303. this[this.tableUserTable.UserLoginColumn] = value;
  3304. }
  3305. }
  3306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3308. public string UserPassword {
  3309. get {
  3310. return ((string)(this[this.tableUserTable.UserPasswordColumn]));
  3311. }
  3312. set {
  3313. this[this.tableUserTable.UserPasswordColumn] = value;
  3314. }
  3315. }
  3316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3317. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3318. public int UserRole {
  3319. get {
  3320. return ((int)(this[this.tableUserTable.UserRoleColumn]));
  3321. }
  3322. set {
  3323. this[this.tableUserTable.UserRoleColumn] = value;
  3324. }
  3325. }
  3326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3327. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3328. public RoleRow RoleRow {
  3329. get {
  3330. return ((RoleRow)(this.GetParentRow(this.Table.ParentRelations["FK__User__UserRole__258696411"])));
  3331. }
  3332. set {
  3333. this.SetParentRow(value, this.Table.ParentRelations["FK__User__UserRole__258696411"]);
  3334. }
  3335. }
  3336. }
  3337. /// <summary>
  3338. ///Row event argument class
  3339. ///</summary>
  3340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3341. public class OrderRowChangeEvent : global::System.EventArgs {
  3342. private OrderRow eventRow;
  3343. private global::System.Data.DataRowAction eventAction;
  3344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3346. public OrderRowChangeEvent(OrderRow row, global::System.Data.DataRowAction action) {
  3347. this.eventRow = row;
  3348. this.eventAction = action;
  3349. }
  3350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3352. public OrderRow Row {
  3353. get {
  3354. return this.eventRow;
  3355. }
  3356. }
  3357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3359. public global::System.Data.DataRowAction Action {
  3360. get {
  3361. return this.eventAction;
  3362. }
  3363. }
  3364. }
  3365. /// <summary>
  3366. ///Row event argument class
  3367. ///</summary>
  3368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3369. public class OrderProductRowChangeEvent : global::System.EventArgs {
  3370. private OrderProductRow eventRow;
  3371. private global::System.Data.DataRowAction eventAction;
  3372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3374. public OrderProductRowChangeEvent(OrderProductRow row, global::System.Data.DataRowAction action) {
  3375. this.eventRow = row;
  3376. this.eventAction = action;
  3377. }
  3378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3379. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3380. public OrderProductRow Row {
  3381. get {
  3382. return this.eventRow;
  3383. }
  3384. }
  3385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3387. public global::System.Data.DataRowAction Action {
  3388. get {
  3389. return this.eventAction;
  3390. }
  3391. }
  3392. }
  3393. /// <summary>
  3394. ///Row event argument class
  3395. ///</summary>
  3396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3397. public class ProductRowChangeEvent : global::System.EventArgs {
  3398. private ProductRow eventRow;
  3399. private global::System.Data.DataRowAction eventAction;
  3400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3402. public ProductRowChangeEvent(ProductRow row, global::System.Data.DataRowAction action) {
  3403. this.eventRow = row;
  3404. this.eventAction = action;
  3405. }
  3406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3408. public ProductRow Row {
  3409. get {
  3410. return this.eventRow;
  3411. }
  3412. }
  3413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3415. public global::System.Data.DataRowAction Action {
  3416. get {
  3417. return this.eventAction;
  3418. }
  3419. }
  3420. }
  3421. /// <summary>
  3422. ///Row event argument class
  3423. ///</summary>
  3424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3425. public class punkt_vidachiRowChangeEvent : global::System.EventArgs {
  3426. private punkt_vidachiRow eventRow;
  3427. private global::System.Data.DataRowAction eventAction;
  3428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3429. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3430. public punkt_vidachiRowChangeEvent(punkt_vidachiRow row, global::System.Data.DataRowAction action) {
  3431. this.eventRow = row;
  3432. this.eventAction = action;
  3433. }
  3434. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3435. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3436. public punkt_vidachiRow Row {
  3437. get {
  3438. return this.eventRow;
  3439. }
  3440. }
  3441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3443. public global::System.Data.DataRowAction Action {
  3444. get {
  3445. return this.eventAction;
  3446. }
  3447. }
  3448. }
  3449. /// <summary>
  3450. ///Row event argument class
  3451. ///</summary>
  3452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3453. public class RoleRowChangeEvent : global::System.EventArgs {
  3454. private RoleRow eventRow;
  3455. private global::System.Data.DataRowAction eventAction;
  3456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3458. public RoleRowChangeEvent(RoleRow row, global::System.Data.DataRowAction action) {
  3459. this.eventRow = row;
  3460. this.eventAction = action;
  3461. }
  3462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3464. public RoleRow Row {
  3465. get {
  3466. return this.eventRow;
  3467. }
  3468. }
  3469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3471. public global::System.Data.DataRowAction Action {
  3472. get {
  3473. return this.eventAction;
  3474. }
  3475. }
  3476. }
  3477. /// <summary>
  3478. ///Row event argument class
  3479. ///</summary>
  3480. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3481. public class UserRowChangeEvent : global::System.EventArgs {
  3482. private UserRow eventRow;
  3483. private global::System.Data.DataRowAction eventAction;
  3484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3486. public UserRowChangeEvent(UserRow row, global::System.Data.DataRowAction action) {
  3487. this.eventRow = row;
  3488. this.eventAction = action;
  3489. }
  3490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3492. public UserRow Row {
  3493. get {
  3494. return this.eventRow;
  3495. }
  3496. }
  3497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3499. public global::System.Data.DataRowAction Action {
  3500. get {
  3501. return this.eventAction;
  3502. }
  3503. }
  3504. }
  3505. /// <summary>
  3506. ///Row event argument class
  3507. ///</summary>
  3508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3509. public class UserTableRowChangeEvent : global::System.EventArgs {
  3510. private UserTableRow eventRow;
  3511. private global::System.Data.DataRowAction eventAction;
  3512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3514. public UserTableRowChangeEvent(UserTableRow row, global::System.Data.DataRowAction action) {
  3515. this.eventRow = row;
  3516. this.eventAction = action;
  3517. }
  3518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3520. public UserTableRow Row {
  3521. get {
  3522. return this.eventRow;
  3523. }
  3524. }
  3525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3526. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3527. public global::System.Data.DataRowAction Action {
  3528. get {
  3529. return this.eventAction;
  3530. }
  3531. }
  3532. }
  3533. }
  3534. }
  3535. namespace _02trade.trade02DataSetTableAdapters {
  3536. /// <summary>
  3537. ///Represents the connection and commands used to retrieve and save data.
  3538. ///</summary>
  3539. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3540. [global::System.ComponentModel.ToolboxItem(true)]
  3541. [global::System.ComponentModel.DataObjectAttribute(true)]
  3542. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3543. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3544. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3545. public partial class OrderTableAdapter : global::System.ComponentModel.Component {
  3546. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3547. private global::System.Data.SqlClient.SqlConnection _connection;
  3548. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3549. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3550. private bool _clearBeforeFill;
  3551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3553. public OrderTableAdapter() {
  3554. this.ClearBeforeFill = true;
  3555. }
  3556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3558. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3559. get {
  3560. if ((this._adapter == null)) {
  3561. this.InitAdapter();
  3562. }
  3563. return this._adapter;
  3564. }
  3565. }
  3566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3568. internal global::System.Data.SqlClient.SqlConnection Connection {
  3569. get {
  3570. if ((this._connection == null)) {
  3571. this.InitConnection();
  3572. }
  3573. return this._connection;
  3574. }
  3575. set {
  3576. this._connection = value;
  3577. if ((this.Adapter.InsertCommand != null)) {
  3578. this.Adapter.InsertCommand.Connection = value;
  3579. }
  3580. if ((this.Adapter.DeleteCommand != null)) {
  3581. this.Adapter.DeleteCommand.Connection = value;
  3582. }
  3583. if ((this.Adapter.UpdateCommand != null)) {
  3584. this.Adapter.UpdateCommand.Connection = value;
  3585. }
  3586. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3587. if ((this.CommandCollection[i] != null)) {
  3588. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3589. }
  3590. }
  3591. }
  3592. }
  3593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3595. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3596. get {
  3597. return this._transaction;
  3598. }
  3599. set {
  3600. this._transaction = value;
  3601. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3602. this.CommandCollection[i].Transaction = this._transaction;
  3603. }
  3604. if (((this.Adapter != null)
  3605. && (this.Adapter.DeleteCommand != null))) {
  3606. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3607. }
  3608. if (((this.Adapter != null)
  3609. && (this.Adapter.InsertCommand != null))) {
  3610. this.Adapter.InsertCommand.Transaction = this._transaction;
  3611. }
  3612. if (((this.Adapter != null)
  3613. && (this.Adapter.UpdateCommand != null))) {
  3614. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3615. }
  3616. }
  3617. }
  3618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3620. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3621. get {
  3622. if ((this._commandCollection == null)) {
  3623. this.InitCommandCollection();
  3624. }
  3625. return this._commandCollection;
  3626. }
  3627. }
  3628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3630. public bool ClearBeforeFill {
  3631. get {
  3632. return this._clearBeforeFill;
  3633. }
  3634. set {
  3635. this._clearBeforeFill = value;
  3636. }
  3637. }
  3638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3640. private void InitAdapter() {
  3641. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3642. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3643. tableMapping.SourceTable = "Table";
  3644. tableMapping.DataSetTable = "Order";
  3645. tableMapping.ColumnMappings.Add("OrderID", "OrderID");
  3646. tableMapping.ColumnMappings.Add("OrderStatus", "OrderStatus");
  3647. tableMapping.ColumnMappings.Add("OrderDeliveryDate", "OrderDeliveryDate");
  3648. tableMapping.ColumnMappings.Add("OrderPickupPoint", "OrderPickupPoint");
  3649. tableMapping.ColumnMappings.Add("DateZakaza", "DateZakaza");
  3650. tableMapping.ColumnMappings.Add("fioKlienta", "fioKlienta");
  3651. tableMapping.ColumnMappings.Add("KodPolycheniya", "KodPolycheniya");
  3652. this._adapter.TableMappings.Add(tableMapping);
  3653. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3654. this._adapter.DeleteCommand.Connection = this.Connection;
  3655. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Order] WHERE (([OrderID] = @Original_OrderID) AND ([OrderDeliveryDate] = @Original_OrderDeliveryDate) AND ([OrderPickupPoint] = @Original_OrderPickupPoint) AND ((@IsNull_DateZakaza = 1 AND [DateZakaza] IS NULL) OR ([DateZakaza] = @Original_DateZakaza)) AND ((@IsNull_KodPolycheniya = 1 AND [KodPolycheniya] IS NULL) OR ([KodPolycheniya] = @Original_KodPolycheniya)))";
  3656. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3657. 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, "", "", ""));
  3658. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderDeliveryDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDeliveryDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3659. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderPickupPoint", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderPickupPoint", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3660. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DateZakaza", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DateZakaza", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3661. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DateZakaza", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DateZakaza", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3662. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_KodPolycheniya", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KodPolycheniya", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3663. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KodPolycheniya", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KodPolycheniya", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3664. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3665. this._adapter.InsertCommand.Connection = this.Connection;
  3666. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Order] ([OrderStatus], [OrderDeliveryDate], [OrderPickupPoint], [DateZakaza], [fioKlienta], [KodPolycheniya]) VALUES (@OrderStatus, @OrderDeliveryDate, @OrderPickupPoint, @DateZakaza, @fioKlienta, @KodPolycheniya);
  3667. SELECT OrderID, OrderStatus, OrderDeliveryDate, OrderPickupPoint, DateZakaza, fioKlienta, KodPolycheniya FROM [Order] WHERE (OrderID = SCOPE_IDENTITY())";
  3668. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3669. 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, "", "", ""));
  3670. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderDeliveryDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDeliveryDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3671. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderPickupPoint", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderPickupPoint", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3672. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DateZakaza", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DateZakaza", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3673. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@fioKlienta", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "fioKlienta", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3674. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KodPolycheniya", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KodPolycheniya", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3675. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3676. this._adapter.UpdateCommand.Connection = this.Connection;
  3677. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Order] SET [OrderStatus] = @OrderStatus, [OrderDeliveryDate] = @OrderDeliveryDate, [OrderPickupPoint] = @OrderPickupPoint, [DateZakaza] = @DateZakaza, [fioKlienta] = @fioKlienta, [KodPolycheniya] = @KodPolycheniya WHERE (([OrderID] = @Original_OrderID) AND ([OrderDeliveryDate] = @Original_OrderDeliveryDate) AND ([OrderPickupPoint] = @Original_OrderPickupPoint) AND ((@IsNull_DateZakaza = 1 AND [DateZakaza] IS NULL) OR ([DateZakaza] = @Original_DateZakaza)) AND ((@IsNull_KodPolycheniya = 1 AND [KodPolycheniya] IS NULL) OR ([KodPolycheniya] = @Original_KodPolycheniya)));
  3678. SELECT OrderID, OrderStatus, OrderDeliveryDate, OrderPickupPoint, DateZakaza, fioKlienta, KodPolycheniya FROM [Order] WHERE (OrderID = @OrderID)";
  3679. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3680. 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, "", "", ""));
  3681. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderDeliveryDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDeliveryDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3682. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderPickupPoint", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderPickupPoint", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3683. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DateZakaza", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DateZakaza", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3684. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@fioKlienta", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "fioKlienta", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3685. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KodPolycheniya", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KodPolycheniya", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3686. 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, "", "", ""));
  3687. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderDeliveryDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDeliveryDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3688. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderPickupPoint", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderPickupPoint", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3689. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DateZakaza", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DateZakaza", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3690. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DateZakaza", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DateZakaza", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3691. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_KodPolycheniya", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KodPolycheniya", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3692. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KodPolycheniya", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KodPolycheniya", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3693. 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, "", "", ""));
  3694. }
  3695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3697. private void InitConnection() {
  3698. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3699. this._connection.ConnectionString = global::_02trade.Properties.Settings.Default.trade02ConnectionString;
  3700. }
  3701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3703. private void InitCommandCollection() {
  3704. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3705. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3706. this._commandCollection[0].Connection = this.Connection;
  3707. this._commandCollection[0].CommandText = "SELECT OrderID, OrderStatus, OrderDeliveryDate, OrderPickupPoint, DateZakaza, fio" +
  3708. "Klienta, KodPolycheniya FROM dbo.[Order]";
  3709. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3710. }
  3711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3712. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3713. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3714. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3715. public virtual int Fill(trade02DataSet.OrderDataTable dataTable) {
  3716. this.Adapter.SelectCommand = this.CommandCollection[0];
  3717. if ((this.ClearBeforeFill == true)) {
  3718. dataTable.Clear();
  3719. }
  3720. int returnValue = this.Adapter.Fill(dataTable);
  3721. return returnValue;
  3722. }
  3723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3725. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3726. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3727. public virtual trade02DataSet.OrderDataTable GetData() {
  3728. this.Adapter.SelectCommand = this.CommandCollection[0];
  3729. trade02DataSet.OrderDataTable dataTable = new trade02DataSet.OrderDataTable();
  3730. this.Adapter.Fill(dataTable);
  3731. return dataTable;
  3732. }
  3733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3735. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3736. public virtual int Update(trade02DataSet.OrderDataTable dataTable) {
  3737. return this.Adapter.Update(dataTable);
  3738. }
  3739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3741. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3742. public virtual int Update(trade02DataSet dataSet) {
  3743. return this.Adapter.Update(dataSet, "Order");
  3744. }
  3745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3747. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3748. public virtual int Update(global::System.Data.DataRow dataRow) {
  3749. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3750. dataRow});
  3751. }
  3752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3754. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3755. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3756. return this.Adapter.Update(dataRows);
  3757. }
  3758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3760. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3761. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3762. public virtual int Delete(int Original_OrderID, System.DateTime Original_OrderDeliveryDate, byte Original_OrderPickupPoint, global::System.Nullable<global::System.DateTime> Original_DateZakaza, global::System.Nullable<int> Original_KodPolycheniya) {
  3763. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_OrderID));
  3764. this.Adapter.DeleteCommand.Parameters[1].Value = ((System.DateTime)(Original_OrderDeliveryDate));
  3765. this.Adapter.DeleteCommand.Parameters[2].Value = ((byte)(Original_OrderPickupPoint));
  3766. if ((Original_DateZakaza.HasValue == true)) {
  3767. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  3768. this.Adapter.DeleteCommand.Parameters[4].Value = ((System.DateTime)(Original_DateZakaza.Value));
  3769. }
  3770. else {
  3771. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  3772. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  3773. }
  3774. if ((Original_KodPolycheniya.HasValue == true)) {
  3775. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  3776. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_KodPolycheniya.Value));
  3777. }
  3778. else {
  3779. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  3780. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  3781. }
  3782. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  3783. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3784. != global::System.Data.ConnectionState.Open)) {
  3785. this.Adapter.DeleteCommand.Connection.Open();
  3786. }
  3787. try {
  3788. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  3789. return returnValue;
  3790. }
  3791. finally {
  3792. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3793. this.Adapter.DeleteCommand.Connection.Close();
  3794. }
  3795. }
  3796. }
  3797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3799. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3800. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3801. public virtual int Insert(string OrderStatus, System.DateTime OrderDeliveryDate, byte OrderPickupPoint, global::System.Nullable<global::System.DateTime> DateZakaza, string fioKlienta, global::System.Nullable<int> KodPolycheniya) {
  3802. if ((OrderStatus == null)) {
  3803. throw new global::System.ArgumentNullException("OrderStatus");
  3804. }
  3805. else {
  3806. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(OrderStatus));
  3807. }
  3808. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(OrderDeliveryDate));
  3809. this.Adapter.InsertCommand.Parameters[2].Value = ((byte)(OrderPickupPoint));
  3810. if ((DateZakaza.HasValue == true)) {
  3811. this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(DateZakaza.Value));
  3812. }
  3813. else {
  3814. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  3815. }
  3816. if ((fioKlienta == null)) {
  3817. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  3818. }
  3819. else {
  3820. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(fioKlienta));
  3821. }
  3822. if ((KodPolycheniya.HasValue == true)) {
  3823. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(KodPolycheniya.Value));
  3824. }
  3825. else {
  3826. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  3827. }
  3828. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3829. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3830. != global::System.Data.ConnectionState.Open)) {
  3831. this.Adapter.InsertCommand.Connection.Open();
  3832. }
  3833. try {
  3834. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3835. return returnValue;
  3836. }
  3837. finally {
  3838. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3839. this.Adapter.InsertCommand.Connection.Close();
  3840. }
  3841. }
  3842. }
  3843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3845. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3846. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3847. public virtual int Update(string OrderStatus, System.DateTime OrderDeliveryDate, byte OrderPickupPoint, global::System.Nullable<global::System.DateTime> DateZakaza, string fioKlienta, global::System.Nullable<int> KodPolycheniya, int Original_OrderID, System.DateTime Original_OrderDeliveryDate, byte Original_OrderPickupPoint, global::System.Nullable<global::System.DateTime> Original_DateZakaza, global::System.Nullable<int> Original_KodPolycheniya, int OrderID) {
  3848. if ((OrderStatus == null)) {
  3849. throw new global::System.ArgumentNullException("OrderStatus");
  3850. }
  3851. else {
  3852. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(OrderStatus));
  3853. }
  3854. this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(OrderDeliveryDate));
  3855. this.Adapter.UpdateCommand.Parameters[2].Value = ((byte)(OrderPickupPoint));
  3856. if ((DateZakaza.HasValue == true)) {
  3857. this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(DateZakaza.Value));
  3858. }
  3859. else {
  3860. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  3861. }
  3862. if ((fioKlienta == null)) {
  3863. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  3864. }
  3865. else {
  3866. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(fioKlienta));
  3867. }
  3868. if ((KodPolycheniya.HasValue == true)) {
  3869. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(KodPolycheniya.Value));
  3870. }
  3871. else {
  3872. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  3873. }
  3874. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_OrderID));
  3875. this.Adapter.UpdateCommand.Parameters[7].Value = ((System.DateTime)(Original_OrderDeliveryDate));
  3876. this.Adapter.UpdateCommand.Parameters[8].Value = ((byte)(Original_OrderPickupPoint));
  3877. if ((Original_DateZakaza.HasValue == true)) {
  3878. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  3879. this.Adapter.UpdateCommand.Parameters[10].Value = ((System.DateTime)(Original_DateZakaza.Value));
  3880. }
  3881. else {
  3882. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  3883. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  3884. }
  3885. if ((Original_KodPolycheniya.HasValue == true)) {
  3886. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  3887. this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_KodPolycheniya.Value));
  3888. }
  3889. else {
  3890. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  3891. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  3892. }
  3893. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(OrderID));
  3894. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  3895. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3896. != global::System.Data.ConnectionState.Open)) {
  3897. this.Adapter.UpdateCommand.Connection.Open();
  3898. }
  3899. try {
  3900. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  3901. return returnValue;
  3902. }
  3903. finally {
  3904. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3905. this.Adapter.UpdateCommand.Connection.Close();
  3906. }
  3907. }
  3908. }
  3909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3910. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3911. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3912. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3913. public virtual int Update(string OrderStatus, System.DateTime OrderDeliveryDate, byte OrderPickupPoint, global::System.Nullable<global::System.DateTime> DateZakaza, string fioKlienta, global::System.Nullable<int> KodPolycheniya, int Original_OrderID, System.DateTime Original_OrderDeliveryDate, byte Original_OrderPickupPoint, global::System.Nullable<global::System.DateTime> Original_DateZakaza, global::System.Nullable<int> Original_KodPolycheniya) {
  3914. return this.Update(OrderStatus, OrderDeliveryDate, OrderPickupPoint, DateZakaza, fioKlienta, KodPolycheniya, Original_OrderID, Original_OrderDeliveryDate, Original_OrderPickupPoint, Original_DateZakaza, Original_KodPolycheniya, Original_OrderID);
  3915. }
  3916. }
  3917. /// <summary>
  3918. ///Represents the connection and commands used to retrieve and save data.
  3919. ///</summary>
  3920. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3921. [global::System.ComponentModel.ToolboxItem(true)]
  3922. [global::System.ComponentModel.DataObjectAttribute(true)]
  3923. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3924. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3925. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3926. public partial class OrderProductTableAdapter : global::System.ComponentModel.Component {
  3927. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3928. private global::System.Data.SqlClient.SqlConnection _connection;
  3929. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3930. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3931. private bool _clearBeforeFill;
  3932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3934. public OrderProductTableAdapter() {
  3935. this.ClearBeforeFill = true;
  3936. }
  3937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3939. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3940. get {
  3941. if ((this._adapter == null)) {
  3942. this.InitAdapter();
  3943. }
  3944. return this._adapter;
  3945. }
  3946. }
  3947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3949. internal global::System.Data.SqlClient.SqlConnection Connection {
  3950. get {
  3951. if ((this._connection == null)) {
  3952. this.InitConnection();
  3953. }
  3954. return this._connection;
  3955. }
  3956. set {
  3957. this._connection = value;
  3958. if ((this.Adapter.InsertCommand != null)) {
  3959. this.Adapter.InsertCommand.Connection = value;
  3960. }
  3961. if ((this.Adapter.DeleteCommand != null)) {
  3962. this.Adapter.DeleteCommand.Connection = value;
  3963. }
  3964. if ((this.Adapter.UpdateCommand != null)) {
  3965. this.Adapter.UpdateCommand.Connection = value;
  3966. }
  3967. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3968. if ((this.CommandCollection[i] != null)) {
  3969. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3970. }
  3971. }
  3972. }
  3973. }
  3974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3976. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3977. get {
  3978. return this._transaction;
  3979. }
  3980. set {
  3981. this._transaction = value;
  3982. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3983. this.CommandCollection[i].Transaction = this._transaction;
  3984. }
  3985. if (((this.Adapter != null)
  3986. && (this.Adapter.DeleteCommand != null))) {
  3987. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3988. }
  3989. if (((this.Adapter != null)
  3990. && (this.Adapter.InsertCommand != null))) {
  3991. this.Adapter.InsertCommand.Transaction = this._transaction;
  3992. }
  3993. if (((this.Adapter != null)
  3994. && (this.Adapter.UpdateCommand != null))) {
  3995. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3996. }
  3997. }
  3998. }
  3999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4001. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4002. get {
  4003. if ((this._commandCollection == null)) {
  4004. this.InitCommandCollection();
  4005. }
  4006. return this._commandCollection;
  4007. }
  4008. }
  4009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4011. public bool ClearBeforeFill {
  4012. get {
  4013. return this._clearBeforeFill;
  4014. }
  4015. set {
  4016. this._clearBeforeFill = value;
  4017. }
  4018. }
  4019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4021. private void InitAdapter() {
  4022. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4023. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4024. tableMapping.SourceTable = "Table";
  4025. tableMapping.DataSetTable = "OrderProduct";
  4026. tableMapping.ColumnMappings.Add("OrderID", "OrderID");
  4027. tableMapping.ColumnMappings.Add("ProductArticleNumber", "ProductArticleNumber");
  4028. tableMapping.ColumnMappings.Add("Количество_товара", "Количество_товара");
  4029. this._adapter.TableMappings.Add(tableMapping);
  4030. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4031. this._adapter.DeleteCommand.Connection = this.Connection;
  4032. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[OrderProduct] WHERE (([OrderID] = @Original_OrderID) AND ([ProductArticleNumber] = @Original_ProductArticleNumber) AND ((@IsNull_Количество_товара = 1 AND [Количество_товара] IS NULL) OR ([Количество_товара] = @Original_Количество_товара)))";
  4033. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4034. 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, "", "", ""));
  4035. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductArticleNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductArticleNumber", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4036. 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, "", "", ""));
  4037. 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, "", "", ""));
  4038. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4039. this._adapter.InsertCommand.Connection = this.Connection;
  4040. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[OrderProduct] ([OrderID], [ProductArticleNumber], [Количество_товара]) VALUES (@OrderID, @ProductArticleNumber, @Количество_товара);
  4041. SELECT OrderID, ProductArticleNumber, Количество_товара FROM OrderProduct WHERE (OrderID = @OrderID) AND (ProductArticleNumber = @ProductArticleNumber)";
  4042. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4043. 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, "", "", ""));
  4044. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductArticleNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductArticleNumber", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4045. 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, "", "", ""));
  4046. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4047. this._adapter.UpdateCommand.Connection = this.Connection;
  4048. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[OrderProduct] SET [OrderID] = @OrderID, [ProductArticleNumber] = @ProductArticleNumber, [Количество_товара] = @Количество_товара WHERE (([OrderID] = @Original_OrderID) AND ([ProductArticleNumber] = @Original_ProductArticleNumber) AND ((@IsNull_Количество_товара = 1 AND [Количество_товара] IS NULL) OR ([Количество_товара] = @Original_Количество_товара)));
  4049. SELECT OrderID, ProductArticleNumber, Количество_товара FROM OrderProduct WHERE (OrderID = @OrderID) AND (ProductArticleNumber = @ProductArticleNumber)";
  4050. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4051. 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, "", "", ""));
  4052. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductArticleNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductArticleNumber", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4053. 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, "", "", ""));
  4054. 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, "", "", ""));
  4055. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductArticleNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductArticleNumber", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4056. 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, "", "", ""));
  4057. 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, "", "", ""));
  4058. }
  4059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4061. private void InitConnection() {
  4062. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4063. this._connection.ConnectionString = global::_02trade.Properties.Settings.Default.trade02ConnectionString;
  4064. }
  4065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4067. private void InitCommandCollection() {
  4068. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4069. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4070. this._commandCollection[0].Connection = this.Connection;
  4071. this._commandCollection[0].CommandText = "SELECT OrderID, ProductArticleNumber, Количество_товара FROM dbo.OrderProduct";
  4072. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4073. }
  4074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4076. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4077. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4078. public virtual int Fill(trade02DataSet.OrderProductDataTable dataTable) {
  4079. this.Adapter.SelectCommand = this.CommandCollection[0];
  4080. if ((this.ClearBeforeFill == true)) {
  4081. dataTable.Clear();
  4082. }
  4083. int returnValue = this.Adapter.Fill(dataTable);
  4084. return returnValue;
  4085. }
  4086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4088. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4089. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4090. public virtual trade02DataSet.OrderProductDataTable GetData() {
  4091. this.Adapter.SelectCommand = this.CommandCollection[0];
  4092. trade02DataSet.OrderProductDataTable dataTable = new trade02DataSet.OrderProductDataTable();
  4093. this.Adapter.Fill(dataTable);
  4094. return dataTable;
  4095. }
  4096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4098. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4099. public virtual int Update(trade02DataSet.OrderProductDataTable dataTable) {
  4100. return this.Adapter.Update(dataTable);
  4101. }
  4102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4103. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4104. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4105. public virtual int Update(trade02DataSet dataSet) {
  4106. return this.Adapter.Update(dataSet, "OrderProduct");
  4107. }
  4108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4110. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4111. public virtual int Update(global::System.Data.DataRow dataRow) {
  4112. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4113. dataRow});
  4114. }
  4115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4117. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4118. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4119. return this.Adapter.Update(dataRows);
  4120. }
  4121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4123. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4124. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4125. public virtual int Delete(int Original_OrderID, string Original_ProductArticleNumber, global::System.Nullable<int> Original_Количество_товара) {
  4126. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_OrderID));
  4127. if ((Original_ProductArticleNumber == null)) {
  4128. throw new global::System.ArgumentNullException("Original_ProductArticleNumber");
  4129. }
  4130. else {
  4131. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_ProductArticleNumber));
  4132. }
  4133. if ((Original_Количество_товара.HasValue == true)) {
  4134. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  4135. this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_Количество_товара.Value));
  4136. }
  4137. else {
  4138. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  4139. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  4140. }
  4141. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4142. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4143. != global::System.Data.ConnectionState.Open)) {
  4144. this.Adapter.DeleteCommand.Connection.Open();
  4145. }
  4146. try {
  4147. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4148. return returnValue;
  4149. }
  4150. finally {
  4151. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4152. this.Adapter.DeleteCommand.Connection.Close();
  4153. }
  4154. }
  4155. }
  4156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4158. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4159. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4160. public virtual int Insert(int OrderID, string ProductArticleNumber, global::System.Nullable<int> Количество_товара) {
  4161. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(OrderID));
  4162. if ((ProductArticleNumber == null)) {
  4163. throw new global::System.ArgumentNullException("ProductArticleNumber");
  4164. }
  4165. else {
  4166. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(ProductArticleNumber));
  4167. }
  4168. if ((Количество_товара.HasValue == true)) {
  4169. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Количество_товара.Value));
  4170. }
  4171. else {
  4172. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  4173. }
  4174. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4175. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4176. != global::System.Data.ConnectionState.Open)) {
  4177. this.Adapter.InsertCommand.Connection.Open();
  4178. }
  4179. try {
  4180. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4181. return returnValue;
  4182. }
  4183. finally {
  4184. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4185. this.Adapter.InsertCommand.Connection.Close();
  4186. }
  4187. }
  4188. }
  4189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4191. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4192. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4193. public virtual int Update(int OrderID, string ProductArticleNumber, global::System.Nullable<int> Количество_товара, int Original_OrderID, string Original_ProductArticleNumber, global::System.Nullable<int> Original_Количество_товара) {
  4194. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(OrderID));
  4195. if ((ProductArticleNumber == null)) {
  4196. throw new global::System.ArgumentNullException("ProductArticleNumber");
  4197. }
  4198. else {
  4199. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(ProductArticleNumber));
  4200. }
  4201. if ((Количество_товара.HasValue == true)) {
  4202. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Количество_товара.Value));
  4203. }
  4204. else {
  4205. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  4206. }
  4207. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_OrderID));
  4208. if ((Original_ProductArticleNumber == null)) {
  4209. throw new global::System.ArgumentNullException("Original_ProductArticleNumber");
  4210. }
  4211. else {
  4212. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_ProductArticleNumber));
  4213. }
  4214. if ((Original_Количество_товара.HasValue == true)) {
  4215. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  4216. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_Количество_товара.Value));
  4217. }
  4218. else {
  4219. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  4220. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  4221. }
  4222. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4223. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4224. != global::System.Data.ConnectionState.Open)) {
  4225. this.Adapter.UpdateCommand.Connection.Open();
  4226. }
  4227. try {
  4228. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4229. return returnValue;
  4230. }
  4231. finally {
  4232. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4233. this.Adapter.UpdateCommand.Connection.Close();
  4234. }
  4235. }
  4236. }
  4237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4239. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4240. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4241. public virtual int Update(global::System.Nullable<int> Количество_товара, int Original_OrderID, string Original_ProductArticleNumber, global::System.Nullable<int> Original_Количество_товара) {
  4242. return this.Update(Original_OrderID, Original_ProductArticleNumber, Количество_товара, Original_OrderID, Original_ProductArticleNumber, Original_Количество_товара);
  4243. }
  4244. }
  4245. /// <summary>
  4246. ///Represents the connection and commands used to retrieve and save data.
  4247. ///</summary>
  4248. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4249. [global::System.ComponentModel.ToolboxItem(true)]
  4250. [global::System.ComponentModel.DataObjectAttribute(true)]
  4251. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4252. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4253. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4254. public partial class ProductTableAdapter : global::System.ComponentModel.Component {
  4255. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4256. private global::System.Data.SqlClient.SqlConnection _connection;
  4257. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4258. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4259. private bool _clearBeforeFill;
  4260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4262. public ProductTableAdapter() {
  4263. this.ClearBeforeFill = true;
  4264. }
  4265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4267. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4268. get {
  4269. if ((this._adapter == null)) {
  4270. this.InitAdapter();
  4271. }
  4272. return this._adapter;
  4273. }
  4274. }
  4275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4277. internal global::System.Data.SqlClient.SqlConnection Connection {
  4278. get {
  4279. if ((this._connection == null)) {
  4280. this.InitConnection();
  4281. }
  4282. return this._connection;
  4283. }
  4284. set {
  4285. this._connection = value;
  4286. if ((this.Adapter.InsertCommand != null)) {
  4287. this.Adapter.InsertCommand.Connection = value;
  4288. }
  4289. if ((this.Adapter.DeleteCommand != null)) {
  4290. this.Adapter.DeleteCommand.Connection = value;
  4291. }
  4292. if ((this.Adapter.UpdateCommand != null)) {
  4293. this.Adapter.UpdateCommand.Connection = value;
  4294. }
  4295. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4296. if ((this.CommandCollection[i] != null)) {
  4297. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4298. }
  4299. }
  4300. }
  4301. }
  4302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4304. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4305. get {
  4306. return this._transaction;
  4307. }
  4308. set {
  4309. this._transaction = value;
  4310. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4311. this.CommandCollection[i].Transaction = this._transaction;
  4312. }
  4313. if (((this.Adapter != null)
  4314. && (this.Adapter.DeleteCommand != null))) {
  4315. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4316. }
  4317. if (((this.Adapter != null)
  4318. && (this.Adapter.InsertCommand != null))) {
  4319. this.Adapter.InsertCommand.Transaction = this._transaction;
  4320. }
  4321. if (((this.Adapter != null)
  4322. && (this.Adapter.UpdateCommand != null))) {
  4323. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4324. }
  4325. }
  4326. }
  4327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4328. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4329. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4330. get {
  4331. if ((this._commandCollection == null)) {
  4332. this.InitCommandCollection();
  4333. }
  4334. return this._commandCollection;
  4335. }
  4336. }
  4337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4339. public bool ClearBeforeFill {
  4340. get {
  4341. return this._clearBeforeFill;
  4342. }
  4343. set {
  4344. this._clearBeforeFill = value;
  4345. }
  4346. }
  4347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4349. private void InitAdapter() {
  4350. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4351. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4352. tableMapping.SourceTable = "Table";
  4353. tableMapping.DataSetTable = "Product";
  4354. tableMapping.ColumnMappings.Add("ProductArticleNumber", "ProductArticleNumber");
  4355. tableMapping.ColumnMappings.Add("ProductName", "ProductName");
  4356. tableMapping.ColumnMappings.Add("ProductDescription", "ProductDescription");
  4357. tableMapping.ColumnMappings.Add("ProductCategory", "ProductCategory");
  4358. tableMapping.ColumnMappings.Add("ProductPhoto", "ProductPhoto");
  4359. tableMapping.ColumnMappings.Add("ProductManufacturer", "ProductManufacturer");
  4360. tableMapping.ColumnMappings.Add("ProductCost", "ProductCost");
  4361. tableMapping.ColumnMappings.Add("ProductDiscountAmount", "ProductDiscountAmount");
  4362. tableMapping.ColumnMappings.Add("ProductMaxDiscount", "ProductMaxDiscount");
  4363. tableMapping.ColumnMappings.Add("ProductQuantityInStock", "ProductQuantityInStock");
  4364. tableMapping.ColumnMappings.Add("ProductStatus", "ProductStatus");
  4365. tableMapping.ColumnMappings.Add("Id", "Id");
  4366. tableMapping.ColumnMappings.Add("ProductPhormat", "ProductPhormat");
  4367. this._adapter.TableMappings.Add(tableMapping);
  4368. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4369. this._adapter.DeleteCommand.Connection = this.Connection;
  4370. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [Product] WHERE (([ProductArticleNumber] = @Original_ProductArticleNumber) AND ([ProductCost] = @Original_ProductCost) AND ((@IsNull_ProductDiscountAmount = 1 AND [ProductDiscountAmount] IS NULL) OR ([ProductDiscountAmount] = @Original_ProductDiscountAmount)) AND ((@IsNull_ProductMaxDiscount = 1 AND [ProductMaxDiscount] IS NULL) OR ([ProductMaxDiscount] = @Original_ProductMaxDiscount)) AND ([ProductQuantityInStock] = @Original_ProductQuantityInStock) AND ([Id] = @Original_Id) AND ([ProductPhormat] = @Original_ProductPhormat))";
  4371. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4372. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductArticleNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductArticleNumber", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4373. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 19, 4, "ProductCost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4374. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ProductDiscountAmount", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductDiscountAmount", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4375. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductDiscountAmount", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductDiscountAmount", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4376. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ProductMaxDiscount", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductMaxDiscount", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4377. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductMaxDiscount", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductMaxDiscount", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4378. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductQuantityInStock", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductQuantityInStock", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4379. 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, "", "", ""));
  4380. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductPhormat", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductPhormat", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4381. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4382. this._adapter.InsertCommand.Connection = this.Connection;
  4383. this._adapter.InsertCommand.CommandText = @"INSERT INTO [Product] ([ProductArticleNumber], [ProductName], [ProductDescription], [ProductCategory], [ProductPhoto], [ProductManufacturer], [ProductCost], [ProductDiscountAmount], [ProductMaxDiscount], [ProductQuantityInStock], [ProductStatus], [ProductPhormat]) VALUES (@ProductArticleNumber, @ProductName, @ProductDescription, @ProductCategory, @ProductPhoto, @ProductManufacturer, @ProductCost, @ProductDiscountAmount, @ProductMaxDiscount, @ProductQuantityInStock, @ProductStatus, @ProductPhormat);
  4384. SELECT ProductArticleNumber, ProductName, ProductDescription, ProductCategory, ProductPhoto, ProductManufacturer, ProductCost, ProductDiscountAmount, ProductMaxDiscount, ProductQuantityInStock, ProductStatus, Id, ProductPhormat FROM Product WHERE (Id = SCOPE_IDENTITY()) AND (ProductArticleNumber = @ProductArticleNumber)";
  4385. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4386. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductArticleNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductArticleNumber", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4387. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4388. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductDescription", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductDescription", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4389. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductCategory", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductCategory", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4390. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductPhoto", global::System.Data.SqlDbType.VarBinary, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductPhoto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4391. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductManufacturer", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductManufacturer", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4392. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 19, 4, "ProductCost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4393. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductDiscountAmount", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductDiscountAmount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4394. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductMaxDiscount", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductMaxDiscount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4395. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductQuantityInStock", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductQuantityInStock", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4396. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductStatus", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductStatus", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4397. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductPhormat", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductPhormat", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4398. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4399. this._adapter.UpdateCommand.Connection = this.Connection;
  4400. this._adapter.UpdateCommand.CommandText = @"UPDATE [Product] SET [ProductArticleNumber] = @ProductArticleNumber, [ProductName] = @ProductName, [ProductDescription] = @ProductDescription, [ProductCategory] = @ProductCategory, [ProductPhoto] = @ProductPhoto, [ProductManufacturer] = @ProductManufacturer, [ProductCost] = @ProductCost, [ProductDiscountAmount] = @ProductDiscountAmount, [ProductMaxDiscount] = @ProductMaxDiscount, [ProductQuantityInStock] = @ProductQuantityInStock, [ProductStatus] = @ProductStatus, [ProductPhormat] = @ProductPhormat WHERE (([ProductArticleNumber] = @Original_ProductArticleNumber) AND ([ProductCost] = @Original_ProductCost) AND ((@IsNull_ProductDiscountAmount = 1 AND [ProductDiscountAmount] IS NULL) OR ([ProductDiscountAmount] = @Original_ProductDiscountAmount)) AND ((@IsNull_ProductMaxDiscount = 1 AND [ProductMaxDiscount] IS NULL) OR ([ProductMaxDiscount] = @Original_ProductMaxDiscount)) AND ([ProductQuantityInStock] = @Original_ProductQuantityInStock) AND ([Id] = @Original_Id) AND ([ProductPhormat] = @Original_ProductPhormat));
  4401. SELECT ProductArticleNumber, ProductName, ProductDescription, ProductCategory, ProductPhoto, ProductManufacturer, ProductCost, ProductDiscountAmount, ProductMaxDiscount, ProductQuantityInStock, ProductStatus, Id, ProductPhormat FROM Product WHERE (Id = @Id) AND (ProductArticleNumber = @ProductArticleNumber)";
  4402. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4403. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductArticleNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductArticleNumber", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4404. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4405. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductDescription", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductDescription", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4406. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductCategory", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductCategory", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4407. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductPhoto", global::System.Data.SqlDbType.VarBinary, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductPhoto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4408. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductManufacturer", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductManufacturer", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4409. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 19, 4, "ProductCost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4410. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductDiscountAmount", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductDiscountAmount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4411. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductMaxDiscount", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductMaxDiscount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4412. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductQuantityInStock", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductQuantityInStock", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4413. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductStatus", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductStatus", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4414. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductPhormat", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductPhormat", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4415. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductArticleNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductArticleNumber", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4416. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 19, 4, "ProductCost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4417. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ProductDiscountAmount", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductDiscountAmount", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4418. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductDiscountAmount", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductDiscountAmount", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4419. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ProductMaxDiscount", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductMaxDiscount", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4420. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductMaxDiscount", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductMaxDiscount", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4421. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductQuantityInStock", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductQuantityInStock", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4422. 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, "", "", ""));
  4423. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductPhormat", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductPhormat", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4424. 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, "", "", ""));
  4425. }
  4426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4428. private void InitConnection() {
  4429. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4430. this._connection.ConnectionString = global::_02trade.Properties.Settings.Default.trade02ConnectionString;
  4431. }
  4432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4433. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4434. private void InitCommandCollection() {
  4435. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4436. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4437. this._commandCollection[0].Connection = this.Connection;
  4438. this._commandCollection[0].CommandText = "SELECT ProductArticleNumber, ProductName, ProductDescription, ProductCategory, Pr" +
  4439. "oductPhoto, ProductManufacturer, ProductCost, ProductDiscountAmount, ProductMaxD" +
  4440. "iscount, ProductQuantityInStock, ProductStatus, Id, ProductPhormat FROM Product";
  4441. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4442. }
  4443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4444. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4445. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4446. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4447. public virtual int Fill(trade02DataSet.ProductDataTable dataTable) {
  4448. this.Adapter.SelectCommand = this.CommandCollection[0];
  4449. if ((this.ClearBeforeFill == true)) {
  4450. dataTable.Clear();
  4451. }
  4452. int returnValue = this.Adapter.Fill(dataTable);
  4453. return returnValue;
  4454. }
  4455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4456. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4457. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4458. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4459. public virtual trade02DataSet.ProductDataTable GetData() {
  4460. this.Adapter.SelectCommand = this.CommandCollection[0];
  4461. trade02DataSet.ProductDataTable dataTable = new trade02DataSet.ProductDataTable();
  4462. this.Adapter.Fill(dataTable);
  4463. return dataTable;
  4464. }
  4465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4467. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4468. public virtual int Update(trade02DataSet.ProductDataTable dataTable) {
  4469. return this.Adapter.Update(dataTable);
  4470. }
  4471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4473. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4474. public virtual int Update(trade02DataSet dataSet) {
  4475. return this.Adapter.Update(dataSet, "Product");
  4476. }
  4477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4479. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4480. public virtual int Update(global::System.Data.DataRow dataRow) {
  4481. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4482. dataRow});
  4483. }
  4484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4486. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4487. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4488. return this.Adapter.Update(dataRows);
  4489. }
  4490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4492. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4493. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4494. public virtual int Delete(string Original_ProductArticleNumber, decimal Original_ProductCost, global::System.Nullable<byte> Original_ProductDiscountAmount, global::System.Nullable<byte> Original_ProductMaxDiscount, int Original_ProductQuantityInStock, int Original_Id, string Original_ProductPhormat) {
  4495. if ((Original_ProductArticleNumber == null)) {
  4496. throw new global::System.ArgumentNullException("Original_ProductArticleNumber");
  4497. }
  4498. else {
  4499. this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_ProductArticleNumber));
  4500. }
  4501. this.Adapter.DeleteCommand.Parameters[1].Value = ((decimal)(Original_ProductCost));
  4502. if ((Original_ProductDiscountAmount.HasValue == true)) {
  4503. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  4504. this.Adapter.DeleteCommand.Parameters[3].Value = ((byte)(Original_ProductDiscountAmount.Value));
  4505. }
  4506. else {
  4507. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  4508. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  4509. }
  4510. if ((Original_ProductMaxDiscount.HasValue == true)) {
  4511. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  4512. this.Adapter.DeleteCommand.Parameters[5].Value = ((byte)(Original_ProductMaxDiscount.Value));
  4513. }
  4514. else {
  4515. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  4516. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  4517. }
  4518. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_ProductQuantityInStock));
  4519. this.Adapter.DeleteCommand.Parameters[7].Value = ((int)(Original_Id));
  4520. if ((Original_ProductPhormat == null)) {
  4521. throw new global::System.ArgumentNullException("Original_ProductPhormat");
  4522. }
  4523. else {
  4524. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_ProductPhormat));
  4525. }
  4526. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4527. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4528. != global::System.Data.ConnectionState.Open)) {
  4529. this.Adapter.DeleteCommand.Connection.Open();
  4530. }
  4531. try {
  4532. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4533. return returnValue;
  4534. }
  4535. finally {
  4536. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4537. this.Adapter.DeleteCommand.Connection.Close();
  4538. }
  4539. }
  4540. }
  4541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4543. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4544. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4545. public virtual int Insert(string ProductArticleNumber, string ProductName, string ProductDescription, string ProductCategory, byte[] ProductPhoto, string ProductManufacturer, decimal ProductCost, global::System.Nullable<byte> ProductDiscountAmount, global::System.Nullable<byte> ProductMaxDiscount, int ProductQuantityInStock, string ProductStatus, string ProductPhormat) {
  4546. if ((ProductArticleNumber == null)) {
  4547. throw new global::System.ArgumentNullException("ProductArticleNumber");
  4548. }
  4549. else {
  4550. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(ProductArticleNumber));
  4551. }
  4552. if ((ProductName == null)) {
  4553. throw new global::System.ArgumentNullException("ProductName");
  4554. }
  4555. else {
  4556. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(ProductName));
  4557. }
  4558. if ((ProductDescription == null)) {
  4559. throw new global::System.ArgumentNullException("ProductDescription");
  4560. }
  4561. else {
  4562. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(ProductDescription));
  4563. }
  4564. if ((ProductCategory == null)) {
  4565. throw new global::System.ArgumentNullException("ProductCategory");
  4566. }
  4567. else {
  4568. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(ProductCategory));
  4569. }
  4570. if ((ProductPhoto == null)) {
  4571. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  4572. }
  4573. else {
  4574. this.Adapter.InsertCommand.Parameters[4].Value = ((byte[])(ProductPhoto));
  4575. }
  4576. if ((ProductManufacturer == null)) {
  4577. throw new global::System.ArgumentNullException("ProductManufacturer");
  4578. }
  4579. else {
  4580. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(ProductManufacturer));
  4581. }
  4582. this.Adapter.InsertCommand.Parameters[6].Value = ((decimal)(ProductCost));
  4583. if ((ProductDiscountAmount.HasValue == true)) {
  4584. this.Adapter.InsertCommand.Parameters[7].Value = ((byte)(ProductDiscountAmount.Value));
  4585. }
  4586. else {
  4587. this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
  4588. }
  4589. if ((ProductMaxDiscount.HasValue == true)) {
  4590. this.Adapter.InsertCommand.Parameters[8].Value = ((byte)(ProductMaxDiscount.Value));
  4591. }
  4592. else {
  4593. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  4594. }
  4595. this.Adapter.InsertCommand.Parameters[9].Value = ((int)(ProductQuantityInStock));
  4596. if ((ProductStatus == null)) {
  4597. this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value;
  4598. }
  4599. else {
  4600. this.Adapter.InsertCommand.Parameters[10].Value = ((string)(ProductStatus));
  4601. }
  4602. if ((ProductPhormat == null)) {
  4603. throw new global::System.ArgumentNullException("ProductPhormat");
  4604. }
  4605. else {
  4606. this.Adapter.InsertCommand.Parameters[11].Value = ((string)(ProductPhormat));
  4607. }
  4608. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4609. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4610. != global::System.Data.ConnectionState.Open)) {
  4611. this.Adapter.InsertCommand.Connection.Open();
  4612. }
  4613. try {
  4614. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4615. return returnValue;
  4616. }
  4617. finally {
  4618. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4619. this.Adapter.InsertCommand.Connection.Close();
  4620. }
  4621. }
  4622. }
  4623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4625. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4626. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4627. public virtual int Update(
  4628. string ProductArticleNumber,
  4629. string ProductName,
  4630. string ProductDescription,
  4631. string ProductCategory,
  4632. byte[] ProductPhoto,
  4633. string ProductManufacturer,
  4634. decimal ProductCost,
  4635. global::System.Nullable<byte> ProductDiscountAmount,
  4636. global::System.Nullable<byte> ProductMaxDiscount,
  4637. int ProductQuantityInStock,
  4638. string ProductStatus,
  4639. string ProductPhormat,
  4640. string Original_ProductArticleNumber,
  4641. decimal Original_ProductCost,
  4642. global::System.Nullable<byte> Original_ProductDiscountAmount,
  4643. global::System.Nullable<byte> Original_ProductMaxDiscount,
  4644. int Original_ProductQuantityInStock,
  4645. int Original_Id,
  4646. string Original_ProductPhormat,
  4647. int Id) {
  4648. if ((ProductArticleNumber == null)) {
  4649. throw new global::System.ArgumentNullException("ProductArticleNumber");
  4650. }
  4651. else {
  4652. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(ProductArticleNumber));
  4653. }
  4654. if ((ProductName == null)) {
  4655. throw new global::System.ArgumentNullException("ProductName");
  4656. }
  4657. else {
  4658. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(ProductName));
  4659. }
  4660. if ((ProductDescription == null)) {
  4661. throw new global::System.ArgumentNullException("ProductDescription");
  4662. }
  4663. else {
  4664. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(ProductDescription));
  4665. }
  4666. if ((ProductCategory == null)) {
  4667. throw new global::System.ArgumentNullException("ProductCategory");
  4668. }
  4669. else {
  4670. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(ProductCategory));
  4671. }
  4672. if ((ProductPhoto == null)) {
  4673. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  4674. }
  4675. else {
  4676. this.Adapter.UpdateCommand.Parameters[4].Value = ((byte[])(ProductPhoto));
  4677. }
  4678. if ((ProductManufacturer == null)) {
  4679. throw new global::System.ArgumentNullException("ProductManufacturer");
  4680. }
  4681. else {
  4682. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(ProductManufacturer));
  4683. }
  4684. this.Adapter.UpdateCommand.Parameters[6].Value = ((decimal)(ProductCost));
  4685. if ((ProductDiscountAmount.HasValue == true)) {
  4686. this.Adapter.UpdateCommand.Parameters[7].Value = ((byte)(ProductDiscountAmount.Value));
  4687. }
  4688. else {
  4689. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  4690. }
  4691. if ((ProductMaxDiscount.HasValue == true)) {
  4692. this.Adapter.UpdateCommand.Parameters[8].Value = ((byte)(ProductMaxDiscount.Value));
  4693. }
  4694. else {
  4695. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  4696. }
  4697. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(ProductQuantityInStock));
  4698. if ((ProductStatus == null)) {
  4699. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  4700. }
  4701. else {
  4702. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(ProductStatus));
  4703. }
  4704. if ((ProductPhormat == null)) {
  4705. throw new global::System.ArgumentNullException("ProductPhormat");
  4706. }
  4707. else {
  4708. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(ProductPhormat));
  4709. }
  4710. if ((Original_ProductArticleNumber == null)) {
  4711. throw new global::System.ArgumentNullException("Original_ProductArticleNumber");
  4712. }
  4713. else {
  4714. this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_ProductArticleNumber));
  4715. }
  4716. this.Adapter.UpdateCommand.Parameters[13].Value = ((decimal)(Original_ProductCost));
  4717. if ((Original_ProductDiscountAmount.HasValue == true)) {
  4718. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  4719. this.Adapter.UpdateCommand.Parameters[15].Value = ((byte)(Original_ProductDiscountAmount.Value));
  4720. }
  4721. else {
  4722. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  4723. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  4724. }
  4725. if ((Original_ProductMaxDiscount.HasValue == true)) {
  4726. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
  4727. this.Adapter.UpdateCommand.Parameters[17].Value = ((byte)(Original_ProductMaxDiscount.Value));
  4728. }
  4729. else {
  4730. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
  4731. this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
  4732. }
  4733. this.Adapter.UpdateCommand.Parameters[18].Value = ((int)(Original_ProductQuantityInStock));
  4734. this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(Original_Id));
  4735. if ((Original_ProductPhormat == null)) {
  4736. throw new global::System.ArgumentNullException("Original_ProductPhormat");
  4737. }
  4738. else {
  4739. this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(Original_ProductPhormat));
  4740. }
  4741. this.Adapter.UpdateCommand.Parameters[21].Value = ((int)(Id));
  4742. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4743. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4744. != global::System.Data.ConnectionState.Open)) {
  4745. this.Adapter.UpdateCommand.Connection.Open();
  4746. }
  4747. try {
  4748. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4749. return returnValue;
  4750. }
  4751. finally {
  4752. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4753. this.Adapter.UpdateCommand.Connection.Close();
  4754. }
  4755. }
  4756. }
  4757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4759. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4760. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4761. public virtual int Update(
  4762. string ProductName,
  4763. string ProductDescription,
  4764. string ProductCategory,
  4765. byte[] ProductPhoto,
  4766. string ProductManufacturer,
  4767. decimal ProductCost,
  4768. global::System.Nullable<byte> ProductDiscountAmount,
  4769. global::System.Nullable<byte> ProductMaxDiscount,
  4770. int ProductQuantityInStock,
  4771. string ProductStatus,
  4772. string ProductPhormat,
  4773. string Original_ProductArticleNumber,
  4774. decimal Original_ProductCost,
  4775. global::System.Nullable<byte> Original_ProductDiscountAmount,
  4776. global::System.Nullable<byte> Original_ProductMaxDiscount,
  4777. int Original_ProductQuantityInStock,
  4778. int Original_Id,
  4779. string Original_ProductPhormat,
  4780. int Id) {
  4781. return this.Update(Original_ProductArticleNumber, ProductName, ProductDescription, ProductCategory, ProductPhoto, ProductManufacturer, ProductCost, ProductDiscountAmount, ProductMaxDiscount, ProductQuantityInStock, ProductStatus, ProductPhormat, Original_ProductArticleNumber, Original_ProductCost, Original_ProductDiscountAmount, Original_ProductMaxDiscount, Original_ProductQuantityInStock, Original_Id, Original_ProductPhormat, Id);
  4782. }
  4783. }
  4784. /// <summary>
  4785. ///Represents the connection and commands used to retrieve and save data.
  4786. ///</summary>
  4787. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4788. [global::System.ComponentModel.ToolboxItem(true)]
  4789. [global::System.ComponentModel.DataObjectAttribute(true)]
  4790. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4791. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4792. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4793. public partial class punkt_vidachiTableAdapter : global::System.ComponentModel.Component {
  4794. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4795. private global::System.Data.SqlClient.SqlConnection _connection;
  4796. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4797. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4798. private bool _clearBeforeFill;
  4799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4801. public punkt_vidachiTableAdapter() {
  4802. this.ClearBeforeFill = true;
  4803. }
  4804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4806. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4807. get {
  4808. if ((this._adapter == null)) {
  4809. this.InitAdapter();
  4810. }
  4811. return this._adapter;
  4812. }
  4813. }
  4814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4816. internal global::System.Data.SqlClient.SqlConnection Connection {
  4817. get {
  4818. if ((this._connection == null)) {
  4819. this.InitConnection();
  4820. }
  4821. return this._connection;
  4822. }
  4823. set {
  4824. this._connection = value;
  4825. if ((this.Adapter.InsertCommand != null)) {
  4826. this.Adapter.InsertCommand.Connection = value;
  4827. }
  4828. if ((this.Adapter.DeleteCommand != null)) {
  4829. this.Adapter.DeleteCommand.Connection = value;
  4830. }
  4831. if ((this.Adapter.UpdateCommand != null)) {
  4832. this.Adapter.UpdateCommand.Connection = value;
  4833. }
  4834. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4835. if ((this.CommandCollection[i] != null)) {
  4836. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4837. }
  4838. }
  4839. }
  4840. }
  4841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4843. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4844. get {
  4845. return this._transaction;
  4846. }
  4847. set {
  4848. this._transaction = value;
  4849. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4850. this.CommandCollection[i].Transaction = this._transaction;
  4851. }
  4852. if (((this.Adapter != null)
  4853. && (this.Adapter.DeleteCommand != null))) {
  4854. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4855. }
  4856. if (((this.Adapter != null)
  4857. && (this.Adapter.InsertCommand != null))) {
  4858. this.Adapter.InsertCommand.Transaction = this._transaction;
  4859. }
  4860. if (((this.Adapter != null)
  4861. && (this.Adapter.UpdateCommand != null))) {
  4862. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4863. }
  4864. }
  4865. }
  4866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4868. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4869. get {
  4870. if ((this._commandCollection == null)) {
  4871. this.InitCommandCollection();
  4872. }
  4873. return this._commandCollection;
  4874. }
  4875. }
  4876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4878. public bool ClearBeforeFill {
  4879. get {
  4880. return this._clearBeforeFill;
  4881. }
  4882. set {
  4883. this._clearBeforeFill = value;
  4884. }
  4885. }
  4886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4888. private void InitAdapter() {
  4889. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4890. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4891. tableMapping.SourceTable = "Table";
  4892. tableMapping.DataSetTable = "punkt_vidachi";
  4893. tableMapping.ColumnMappings.Add("id", "id");
  4894. tableMapping.ColumnMappings.Add("index", "index");
  4895. tableMapping.ColumnMappings.Add("gorod", "gorod");
  4896. tableMapping.ColumnMappings.Add("ulica", "ulica");
  4897. tableMapping.ColumnMappings.Add("dom", "dom");
  4898. this._adapter.TableMappings.Add(tableMapping);
  4899. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4900. this._adapter.DeleteCommand.Connection = this.Connection;
  4901. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[punkt_vidachi] WHERE (([id] = @Original_id) AND ([index] = @Or" +
  4902. "iginal_index) AND ([gorod] = @Original_gorod) AND ([ulica] = @Original_ulica) AN" +
  4903. "D ((@IsNull_dom = 1 AND [dom] IS NULL) OR ([dom] = @Original_dom)))";
  4904. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4905. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4906. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_index", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "index", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4907. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_gorod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gorod", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4908. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ulica", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ulica", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4909. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_dom", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dom", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4910. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_dom", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dom", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4911. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4912. this._adapter.InsertCommand.Connection = this.Connection;
  4913. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[punkt_vidachi] ([index], [gorod], [ulica], [dom]) VALUES (@ind" +
  4914. "ex, @gorod, @ulica, @dom);\r\nSELECT id, [index], gorod, ulica, dom FROM punkt_vid" +
  4915. "achi WHERE (id = SCOPE_IDENTITY())";
  4916. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4917. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@index", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "index", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4918. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gorod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gorod", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4919. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ulica", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ulica", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4920. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dom", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dom", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4921. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4922. this._adapter.UpdateCommand.Connection = this.Connection;
  4923. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[punkt_vidachi] SET [index] = @index, [gorod] = @gorod, [ulica] = @ulica, [dom] = @dom WHERE (([id] = @Original_id) AND ([index] = @Original_index) AND ([gorod] = @Original_gorod) AND ([ulica] = @Original_ulica) AND ((@IsNull_dom = 1 AND [dom] IS NULL) OR ([dom] = @Original_dom)));
  4924. SELECT id, [index], gorod, ulica, dom FROM punkt_vidachi WHERE (id = @id)";
  4925. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4926. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@index", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "index", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4927. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gorod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gorod", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4928. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ulica", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ulica", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4929. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dom", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dom", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4930. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4931. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_index", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "index", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4932. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_gorod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gorod", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4933. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ulica", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ulica", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4934. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_dom", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dom", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4935. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_dom", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dom", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4936. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.TinyInt, 1, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4937. }
  4938. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4939. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4940. private void InitConnection() {
  4941. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4942. this._connection.ConnectionString = global::_02trade.Properties.Settings.Default.trade02ConnectionString;
  4943. }
  4944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4946. private void InitCommandCollection() {
  4947. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4948. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4949. this._commandCollection[0].Connection = this.Connection;
  4950. this._commandCollection[0].CommandText = "SELECT id, [index], gorod, ulica, dom FROM dbo.punkt_vidachi";
  4951. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4952. }
  4953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4955. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4956. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4957. public virtual int Fill(trade02DataSet.punkt_vidachiDataTable dataTable) {
  4958. this.Adapter.SelectCommand = this.CommandCollection[0];
  4959. if ((this.ClearBeforeFill == true)) {
  4960. dataTable.Clear();
  4961. }
  4962. int returnValue = this.Adapter.Fill(dataTable);
  4963. return returnValue;
  4964. }
  4965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4967. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4968. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4969. public virtual trade02DataSet.punkt_vidachiDataTable GetData() {
  4970. this.Adapter.SelectCommand = this.CommandCollection[0];
  4971. trade02DataSet.punkt_vidachiDataTable dataTable = new trade02DataSet.punkt_vidachiDataTable();
  4972. this.Adapter.Fill(dataTable);
  4973. return dataTable;
  4974. }
  4975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4976. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4977. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4978. public virtual int Update(trade02DataSet.punkt_vidachiDataTable dataTable) {
  4979. return this.Adapter.Update(dataTable);
  4980. }
  4981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4982. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4983. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4984. public virtual int Update(trade02DataSet dataSet) {
  4985. return this.Adapter.Update(dataSet, "punkt_vidachi");
  4986. }
  4987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4989. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4990. public virtual int Update(global::System.Data.DataRow dataRow) {
  4991. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4992. dataRow});
  4993. }
  4994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4996. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4997. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4998. return this.Adapter.Update(dataRows);
  4999. }
  5000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5002. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5003. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5004. public virtual int Delete(byte Original_id, int Original_index, string Original_gorod, string Original_ulica, global::System.Nullable<byte> Original_dom) {
  5005. this.Adapter.DeleteCommand.Parameters[0].Value = ((byte)(Original_id));
  5006. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_index));
  5007. if ((Original_gorod == null)) {
  5008. throw new global::System.ArgumentNullException("Original_gorod");
  5009. }
  5010. else {
  5011. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_gorod));
  5012. }
  5013. if ((Original_ulica == null)) {
  5014. throw new global::System.ArgumentNullException("Original_ulica");
  5015. }
  5016. else {
  5017. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_ulica));
  5018. }
  5019. if ((Original_dom.HasValue == true)) {
  5020. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  5021. this.Adapter.DeleteCommand.Parameters[5].Value = ((byte)(Original_dom.Value));
  5022. }
  5023. else {
  5024. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  5025. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  5026. }
  5027. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5028. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5029. != global::System.Data.ConnectionState.Open)) {
  5030. this.Adapter.DeleteCommand.Connection.Open();
  5031. }
  5032. try {
  5033. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5034. return returnValue;
  5035. }
  5036. finally {
  5037. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5038. this.Adapter.DeleteCommand.Connection.Close();
  5039. }
  5040. }
  5041. }
  5042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5044. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5045. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5046. public virtual int Insert(int index, string gorod, string ulica, global::System.Nullable<byte> dom) {
  5047. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(index));
  5048. if ((gorod == null)) {
  5049. throw new global::System.ArgumentNullException("gorod");
  5050. }
  5051. else {
  5052. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(gorod));
  5053. }
  5054. if ((ulica == null)) {
  5055. throw new global::System.ArgumentNullException("ulica");
  5056. }
  5057. else {
  5058. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(ulica));
  5059. }
  5060. if ((dom.HasValue == true)) {
  5061. this.Adapter.InsertCommand.Parameters[3].Value = ((byte)(dom.Value));
  5062. }
  5063. else {
  5064. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  5065. }
  5066. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5067. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5068. != global::System.Data.ConnectionState.Open)) {
  5069. this.Adapter.InsertCommand.Connection.Open();
  5070. }
  5071. try {
  5072. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5073. return returnValue;
  5074. }
  5075. finally {
  5076. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5077. this.Adapter.InsertCommand.Connection.Close();
  5078. }
  5079. }
  5080. }
  5081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5083. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5084. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5085. public virtual int Update(int index, string gorod, string ulica, global::System.Nullable<byte> dom, byte Original_id, int Original_index, string Original_gorod, string Original_ulica, global::System.Nullable<byte> Original_dom, byte id) {
  5086. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(index));
  5087. if ((gorod == null)) {
  5088. throw new global::System.ArgumentNullException("gorod");
  5089. }
  5090. else {
  5091. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(gorod));
  5092. }
  5093. if ((ulica == null)) {
  5094. throw new global::System.ArgumentNullException("ulica");
  5095. }
  5096. else {
  5097. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(ulica));
  5098. }
  5099. if ((dom.HasValue == true)) {
  5100. this.Adapter.UpdateCommand.Parameters[3].Value = ((byte)(dom.Value));
  5101. }
  5102. else {
  5103. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  5104. }
  5105. this.Adapter.UpdateCommand.Parameters[4].Value = ((byte)(Original_id));
  5106. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_index));
  5107. if ((Original_gorod == null)) {
  5108. throw new global::System.ArgumentNullException("Original_gorod");
  5109. }
  5110. else {
  5111. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_gorod));
  5112. }
  5113. if ((Original_ulica == null)) {
  5114. throw new global::System.ArgumentNullException("Original_ulica");
  5115. }
  5116. else {
  5117. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_ulica));
  5118. }
  5119. if ((Original_dom.HasValue == true)) {
  5120. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  5121. this.Adapter.UpdateCommand.Parameters[9].Value = ((byte)(Original_dom.Value));
  5122. }
  5123. else {
  5124. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  5125. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  5126. }
  5127. this.Adapter.UpdateCommand.Parameters[10].Value = ((byte)(id));
  5128. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5129. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5130. != global::System.Data.ConnectionState.Open)) {
  5131. this.Adapter.UpdateCommand.Connection.Open();
  5132. }
  5133. try {
  5134. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5135. return returnValue;
  5136. }
  5137. finally {
  5138. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5139. this.Adapter.UpdateCommand.Connection.Close();
  5140. }
  5141. }
  5142. }
  5143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5145. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5146. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5147. public virtual int Update(int index, string gorod, string ulica, global::System.Nullable<byte> dom, byte Original_id, int Original_index, string Original_gorod, string Original_ulica, global::System.Nullable<byte> Original_dom) {
  5148. return this.Update(index, gorod, ulica, dom, Original_id, Original_index, Original_gorod, Original_ulica, Original_dom, Original_id);
  5149. }
  5150. }
  5151. /// <summary>
  5152. ///Represents the connection and commands used to retrieve and save data.
  5153. ///</summary>
  5154. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5155. [global::System.ComponentModel.ToolboxItem(true)]
  5156. [global::System.ComponentModel.DataObjectAttribute(true)]
  5157. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5158. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5159. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5160. public partial class RoleTableAdapter : global::System.ComponentModel.Component {
  5161. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5162. private global::System.Data.SqlClient.SqlConnection _connection;
  5163. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5164. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5165. private bool _clearBeforeFill;
  5166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5168. public RoleTableAdapter() {
  5169. this.ClearBeforeFill = true;
  5170. }
  5171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5173. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5174. get {
  5175. if ((this._adapter == null)) {
  5176. this.InitAdapter();
  5177. }
  5178. return this._adapter;
  5179. }
  5180. }
  5181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5183. internal global::System.Data.SqlClient.SqlConnection Connection {
  5184. get {
  5185. if ((this._connection == null)) {
  5186. this.InitConnection();
  5187. }
  5188. return this._connection;
  5189. }
  5190. set {
  5191. this._connection = value;
  5192. if ((this.Adapter.InsertCommand != null)) {
  5193. this.Adapter.InsertCommand.Connection = value;
  5194. }
  5195. if ((this.Adapter.DeleteCommand != null)) {
  5196. this.Adapter.DeleteCommand.Connection = value;
  5197. }
  5198. if ((this.Adapter.UpdateCommand != null)) {
  5199. this.Adapter.UpdateCommand.Connection = value;
  5200. }
  5201. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5202. if ((this.CommandCollection[i] != null)) {
  5203. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5204. }
  5205. }
  5206. }
  5207. }
  5208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5210. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5211. get {
  5212. return this._transaction;
  5213. }
  5214. set {
  5215. this._transaction = value;
  5216. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5217. this.CommandCollection[i].Transaction = this._transaction;
  5218. }
  5219. if (((this.Adapter != null)
  5220. && (this.Adapter.DeleteCommand != null))) {
  5221. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5222. }
  5223. if (((this.Adapter != null)
  5224. && (this.Adapter.InsertCommand != null))) {
  5225. this.Adapter.InsertCommand.Transaction = this._transaction;
  5226. }
  5227. if (((this.Adapter != null)
  5228. && (this.Adapter.UpdateCommand != null))) {
  5229. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5230. }
  5231. }
  5232. }
  5233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5235. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5236. get {
  5237. if ((this._commandCollection == null)) {
  5238. this.InitCommandCollection();
  5239. }
  5240. return this._commandCollection;
  5241. }
  5242. }
  5243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5245. public bool ClearBeforeFill {
  5246. get {
  5247. return this._clearBeforeFill;
  5248. }
  5249. set {
  5250. this._clearBeforeFill = value;
  5251. }
  5252. }
  5253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5255. private void InitAdapter() {
  5256. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5257. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5258. tableMapping.SourceTable = "Table";
  5259. tableMapping.DataSetTable = "Role";
  5260. tableMapping.ColumnMappings.Add("RoleID", "RoleID");
  5261. tableMapping.ColumnMappings.Add("RoleName", "RoleName");
  5262. this._adapter.TableMappings.Add(tableMapping);
  5263. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5264. this._adapter.DeleteCommand.Connection = this.Connection;
  5265. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Role] WHERE (([RoleID] = @Original_RoleID) AND ([RoleName] = @" +
  5266. "Original_RoleName))";
  5267. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5268. 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, "", "", ""));
  5269. 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, "", "", ""));
  5270. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5271. this._adapter.InsertCommand.Connection = this.Connection;
  5272. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Role] ([RoleName]) VALUES (@RoleName);\r\nSELECT RoleID, RoleNam" +
  5273. "e FROM Role WHERE (RoleID = SCOPE_IDENTITY())";
  5274. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5275. 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, "", "", ""));
  5276. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5277. this._adapter.UpdateCommand.Connection = this.Connection;
  5278. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Role] SET [RoleName] = @RoleName WHERE (([RoleID] = @Original_RoleI" +
  5279. "D) AND ([RoleName] = @Original_RoleName));\r\nSELECT RoleID, RoleName FROM Role WH" +
  5280. "ERE (RoleID = @RoleID)";
  5281. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5282. 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, "", "", ""));
  5283. 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, "", "", ""));
  5284. 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, "", "", ""));
  5285. 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, "", "", ""));
  5286. }
  5287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5289. private void InitConnection() {
  5290. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5291. this._connection.ConnectionString = global::_02trade.Properties.Settings.Default.trade02ConnectionString;
  5292. }
  5293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5295. private void InitCommandCollection() {
  5296. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5297. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5298. this._commandCollection[0].Connection = this.Connection;
  5299. this._commandCollection[0].CommandText = "SELECT RoleID, RoleName FROM dbo.Role";
  5300. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5301. }
  5302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5304. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5305. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5306. public virtual int Fill(trade02DataSet.RoleDataTable dataTable) {
  5307. this.Adapter.SelectCommand = this.CommandCollection[0];
  5308. if ((this.ClearBeforeFill == true)) {
  5309. dataTable.Clear();
  5310. }
  5311. int returnValue = this.Adapter.Fill(dataTable);
  5312. return returnValue;
  5313. }
  5314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5316. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5317. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5318. public virtual trade02DataSet.RoleDataTable GetData() {
  5319. this.Adapter.SelectCommand = this.CommandCollection[0];
  5320. trade02DataSet.RoleDataTable dataTable = new trade02DataSet.RoleDataTable();
  5321. this.Adapter.Fill(dataTable);
  5322. return dataTable;
  5323. }
  5324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5326. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5327. public virtual int Update(trade02DataSet.RoleDataTable dataTable) {
  5328. return this.Adapter.Update(dataTable);
  5329. }
  5330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5332. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5333. public virtual int Update(trade02DataSet dataSet) {
  5334. return this.Adapter.Update(dataSet, "Role");
  5335. }
  5336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5338. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5339. public virtual int Update(global::System.Data.DataRow dataRow) {
  5340. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5341. dataRow});
  5342. }
  5343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5344. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5345. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5346. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5347. return this.Adapter.Update(dataRows);
  5348. }
  5349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5351. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5352. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5353. public virtual int Delete(int Original_RoleID, string Original_RoleName) {
  5354. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_RoleID));
  5355. if ((Original_RoleName == null)) {
  5356. throw new global::System.ArgumentNullException("Original_RoleName");
  5357. }
  5358. else {
  5359. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_RoleName));
  5360. }
  5361. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5362. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5363. != global::System.Data.ConnectionState.Open)) {
  5364. this.Adapter.DeleteCommand.Connection.Open();
  5365. }
  5366. try {
  5367. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5368. return returnValue;
  5369. }
  5370. finally {
  5371. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5372. this.Adapter.DeleteCommand.Connection.Close();
  5373. }
  5374. }
  5375. }
  5376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5378. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5379. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5380. public virtual int Insert(string RoleName) {
  5381. if ((RoleName == null)) {
  5382. throw new global::System.ArgumentNullException("RoleName");
  5383. }
  5384. else {
  5385. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(RoleName));
  5386. }
  5387. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5388. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5389. != global::System.Data.ConnectionState.Open)) {
  5390. this.Adapter.InsertCommand.Connection.Open();
  5391. }
  5392. try {
  5393. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5394. return returnValue;
  5395. }
  5396. finally {
  5397. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5398. this.Adapter.InsertCommand.Connection.Close();
  5399. }
  5400. }
  5401. }
  5402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5403. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5404. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5405. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5406. public virtual int Update(string RoleName, int Original_RoleID, string Original_RoleName, int RoleID) {
  5407. if ((RoleName == null)) {
  5408. throw new global::System.ArgumentNullException("RoleName");
  5409. }
  5410. else {
  5411. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(RoleName));
  5412. }
  5413. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_RoleID));
  5414. if ((Original_RoleName == null)) {
  5415. throw new global::System.ArgumentNullException("Original_RoleName");
  5416. }
  5417. else {
  5418. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_RoleName));
  5419. }
  5420. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(RoleID));
  5421. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5422. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5423. != global::System.Data.ConnectionState.Open)) {
  5424. this.Adapter.UpdateCommand.Connection.Open();
  5425. }
  5426. try {
  5427. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5428. return returnValue;
  5429. }
  5430. finally {
  5431. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5432. this.Adapter.UpdateCommand.Connection.Close();
  5433. }
  5434. }
  5435. }
  5436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5438. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5439. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5440. public virtual int Update(string RoleName, int Original_RoleID, string Original_RoleName) {
  5441. return this.Update(RoleName, Original_RoleID, Original_RoleName, Original_RoleID);
  5442. }
  5443. }
  5444. /// <summary>
  5445. ///Represents the connection and commands used to retrieve and save data.
  5446. ///</summary>
  5447. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5448. [global::System.ComponentModel.ToolboxItem(true)]
  5449. [global::System.ComponentModel.DataObjectAttribute(true)]
  5450. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5451. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5452. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5453. public partial class UserTableAdapter : global::System.ComponentModel.Component {
  5454. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5455. private global::System.Data.SqlClient.SqlConnection _connection;
  5456. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5457. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5458. private bool _clearBeforeFill;
  5459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5461. public UserTableAdapter() {
  5462. this.ClearBeforeFill = true;
  5463. }
  5464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5466. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5467. get {
  5468. if ((this._adapter == null)) {
  5469. this.InitAdapter();
  5470. }
  5471. return this._adapter;
  5472. }
  5473. }
  5474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5476. internal global::System.Data.SqlClient.SqlConnection Connection {
  5477. get {
  5478. if ((this._connection == null)) {
  5479. this.InitConnection();
  5480. }
  5481. return this._connection;
  5482. }
  5483. set {
  5484. this._connection = value;
  5485. if ((this.Adapter.InsertCommand != null)) {
  5486. this.Adapter.InsertCommand.Connection = value;
  5487. }
  5488. if ((this.Adapter.DeleteCommand != null)) {
  5489. this.Adapter.DeleteCommand.Connection = value;
  5490. }
  5491. if ((this.Adapter.UpdateCommand != null)) {
  5492. this.Adapter.UpdateCommand.Connection = value;
  5493. }
  5494. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5495. if ((this.CommandCollection[i] != null)) {
  5496. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5497. }
  5498. }
  5499. }
  5500. }
  5501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5503. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5504. get {
  5505. return this._transaction;
  5506. }
  5507. set {
  5508. this._transaction = value;
  5509. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5510. this.CommandCollection[i].Transaction = this._transaction;
  5511. }
  5512. if (((this.Adapter != null)
  5513. && (this.Adapter.DeleteCommand != null))) {
  5514. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5515. }
  5516. if (((this.Adapter != null)
  5517. && (this.Adapter.InsertCommand != null))) {
  5518. this.Adapter.InsertCommand.Transaction = this._transaction;
  5519. }
  5520. if (((this.Adapter != null)
  5521. && (this.Adapter.UpdateCommand != null))) {
  5522. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5523. }
  5524. }
  5525. }
  5526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5528. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5529. get {
  5530. if ((this._commandCollection == null)) {
  5531. this.InitCommandCollection();
  5532. }
  5533. return this._commandCollection;
  5534. }
  5535. }
  5536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5538. public bool ClearBeforeFill {
  5539. get {
  5540. return this._clearBeforeFill;
  5541. }
  5542. set {
  5543. this._clearBeforeFill = value;
  5544. }
  5545. }
  5546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5548. private void InitAdapter() {
  5549. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5550. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5551. tableMapping.SourceTable = "Table";
  5552. tableMapping.DataSetTable = "User";
  5553. tableMapping.ColumnMappings.Add("UserID", "UserID");
  5554. tableMapping.ColumnMappings.Add("UserSurname", "UserSurname");
  5555. tableMapping.ColumnMappings.Add("UserName", "UserName");
  5556. tableMapping.ColumnMappings.Add("UserPatronymic", "UserPatronymic");
  5557. tableMapping.ColumnMappings.Add("UserLogin", "UserLogin");
  5558. tableMapping.ColumnMappings.Add("UserPassword", "UserPassword");
  5559. tableMapping.ColumnMappings.Add("UserRole", "UserRole");
  5560. this._adapter.TableMappings.Add(tableMapping);
  5561. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5562. this._adapter.DeleteCommand.Connection = this.Connection;
  5563. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[User] WHERE (([UserID] = @Original_UserID) AND ([UserSurname] " +
  5564. "= @Original_UserSurname) AND ([UserName] = @Original_UserName) AND ([UserPatrony" +
  5565. "mic] = @Original_UserPatronymic) AND ([UserRole] = @Original_UserRole))";
  5566. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5567. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5568. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserSurname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserSurname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5569. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5570. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserPatronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserPatronymic", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5571. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserRole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserRole", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5572. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5573. this._adapter.InsertCommand.Connection = this.Connection;
  5574. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[User] ([UserSurname], [UserName], [UserPatronymic], [UserLogin], [UserPassword], [UserRole]) VALUES (@UserSurname, @UserName, @UserPatronymic, @UserLogin, @UserPassword, @UserRole);
  5575. SELECT UserID, UserSurname, UserName, UserPatronymic, UserLogin, UserPassword, UserRole FROM [User] WHERE (UserID = SCOPE_IDENTITY())";
  5576. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5577. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserSurname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserSurname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5578. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5579. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserPatronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserPatronymic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5580. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserLogin", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserLogin", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5581. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserPassword", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserPassword", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5582. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserRole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserRole", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5583. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5584. this._adapter.UpdateCommand.Connection = this.Connection;
  5585. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[User] SET [UserSurname] = @UserSurname, [UserName] = @UserName, [UserPatronymic] = @UserPatronymic, [UserLogin] = @UserLogin, [UserPassword] = @UserPassword, [UserRole] = @UserRole WHERE (([UserID] = @Original_UserID) AND ([UserSurname] = @Original_UserSurname) AND ([UserName] = @Original_UserName) AND ([UserPatronymic] = @Original_UserPatronymic) AND ([UserRole] = @Original_UserRole));
  5586. SELECT UserID, UserSurname, UserName, UserPatronymic, UserLogin, UserPassword, UserRole FROM [User] WHERE (UserID = @UserID)";
  5587. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5588. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserSurname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserSurname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5589. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5590. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserPatronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserPatronymic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5591. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserLogin", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserLogin", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5592. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserPassword", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserPassword", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5593. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserRole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserRole", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5594. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5595. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserSurname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserSurname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5596. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5597. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserPatronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserPatronymic", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5598. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserRole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserRole", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5599. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "UserID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5600. }
  5601. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5602. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5603. private void InitConnection() {
  5604. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5605. this._connection.ConnectionString = global::_02trade.Properties.Settings.Default.trade02ConnectionString;
  5606. }
  5607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5609. private void InitCommandCollection() {
  5610. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5611. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5612. this._commandCollection[0].Connection = this.Connection;
  5613. this._commandCollection[0].CommandText = "SELECT UserID, UserSurname, UserName, UserPatronymic, UserLogin, UserPassword, Us" +
  5614. "erRole FROM dbo.[User]";
  5615. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5616. }
  5617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5619. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5620. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5621. public virtual int Fill(trade02DataSet.UserDataTable dataTable) {
  5622. this.Adapter.SelectCommand = this.CommandCollection[0];
  5623. if ((this.ClearBeforeFill == true)) {
  5624. dataTable.Clear();
  5625. }
  5626. int returnValue = this.Adapter.Fill(dataTable);
  5627. return returnValue;
  5628. }
  5629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5631. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5632. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5633. public virtual trade02DataSet.UserDataTable GetData() {
  5634. this.Adapter.SelectCommand = this.CommandCollection[0];
  5635. trade02DataSet.UserDataTable dataTable = new trade02DataSet.UserDataTable();
  5636. this.Adapter.Fill(dataTable);
  5637. return dataTable;
  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(trade02DataSet.UserDataTable dataTable) {
  5643. return this.Adapter.Update(dataTable);
  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. public virtual int Update(trade02DataSet dataSet) {
  5649. return this.Adapter.Update(dataSet, "User");
  5650. }
  5651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5653. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5654. public virtual int Update(global::System.Data.DataRow dataRow) {
  5655. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5656. dataRow});
  5657. }
  5658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5660. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5661. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5662. return this.Adapter.Update(dataRows);
  5663. }
  5664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5666. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5667. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5668. public virtual int Delete(int Original_UserID, string Original_UserSurname, string Original_UserName, string Original_UserPatronymic, int Original_UserRole) {
  5669. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_UserID));
  5670. if ((Original_UserSurname == null)) {
  5671. throw new global::System.ArgumentNullException("Original_UserSurname");
  5672. }
  5673. else {
  5674. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_UserSurname));
  5675. }
  5676. if ((Original_UserName == null)) {
  5677. throw new global::System.ArgumentNullException("Original_UserName");
  5678. }
  5679. else {
  5680. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_UserName));
  5681. }
  5682. if ((Original_UserPatronymic == null)) {
  5683. throw new global::System.ArgumentNullException("Original_UserPatronymic");
  5684. }
  5685. else {
  5686. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_UserPatronymic));
  5687. }
  5688. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_UserRole));
  5689. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5690. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5691. != global::System.Data.ConnectionState.Open)) {
  5692. this.Adapter.DeleteCommand.Connection.Open();
  5693. }
  5694. try {
  5695. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5696. return returnValue;
  5697. }
  5698. finally {
  5699. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5700. this.Adapter.DeleteCommand.Connection.Close();
  5701. }
  5702. }
  5703. }
  5704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5706. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5707. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5708. public virtual int Insert(string UserSurname, string UserName, string UserPatronymic, string UserLogin, string UserPassword, int UserRole) {
  5709. if ((UserSurname == null)) {
  5710. throw new global::System.ArgumentNullException("UserSurname");
  5711. }
  5712. else {
  5713. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(UserSurname));
  5714. }
  5715. if ((UserName == null)) {
  5716. throw new global::System.ArgumentNullException("UserName");
  5717. }
  5718. else {
  5719. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(UserName));
  5720. }
  5721. if ((UserPatronymic == null)) {
  5722. throw new global::System.ArgumentNullException("UserPatronymic");
  5723. }
  5724. else {
  5725. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(UserPatronymic));
  5726. }
  5727. if ((UserLogin == null)) {
  5728. throw new global::System.ArgumentNullException("UserLogin");
  5729. }
  5730. else {
  5731. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(UserLogin));
  5732. }
  5733. if ((UserPassword == null)) {
  5734. throw new global::System.ArgumentNullException("UserPassword");
  5735. }
  5736. else {
  5737. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(UserPassword));
  5738. }
  5739. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(UserRole));
  5740. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5741. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5742. != global::System.Data.ConnectionState.Open)) {
  5743. this.Adapter.InsertCommand.Connection.Open();
  5744. }
  5745. try {
  5746. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5747. return returnValue;
  5748. }
  5749. finally {
  5750. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5751. this.Adapter.InsertCommand.Connection.Close();
  5752. }
  5753. }
  5754. }
  5755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5757. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5758. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5759. public virtual int Update(string UserSurname, string UserName, string UserPatronymic, string UserLogin, string UserPassword, int UserRole, int Original_UserID, string Original_UserSurname, string Original_UserName, string Original_UserPatronymic, int Original_UserRole, int UserID) {
  5760. if ((UserSurname == null)) {
  5761. throw new global::System.ArgumentNullException("UserSurname");
  5762. }
  5763. else {
  5764. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(UserSurname));
  5765. }
  5766. if ((UserName == null)) {
  5767. throw new global::System.ArgumentNullException("UserName");
  5768. }
  5769. else {
  5770. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(UserName));
  5771. }
  5772. if ((UserPatronymic == null)) {
  5773. throw new global::System.ArgumentNullException("UserPatronymic");
  5774. }
  5775. else {
  5776. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(UserPatronymic));
  5777. }
  5778. if ((UserLogin == null)) {
  5779. throw new global::System.ArgumentNullException("UserLogin");
  5780. }
  5781. else {
  5782. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(UserLogin));
  5783. }
  5784. if ((UserPassword == null)) {
  5785. throw new global::System.ArgumentNullException("UserPassword");
  5786. }
  5787. else {
  5788. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(UserPassword));
  5789. }
  5790. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(UserRole));
  5791. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_UserID));
  5792. if ((Original_UserSurname == null)) {
  5793. throw new global::System.ArgumentNullException("Original_UserSurname");
  5794. }
  5795. else {
  5796. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_UserSurname));
  5797. }
  5798. if ((Original_UserName == null)) {
  5799. throw new global::System.ArgumentNullException("Original_UserName");
  5800. }
  5801. else {
  5802. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_UserName));
  5803. }
  5804. if ((Original_UserPatronymic == null)) {
  5805. throw new global::System.ArgumentNullException("Original_UserPatronymic");
  5806. }
  5807. else {
  5808. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_UserPatronymic));
  5809. }
  5810. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_UserRole));
  5811. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(UserID));
  5812. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5813. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5814. != global::System.Data.ConnectionState.Open)) {
  5815. this.Adapter.UpdateCommand.Connection.Open();
  5816. }
  5817. try {
  5818. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5819. return returnValue;
  5820. }
  5821. finally {
  5822. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5823. this.Adapter.UpdateCommand.Connection.Close();
  5824. }
  5825. }
  5826. }
  5827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5829. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5830. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5831. public virtual int Update(string UserSurname, string UserName, string UserPatronymic, string UserLogin, string UserPassword, int UserRole, int Original_UserID, string Original_UserSurname, string Original_UserName, string Original_UserPatronymic, int Original_UserRole) {
  5832. return this.Update(UserSurname, UserName, UserPatronymic, UserLogin, UserPassword, UserRole, Original_UserID, Original_UserSurname, Original_UserName, Original_UserPatronymic, Original_UserRole, Original_UserID);
  5833. }
  5834. }
  5835. /// <summary>
  5836. ///Represents the connection and commands used to retrieve and save data.
  5837. ///</summary>
  5838. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5839. [global::System.ComponentModel.ToolboxItem(true)]
  5840. [global::System.ComponentModel.DataObjectAttribute(true)]
  5841. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5842. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5843. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5844. public partial class UserTableTableAdapter : global::System.ComponentModel.Component {
  5845. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5846. private global::System.Data.SqlClient.SqlConnection _connection;
  5847. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5848. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5849. private bool _clearBeforeFill;
  5850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5852. public UserTableTableAdapter() {
  5853. this.ClearBeforeFill = true;
  5854. }
  5855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5857. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5858. get {
  5859. if ((this._adapter == null)) {
  5860. this.InitAdapter();
  5861. }
  5862. return this._adapter;
  5863. }
  5864. }
  5865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5867. internal global::System.Data.SqlClient.SqlConnection Connection {
  5868. get {
  5869. if ((this._connection == null)) {
  5870. this.InitConnection();
  5871. }
  5872. return this._connection;
  5873. }
  5874. set {
  5875. this._connection = value;
  5876. if ((this.Adapter.InsertCommand != null)) {
  5877. this.Adapter.InsertCommand.Connection = value;
  5878. }
  5879. if ((this.Adapter.DeleteCommand != null)) {
  5880. this.Adapter.DeleteCommand.Connection = value;
  5881. }
  5882. if ((this.Adapter.UpdateCommand != null)) {
  5883. this.Adapter.UpdateCommand.Connection = value;
  5884. }
  5885. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5886. if ((this.CommandCollection[i] != null)) {
  5887. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5888. }
  5889. }
  5890. }
  5891. }
  5892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5894. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5895. get {
  5896. return this._transaction;
  5897. }
  5898. set {
  5899. this._transaction = value;
  5900. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5901. this.CommandCollection[i].Transaction = this._transaction;
  5902. }
  5903. if (((this.Adapter != null)
  5904. && (this.Adapter.DeleteCommand != null))) {
  5905. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5906. }
  5907. if (((this.Adapter != null)
  5908. && (this.Adapter.InsertCommand != null))) {
  5909. this.Adapter.InsertCommand.Transaction = this._transaction;
  5910. }
  5911. if (((this.Adapter != null)
  5912. && (this.Adapter.UpdateCommand != null))) {
  5913. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5914. }
  5915. }
  5916. }
  5917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5919. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5920. get {
  5921. if ((this._commandCollection == null)) {
  5922. this.InitCommandCollection();
  5923. }
  5924. return this._commandCollection;
  5925. }
  5926. }
  5927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5929. public bool ClearBeforeFill {
  5930. get {
  5931. return this._clearBeforeFill;
  5932. }
  5933. set {
  5934. this._clearBeforeFill = value;
  5935. }
  5936. }
  5937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5939. private void InitAdapter() {
  5940. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5941. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5942. tableMapping.SourceTable = "Table";
  5943. tableMapping.DataSetTable = "UserTable";
  5944. tableMapping.ColumnMappings.Add("UserID", "UserID");
  5945. tableMapping.ColumnMappings.Add("UserSurname", "UserSurname");
  5946. tableMapping.ColumnMappings.Add("UserName", "UserName");
  5947. tableMapping.ColumnMappings.Add("UserPatronymic", "UserPatronymic");
  5948. tableMapping.ColumnMappings.Add("UserLogin", "UserLogin");
  5949. tableMapping.ColumnMappings.Add("UserPassword", "UserPassword");
  5950. tableMapping.ColumnMappings.Add("UserRole", "UserRole");
  5951. this._adapter.TableMappings.Add(tableMapping);
  5952. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5953. this._adapter.DeleteCommand.Connection = this.Connection;
  5954. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[UserTable] WHERE (([UserID] = @Original_UserID) AND ([UserSurn" +
  5955. "ame] = @Original_UserSurname) AND ([UserName] = @Original_UserName) AND ([UserPa" +
  5956. "tronymic] = @Original_UserPatronymic) AND ([UserRole] = @Original_UserRole))";
  5957. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5958. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5959. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserSurname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserSurname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5960. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5961. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserPatronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserPatronymic", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5962. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserRole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserRole", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5963. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5964. this._adapter.InsertCommand.Connection = this.Connection;
  5965. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[UserTable] ([UserSurname], [UserName], [UserPatronymic], [UserLogin], [UserPassword], [UserRole]) VALUES (@UserSurname, @UserName, @UserPatronymic, @UserLogin, @UserPassword, @UserRole);
  5966. SELECT UserID, UserSurname, UserName, UserPatronymic, UserLogin, UserPassword, UserRole FROM UserTable WHERE (UserID = SCOPE_IDENTITY())";
  5967. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5968. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserSurname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserSurname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5969. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5970. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserPatronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserPatronymic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5971. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserLogin", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserLogin", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5972. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserPassword", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserPassword", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5973. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserRole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserRole", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5974. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5975. this._adapter.UpdateCommand.Connection = this.Connection;
  5976. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[UserTable] SET [UserSurname] = @UserSurname, [UserName] = @UserName, [UserPatronymic] = @UserPatronymic, [UserLogin] = @UserLogin, [UserPassword] = @UserPassword, [UserRole] = @UserRole WHERE (([UserID] = @Original_UserID) AND ([UserSurname] = @Original_UserSurname) AND ([UserName] = @Original_UserName) AND ([UserPatronymic] = @Original_UserPatronymic) AND ([UserRole] = @Original_UserRole));
  5977. SELECT UserID, UserSurname, UserName, UserPatronymic, UserLogin, UserPassword, UserRole FROM UserTable WHERE (UserID = @UserID)";
  5978. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5979. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserSurname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserSurname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5980. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5981. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserPatronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserPatronymic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5982. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserLogin", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserLogin", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5983. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserPassword", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserPassword", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5984. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserRole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserRole", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5985. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5986. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserSurname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserSurname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5987. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5988. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserPatronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserPatronymic", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5989. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserRole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserRole", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5990. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "UserID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5991. }
  5992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5994. private void InitConnection() {
  5995. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5996. this._connection.ConnectionString = global::_02trade.Properties.Settings.Default.trade02ConnectionString;
  5997. }
  5998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6000. private void InitCommandCollection() {
  6001. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6002. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6003. this._commandCollection[0].Connection = this.Connection;
  6004. this._commandCollection[0].CommandText = "SELECT UserID, UserSurname, UserName, UserPatronymic, UserLogin, UserPassword, Us" +
  6005. "erRole FROM dbo.UserTable";
  6006. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6007. }
  6008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6010. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6011. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6012. public virtual int Fill(trade02DataSet.UserTableDataTable dataTable) {
  6013. this.Adapter.SelectCommand = this.CommandCollection[0];
  6014. if ((this.ClearBeforeFill == true)) {
  6015. dataTable.Clear();
  6016. }
  6017. int returnValue = this.Adapter.Fill(dataTable);
  6018. return returnValue;
  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.Select, true)]
  6024. public virtual trade02DataSet.UserTableDataTable GetData() {
  6025. this.Adapter.SelectCommand = this.CommandCollection[0];
  6026. trade02DataSet.UserTableDataTable dataTable = new trade02DataSet.UserTableDataTable();
  6027. this.Adapter.Fill(dataTable);
  6028. return dataTable;
  6029. }
  6030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6032. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6033. public virtual int Update(trade02DataSet.UserTableDataTable dataTable) {
  6034. return this.Adapter.Update(dataTable);
  6035. }
  6036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6038. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6039. public virtual int Update(trade02DataSet dataSet) {
  6040. return this.Adapter.Update(dataSet, "UserTable");
  6041. }
  6042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6044. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6045. public virtual int Update(global::System.Data.DataRow dataRow) {
  6046. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6047. dataRow});
  6048. }
  6049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6051. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6052. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6053. return this.Adapter.Update(dataRows);
  6054. }
  6055. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6056. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6057. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6058. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6059. public virtual int Delete(int Original_UserID, string Original_UserSurname, string Original_UserName, string Original_UserPatronymic, int Original_UserRole) {
  6060. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_UserID));
  6061. if ((Original_UserSurname == null)) {
  6062. throw new global::System.ArgumentNullException("Original_UserSurname");
  6063. }
  6064. else {
  6065. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_UserSurname));
  6066. }
  6067. if ((Original_UserName == null)) {
  6068. throw new global::System.ArgumentNullException("Original_UserName");
  6069. }
  6070. else {
  6071. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_UserName));
  6072. }
  6073. if ((Original_UserPatronymic == null)) {
  6074. throw new global::System.ArgumentNullException("Original_UserPatronymic");
  6075. }
  6076. else {
  6077. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_UserPatronymic));
  6078. }
  6079. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_UserRole));
  6080. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6081. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6082. != global::System.Data.ConnectionState.Open)) {
  6083. this.Adapter.DeleteCommand.Connection.Open();
  6084. }
  6085. try {
  6086. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6087. return returnValue;
  6088. }
  6089. finally {
  6090. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6091. this.Adapter.DeleteCommand.Connection.Close();
  6092. }
  6093. }
  6094. }
  6095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6097. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6098. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6099. public virtual int Insert(string UserSurname, string UserName, string UserPatronymic, string UserLogin, string UserPassword, int UserRole) {
  6100. if ((UserSurname == null)) {
  6101. throw new global::System.ArgumentNullException("UserSurname");
  6102. }
  6103. else {
  6104. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(UserSurname));
  6105. }
  6106. if ((UserName == null)) {
  6107. throw new global::System.ArgumentNullException("UserName");
  6108. }
  6109. else {
  6110. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(UserName));
  6111. }
  6112. if ((UserPatronymic == null)) {
  6113. throw new global::System.ArgumentNullException("UserPatronymic");
  6114. }
  6115. else {
  6116. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(UserPatronymic));
  6117. }
  6118. if ((UserLogin == null)) {
  6119. throw new global::System.ArgumentNullException("UserLogin");
  6120. }
  6121. else {
  6122. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(UserLogin));
  6123. }
  6124. if ((UserPassword == null)) {
  6125. throw new global::System.ArgumentNullException("UserPassword");
  6126. }
  6127. else {
  6128. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(UserPassword));
  6129. }
  6130. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(UserRole));
  6131. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6132. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6133. != global::System.Data.ConnectionState.Open)) {
  6134. this.Adapter.InsertCommand.Connection.Open();
  6135. }
  6136. try {
  6137. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6138. return returnValue;
  6139. }
  6140. finally {
  6141. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6142. this.Adapter.InsertCommand.Connection.Close();
  6143. }
  6144. }
  6145. }
  6146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6147. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6148. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6149. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6150. public virtual int Update(string UserSurname, string UserName, string UserPatronymic, string UserLogin, string UserPassword, int UserRole, int Original_UserID, string Original_UserSurname, string Original_UserName, string Original_UserPatronymic, int Original_UserRole, int UserID) {
  6151. if ((UserSurname == null)) {
  6152. throw new global::System.ArgumentNullException("UserSurname");
  6153. }
  6154. else {
  6155. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(UserSurname));
  6156. }
  6157. if ((UserName == null)) {
  6158. throw new global::System.ArgumentNullException("UserName");
  6159. }
  6160. else {
  6161. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(UserName));
  6162. }
  6163. if ((UserPatronymic == null)) {
  6164. throw new global::System.ArgumentNullException("UserPatronymic");
  6165. }
  6166. else {
  6167. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(UserPatronymic));
  6168. }
  6169. if ((UserLogin == null)) {
  6170. throw new global::System.ArgumentNullException("UserLogin");
  6171. }
  6172. else {
  6173. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(UserLogin));
  6174. }
  6175. if ((UserPassword == null)) {
  6176. throw new global::System.ArgumentNullException("UserPassword");
  6177. }
  6178. else {
  6179. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(UserPassword));
  6180. }
  6181. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(UserRole));
  6182. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_UserID));
  6183. if ((Original_UserSurname == null)) {
  6184. throw new global::System.ArgumentNullException("Original_UserSurname");
  6185. }
  6186. else {
  6187. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_UserSurname));
  6188. }
  6189. if ((Original_UserName == null)) {
  6190. throw new global::System.ArgumentNullException("Original_UserName");
  6191. }
  6192. else {
  6193. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_UserName));
  6194. }
  6195. if ((Original_UserPatronymic == null)) {
  6196. throw new global::System.ArgumentNullException("Original_UserPatronymic");
  6197. }
  6198. else {
  6199. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_UserPatronymic));
  6200. }
  6201. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_UserRole));
  6202. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(UserID));
  6203. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6204. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6205. != global::System.Data.ConnectionState.Open)) {
  6206. this.Adapter.UpdateCommand.Connection.Open();
  6207. }
  6208. try {
  6209. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6210. return returnValue;
  6211. }
  6212. finally {
  6213. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6214. this.Adapter.UpdateCommand.Connection.Close();
  6215. }
  6216. }
  6217. }
  6218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6220. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6221. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6222. public virtual int Update(string UserSurname, string UserName, string UserPatronymic, string UserLogin, string UserPassword, int UserRole, int Original_UserID, string Original_UserSurname, string Original_UserName, string Original_UserPatronymic, int Original_UserRole) {
  6223. return this.Update(UserSurname, UserName, UserPatronymic, UserLogin, UserPassword, UserRole, Original_UserID, Original_UserSurname, Original_UserName, Original_UserPatronymic, Original_UserRole, Original_UserID);
  6224. }
  6225. }
  6226. /// <summary>
  6227. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  6228. ///</summary>
  6229. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6230. [global::System.ComponentModel.ToolboxItem(true)]
  6231. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  6232. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6233. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  6234. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  6235. private UpdateOrderOption _updateOrder;
  6236. private OrderTableAdapter _orderTableAdapter;
  6237. private OrderProductTableAdapter _orderProductTableAdapter;
  6238. private ProductTableAdapter _productTableAdapter;
  6239. private punkt_vidachiTableAdapter _punkt_vidachiTableAdapter;
  6240. private RoleTableAdapter _roleTableAdapter;
  6241. private UserTableAdapter _userTableAdapter;
  6242. private UserTableTableAdapter _userTableTableAdapter;
  6243. private bool _backupDataSetBeforeUpdate;
  6244. private global::System.Data.IDbConnection _connection;
  6245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6247. public UpdateOrderOption UpdateOrder {
  6248. get {
  6249. return this._updateOrder;
  6250. }
  6251. set {
  6252. this._updateOrder = value;
  6253. }
  6254. }
  6255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6257. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6258. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6259. "a", "System.Drawing.Design.UITypeEditor")]
  6260. public OrderTableAdapter OrderTableAdapter {
  6261. get {
  6262. return this._orderTableAdapter;
  6263. }
  6264. set {
  6265. this._orderTableAdapter = value;
  6266. }
  6267. }
  6268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6270. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6271. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6272. "a", "System.Drawing.Design.UITypeEditor")]
  6273. public OrderProductTableAdapter OrderProductTableAdapter {
  6274. get {
  6275. return this._orderProductTableAdapter;
  6276. }
  6277. set {
  6278. this._orderProductTableAdapter = value;
  6279. }
  6280. }
  6281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6282. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6283. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6284. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6285. "a", "System.Drawing.Design.UITypeEditor")]
  6286. public ProductTableAdapter ProductTableAdapter {
  6287. get {
  6288. return this._productTableAdapter;
  6289. }
  6290. set {
  6291. this._productTableAdapter = value;
  6292. }
  6293. }
  6294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6296. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6297. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6298. "a", "System.Drawing.Design.UITypeEditor")]
  6299. public punkt_vidachiTableAdapter punkt_vidachiTableAdapter {
  6300. get {
  6301. return this._punkt_vidachiTableAdapter;
  6302. }
  6303. set {
  6304. this._punkt_vidachiTableAdapter = value;
  6305. }
  6306. }
  6307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6309. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6310. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6311. "a", "System.Drawing.Design.UITypeEditor")]
  6312. public RoleTableAdapter RoleTableAdapter {
  6313. get {
  6314. return this._roleTableAdapter;
  6315. }
  6316. set {
  6317. this._roleTableAdapter = value;
  6318. }
  6319. }
  6320. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6321. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6322. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6323. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6324. "a", "System.Drawing.Design.UITypeEditor")]
  6325. public UserTableAdapter UserTableAdapter {
  6326. get {
  6327. return this._userTableAdapter;
  6328. }
  6329. set {
  6330. this._userTableAdapter = value;
  6331. }
  6332. }
  6333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6335. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6336. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6337. "a", "System.Drawing.Design.UITypeEditor")]
  6338. public UserTableTableAdapter UserTableTableAdapter {
  6339. get {
  6340. return this._userTableTableAdapter;
  6341. }
  6342. set {
  6343. this._userTableTableAdapter = value;
  6344. }
  6345. }
  6346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6348. public bool BackupDataSetBeforeUpdate {
  6349. get {
  6350. return this._backupDataSetBeforeUpdate;
  6351. }
  6352. set {
  6353. this._backupDataSetBeforeUpdate = value;
  6354. }
  6355. }
  6356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6358. [global::System.ComponentModel.Browsable(false)]
  6359. public global::System.Data.IDbConnection Connection {
  6360. get {
  6361. if ((this._connection != null)) {
  6362. return this._connection;
  6363. }
  6364. if (((this._orderTableAdapter != null)
  6365. && (this._orderTableAdapter.Connection != null))) {
  6366. return this._orderTableAdapter.Connection;
  6367. }
  6368. if (((this._orderProductTableAdapter != null)
  6369. && (this._orderProductTableAdapter.Connection != null))) {
  6370. return this._orderProductTableAdapter.Connection;
  6371. }
  6372. if (((this._productTableAdapter != null)
  6373. && (this._productTableAdapter.Connection != null))) {
  6374. return this._productTableAdapter.Connection;
  6375. }
  6376. if (((this._punkt_vidachiTableAdapter != null)
  6377. && (this._punkt_vidachiTableAdapter.Connection != null))) {
  6378. return this._punkt_vidachiTableAdapter.Connection;
  6379. }
  6380. if (((this._roleTableAdapter != null)
  6381. && (this._roleTableAdapter.Connection != null))) {
  6382. return this._roleTableAdapter.Connection;
  6383. }
  6384. if (((this._userTableAdapter != null)
  6385. && (this._userTableAdapter.Connection != null))) {
  6386. return this._userTableAdapter.Connection;
  6387. }
  6388. if (((this._userTableTableAdapter != null)
  6389. && (this._userTableTableAdapter.Connection != null))) {
  6390. return this._userTableTableAdapter.Connection;
  6391. }
  6392. return null;
  6393. }
  6394. set {
  6395. this._connection = value;
  6396. }
  6397. }
  6398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6400. [global::System.ComponentModel.Browsable(false)]
  6401. public int TableAdapterInstanceCount {
  6402. get {
  6403. int count = 0;
  6404. if ((this._orderTableAdapter != null)) {
  6405. count = (count + 1);
  6406. }
  6407. if ((this._orderProductTableAdapter != null)) {
  6408. count = (count + 1);
  6409. }
  6410. if ((this._productTableAdapter != null)) {
  6411. count = (count + 1);
  6412. }
  6413. if ((this._punkt_vidachiTableAdapter != null)) {
  6414. count = (count + 1);
  6415. }
  6416. if ((this._roleTableAdapter != null)) {
  6417. count = (count + 1);
  6418. }
  6419. if ((this._userTableAdapter != null)) {
  6420. count = (count + 1);
  6421. }
  6422. if ((this._userTableTableAdapter != null)) {
  6423. count = (count + 1);
  6424. }
  6425. return count;
  6426. }
  6427. }
  6428. /// <summary>
  6429. ///Update rows in top-down order.
  6430. ///</summary>
  6431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6433. private int UpdateUpdatedRows(trade02DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  6434. int result = 0;
  6435. if ((this._punkt_vidachiTableAdapter != null)) {
  6436. global::System.Data.DataRow[] updatedRows = dataSet.punkt_vidachi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6437. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6438. if (((updatedRows != null)
  6439. && (0 < updatedRows.Length))) {
  6440. result = (result + this._punkt_vidachiTableAdapter.Update(updatedRows));
  6441. allChangedRows.AddRange(updatedRows);
  6442. }
  6443. }
  6444. if ((this._orderTableAdapter != null)) {
  6445. global::System.Data.DataRow[] updatedRows = dataSet.Order.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6446. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6447. if (((updatedRows != null)
  6448. && (0 < updatedRows.Length))) {
  6449. result = (result + this._orderTableAdapter.Update(updatedRows));
  6450. allChangedRows.AddRange(updatedRows);
  6451. }
  6452. }
  6453. if ((this._roleTableAdapter != null)) {
  6454. global::System.Data.DataRow[] updatedRows = dataSet.Role.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6455. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6456. if (((updatedRows != null)
  6457. && (0 < updatedRows.Length))) {
  6458. result = (result + this._roleTableAdapter.Update(updatedRows));
  6459. allChangedRows.AddRange(updatedRows);
  6460. }
  6461. }
  6462. if ((this._orderProductTableAdapter != null)) {
  6463. global::System.Data.DataRow[] updatedRows = dataSet.OrderProduct.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6464. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6465. if (((updatedRows != null)
  6466. && (0 < updatedRows.Length))) {
  6467. result = (result + this._orderProductTableAdapter.Update(updatedRows));
  6468. allChangedRows.AddRange(updatedRows);
  6469. }
  6470. }
  6471. if ((this._productTableAdapter != null)) {
  6472. global::System.Data.DataRow[] updatedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6473. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6474. if (((updatedRows != null)
  6475. && (0 < updatedRows.Length))) {
  6476. result = (result + this._productTableAdapter.Update(updatedRows));
  6477. allChangedRows.AddRange(updatedRows);
  6478. }
  6479. }
  6480. if ((this._userTableAdapter != null)) {
  6481. global::System.Data.DataRow[] updatedRows = dataSet.User.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6482. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6483. if (((updatedRows != null)
  6484. && (0 < updatedRows.Length))) {
  6485. result = (result + this._userTableAdapter.Update(updatedRows));
  6486. allChangedRows.AddRange(updatedRows);
  6487. }
  6488. }
  6489. if ((this._userTableTableAdapter != null)) {
  6490. global::System.Data.DataRow[] updatedRows = dataSet.UserTable.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6491. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6492. if (((updatedRows != null)
  6493. && (0 < updatedRows.Length))) {
  6494. result = (result + this._userTableTableAdapter.Update(updatedRows));
  6495. allChangedRows.AddRange(updatedRows);
  6496. }
  6497. }
  6498. return result;
  6499. }
  6500. /// <summary>
  6501. ///Insert rows in top-down order.
  6502. ///</summary>
  6503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6505. private int UpdateInsertedRows(trade02DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  6506. int result = 0;
  6507. if ((this._punkt_vidachiTableAdapter != null)) {
  6508. global::System.Data.DataRow[] addedRows = dataSet.punkt_vidachi.Select(null, null, global::System.Data.DataViewRowState.Added);
  6509. if (((addedRows != null)
  6510. && (0 < addedRows.Length))) {
  6511. result = (result + this._punkt_vidachiTableAdapter.Update(addedRows));
  6512. allAddedRows.AddRange(addedRows);
  6513. }
  6514. }
  6515. if ((this._orderTableAdapter != null)) {
  6516. global::System.Data.DataRow[] addedRows = dataSet.Order.Select(null, null, global::System.Data.DataViewRowState.Added);
  6517. if (((addedRows != null)
  6518. && (0 < addedRows.Length))) {
  6519. result = (result + this._orderTableAdapter.Update(addedRows));
  6520. allAddedRows.AddRange(addedRows);
  6521. }
  6522. }
  6523. if ((this._roleTableAdapter != null)) {
  6524. global::System.Data.DataRow[] addedRows = dataSet.Role.Select(null, null, global::System.Data.DataViewRowState.Added);
  6525. if (((addedRows != null)
  6526. && (0 < addedRows.Length))) {
  6527. result = (result + this._roleTableAdapter.Update(addedRows));
  6528. allAddedRows.AddRange(addedRows);
  6529. }
  6530. }
  6531. if ((this._orderProductTableAdapter != null)) {
  6532. global::System.Data.DataRow[] addedRows = dataSet.OrderProduct.Select(null, null, global::System.Data.DataViewRowState.Added);
  6533. if (((addedRows != null)
  6534. && (0 < addedRows.Length))) {
  6535. result = (result + this._orderProductTableAdapter.Update(addedRows));
  6536. allAddedRows.AddRange(addedRows);
  6537. }
  6538. }
  6539. if ((this._productTableAdapter != null)) {
  6540. global::System.Data.DataRow[] addedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Added);
  6541. if (((addedRows != null)
  6542. && (0 < addedRows.Length))) {
  6543. result = (result + this._productTableAdapter.Update(addedRows));
  6544. allAddedRows.AddRange(addedRows);
  6545. }
  6546. }
  6547. if ((this._userTableAdapter != null)) {
  6548. global::System.Data.DataRow[] addedRows = dataSet.User.Select(null, null, global::System.Data.DataViewRowState.Added);
  6549. if (((addedRows != null)
  6550. && (0 < addedRows.Length))) {
  6551. result = (result + this._userTableAdapter.Update(addedRows));
  6552. allAddedRows.AddRange(addedRows);
  6553. }
  6554. }
  6555. if ((this._userTableTableAdapter != null)) {
  6556. global::System.Data.DataRow[] addedRows = dataSet.UserTable.Select(null, null, global::System.Data.DataViewRowState.Added);
  6557. if (((addedRows != null)
  6558. && (0 < addedRows.Length))) {
  6559. result = (result + this._userTableTableAdapter.Update(addedRows));
  6560. allAddedRows.AddRange(addedRows);
  6561. }
  6562. }
  6563. return result;
  6564. }
  6565. /// <summary>
  6566. ///Delete rows in bottom-up order.
  6567. ///</summary>
  6568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6570. private int UpdateDeletedRows(trade02DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  6571. int result = 0;
  6572. if ((this._userTableTableAdapter != null)) {
  6573. global::System.Data.DataRow[] deletedRows = dataSet.UserTable.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6574. if (((deletedRows != null)
  6575. && (0 < deletedRows.Length))) {
  6576. result = (result + this._userTableTableAdapter.Update(deletedRows));
  6577. allChangedRows.AddRange(deletedRows);
  6578. }
  6579. }
  6580. if ((this._userTableAdapter != null)) {
  6581. global::System.Data.DataRow[] deletedRows = dataSet.User.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6582. if (((deletedRows != null)
  6583. && (0 < deletedRows.Length))) {
  6584. result = (result + this._userTableAdapter.Update(deletedRows));
  6585. allChangedRows.AddRange(deletedRows);
  6586. }
  6587. }
  6588. if ((this._productTableAdapter != null)) {
  6589. global::System.Data.DataRow[] deletedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6590. if (((deletedRows != null)
  6591. && (0 < deletedRows.Length))) {
  6592. result = (result + this._productTableAdapter.Update(deletedRows));
  6593. allChangedRows.AddRange(deletedRows);
  6594. }
  6595. }
  6596. if ((this._orderProductTableAdapter != null)) {
  6597. global::System.Data.DataRow[] deletedRows = dataSet.OrderProduct.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6598. if (((deletedRows != null)
  6599. && (0 < deletedRows.Length))) {
  6600. result = (result + this._orderProductTableAdapter.Update(deletedRows));
  6601. allChangedRows.AddRange(deletedRows);
  6602. }
  6603. }
  6604. if ((this._roleTableAdapter != null)) {
  6605. global::System.Data.DataRow[] deletedRows = dataSet.Role.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6606. if (((deletedRows != null)
  6607. && (0 < deletedRows.Length))) {
  6608. result = (result + this._roleTableAdapter.Update(deletedRows));
  6609. allChangedRows.AddRange(deletedRows);
  6610. }
  6611. }
  6612. if ((this._orderTableAdapter != null)) {
  6613. global::System.Data.DataRow[] deletedRows = dataSet.Order.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6614. if (((deletedRows != null)
  6615. && (0 < deletedRows.Length))) {
  6616. result = (result + this._orderTableAdapter.Update(deletedRows));
  6617. allChangedRows.AddRange(deletedRows);
  6618. }
  6619. }
  6620. if ((this._punkt_vidachiTableAdapter != null)) {
  6621. global::System.Data.DataRow[] deletedRows = dataSet.punkt_vidachi.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6622. if (((deletedRows != null)
  6623. && (0 < deletedRows.Length))) {
  6624. result = (result + this._punkt_vidachiTableAdapter.Update(deletedRows));
  6625. allChangedRows.AddRange(deletedRows);
  6626. }
  6627. }
  6628. return result;
  6629. }
  6630. /// <summary>
  6631. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  6632. ///</summary>
  6633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6635. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  6636. if (((updatedRows == null)
  6637. || (updatedRows.Length < 1))) {
  6638. return updatedRows;
  6639. }
  6640. if (((allAddedRows == null)
  6641. || (allAddedRows.Count < 1))) {
  6642. return updatedRows;
  6643. }
  6644. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  6645. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  6646. global::System.Data.DataRow row = updatedRows[i];
  6647. if ((allAddedRows.Contains(row) == false)) {
  6648. realUpdatedRows.Add(row);
  6649. }
  6650. }
  6651. return realUpdatedRows.ToArray();
  6652. }
  6653. /// <summary>
  6654. ///Update all changes to the dataset.
  6655. ///</summary>
  6656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6657. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6658. public virtual int UpdateAll(trade02DataSet dataSet) {
  6659. if ((dataSet == null)) {
  6660. throw new global::System.ArgumentNullException("dataSet");
  6661. }
  6662. if ((dataSet.HasChanges() == false)) {
  6663. return 0;
  6664. }
  6665. if (((this._orderTableAdapter != null)
  6666. && (this.MatchTableAdapterConnection(this._orderTableAdapter.Connection) == false))) {
  6667. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  6668. "r, должны использовать одинаковую строку подключения.");
  6669. }
  6670. if (((this._orderProductTableAdapter != null)
  6671. && (this.MatchTableAdapterConnection(this._orderProductTableAdapter.Connection) == false))) {
  6672. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  6673. "r, должны использовать одинаковую строку подключения.");
  6674. }
  6675. if (((this._productTableAdapter != null)
  6676. && (this.MatchTableAdapterConnection(this._productTableAdapter.Connection) == false))) {
  6677. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  6678. "r, должны использовать одинаковую строку подключения.");
  6679. }
  6680. if (((this._punkt_vidachiTableAdapter != null)
  6681. && (this.MatchTableAdapterConnection(this._punkt_vidachiTableAdapter.Connection) == false))) {
  6682. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  6683. "r, должны использовать одинаковую строку подключения.");
  6684. }
  6685. if (((this._roleTableAdapter != null)
  6686. && (this.MatchTableAdapterConnection(this._roleTableAdapter.Connection) == false))) {
  6687. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  6688. "r, должны использовать одинаковую строку подключения.");
  6689. }
  6690. if (((this._userTableAdapter != null)
  6691. && (this.MatchTableAdapterConnection(this._userTableAdapter.Connection) == false))) {
  6692. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  6693. "r, должны использовать одинаковую строку подключения.");
  6694. }
  6695. if (((this._userTableTableAdapter != null)
  6696. && (this.MatchTableAdapterConnection(this._userTableTableAdapter.Connection) == false))) {
  6697. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  6698. "r, должны использовать одинаковую строку подключения.");
  6699. }
  6700. global::System.Data.IDbConnection workConnection = this.Connection;
  6701. if ((workConnection == null)) {
  6702. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  6703. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  6704. }
  6705. bool workConnOpened = false;
  6706. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  6707. == global::System.Data.ConnectionState.Broken)) {
  6708. workConnection.Close();
  6709. }
  6710. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  6711. workConnection.Open();
  6712. workConnOpened = true;
  6713. }
  6714. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  6715. if ((workTransaction == null)) {
  6716. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  6717. "и или текущее состояние не позволяет начать транзакцию.");
  6718. }
  6719. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  6720. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  6721. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  6722. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  6723. int result = 0;
  6724. global::System.Data.DataSet backupDataSet = null;
  6725. if (this.BackupDataSetBeforeUpdate) {
  6726. backupDataSet = new global::System.Data.DataSet();
  6727. backupDataSet.Merge(dataSet);
  6728. }
  6729. try {
  6730. // ---- Prepare for update -----------
  6731. //
  6732. if ((this._orderTableAdapter != null)) {
  6733. revertConnections.Add(this._orderTableAdapter, this._orderTableAdapter.Connection);
  6734. this._orderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6735. this._orderTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6736. if (this._orderTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6737. this._orderTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6738. adaptersWithAcceptChangesDuringUpdate.Add(this._orderTableAdapter.Adapter);
  6739. }
  6740. }
  6741. if ((this._orderProductTableAdapter != null)) {
  6742. revertConnections.Add(this._orderProductTableAdapter, this._orderProductTableAdapter.Connection);
  6743. this._orderProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6744. this._orderProductTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6745. if (this._orderProductTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6746. this._orderProductTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6747. adaptersWithAcceptChangesDuringUpdate.Add(this._orderProductTableAdapter.Adapter);
  6748. }
  6749. }
  6750. if ((this._productTableAdapter != null)) {
  6751. revertConnections.Add(this._productTableAdapter, this._productTableAdapter.Connection);
  6752. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6753. this._productTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6754. if (this._productTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6755. this._productTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6756. adaptersWithAcceptChangesDuringUpdate.Add(this._productTableAdapter.Adapter);
  6757. }
  6758. }
  6759. if ((this._punkt_vidachiTableAdapter != null)) {
  6760. revertConnections.Add(this._punkt_vidachiTableAdapter, this._punkt_vidachiTableAdapter.Connection);
  6761. this._punkt_vidachiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6762. this._punkt_vidachiTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6763. if (this._punkt_vidachiTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6764. this._punkt_vidachiTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6765. adaptersWithAcceptChangesDuringUpdate.Add(this._punkt_vidachiTableAdapter.Adapter);
  6766. }
  6767. }
  6768. if ((this._roleTableAdapter != null)) {
  6769. revertConnections.Add(this._roleTableAdapter, this._roleTableAdapter.Connection);
  6770. this._roleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6771. this._roleTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6772. if (this._roleTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6773. this._roleTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6774. adaptersWithAcceptChangesDuringUpdate.Add(this._roleTableAdapter.Adapter);
  6775. }
  6776. }
  6777. if ((this._userTableAdapter != null)) {
  6778. revertConnections.Add(this._userTableAdapter, this._userTableAdapter.Connection);
  6779. this._userTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6780. this._userTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6781. if (this._userTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6782. this._userTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6783. adaptersWithAcceptChangesDuringUpdate.Add(this._userTableAdapter.Adapter);
  6784. }
  6785. }
  6786. if ((this._userTableTableAdapter != null)) {
  6787. revertConnections.Add(this._userTableTableAdapter, this._userTableTableAdapter.Connection);
  6788. this._userTableTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6789. this._userTableTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6790. if (this._userTableTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6791. this._userTableTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6792. adaptersWithAcceptChangesDuringUpdate.Add(this._userTableTableAdapter.Adapter);
  6793. }
  6794. }
  6795. //
  6796. //---- Perform updates -----------
  6797. //
  6798. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  6799. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  6800. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  6801. }
  6802. else {
  6803. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  6804. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  6805. }
  6806. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  6807. //
  6808. //---- Commit updates -----------
  6809. //
  6810. workTransaction.Commit();
  6811. if ((0 < allAddedRows.Count)) {
  6812. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  6813. allAddedRows.CopyTo(rows);
  6814. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  6815. global::System.Data.DataRow row = rows[i];
  6816. row.AcceptChanges();
  6817. }
  6818. }
  6819. if ((0 < allChangedRows.Count)) {
  6820. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  6821. allChangedRows.CopyTo(rows);
  6822. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  6823. global::System.Data.DataRow row = rows[i];
  6824. row.AcceptChanges();
  6825. }
  6826. }
  6827. }
  6828. catch (global::System.Exception ex) {
  6829. workTransaction.Rollback();
  6830. // ---- Restore the dataset -----------
  6831. if (this.BackupDataSetBeforeUpdate) {
  6832. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  6833. dataSet.Clear();
  6834. dataSet.Merge(backupDataSet);
  6835. }
  6836. else {
  6837. if ((0 < allAddedRows.Count)) {
  6838. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  6839. allAddedRows.CopyTo(rows);
  6840. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  6841. global::System.Data.DataRow row = rows[i];
  6842. row.AcceptChanges();
  6843. row.SetAdded();
  6844. }
  6845. }
  6846. }
  6847. throw ex;
  6848. }
  6849. finally {
  6850. if (workConnOpened) {
  6851. workConnection.Close();
  6852. }
  6853. if ((this._orderTableAdapter != null)) {
  6854. this._orderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._orderTableAdapter]));
  6855. this._orderTableAdapter.Transaction = null;
  6856. }
  6857. if ((this._orderProductTableAdapter != null)) {
  6858. this._orderProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._orderProductTableAdapter]));
  6859. this._orderProductTableAdapter.Transaction = null;
  6860. }
  6861. if ((this._productTableAdapter != null)) {
  6862. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productTableAdapter]));
  6863. this._productTableAdapter.Transaction = null;
  6864. }
  6865. if ((this._punkt_vidachiTableAdapter != null)) {
  6866. this._punkt_vidachiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._punkt_vidachiTableAdapter]));
  6867. this._punkt_vidachiTableAdapter.Transaction = null;
  6868. }
  6869. if ((this._roleTableAdapter != null)) {
  6870. this._roleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._roleTableAdapter]));
  6871. this._roleTableAdapter.Transaction = null;
  6872. }
  6873. if ((this._userTableAdapter != null)) {
  6874. this._userTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._userTableAdapter]));
  6875. this._userTableAdapter.Transaction = null;
  6876. }
  6877. if ((this._userTableTableAdapter != null)) {
  6878. this._userTableTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._userTableTableAdapter]));
  6879. this._userTableTableAdapter.Transaction = null;
  6880. }
  6881. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  6882. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  6883. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  6884. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  6885. global::System.Data.Common.DataAdapter adapter = adapters[i];
  6886. adapter.AcceptChangesDuringUpdate = true;
  6887. }
  6888. }
  6889. }
  6890. return result;
  6891. }
  6892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6894. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  6895. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  6896. }
  6897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6899. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  6900. if ((this._connection != null)) {
  6901. return true;
  6902. }
  6903. if (((this.Connection == null)
  6904. || (inputConnection == null))) {
  6905. return true;
  6906. }
  6907. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  6908. return true;
  6909. }
  6910. return false;
  6911. }
  6912. /// <summary>
  6913. ///Update Order Option
  6914. ///</summary>
  6915. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6916. public enum UpdateOrderOption {
  6917. InsertUpdateDelete = 0,
  6918. UpdateInsertDelete = 1,
  6919. }
  6920. /// <summary>
  6921. ///Used to sort self-referenced table's rows
  6922. ///</summary>
  6923. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6924. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  6925. private global::System.Data.DataRelation _relation;
  6926. private int _childFirst;
  6927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6929. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  6930. this._relation = relation;
  6931. if (childFirst) {
  6932. this._childFirst = -1;
  6933. }
  6934. else {
  6935. this._childFirst = 1;
  6936. }
  6937. }
  6938. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6939. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6940. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  6941. global::System.Diagnostics.Debug.Assert((row != null));
  6942. global::System.Data.DataRow root = row;
  6943. distance = 0;
  6944. 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>();
  6945. traversedRows[row] = row;
  6946. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  6947. for (
  6948. ; ((parent != null)
  6949. && (traversedRows.ContainsKey(parent) == false));
  6950. ) {
  6951. distance = (distance + 1);
  6952. root = parent;
  6953. traversedRows[parent] = parent;
  6954. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  6955. }
  6956. if ((distance == 0)) {
  6957. traversedRows.Clear();
  6958. traversedRows[row] = row;
  6959. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  6960. for (
  6961. ; ((parent != null)
  6962. && (traversedRows.ContainsKey(parent) == false));
  6963. ) {
  6964. distance = (distance + 1);
  6965. root = parent;
  6966. traversedRows[parent] = parent;
  6967. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  6968. }
  6969. }
  6970. return root;
  6971. }
  6972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6974. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  6975. if (object.ReferenceEquals(row1, row2)) {
  6976. return 0;
  6977. }
  6978. if ((row1 == null)) {
  6979. return -1;
  6980. }
  6981. if ((row2 == null)) {
  6982. return 1;
  6983. }
  6984. int distance1 = 0;
  6985. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  6986. int distance2 = 0;
  6987. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  6988. if (object.ReferenceEquals(root1, root2)) {
  6989. return (this._childFirst * distance1.CompareTo(distance2));
  6990. }
  6991. else {
  6992. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  6993. && (root2.Table != null)));
  6994. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  6995. return -1;
  6996. }
  6997. else {
  6998. return 1;
  6999. }
  7000. }
  7001. }
  7002. }
  7003. }
  7004. }
  7005. #pragma warning restore 1591