_05TradeDataSet.Designer.cs 394 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace OsadchiStr {
  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("_05TradeDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class _05TradeDataSet : global::System.Data.DataSet {
  22. private OrderDataTable tableOrder;
  23. private OrderProductDataTable tableOrderProduct;
  24. private ProductDataTable tableProduct;
  25. private pynkt_vidachi_importDataTable tablepynkt_vidachi_import;
  26. private RoleDataTable tableRole;
  27. private UserDataTable tableUser;
  28. private global::System.Data.DataRelation relationFK_Order_pynkt_vidachi_import;
  29. private global::System.Data.DataRelation relationFK__User__UserRole__25869641;
  30. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  31. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  32. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  33. public _05TradeDataSet() {
  34. this.BeginInit();
  35. this.InitClass();
  36. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  37. base.Tables.CollectionChanged += schemaChangedHandler;
  38. base.Relations.CollectionChanged += schemaChangedHandler;
  39. this.EndInit();
  40. }
  41. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  42. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  43. protected _05TradeDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  44. base(info, context, false) {
  45. if ((this.IsBinarySerialized(info, context) == true)) {
  46. this.InitVars(false);
  47. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  48. this.Tables.CollectionChanged += schemaChangedHandler1;
  49. this.Relations.CollectionChanged += schemaChangedHandler1;
  50. return;
  51. }
  52. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  53. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  54. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  55. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  56. if ((ds.Tables["Order"] != null)) {
  57. base.Tables.Add(new OrderDataTable(ds.Tables["Order"]));
  58. }
  59. if ((ds.Tables["OrderProduct"] != null)) {
  60. base.Tables.Add(new OrderProductDataTable(ds.Tables["OrderProduct"]));
  61. }
  62. if ((ds.Tables["Product"] != null)) {
  63. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  64. }
  65. if ((ds.Tables["pynkt_vidachi_import"] != null)) {
  66. base.Tables.Add(new pynkt_vidachi_importDataTable(ds.Tables["pynkt_vidachi_import"]));
  67. }
  68. if ((ds.Tables["Role"] != null)) {
  69. base.Tables.Add(new RoleDataTable(ds.Tables["Role"]));
  70. }
  71. if ((ds.Tables["User"] != null)) {
  72. base.Tables.Add(new UserDataTable(ds.Tables["User"]));
  73. }
  74. this.DataSetName = ds.DataSetName;
  75. this.Prefix = ds.Prefix;
  76. this.Namespace = ds.Namespace;
  77. this.Locale = ds.Locale;
  78. this.CaseSensitive = ds.CaseSensitive;
  79. this.EnforceConstraints = ds.EnforceConstraints;
  80. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  81. this.InitVars();
  82. }
  83. else {
  84. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  85. }
  86. this.GetSerializationData(info, context);
  87. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  88. base.Tables.CollectionChanged += schemaChangedHandler;
  89. this.Relations.CollectionChanged += schemaChangedHandler;
  90. }
  91. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  92. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  93. [global::System.ComponentModel.Browsable(false)]
  94. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  95. public OrderDataTable Order {
  96. get {
  97. return this.tableOrder;
  98. }
  99. }
  100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  101. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  102. [global::System.ComponentModel.Browsable(false)]
  103. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  104. public OrderProductDataTable OrderProduct {
  105. get {
  106. return this.tableOrderProduct;
  107. }
  108. }
  109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  110. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  111. [global::System.ComponentModel.Browsable(false)]
  112. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  113. public ProductDataTable Product {
  114. get {
  115. return this.tableProduct;
  116. }
  117. }
  118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  120. [global::System.ComponentModel.Browsable(false)]
  121. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  122. public pynkt_vidachi_importDataTable pynkt_vidachi_import {
  123. get {
  124. return this.tablepynkt_vidachi_import;
  125. }
  126. }
  127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  129. [global::System.ComponentModel.Browsable(false)]
  130. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  131. public RoleDataTable Role {
  132. get {
  133. return this.tableRole;
  134. }
  135. }
  136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  138. [global::System.ComponentModel.Browsable(false)]
  139. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  140. public UserDataTable User {
  141. get {
  142. return this.tableUser;
  143. }
  144. }
  145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  147. [global::System.ComponentModel.BrowsableAttribute(true)]
  148. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  149. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  150. get {
  151. return this._schemaSerializationMode;
  152. }
  153. set {
  154. this._schemaSerializationMode = value;
  155. }
  156. }
  157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  159. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  160. public new global::System.Data.DataTableCollection Tables {
  161. get {
  162. return base.Tables;
  163. }
  164. }
  165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  167. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  168. public new global::System.Data.DataRelationCollection Relations {
  169. get {
  170. return base.Relations;
  171. }
  172. }
  173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  175. protected override void InitializeDerivedDataSet() {
  176. this.BeginInit();
  177. this.InitClass();
  178. this.EndInit();
  179. }
  180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  182. public override global::System.Data.DataSet Clone() {
  183. _05TradeDataSet cln = ((_05TradeDataSet)(base.Clone()));
  184. cln.InitVars();
  185. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  186. return cln;
  187. }
  188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  190. protected override bool ShouldSerializeTables() {
  191. return false;
  192. }
  193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  195. protected override bool ShouldSerializeRelations() {
  196. return false;
  197. }
  198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  200. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  201. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  202. this.Reset();
  203. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  204. ds.ReadXml(reader);
  205. if ((ds.Tables["Order"] != null)) {
  206. base.Tables.Add(new OrderDataTable(ds.Tables["Order"]));
  207. }
  208. if ((ds.Tables["OrderProduct"] != null)) {
  209. base.Tables.Add(new OrderProductDataTable(ds.Tables["OrderProduct"]));
  210. }
  211. if ((ds.Tables["Product"] != null)) {
  212. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  213. }
  214. if ((ds.Tables["pynkt_vidachi_import"] != null)) {
  215. base.Tables.Add(new pynkt_vidachi_importDataTable(ds.Tables["pynkt_vidachi_import"]));
  216. }
  217. if ((ds.Tables["Role"] != null)) {
  218. base.Tables.Add(new RoleDataTable(ds.Tables["Role"]));
  219. }
  220. if ((ds.Tables["User"] != null)) {
  221. base.Tables.Add(new UserDataTable(ds.Tables["User"]));
  222. }
  223. this.DataSetName = ds.DataSetName;
  224. this.Prefix = ds.Prefix;
  225. this.Namespace = ds.Namespace;
  226. this.Locale = ds.Locale;
  227. this.CaseSensitive = ds.CaseSensitive;
  228. this.EnforceConstraints = ds.EnforceConstraints;
  229. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  230. this.InitVars();
  231. }
  232. else {
  233. this.ReadXml(reader);
  234. this.InitVars();
  235. }
  236. }
  237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  239. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  240. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  241. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  242. stream.Position = 0;
  243. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  244. }
  245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  247. internal void InitVars() {
  248. this.InitVars(true);
  249. }
  250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  252. internal void InitVars(bool initTable) {
  253. this.tableOrder = ((OrderDataTable)(base.Tables["Order"]));
  254. if ((initTable == true)) {
  255. if ((this.tableOrder != null)) {
  256. this.tableOrder.InitVars();
  257. }
  258. }
  259. this.tableOrderProduct = ((OrderProductDataTable)(base.Tables["OrderProduct"]));
  260. if ((initTable == true)) {
  261. if ((this.tableOrderProduct != null)) {
  262. this.tableOrderProduct.InitVars();
  263. }
  264. }
  265. this.tableProduct = ((ProductDataTable)(base.Tables["Product"]));
  266. if ((initTable == true)) {
  267. if ((this.tableProduct != null)) {
  268. this.tableProduct.InitVars();
  269. }
  270. }
  271. this.tablepynkt_vidachi_import = ((pynkt_vidachi_importDataTable)(base.Tables["pynkt_vidachi_import"]));
  272. if ((initTable == true)) {
  273. if ((this.tablepynkt_vidachi_import != null)) {
  274. this.tablepynkt_vidachi_import.InitVars();
  275. }
  276. }
  277. this.tableRole = ((RoleDataTable)(base.Tables["Role"]));
  278. if ((initTable == true)) {
  279. if ((this.tableRole != null)) {
  280. this.tableRole.InitVars();
  281. }
  282. }
  283. this.tableUser = ((UserDataTable)(base.Tables["User"]));
  284. if ((initTable == true)) {
  285. if ((this.tableUser != null)) {
  286. this.tableUser.InitVars();
  287. }
  288. }
  289. this.relationFK_Order_pynkt_vidachi_import = this.Relations["FK_Order_pynkt_vidachi_import"];
  290. this.relationFK__User__UserRole__25869641 = this.Relations["FK__User__UserRole__25869641"];
  291. }
  292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  294. private void InitClass() {
  295. this.DataSetName = "_05TradeDataSet";
  296. this.Prefix = "";
  297. this.Namespace = "http://tempuri.org/_05TradeDataSet.xsd";
  298. this.EnforceConstraints = true;
  299. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  300. this.tableOrder = new OrderDataTable();
  301. base.Tables.Add(this.tableOrder);
  302. this.tableOrderProduct = new OrderProductDataTable();
  303. base.Tables.Add(this.tableOrderProduct);
  304. this.tableProduct = new ProductDataTable();
  305. base.Tables.Add(this.tableProduct);
  306. this.tablepynkt_vidachi_import = new pynkt_vidachi_importDataTable();
  307. base.Tables.Add(this.tablepynkt_vidachi_import);
  308. this.tableRole = new RoleDataTable();
  309. base.Tables.Add(this.tableRole);
  310. this.tableUser = new UserDataTable();
  311. base.Tables.Add(this.tableUser);
  312. this.relationFK_Order_pynkt_vidachi_import = new global::System.Data.DataRelation("FK_Order_pynkt_vidachi_import", new global::System.Data.DataColumn[] {
  313. this.tablepynkt_vidachi_import.IdColumn}, new global::System.Data.DataColumn[] {
  314. this.tableOrder.OrderPickupPointColumn}, false);
  315. this.Relations.Add(this.relationFK_Order_pynkt_vidachi_import);
  316. this.relationFK__User__UserRole__25869641 = new global::System.Data.DataRelation("FK__User__UserRole__25869641", new global::System.Data.DataColumn[] {
  317. this.tableRole.RoleIDColumn}, new global::System.Data.DataColumn[] {
  318. this.tableUser.UserRoleColumn}, false);
  319. this.Relations.Add(this.relationFK__User__UserRole__25869641);
  320. }
  321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  323. private bool ShouldSerializeOrder() {
  324. return false;
  325. }
  326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  327. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  328. private bool ShouldSerializeOrderProduct() {
  329. return false;
  330. }
  331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  332. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  333. private bool ShouldSerializeProduct() {
  334. return false;
  335. }
  336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  338. private bool ShouldSerializepynkt_vidachi_import() {
  339. return false;
  340. }
  341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  343. private bool ShouldSerializeRole() {
  344. return false;
  345. }
  346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  348. private bool ShouldSerializeUser() {
  349. return false;
  350. }
  351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  352. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  353. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  354. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  355. this.InitVars();
  356. }
  357. }
  358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  359. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  360. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  361. _05TradeDataSet ds = new _05TradeDataSet();
  362. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  363. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  364. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  365. any.Namespace = ds.Namespace;
  366. sequence.Items.Add(any);
  367. type.Particle = sequence;
  368. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  369. if (xs.Contains(dsSchema.TargetNamespace)) {
  370. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  371. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  372. try {
  373. global::System.Xml.Schema.XmlSchema schema = null;
  374. dsSchema.Write(s1);
  375. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  376. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  377. s2.SetLength(0);
  378. schema.Write(s2);
  379. if ((s1.Length == s2.Length)) {
  380. s1.Position = 0;
  381. s2.Position = 0;
  382. for (; ((s1.Position != s1.Length)
  383. && (s1.ReadByte() == s2.ReadByte())); ) {
  384. ;
  385. }
  386. if ((s1.Position == s1.Length)) {
  387. return type;
  388. }
  389. }
  390. }
  391. }
  392. finally {
  393. if ((s1 != null)) {
  394. s1.Close();
  395. }
  396. if ((s2 != null)) {
  397. s2.Close();
  398. }
  399. }
  400. }
  401. xs.Add(dsSchema);
  402. return type;
  403. }
  404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  405. public delegate void OrderRowChangeEventHandler(object sender, OrderRowChangeEvent e);
  406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  407. public delegate void OrderProductRowChangeEventHandler(object sender, OrderProductRowChangeEvent e);
  408. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  409. public delegate void ProductRowChangeEventHandler(object sender, ProductRowChangeEvent e);
  410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  411. public delegate void pynkt_vidachi_importRowChangeEventHandler(object sender, pynkt_vidachi_importRowChangeEvent e);
  412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  413. public delegate void RoleRowChangeEventHandler(object sender, RoleRowChangeEvent e);
  414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  415. public delegate void UserRowChangeEventHandler(object sender, UserRowChangeEvent e);
  416. /// <summary>
  417. ///Represents the strongly named DataTable class.
  418. ///</summary>
  419. [global::System.Serializable()]
  420. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  421. public partial class OrderDataTable : global::System.Data.TypedTableBase<OrderRow> {
  422. private global::System.Data.DataColumn columnOrderID;
  423. private global::System.Data.DataColumn columnOrderStatus;
  424. private global::System.Data.DataColumn columnOrderDeliveryDate;
  425. private global::System.Data.DataColumn columnOrderPickupPoint;
  426. private global::System.Data.DataColumn columnOrderDate;
  427. private global::System.Data.DataColumn columnFIOClient;
  428. private global::System.Data.DataColumn columnCode;
  429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  431. public OrderDataTable() {
  432. this.TableName = "Order";
  433. this.BeginInit();
  434. this.InitClass();
  435. this.EndInit();
  436. }
  437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  439. internal OrderDataTable(global::System.Data.DataTable table) {
  440. this.TableName = table.TableName;
  441. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  442. this.CaseSensitive = table.CaseSensitive;
  443. }
  444. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  445. this.Locale = table.Locale;
  446. }
  447. if ((table.Namespace != table.DataSet.Namespace)) {
  448. this.Namespace = table.Namespace;
  449. }
  450. this.Prefix = table.Prefix;
  451. this.MinimumCapacity = table.MinimumCapacity;
  452. }
  453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  454. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  455. protected OrderDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  456. base(info, context) {
  457. this.InitVars();
  458. }
  459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  461. public global::System.Data.DataColumn OrderIDColumn {
  462. get {
  463. return this.columnOrderID;
  464. }
  465. }
  466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  468. public global::System.Data.DataColumn OrderStatusColumn {
  469. get {
  470. return this.columnOrderStatus;
  471. }
  472. }
  473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  475. public global::System.Data.DataColumn OrderDeliveryDateColumn {
  476. get {
  477. return this.columnOrderDeliveryDate;
  478. }
  479. }
  480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  482. public global::System.Data.DataColumn OrderPickupPointColumn {
  483. get {
  484. return this.columnOrderPickupPoint;
  485. }
  486. }
  487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  489. public global::System.Data.DataColumn OrderDateColumn {
  490. get {
  491. return this.columnOrderDate;
  492. }
  493. }
  494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  496. public global::System.Data.DataColumn FIOClientColumn {
  497. get {
  498. return this.columnFIOClient;
  499. }
  500. }
  501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  503. public global::System.Data.DataColumn CodeColumn {
  504. get {
  505. return this.columnCode;
  506. }
  507. }
  508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  510. [global::System.ComponentModel.Browsable(false)]
  511. public int Count {
  512. get {
  513. return this.Rows.Count;
  514. }
  515. }
  516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  518. public OrderRow this[int index] {
  519. get {
  520. return ((OrderRow)(this.Rows[index]));
  521. }
  522. }
  523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  524. public event OrderRowChangeEventHandler OrderRowChanging;
  525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  526. public event OrderRowChangeEventHandler OrderRowChanged;
  527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  528. public event OrderRowChangeEventHandler OrderRowDeleting;
  529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  530. public event OrderRowChangeEventHandler OrderRowDeleted;
  531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  533. public void AddOrderRow(OrderRow row) {
  534. this.Rows.Add(row);
  535. }
  536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  538. public OrderRow AddOrderRow(string OrderStatus, System.DateTime OrderDeliveryDate, pynkt_vidachi_importRow parentpynkt_vidachi_importRowByFK_Order_pynkt_vidachi_import, System.DateTime OrderDate, string FIOClient, int Code) {
  539. OrderRow rowOrderRow = ((OrderRow)(this.NewRow()));
  540. object[] columnValuesArray = new object[] {
  541. null,
  542. OrderStatus,
  543. OrderDeliveryDate,
  544. null,
  545. OrderDate,
  546. FIOClient,
  547. Code};
  548. if ((parentpynkt_vidachi_importRowByFK_Order_pynkt_vidachi_import != null)) {
  549. columnValuesArray[3] = parentpynkt_vidachi_importRowByFK_Order_pynkt_vidachi_import[0];
  550. }
  551. rowOrderRow.ItemArray = columnValuesArray;
  552. this.Rows.Add(rowOrderRow);
  553. return rowOrderRow;
  554. }
  555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  557. public OrderRow FindByOrderID(int OrderID) {
  558. return ((OrderRow)(this.Rows.Find(new object[] {
  559. OrderID})));
  560. }
  561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  563. public override global::System.Data.DataTable Clone() {
  564. OrderDataTable cln = ((OrderDataTable)(base.Clone()));
  565. cln.InitVars();
  566. return cln;
  567. }
  568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  570. protected override global::System.Data.DataTable CreateInstance() {
  571. return new OrderDataTable();
  572. }
  573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  575. internal void InitVars() {
  576. this.columnOrderID = base.Columns["OrderID"];
  577. this.columnOrderStatus = base.Columns["OrderStatus"];
  578. this.columnOrderDeliveryDate = base.Columns["OrderDeliveryDate"];
  579. this.columnOrderPickupPoint = base.Columns["OrderPickupPoint"];
  580. this.columnOrderDate = base.Columns["OrderDate"];
  581. this.columnFIOClient = base.Columns["FIOClient"];
  582. this.columnCode = base.Columns["Code"];
  583. }
  584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  586. private void InitClass() {
  587. this.columnOrderID = new global::System.Data.DataColumn("OrderID", typeof(int), null, global::System.Data.MappingType.Element);
  588. base.Columns.Add(this.columnOrderID);
  589. this.columnOrderStatus = new global::System.Data.DataColumn("OrderStatus", typeof(string), null, global::System.Data.MappingType.Element);
  590. base.Columns.Add(this.columnOrderStatus);
  591. this.columnOrderDeliveryDate = new global::System.Data.DataColumn("OrderDeliveryDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  592. base.Columns.Add(this.columnOrderDeliveryDate);
  593. this.columnOrderPickupPoint = new global::System.Data.DataColumn("OrderPickupPoint", typeof(byte), null, global::System.Data.MappingType.Element);
  594. base.Columns.Add(this.columnOrderPickupPoint);
  595. this.columnOrderDate = new global::System.Data.DataColumn("OrderDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  596. base.Columns.Add(this.columnOrderDate);
  597. this.columnFIOClient = new global::System.Data.DataColumn("FIOClient", typeof(string), null, global::System.Data.MappingType.Element);
  598. base.Columns.Add(this.columnFIOClient);
  599. this.columnCode = new global::System.Data.DataColumn("Code", typeof(int), null, global::System.Data.MappingType.Element);
  600. base.Columns.Add(this.columnCode);
  601. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  602. this.columnOrderID}, true));
  603. this.columnOrderID.AutoIncrement = true;
  604. this.columnOrderID.AutoIncrementSeed = -1;
  605. this.columnOrderID.AutoIncrementStep = -1;
  606. this.columnOrderID.AllowDBNull = false;
  607. this.columnOrderID.ReadOnly = true;
  608. this.columnOrderID.Unique = true;
  609. this.columnOrderStatus.AllowDBNull = false;
  610. this.columnOrderStatus.MaxLength = 2147483647;
  611. this.columnOrderDeliveryDate.AllowDBNull = false;
  612. this.columnOrderPickupPoint.AllowDBNull = false;
  613. this.columnFIOClient.MaxLength = 2147483647;
  614. }
  615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  617. public OrderRow NewOrderRow() {
  618. return ((OrderRow)(this.NewRow()));
  619. }
  620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  622. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  623. return new OrderRow(builder);
  624. }
  625. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  626. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  627. protected override global::System.Type GetRowType() {
  628. return typeof(OrderRow);
  629. }
  630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  632. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  633. base.OnRowChanged(e);
  634. if ((this.OrderRowChanged != null)) {
  635. this.OrderRowChanged(this, new OrderRowChangeEvent(((OrderRow)(e.Row)), e.Action));
  636. }
  637. }
  638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  640. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  641. base.OnRowChanging(e);
  642. if ((this.OrderRowChanging != null)) {
  643. this.OrderRowChanging(this, new OrderRowChangeEvent(((OrderRow)(e.Row)), e.Action));
  644. }
  645. }
  646. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  648. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  649. base.OnRowDeleted(e);
  650. if ((this.OrderRowDeleted != null)) {
  651. this.OrderRowDeleted(this, new OrderRowChangeEvent(((OrderRow)(e.Row)), e.Action));
  652. }
  653. }
  654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  656. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  657. base.OnRowDeleting(e);
  658. if ((this.OrderRowDeleting != null)) {
  659. this.OrderRowDeleting(this, new OrderRowChangeEvent(((OrderRow)(e.Row)), e.Action));
  660. }
  661. }
  662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  664. public void RemoveOrderRow(OrderRow row) {
  665. this.Rows.Remove(row);
  666. }
  667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  668. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  669. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  670. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  671. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  672. _05TradeDataSet ds = new _05TradeDataSet();
  673. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  674. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  675. any1.MinOccurs = new decimal(0);
  676. any1.MaxOccurs = decimal.MaxValue;
  677. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  678. sequence.Items.Add(any1);
  679. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  680. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  681. any2.MinOccurs = new decimal(1);
  682. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  683. sequence.Items.Add(any2);
  684. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  685. attribute1.Name = "namespace";
  686. attribute1.FixedValue = ds.Namespace;
  687. type.Attributes.Add(attribute1);
  688. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  689. attribute2.Name = "tableTypeName";
  690. attribute2.FixedValue = "OrderDataTable";
  691. type.Attributes.Add(attribute2);
  692. type.Particle = sequence;
  693. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  694. if (xs.Contains(dsSchema.TargetNamespace)) {
  695. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  696. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  697. try {
  698. global::System.Xml.Schema.XmlSchema schema = null;
  699. dsSchema.Write(s1);
  700. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  701. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  702. s2.SetLength(0);
  703. schema.Write(s2);
  704. if ((s1.Length == s2.Length)) {
  705. s1.Position = 0;
  706. s2.Position = 0;
  707. for (; ((s1.Position != s1.Length)
  708. && (s1.ReadByte() == s2.ReadByte())); ) {
  709. ;
  710. }
  711. if ((s1.Position == s1.Length)) {
  712. return type;
  713. }
  714. }
  715. }
  716. }
  717. finally {
  718. if ((s1 != null)) {
  719. s1.Close();
  720. }
  721. if ((s2 != null)) {
  722. s2.Close();
  723. }
  724. }
  725. }
  726. xs.Add(dsSchema);
  727. return type;
  728. }
  729. }
  730. /// <summary>
  731. ///Represents the strongly named DataTable class.
  732. ///</summary>
  733. [global::System.Serializable()]
  734. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  735. public partial class OrderProductDataTable : global::System.Data.TypedTableBase<OrderProductRow> {
  736. private global::System.Data.DataColumn columnOrderID;
  737. private global::System.Data.DataColumn columnProductArticleNumber;
  738. private global::System.Data.DataColumn columnQuantity;
  739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  741. public OrderProductDataTable() {
  742. this.TableName = "OrderProduct";
  743. this.BeginInit();
  744. this.InitClass();
  745. this.EndInit();
  746. }
  747. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  748. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  749. internal OrderProductDataTable(global::System.Data.DataTable table) {
  750. this.TableName = table.TableName;
  751. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  752. this.CaseSensitive = table.CaseSensitive;
  753. }
  754. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  755. this.Locale = table.Locale;
  756. }
  757. if ((table.Namespace != table.DataSet.Namespace)) {
  758. this.Namespace = table.Namespace;
  759. }
  760. this.Prefix = table.Prefix;
  761. this.MinimumCapacity = table.MinimumCapacity;
  762. }
  763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  765. protected OrderProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  766. base(info, context) {
  767. this.InitVars();
  768. }
  769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  771. public global::System.Data.DataColumn OrderIDColumn {
  772. get {
  773. return this.columnOrderID;
  774. }
  775. }
  776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  778. public global::System.Data.DataColumn ProductArticleNumberColumn {
  779. get {
  780. return this.columnProductArticleNumber;
  781. }
  782. }
  783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  785. public global::System.Data.DataColumn QuantityColumn {
  786. get {
  787. return this.columnQuantity;
  788. }
  789. }
  790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  792. [global::System.ComponentModel.Browsable(false)]
  793. public int Count {
  794. get {
  795. return this.Rows.Count;
  796. }
  797. }
  798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  800. public OrderProductRow this[int index] {
  801. get {
  802. return ((OrderProductRow)(this.Rows[index]));
  803. }
  804. }
  805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  806. public event OrderProductRowChangeEventHandler OrderProductRowChanging;
  807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  808. public event OrderProductRowChangeEventHandler OrderProductRowChanged;
  809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  810. public event OrderProductRowChangeEventHandler OrderProductRowDeleting;
  811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  812. public event OrderProductRowChangeEventHandler OrderProductRowDeleted;
  813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  814. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  815. public void AddOrderProductRow(OrderProductRow row) {
  816. this.Rows.Add(row);
  817. }
  818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  820. public OrderProductRow AddOrderProductRow(int OrderID, string ProductArticleNumber, int Quantity) {
  821. OrderProductRow rowOrderProductRow = ((OrderProductRow)(this.NewRow()));
  822. object[] columnValuesArray = new object[] {
  823. OrderID,
  824. ProductArticleNumber,
  825. Quantity};
  826. rowOrderProductRow.ItemArray = columnValuesArray;
  827. this.Rows.Add(rowOrderProductRow);
  828. return rowOrderProductRow;
  829. }
  830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  831. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  832. public OrderProductRow FindByOrderIDProductArticleNumber(int OrderID, string ProductArticleNumber) {
  833. return ((OrderProductRow)(this.Rows.Find(new object[] {
  834. OrderID,
  835. ProductArticleNumber})));
  836. }
  837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  839. public override global::System.Data.DataTable Clone() {
  840. OrderProductDataTable cln = ((OrderProductDataTable)(base.Clone()));
  841. cln.InitVars();
  842. return cln;
  843. }
  844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  846. protected override global::System.Data.DataTable CreateInstance() {
  847. return new OrderProductDataTable();
  848. }
  849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  851. internal void InitVars() {
  852. this.columnOrderID = base.Columns["OrderID"];
  853. this.columnProductArticleNumber = base.Columns["ProductArticleNumber"];
  854. this.columnQuantity = base.Columns["Quantity"];
  855. }
  856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  858. private void InitClass() {
  859. this.columnOrderID = new global::System.Data.DataColumn("OrderID", typeof(int), null, global::System.Data.MappingType.Element);
  860. base.Columns.Add(this.columnOrderID);
  861. this.columnProductArticleNumber = new global::System.Data.DataColumn("ProductArticleNumber", typeof(string), null, global::System.Data.MappingType.Element);
  862. base.Columns.Add(this.columnProductArticleNumber);
  863. this.columnQuantity = new global::System.Data.DataColumn("Quantity", typeof(int), null, global::System.Data.MappingType.Element);
  864. base.Columns.Add(this.columnQuantity);
  865. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  866. this.columnOrderID,
  867. this.columnProductArticleNumber}, true));
  868. this.columnOrderID.AllowDBNull = false;
  869. this.columnProductArticleNumber.AllowDBNull = false;
  870. this.columnProductArticleNumber.MaxLength = 100;
  871. }
  872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  874. public OrderProductRow NewOrderProductRow() {
  875. return ((OrderProductRow)(this.NewRow()));
  876. }
  877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  879. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  880. return new OrderProductRow(builder);
  881. }
  882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  884. protected override global::System.Type GetRowType() {
  885. return typeof(OrderProductRow);
  886. }
  887. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  888. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  889. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  890. base.OnRowChanged(e);
  891. if ((this.OrderProductRowChanged != null)) {
  892. this.OrderProductRowChanged(this, new OrderProductRowChangeEvent(((OrderProductRow)(e.Row)), e.Action));
  893. }
  894. }
  895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  897. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  898. base.OnRowChanging(e);
  899. if ((this.OrderProductRowChanging != null)) {
  900. this.OrderProductRowChanging(this, new OrderProductRowChangeEvent(((OrderProductRow)(e.Row)), e.Action));
  901. }
  902. }
  903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  904. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  905. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  906. base.OnRowDeleted(e);
  907. if ((this.OrderProductRowDeleted != null)) {
  908. this.OrderProductRowDeleted(this, new OrderProductRowChangeEvent(((OrderProductRow)(e.Row)), e.Action));
  909. }
  910. }
  911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  913. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  914. base.OnRowDeleting(e);
  915. if ((this.OrderProductRowDeleting != null)) {
  916. this.OrderProductRowDeleting(this, new OrderProductRowChangeEvent(((OrderProductRow)(e.Row)), e.Action));
  917. }
  918. }
  919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  921. public void RemoveOrderProductRow(OrderProductRow row) {
  922. this.Rows.Remove(row);
  923. }
  924. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  925. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  926. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  927. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  928. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  929. _05TradeDataSet ds = new _05TradeDataSet();
  930. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  931. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  932. any1.MinOccurs = new decimal(0);
  933. any1.MaxOccurs = decimal.MaxValue;
  934. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  935. sequence.Items.Add(any1);
  936. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  937. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  938. any2.MinOccurs = new decimal(1);
  939. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  940. sequence.Items.Add(any2);
  941. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  942. attribute1.Name = "namespace";
  943. attribute1.FixedValue = ds.Namespace;
  944. type.Attributes.Add(attribute1);
  945. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  946. attribute2.Name = "tableTypeName";
  947. attribute2.FixedValue = "OrderProductDataTable";
  948. type.Attributes.Add(attribute2);
  949. type.Particle = sequence;
  950. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  951. if (xs.Contains(dsSchema.TargetNamespace)) {
  952. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  953. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  954. try {
  955. global::System.Xml.Schema.XmlSchema schema = null;
  956. dsSchema.Write(s1);
  957. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  958. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  959. s2.SetLength(0);
  960. schema.Write(s2);
  961. if ((s1.Length == s2.Length)) {
  962. s1.Position = 0;
  963. s2.Position = 0;
  964. for (; ((s1.Position != s1.Length)
  965. && (s1.ReadByte() == s2.ReadByte())); ) {
  966. ;
  967. }
  968. if ((s1.Position == s1.Length)) {
  969. return type;
  970. }
  971. }
  972. }
  973. }
  974. finally {
  975. if ((s1 != null)) {
  976. s1.Close();
  977. }
  978. if ((s2 != null)) {
  979. s2.Close();
  980. }
  981. }
  982. }
  983. xs.Add(dsSchema);
  984. return type;
  985. }
  986. }
  987. /// <summary>
  988. ///Represents the strongly named DataTable class.
  989. ///</summary>
  990. [global::System.Serializable()]
  991. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  992. public partial class ProductDataTable : global::System.Data.TypedTableBase<ProductRow> {
  993. private global::System.Data.DataColumn columnProductArticleNumber;
  994. private global::System.Data.DataColumn columnProductName;
  995. private global::System.Data.DataColumn columnProductDescription;
  996. private global::System.Data.DataColumn columnProductCategory;
  997. private global::System.Data.DataColumn columnProductPhoto;
  998. private global::System.Data.DataColumn columnProductManufacturer;
  999. private global::System.Data.DataColumn columnProductCost;
  1000. private global::System.Data.DataColumn columnProductDiscountAmount;
  1001. private global::System.Data.DataColumn columnProductMaxDiscount;
  1002. private global::System.Data.DataColumn columnProductQuantityInStock;
  1003. private global::System.Data.DataColumn columnProductStatus;
  1004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1006. public ProductDataTable() {
  1007. this.TableName = "Product";
  1008. this.BeginInit();
  1009. this.InitClass();
  1010. this.EndInit();
  1011. }
  1012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1014. internal ProductDataTable(global::System.Data.DataTable table) {
  1015. this.TableName = table.TableName;
  1016. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1017. this.CaseSensitive = table.CaseSensitive;
  1018. }
  1019. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1020. this.Locale = table.Locale;
  1021. }
  1022. if ((table.Namespace != table.DataSet.Namespace)) {
  1023. this.Namespace = table.Namespace;
  1024. }
  1025. this.Prefix = table.Prefix;
  1026. this.MinimumCapacity = table.MinimumCapacity;
  1027. }
  1028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1030. protected ProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1031. base(info, context) {
  1032. this.InitVars();
  1033. }
  1034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1036. public global::System.Data.DataColumn ProductArticleNumberColumn {
  1037. get {
  1038. return this.columnProductArticleNumber;
  1039. }
  1040. }
  1041. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1042. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1043. public global::System.Data.DataColumn ProductNameColumn {
  1044. get {
  1045. return this.columnProductName;
  1046. }
  1047. }
  1048. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1049. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1050. public global::System.Data.DataColumn ProductDescriptionColumn {
  1051. get {
  1052. return this.columnProductDescription;
  1053. }
  1054. }
  1055. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1056. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1057. public global::System.Data.DataColumn ProductCategoryColumn {
  1058. get {
  1059. return this.columnProductCategory;
  1060. }
  1061. }
  1062. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1063. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1064. public global::System.Data.DataColumn ProductPhotoColumn {
  1065. get {
  1066. return this.columnProductPhoto;
  1067. }
  1068. }
  1069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1070. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1071. public global::System.Data.DataColumn ProductManufacturerColumn {
  1072. get {
  1073. return this.columnProductManufacturer;
  1074. }
  1075. }
  1076. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1077. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1078. public global::System.Data.DataColumn ProductCostColumn {
  1079. get {
  1080. return this.columnProductCost;
  1081. }
  1082. }
  1083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1085. public global::System.Data.DataColumn ProductDiscountAmountColumn {
  1086. get {
  1087. return this.columnProductDiscountAmount;
  1088. }
  1089. }
  1090. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1091. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1092. public global::System.Data.DataColumn ProductMaxDiscountColumn {
  1093. get {
  1094. return this.columnProductMaxDiscount;
  1095. }
  1096. }
  1097. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1098. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1099. public global::System.Data.DataColumn ProductQuantityInStockColumn {
  1100. get {
  1101. return this.columnProductQuantityInStock;
  1102. }
  1103. }
  1104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1106. public global::System.Data.DataColumn ProductStatusColumn {
  1107. get {
  1108. return this.columnProductStatus;
  1109. }
  1110. }
  1111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1113. [global::System.ComponentModel.Browsable(false)]
  1114. public int Count {
  1115. get {
  1116. return this.Rows.Count;
  1117. }
  1118. }
  1119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1121. public ProductRow this[int index] {
  1122. get {
  1123. return ((ProductRow)(this.Rows[index]));
  1124. }
  1125. }
  1126. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1127. public event ProductRowChangeEventHandler ProductRowChanging;
  1128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1129. public event ProductRowChangeEventHandler ProductRowChanged;
  1130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1131. public event ProductRowChangeEventHandler ProductRowDeleting;
  1132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1133. public event ProductRowChangeEventHandler ProductRowDeleted;
  1134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1136. public void AddProductRow(ProductRow row) {
  1137. this.Rows.Add(row);
  1138. }
  1139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1141. 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) {
  1142. ProductRow rowProductRow = ((ProductRow)(this.NewRow()));
  1143. object[] columnValuesArray = new object[] {
  1144. ProductArticleNumber,
  1145. ProductName,
  1146. ProductDescription,
  1147. ProductCategory,
  1148. ProductPhoto,
  1149. ProductManufacturer,
  1150. ProductCost,
  1151. ProductDiscountAmount,
  1152. ProductMaxDiscount,
  1153. ProductQuantityInStock,
  1154. ProductStatus};
  1155. rowProductRow.ItemArray = columnValuesArray;
  1156. this.Rows.Add(rowProductRow);
  1157. return rowProductRow;
  1158. }
  1159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1161. public ProductRow FindByProductArticleNumber(string ProductArticleNumber) {
  1162. return ((ProductRow)(this.Rows.Find(new object[] {
  1163. ProductArticleNumber})));
  1164. }
  1165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1167. public override global::System.Data.DataTable Clone() {
  1168. ProductDataTable cln = ((ProductDataTable)(base.Clone()));
  1169. cln.InitVars();
  1170. return cln;
  1171. }
  1172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1174. protected override global::System.Data.DataTable CreateInstance() {
  1175. return new ProductDataTable();
  1176. }
  1177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1179. internal void InitVars() {
  1180. this.columnProductArticleNumber = base.Columns["ProductArticleNumber"];
  1181. this.columnProductName = base.Columns["ProductName"];
  1182. this.columnProductDescription = base.Columns["ProductDescription"];
  1183. this.columnProductCategory = base.Columns["ProductCategory"];
  1184. this.columnProductPhoto = base.Columns["ProductPhoto"];
  1185. this.columnProductManufacturer = base.Columns["ProductManufacturer"];
  1186. this.columnProductCost = base.Columns["ProductCost"];
  1187. this.columnProductDiscountAmount = base.Columns["ProductDiscountAmount"];
  1188. this.columnProductMaxDiscount = base.Columns["ProductMaxDiscount"];
  1189. this.columnProductQuantityInStock = base.Columns["ProductQuantityInStock"];
  1190. this.columnProductStatus = base.Columns["ProductStatus"];
  1191. }
  1192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1194. private void InitClass() {
  1195. this.columnProductArticleNumber = new global::System.Data.DataColumn("ProductArticleNumber", typeof(string), null, global::System.Data.MappingType.Element);
  1196. base.Columns.Add(this.columnProductArticleNumber);
  1197. this.columnProductName = new global::System.Data.DataColumn("ProductName", typeof(string), null, global::System.Data.MappingType.Element);
  1198. base.Columns.Add(this.columnProductName);
  1199. this.columnProductDescription = new global::System.Data.DataColumn("ProductDescription", typeof(string), null, global::System.Data.MappingType.Element);
  1200. base.Columns.Add(this.columnProductDescription);
  1201. this.columnProductCategory = new global::System.Data.DataColumn("ProductCategory", typeof(string), null, global::System.Data.MappingType.Element);
  1202. base.Columns.Add(this.columnProductCategory);
  1203. this.columnProductPhoto = new global::System.Data.DataColumn("ProductPhoto", typeof(byte[]), null, global::System.Data.MappingType.Element);
  1204. base.Columns.Add(this.columnProductPhoto);
  1205. this.columnProductManufacturer = new global::System.Data.DataColumn("ProductManufacturer", typeof(string), null, global::System.Data.MappingType.Element);
  1206. base.Columns.Add(this.columnProductManufacturer);
  1207. this.columnProductCost = new global::System.Data.DataColumn("ProductCost", typeof(decimal), null, global::System.Data.MappingType.Element);
  1208. base.Columns.Add(this.columnProductCost);
  1209. this.columnProductDiscountAmount = new global::System.Data.DataColumn("ProductDiscountAmount", typeof(byte), null, global::System.Data.MappingType.Element);
  1210. base.Columns.Add(this.columnProductDiscountAmount);
  1211. this.columnProductMaxDiscount = new global::System.Data.DataColumn("ProductMaxDiscount", typeof(byte), null, global::System.Data.MappingType.Element);
  1212. base.Columns.Add(this.columnProductMaxDiscount);
  1213. this.columnProductQuantityInStock = new global::System.Data.DataColumn("ProductQuantityInStock", typeof(int), null, global::System.Data.MappingType.Element);
  1214. base.Columns.Add(this.columnProductQuantityInStock);
  1215. this.columnProductStatus = new global::System.Data.DataColumn("ProductStatus", typeof(string), null, global::System.Data.MappingType.Element);
  1216. base.Columns.Add(this.columnProductStatus);
  1217. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1218. this.columnProductArticleNumber}, true));
  1219. this.columnProductArticleNumber.AllowDBNull = false;
  1220. this.columnProductArticleNumber.Unique = true;
  1221. this.columnProductArticleNumber.MaxLength = 100;
  1222. this.columnProductName.AllowDBNull = false;
  1223. this.columnProductName.MaxLength = 2147483647;
  1224. this.columnProductDescription.AllowDBNull = false;
  1225. this.columnProductDescription.MaxLength = 2147483647;
  1226. this.columnProductCategory.AllowDBNull = false;
  1227. this.columnProductCategory.MaxLength = 2147483647;
  1228. this.columnProductManufacturer.AllowDBNull = false;
  1229. this.columnProductManufacturer.MaxLength = 2147483647;
  1230. this.columnProductCost.AllowDBNull = false;
  1231. this.columnProductQuantityInStock.AllowDBNull = false;
  1232. this.columnProductStatus.MaxLength = 2147483647;
  1233. }
  1234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1236. public ProductRow NewProductRow() {
  1237. return ((ProductRow)(this.NewRow()));
  1238. }
  1239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1241. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1242. return new ProductRow(builder);
  1243. }
  1244. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1245. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1246. protected override global::System.Type GetRowType() {
  1247. return typeof(ProductRow);
  1248. }
  1249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1251. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1252. base.OnRowChanged(e);
  1253. if ((this.ProductRowChanged != null)) {
  1254. this.ProductRowChanged(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  1255. }
  1256. }
  1257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1259. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1260. base.OnRowChanging(e);
  1261. if ((this.ProductRowChanging != null)) {
  1262. this.ProductRowChanging(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  1263. }
  1264. }
  1265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1267. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1268. base.OnRowDeleted(e);
  1269. if ((this.ProductRowDeleted != null)) {
  1270. this.ProductRowDeleted(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  1271. }
  1272. }
  1273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1275. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1276. base.OnRowDeleting(e);
  1277. if ((this.ProductRowDeleting != null)) {
  1278. this.ProductRowDeleting(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  1279. }
  1280. }
  1281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1282. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1283. public void RemoveProductRow(ProductRow row) {
  1284. this.Rows.Remove(row);
  1285. }
  1286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1287. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1288. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1289. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1290. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1291. _05TradeDataSet ds = new _05TradeDataSet();
  1292. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1293. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1294. any1.MinOccurs = new decimal(0);
  1295. any1.MaxOccurs = decimal.MaxValue;
  1296. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1297. sequence.Items.Add(any1);
  1298. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1299. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1300. any2.MinOccurs = new decimal(1);
  1301. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1302. sequence.Items.Add(any2);
  1303. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1304. attribute1.Name = "namespace";
  1305. attribute1.FixedValue = ds.Namespace;
  1306. type.Attributes.Add(attribute1);
  1307. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1308. attribute2.Name = "tableTypeName";
  1309. attribute2.FixedValue = "ProductDataTable";
  1310. type.Attributes.Add(attribute2);
  1311. type.Particle = sequence;
  1312. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1313. if (xs.Contains(dsSchema.TargetNamespace)) {
  1314. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1315. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1316. try {
  1317. global::System.Xml.Schema.XmlSchema schema = null;
  1318. dsSchema.Write(s1);
  1319. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1320. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1321. s2.SetLength(0);
  1322. schema.Write(s2);
  1323. if ((s1.Length == s2.Length)) {
  1324. s1.Position = 0;
  1325. s2.Position = 0;
  1326. for (; ((s1.Position != s1.Length)
  1327. && (s1.ReadByte() == s2.ReadByte())); ) {
  1328. ;
  1329. }
  1330. if ((s1.Position == s1.Length)) {
  1331. return type;
  1332. }
  1333. }
  1334. }
  1335. }
  1336. finally {
  1337. if ((s1 != null)) {
  1338. s1.Close();
  1339. }
  1340. if ((s2 != null)) {
  1341. s2.Close();
  1342. }
  1343. }
  1344. }
  1345. xs.Add(dsSchema);
  1346. return type;
  1347. }
  1348. }
  1349. /// <summary>
  1350. ///Represents the strongly named DataTable class.
  1351. ///</summary>
  1352. [global::System.Serializable()]
  1353. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1354. public partial class pynkt_vidachi_importDataTable : global::System.Data.TypedTableBase<pynkt_vidachi_importRow> {
  1355. private global::System.Data.DataColumn columnId;
  1356. private global::System.Data.DataColumn columnIndex;
  1357. private global::System.Data.DataColumn columnCity;
  1358. private global::System.Data.DataColumn columnStreet;
  1359. private global::System.Data.DataColumn columnHome;
  1360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1362. public pynkt_vidachi_importDataTable() {
  1363. this.TableName = "pynkt_vidachi_import";
  1364. this.BeginInit();
  1365. this.InitClass();
  1366. this.EndInit();
  1367. }
  1368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1370. internal pynkt_vidachi_importDataTable(global::System.Data.DataTable table) {
  1371. this.TableName = table.TableName;
  1372. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1373. this.CaseSensitive = table.CaseSensitive;
  1374. }
  1375. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1376. this.Locale = table.Locale;
  1377. }
  1378. if ((table.Namespace != table.DataSet.Namespace)) {
  1379. this.Namespace = table.Namespace;
  1380. }
  1381. this.Prefix = table.Prefix;
  1382. this.MinimumCapacity = table.MinimumCapacity;
  1383. }
  1384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1386. protected pynkt_vidachi_importDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1387. base(info, context) {
  1388. this.InitVars();
  1389. }
  1390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1392. public global::System.Data.DataColumn IdColumn {
  1393. get {
  1394. return this.columnId;
  1395. }
  1396. }
  1397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1399. public global::System.Data.DataColumn IndexColumn {
  1400. get {
  1401. return this.columnIndex;
  1402. }
  1403. }
  1404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1406. public global::System.Data.DataColumn CityColumn {
  1407. get {
  1408. return this.columnCity;
  1409. }
  1410. }
  1411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1413. public global::System.Data.DataColumn StreetColumn {
  1414. get {
  1415. return this.columnStreet;
  1416. }
  1417. }
  1418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1420. public global::System.Data.DataColumn HomeColumn {
  1421. get {
  1422. return this.columnHome;
  1423. }
  1424. }
  1425. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1427. [global::System.ComponentModel.Browsable(false)]
  1428. public int Count {
  1429. get {
  1430. return this.Rows.Count;
  1431. }
  1432. }
  1433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1434. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1435. public pynkt_vidachi_importRow this[int index] {
  1436. get {
  1437. return ((pynkt_vidachi_importRow)(this.Rows[index]));
  1438. }
  1439. }
  1440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1441. public event pynkt_vidachi_importRowChangeEventHandler pynkt_vidachi_importRowChanging;
  1442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1443. public event pynkt_vidachi_importRowChangeEventHandler pynkt_vidachi_importRowChanged;
  1444. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1445. public event pynkt_vidachi_importRowChangeEventHandler pynkt_vidachi_importRowDeleting;
  1446. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1447. public event pynkt_vidachi_importRowChangeEventHandler pynkt_vidachi_importRowDeleted;
  1448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1450. public void Addpynkt_vidachi_importRow(pynkt_vidachi_importRow row) {
  1451. this.Rows.Add(row);
  1452. }
  1453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1454. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1455. public pynkt_vidachi_importRow Addpynkt_vidachi_importRow(byte Id, int Index, string City, string Street, byte Home) {
  1456. pynkt_vidachi_importRow rowpynkt_vidachi_importRow = ((pynkt_vidachi_importRow)(this.NewRow()));
  1457. object[] columnValuesArray = new object[] {
  1458. Id,
  1459. Index,
  1460. City,
  1461. Street,
  1462. Home};
  1463. rowpynkt_vidachi_importRow.ItemArray = columnValuesArray;
  1464. this.Rows.Add(rowpynkt_vidachi_importRow);
  1465. return rowpynkt_vidachi_importRow;
  1466. }
  1467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1469. public pynkt_vidachi_importRow FindById(byte Id) {
  1470. return ((pynkt_vidachi_importRow)(this.Rows.Find(new object[] {
  1471. Id})));
  1472. }
  1473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1475. public override global::System.Data.DataTable Clone() {
  1476. pynkt_vidachi_importDataTable cln = ((pynkt_vidachi_importDataTable)(base.Clone()));
  1477. cln.InitVars();
  1478. return cln;
  1479. }
  1480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1482. protected override global::System.Data.DataTable CreateInstance() {
  1483. return new pynkt_vidachi_importDataTable();
  1484. }
  1485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1487. internal void InitVars() {
  1488. this.columnId = base.Columns["Id"];
  1489. this.columnIndex = base.Columns["Index"];
  1490. this.columnCity = base.Columns["City"];
  1491. this.columnStreet = base.Columns["Street"];
  1492. this.columnHome = base.Columns["Home"];
  1493. }
  1494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1496. private void InitClass() {
  1497. this.columnId = new global::System.Data.DataColumn("Id", typeof(byte), null, global::System.Data.MappingType.Element);
  1498. base.Columns.Add(this.columnId);
  1499. this.columnIndex = new global::System.Data.DataColumn("Index", typeof(int), null, global::System.Data.MappingType.Element);
  1500. base.Columns.Add(this.columnIndex);
  1501. this.columnCity = new global::System.Data.DataColumn("City", typeof(string), null, global::System.Data.MappingType.Element);
  1502. base.Columns.Add(this.columnCity);
  1503. this.columnStreet = new global::System.Data.DataColumn("Street", typeof(string), null, global::System.Data.MappingType.Element);
  1504. base.Columns.Add(this.columnStreet);
  1505. this.columnHome = new global::System.Data.DataColumn("Home", typeof(byte), null, global::System.Data.MappingType.Element);
  1506. base.Columns.Add(this.columnHome);
  1507. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1508. this.columnId}, true));
  1509. this.columnId.AllowDBNull = false;
  1510. this.columnId.ReadOnly = true;
  1511. this.columnId.Unique = true;
  1512. this.columnIndex.AllowDBNull = false;
  1513. this.columnCity.AllowDBNull = false;
  1514. this.columnCity.MaxLength = 50;
  1515. this.columnStreet.AllowDBNull = false;
  1516. this.columnStreet.MaxLength = 50;
  1517. this.columnHome.AllowDBNull = false;
  1518. }
  1519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1521. public pynkt_vidachi_importRow Newpynkt_vidachi_importRow() {
  1522. return ((pynkt_vidachi_importRow)(this.NewRow()));
  1523. }
  1524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1526. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1527. return new pynkt_vidachi_importRow(builder);
  1528. }
  1529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1531. protected override global::System.Type GetRowType() {
  1532. return typeof(pynkt_vidachi_importRow);
  1533. }
  1534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1536. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1537. base.OnRowChanged(e);
  1538. if ((this.pynkt_vidachi_importRowChanged != null)) {
  1539. this.pynkt_vidachi_importRowChanged(this, new pynkt_vidachi_importRowChangeEvent(((pynkt_vidachi_importRow)(e.Row)), e.Action));
  1540. }
  1541. }
  1542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1544. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1545. base.OnRowChanging(e);
  1546. if ((this.pynkt_vidachi_importRowChanging != null)) {
  1547. this.pynkt_vidachi_importRowChanging(this, new pynkt_vidachi_importRowChangeEvent(((pynkt_vidachi_importRow)(e.Row)), e.Action));
  1548. }
  1549. }
  1550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1552. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1553. base.OnRowDeleted(e);
  1554. if ((this.pynkt_vidachi_importRowDeleted != null)) {
  1555. this.pynkt_vidachi_importRowDeleted(this, new pynkt_vidachi_importRowChangeEvent(((pynkt_vidachi_importRow)(e.Row)), e.Action));
  1556. }
  1557. }
  1558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1559. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1560. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1561. base.OnRowDeleting(e);
  1562. if ((this.pynkt_vidachi_importRowDeleting != null)) {
  1563. this.pynkt_vidachi_importRowDeleting(this, new pynkt_vidachi_importRowChangeEvent(((pynkt_vidachi_importRow)(e.Row)), e.Action));
  1564. }
  1565. }
  1566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1568. public void Removepynkt_vidachi_importRow(pynkt_vidachi_importRow row) {
  1569. this.Rows.Remove(row);
  1570. }
  1571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1573. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1574. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1575. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1576. _05TradeDataSet ds = new _05TradeDataSet();
  1577. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1578. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1579. any1.MinOccurs = new decimal(0);
  1580. any1.MaxOccurs = decimal.MaxValue;
  1581. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1582. sequence.Items.Add(any1);
  1583. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1584. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1585. any2.MinOccurs = new decimal(1);
  1586. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1587. sequence.Items.Add(any2);
  1588. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1589. attribute1.Name = "namespace";
  1590. attribute1.FixedValue = ds.Namespace;
  1591. type.Attributes.Add(attribute1);
  1592. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1593. attribute2.Name = "tableTypeName";
  1594. attribute2.FixedValue = "pynkt_vidachi_importDataTable";
  1595. type.Attributes.Add(attribute2);
  1596. type.Particle = sequence;
  1597. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1598. if (xs.Contains(dsSchema.TargetNamespace)) {
  1599. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1600. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1601. try {
  1602. global::System.Xml.Schema.XmlSchema schema = null;
  1603. dsSchema.Write(s1);
  1604. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1605. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1606. s2.SetLength(0);
  1607. schema.Write(s2);
  1608. if ((s1.Length == s2.Length)) {
  1609. s1.Position = 0;
  1610. s2.Position = 0;
  1611. for (; ((s1.Position != s1.Length)
  1612. && (s1.ReadByte() == s2.ReadByte())); ) {
  1613. ;
  1614. }
  1615. if ((s1.Position == s1.Length)) {
  1616. return type;
  1617. }
  1618. }
  1619. }
  1620. }
  1621. finally {
  1622. if ((s1 != null)) {
  1623. s1.Close();
  1624. }
  1625. if ((s2 != null)) {
  1626. s2.Close();
  1627. }
  1628. }
  1629. }
  1630. xs.Add(dsSchema);
  1631. return type;
  1632. }
  1633. }
  1634. /// <summary>
  1635. ///Represents the strongly named DataTable class.
  1636. ///</summary>
  1637. [global::System.Serializable()]
  1638. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1639. public partial class RoleDataTable : global::System.Data.TypedTableBase<RoleRow> {
  1640. private global::System.Data.DataColumn columnRoleID;
  1641. private global::System.Data.DataColumn columnRoleName;
  1642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1644. public RoleDataTable() {
  1645. this.TableName = "Role";
  1646. this.BeginInit();
  1647. this.InitClass();
  1648. this.EndInit();
  1649. }
  1650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1652. internal RoleDataTable(global::System.Data.DataTable table) {
  1653. this.TableName = table.TableName;
  1654. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1655. this.CaseSensitive = table.CaseSensitive;
  1656. }
  1657. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1658. this.Locale = table.Locale;
  1659. }
  1660. if ((table.Namespace != table.DataSet.Namespace)) {
  1661. this.Namespace = table.Namespace;
  1662. }
  1663. this.Prefix = table.Prefix;
  1664. this.MinimumCapacity = table.MinimumCapacity;
  1665. }
  1666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1668. protected RoleDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1669. base(info, context) {
  1670. this.InitVars();
  1671. }
  1672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1674. public global::System.Data.DataColumn RoleIDColumn {
  1675. get {
  1676. return this.columnRoleID;
  1677. }
  1678. }
  1679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1681. public global::System.Data.DataColumn RoleNameColumn {
  1682. get {
  1683. return this.columnRoleName;
  1684. }
  1685. }
  1686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1688. [global::System.ComponentModel.Browsable(false)]
  1689. public int Count {
  1690. get {
  1691. return this.Rows.Count;
  1692. }
  1693. }
  1694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1696. public RoleRow this[int index] {
  1697. get {
  1698. return ((RoleRow)(this.Rows[index]));
  1699. }
  1700. }
  1701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1702. public event RoleRowChangeEventHandler RoleRowChanging;
  1703. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1704. public event RoleRowChangeEventHandler RoleRowChanged;
  1705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1706. public event RoleRowChangeEventHandler RoleRowDeleting;
  1707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1708. public event RoleRowChangeEventHandler RoleRowDeleted;
  1709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1711. public void AddRoleRow(RoleRow row) {
  1712. this.Rows.Add(row);
  1713. }
  1714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1716. public RoleRow AddRoleRow(string RoleName) {
  1717. RoleRow rowRoleRow = ((RoleRow)(this.NewRow()));
  1718. object[] columnValuesArray = new object[] {
  1719. null,
  1720. RoleName};
  1721. rowRoleRow.ItemArray = columnValuesArray;
  1722. this.Rows.Add(rowRoleRow);
  1723. return rowRoleRow;
  1724. }
  1725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1727. public RoleRow FindByRoleID(int RoleID) {
  1728. return ((RoleRow)(this.Rows.Find(new object[] {
  1729. RoleID})));
  1730. }
  1731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1733. public override global::System.Data.DataTable Clone() {
  1734. RoleDataTable cln = ((RoleDataTable)(base.Clone()));
  1735. cln.InitVars();
  1736. return cln;
  1737. }
  1738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1740. protected override global::System.Data.DataTable CreateInstance() {
  1741. return new RoleDataTable();
  1742. }
  1743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1745. internal void InitVars() {
  1746. this.columnRoleID = base.Columns["RoleID"];
  1747. this.columnRoleName = base.Columns["RoleName"];
  1748. }
  1749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1751. private void InitClass() {
  1752. this.columnRoleID = new global::System.Data.DataColumn("RoleID", typeof(int), null, global::System.Data.MappingType.Element);
  1753. base.Columns.Add(this.columnRoleID);
  1754. this.columnRoleName = new global::System.Data.DataColumn("RoleName", typeof(string), null, global::System.Data.MappingType.Element);
  1755. base.Columns.Add(this.columnRoleName);
  1756. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1757. this.columnRoleID}, true));
  1758. this.columnRoleID.AutoIncrement = true;
  1759. this.columnRoleID.AutoIncrementSeed = -1;
  1760. this.columnRoleID.AutoIncrementStep = -1;
  1761. this.columnRoleID.AllowDBNull = false;
  1762. this.columnRoleID.ReadOnly = true;
  1763. this.columnRoleID.Unique = true;
  1764. this.columnRoleName.AllowDBNull = false;
  1765. this.columnRoleName.MaxLength = 100;
  1766. }
  1767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1769. public RoleRow NewRoleRow() {
  1770. return ((RoleRow)(this.NewRow()));
  1771. }
  1772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1774. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1775. return new RoleRow(builder);
  1776. }
  1777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1779. protected override global::System.Type GetRowType() {
  1780. return typeof(RoleRow);
  1781. }
  1782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1784. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1785. base.OnRowChanged(e);
  1786. if ((this.RoleRowChanged != null)) {
  1787. this.RoleRowChanged(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  1788. }
  1789. }
  1790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1792. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1793. base.OnRowChanging(e);
  1794. if ((this.RoleRowChanging != null)) {
  1795. this.RoleRowChanging(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  1796. }
  1797. }
  1798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1800. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1801. base.OnRowDeleted(e);
  1802. if ((this.RoleRowDeleted != null)) {
  1803. this.RoleRowDeleted(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  1804. }
  1805. }
  1806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1808. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1809. base.OnRowDeleting(e);
  1810. if ((this.RoleRowDeleting != null)) {
  1811. this.RoleRowDeleting(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  1812. }
  1813. }
  1814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1816. public void RemoveRoleRow(RoleRow row) {
  1817. this.Rows.Remove(row);
  1818. }
  1819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1821. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1822. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1823. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1824. _05TradeDataSet ds = new _05TradeDataSet();
  1825. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1826. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1827. any1.MinOccurs = new decimal(0);
  1828. any1.MaxOccurs = decimal.MaxValue;
  1829. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1830. sequence.Items.Add(any1);
  1831. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1832. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1833. any2.MinOccurs = new decimal(1);
  1834. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1835. sequence.Items.Add(any2);
  1836. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1837. attribute1.Name = "namespace";
  1838. attribute1.FixedValue = ds.Namespace;
  1839. type.Attributes.Add(attribute1);
  1840. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1841. attribute2.Name = "tableTypeName";
  1842. attribute2.FixedValue = "RoleDataTable";
  1843. type.Attributes.Add(attribute2);
  1844. type.Particle = sequence;
  1845. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1846. if (xs.Contains(dsSchema.TargetNamespace)) {
  1847. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1848. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1849. try {
  1850. global::System.Xml.Schema.XmlSchema schema = null;
  1851. dsSchema.Write(s1);
  1852. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1853. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1854. s2.SetLength(0);
  1855. schema.Write(s2);
  1856. if ((s1.Length == s2.Length)) {
  1857. s1.Position = 0;
  1858. s2.Position = 0;
  1859. for (; ((s1.Position != s1.Length)
  1860. && (s1.ReadByte() == s2.ReadByte())); ) {
  1861. ;
  1862. }
  1863. if ((s1.Position == s1.Length)) {
  1864. return type;
  1865. }
  1866. }
  1867. }
  1868. }
  1869. finally {
  1870. if ((s1 != null)) {
  1871. s1.Close();
  1872. }
  1873. if ((s2 != null)) {
  1874. s2.Close();
  1875. }
  1876. }
  1877. }
  1878. xs.Add(dsSchema);
  1879. return type;
  1880. }
  1881. }
  1882. /// <summary>
  1883. ///Represents the strongly named DataTable class.
  1884. ///</summary>
  1885. [global::System.Serializable()]
  1886. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1887. public partial class UserDataTable : global::System.Data.TypedTableBase<UserRow> {
  1888. private global::System.Data.DataColumn columnUserID;
  1889. private global::System.Data.DataColumn columnUserSurname;
  1890. private global::System.Data.DataColumn columnUserName;
  1891. private global::System.Data.DataColumn columnUserPatronymic;
  1892. private global::System.Data.DataColumn columnUserLogin;
  1893. private global::System.Data.DataColumn columnUserPassword;
  1894. private global::System.Data.DataColumn columnUserRole;
  1895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1897. public UserDataTable() {
  1898. this.TableName = "User";
  1899. this.BeginInit();
  1900. this.InitClass();
  1901. this.EndInit();
  1902. }
  1903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1904. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1905. internal UserDataTable(global::System.Data.DataTable table) {
  1906. this.TableName = table.TableName;
  1907. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1908. this.CaseSensitive = table.CaseSensitive;
  1909. }
  1910. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1911. this.Locale = table.Locale;
  1912. }
  1913. if ((table.Namespace != table.DataSet.Namespace)) {
  1914. this.Namespace = table.Namespace;
  1915. }
  1916. this.Prefix = table.Prefix;
  1917. this.MinimumCapacity = table.MinimumCapacity;
  1918. }
  1919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1921. protected UserDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1922. base(info, context) {
  1923. this.InitVars();
  1924. }
  1925. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1926. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1927. public global::System.Data.DataColumn UserIDColumn {
  1928. get {
  1929. return this.columnUserID;
  1930. }
  1931. }
  1932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1934. public global::System.Data.DataColumn UserSurnameColumn {
  1935. get {
  1936. return this.columnUserSurname;
  1937. }
  1938. }
  1939. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1940. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1941. public global::System.Data.DataColumn UserNameColumn {
  1942. get {
  1943. return this.columnUserName;
  1944. }
  1945. }
  1946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1947. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1948. public global::System.Data.DataColumn UserPatronymicColumn {
  1949. get {
  1950. return this.columnUserPatronymic;
  1951. }
  1952. }
  1953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1955. public global::System.Data.DataColumn UserLoginColumn {
  1956. get {
  1957. return this.columnUserLogin;
  1958. }
  1959. }
  1960. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1961. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1962. public global::System.Data.DataColumn UserPasswordColumn {
  1963. get {
  1964. return this.columnUserPassword;
  1965. }
  1966. }
  1967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1969. public global::System.Data.DataColumn UserRoleColumn {
  1970. get {
  1971. return this.columnUserRole;
  1972. }
  1973. }
  1974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1976. [global::System.ComponentModel.Browsable(false)]
  1977. public int Count {
  1978. get {
  1979. return this.Rows.Count;
  1980. }
  1981. }
  1982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1984. public UserRow this[int index] {
  1985. get {
  1986. return ((UserRow)(this.Rows[index]));
  1987. }
  1988. }
  1989. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1990. public event UserRowChangeEventHandler UserRowChanging;
  1991. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1992. public event UserRowChangeEventHandler UserRowChanged;
  1993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1994. public event UserRowChangeEventHandler UserRowDeleting;
  1995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1996. public event UserRowChangeEventHandler UserRowDeleted;
  1997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1998. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1999. public void AddUserRow(UserRow row) {
  2000. this.Rows.Add(row);
  2001. }
  2002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2004. public UserRow AddUserRow(string UserSurname, string UserName, string UserPatronymic, string UserLogin, string UserPassword, RoleRow parentRoleRowByFK__User__UserRole__25869641) {
  2005. UserRow rowUserRow = ((UserRow)(this.NewRow()));
  2006. object[] columnValuesArray = new object[] {
  2007. null,
  2008. UserSurname,
  2009. UserName,
  2010. UserPatronymic,
  2011. UserLogin,
  2012. UserPassword,
  2013. null};
  2014. if ((parentRoleRowByFK__User__UserRole__25869641 != null)) {
  2015. columnValuesArray[6] = parentRoleRowByFK__User__UserRole__25869641[0];
  2016. }
  2017. rowUserRow.ItemArray = columnValuesArray;
  2018. this.Rows.Add(rowUserRow);
  2019. return rowUserRow;
  2020. }
  2021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2023. public UserRow FindByUserID(int UserID) {
  2024. return ((UserRow)(this.Rows.Find(new object[] {
  2025. UserID})));
  2026. }
  2027. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2028. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2029. public override global::System.Data.DataTable Clone() {
  2030. UserDataTable cln = ((UserDataTable)(base.Clone()));
  2031. cln.InitVars();
  2032. return cln;
  2033. }
  2034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2036. protected override global::System.Data.DataTable CreateInstance() {
  2037. return new UserDataTable();
  2038. }
  2039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2041. internal void InitVars() {
  2042. this.columnUserID = base.Columns["UserID"];
  2043. this.columnUserSurname = base.Columns["UserSurname"];
  2044. this.columnUserName = base.Columns["UserName"];
  2045. this.columnUserPatronymic = base.Columns["UserPatronymic"];
  2046. this.columnUserLogin = base.Columns["UserLogin"];
  2047. this.columnUserPassword = base.Columns["UserPassword"];
  2048. this.columnUserRole = base.Columns["UserRole"];
  2049. }
  2050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2052. private void InitClass() {
  2053. this.columnUserID = new global::System.Data.DataColumn("UserID", typeof(int), null, global::System.Data.MappingType.Element);
  2054. base.Columns.Add(this.columnUserID);
  2055. this.columnUserSurname = new global::System.Data.DataColumn("UserSurname", typeof(string), null, global::System.Data.MappingType.Element);
  2056. base.Columns.Add(this.columnUserSurname);
  2057. this.columnUserName = new global::System.Data.DataColumn("UserName", typeof(string), null, global::System.Data.MappingType.Element);
  2058. base.Columns.Add(this.columnUserName);
  2059. this.columnUserPatronymic = new global::System.Data.DataColumn("UserPatronymic", typeof(string), null, global::System.Data.MappingType.Element);
  2060. base.Columns.Add(this.columnUserPatronymic);
  2061. this.columnUserLogin = new global::System.Data.DataColumn("UserLogin", typeof(string), null, global::System.Data.MappingType.Element);
  2062. base.Columns.Add(this.columnUserLogin);
  2063. this.columnUserPassword = new global::System.Data.DataColumn("UserPassword", typeof(string), null, global::System.Data.MappingType.Element);
  2064. base.Columns.Add(this.columnUserPassword);
  2065. this.columnUserRole = new global::System.Data.DataColumn("UserRole", typeof(int), null, global::System.Data.MappingType.Element);
  2066. base.Columns.Add(this.columnUserRole);
  2067. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2068. this.columnUserID}, true));
  2069. this.columnUserID.AutoIncrement = true;
  2070. this.columnUserID.AutoIncrementSeed = -1;
  2071. this.columnUserID.AutoIncrementStep = -1;
  2072. this.columnUserID.AllowDBNull = false;
  2073. this.columnUserID.ReadOnly = true;
  2074. this.columnUserID.Unique = true;
  2075. this.columnUserSurname.AllowDBNull = false;
  2076. this.columnUserSurname.MaxLength = 100;
  2077. this.columnUserName.AllowDBNull = false;
  2078. this.columnUserName.MaxLength = 100;
  2079. this.columnUserPatronymic.AllowDBNull = false;
  2080. this.columnUserPatronymic.MaxLength = 100;
  2081. this.columnUserLogin.AllowDBNull = false;
  2082. this.columnUserLogin.MaxLength = 2147483647;
  2083. this.columnUserPassword.AllowDBNull = false;
  2084. this.columnUserPassword.MaxLength = 2147483647;
  2085. this.columnUserRole.AllowDBNull = false;
  2086. }
  2087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2089. public UserRow NewUserRow() {
  2090. return ((UserRow)(this.NewRow()));
  2091. }
  2092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2094. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2095. return new UserRow(builder);
  2096. }
  2097. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2098. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2099. protected override global::System.Type GetRowType() {
  2100. return typeof(UserRow);
  2101. }
  2102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2103. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2104. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2105. base.OnRowChanged(e);
  2106. if ((this.UserRowChanged != null)) {
  2107. this.UserRowChanged(this, new UserRowChangeEvent(((UserRow)(e.Row)), e.Action));
  2108. }
  2109. }
  2110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2112. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2113. base.OnRowChanging(e);
  2114. if ((this.UserRowChanging != null)) {
  2115. this.UserRowChanging(this, new UserRowChangeEvent(((UserRow)(e.Row)), e.Action));
  2116. }
  2117. }
  2118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2120. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2121. base.OnRowDeleted(e);
  2122. if ((this.UserRowDeleted != null)) {
  2123. this.UserRowDeleted(this, new UserRowChangeEvent(((UserRow)(e.Row)), e.Action));
  2124. }
  2125. }
  2126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2128. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2129. base.OnRowDeleting(e);
  2130. if ((this.UserRowDeleting != null)) {
  2131. this.UserRowDeleting(this, new UserRowChangeEvent(((UserRow)(e.Row)), e.Action));
  2132. }
  2133. }
  2134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2136. public void RemoveUserRow(UserRow row) {
  2137. this.Rows.Remove(row);
  2138. }
  2139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2141. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2142. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2143. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2144. _05TradeDataSet ds = new _05TradeDataSet();
  2145. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2146. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2147. any1.MinOccurs = new decimal(0);
  2148. any1.MaxOccurs = decimal.MaxValue;
  2149. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2150. sequence.Items.Add(any1);
  2151. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2152. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2153. any2.MinOccurs = new decimal(1);
  2154. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2155. sequence.Items.Add(any2);
  2156. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2157. attribute1.Name = "namespace";
  2158. attribute1.FixedValue = ds.Namespace;
  2159. type.Attributes.Add(attribute1);
  2160. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2161. attribute2.Name = "tableTypeName";
  2162. attribute2.FixedValue = "UserDataTable";
  2163. type.Attributes.Add(attribute2);
  2164. type.Particle = sequence;
  2165. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2166. if (xs.Contains(dsSchema.TargetNamespace)) {
  2167. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2168. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2169. try {
  2170. global::System.Xml.Schema.XmlSchema schema = null;
  2171. dsSchema.Write(s1);
  2172. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2173. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2174. s2.SetLength(0);
  2175. schema.Write(s2);
  2176. if ((s1.Length == s2.Length)) {
  2177. s1.Position = 0;
  2178. s2.Position = 0;
  2179. for (; ((s1.Position != s1.Length)
  2180. && (s1.ReadByte() == s2.ReadByte())); ) {
  2181. ;
  2182. }
  2183. if ((s1.Position == s1.Length)) {
  2184. return type;
  2185. }
  2186. }
  2187. }
  2188. }
  2189. finally {
  2190. if ((s1 != null)) {
  2191. s1.Close();
  2192. }
  2193. if ((s2 != null)) {
  2194. s2.Close();
  2195. }
  2196. }
  2197. }
  2198. xs.Add(dsSchema);
  2199. return type;
  2200. }
  2201. }
  2202. /// <summary>
  2203. ///Represents strongly named DataRow class.
  2204. ///</summary>
  2205. public partial class OrderRow : global::System.Data.DataRow {
  2206. private OrderDataTable tableOrder;
  2207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2209. internal OrderRow(global::System.Data.DataRowBuilder rb) :
  2210. base(rb) {
  2211. this.tableOrder = ((OrderDataTable)(this.Table));
  2212. }
  2213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2215. public int OrderID {
  2216. get {
  2217. return ((int)(this[this.tableOrder.OrderIDColumn]));
  2218. }
  2219. set {
  2220. this[this.tableOrder.OrderIDColumn] = value;
  2221. }
  2222. }
  2223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2225. public string OrderStatus {
  2226. get {
  2227. return ((string)(this[this.tableOrder.OrderStatusColumn]));
  2228. }
  2229. set {
  2230. this[this.tableOrder.OrderStatusColumn] = value;
  2231. }
  2232. }
  2233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2235. public System.DateTime OrderDeliveryDate {
  2236. get {
  2237. return ((global::System.DateTime)(this[this.tableOrder.OrderDeliveryDateColumn]));
  2238. }
  2239. set {
  2240. this[this.tableOrder.OrderDeliveryDateColumn] = value;
  2241. }
  2242. }
  2243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2245. public byte OrderPickupPoint {
  2246. get {
  2247. return ((byte)(this[this.tableOrder.OrderPickupPointColumn]));
  2248. }
  2249. set {
  2250. this[this.tableOrder.OrderPickupPointColumn] = value;
  2251. }
  2252. }
  2253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2255. public System.DateTime OrderDate {
  2256. get {
  2257. try {
  2258. return ((global::System.DateTime)(this[this.tableOrder.OrderDateColumn]));
  2259. }
  2260. catch (global::System.InvalidCastException e) {
  2261. throw new global::System.Data.StrongTypingException("Значение для столбца \'OrderDate\' в таблице \'Order\' равно DBNull.", e);
  2262. }
  2263. }
  2264. set {
  2265. this[this.tableOrder.OrderDateColumn] = value;
  2266. }
  2267. }
  2268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2270. public string FIOClient {
  2271. get {
  2272. try {
  2273. return ((string)(this[this.tableOrder.FIOClientColumn]));
  2274. }
  2275. catch (global::System.InvalidCastException e) {
  2276. throw new global::System.Data.StrongTypingException("Значение для столбца \'FIOClient\' в таблице \'Order\' равно DBNull.", e);
  2277. }
  2278. }
  2279. set {
  2280. this[this.tableOrder.FIOClientColumn] = value;
  2281. }
  2282. }
  2283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2285. public int Code {
  2286. get {
  2287. try {
  2288. return ((int)(this[this.tableOrder.CodeColumn]));
  2289. }
  2290. catch (global::System.InvalidCastException e) {
  2291. throw new global::System.Data.StrongTypingException("Значение для столбца \'Code\' в таблице \'Order\' равно DBNull.", e);
  2292. }
  2293. }
  2294. set {
  2295. this[this.tableOrder.CodeColumn] = value;
  2296. }
  2297. }
  2298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2300. public pynkt_vidachi_importRow pynkt_vidachi_importRow {
  2301. get {
  2302. return ((pynkt_vidachi_importRow)(this.GetParentRow(this.Table.ParentRelations["FK_Order_pynkt_vidachi_import"])));
  2303. }
  2304. set {
  2305. this.SetParentRow(value, this.Table.ParentRelations["FK_Order_pynkt_vidachi_import"]);
  2306. }
  2307. }
  2308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2310. public bool IsOrderDateNull() {
  2311. return this.IsNull(this.tableOrder.OrderDateColumn);
  2312. }
  2313. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2314. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2315. public void SetOrderDateNull() {
  2316. this[this.tableOrder.OrderDateColumn] = global::System.Convert.DBNull;
  2317. }
  2318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2320. public bool IsFIOClientNull() {
  2321. return this.IsNull(this.tableOrder.FIOClientColumn);
  2322. }
  2323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2325. public void SetFIOClientNull() {
  2326. this[this.tableOrder.FIOClientColumn] = global::System.Convert.DBNull;
  2327. }
  2328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2330. public bool IsCodeNull() {
  2331. return this.IsNull(this.tableOrder.CodeColumn);
  2332. }
  2333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2335. public void SetCodeNull() {
  2336. this[this.tableOrder.CodeColumn] = global::System.Convert.DBNull;
  2337. }
  2338. }
  2339. /// <summary>
  2340. ///Represents strongly named DataRow class.
  2341. ///</summary>
  2342. public partial class OrderProductRow : global::System.Data.DataRow {
  2343. private OrderProductDataTable tableOrderProduct;
  2344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2346. internal OrderProductRow(global::System.Data.DataRowBuilder rb) :
  2347. base(rb) {
  2348. this.tableOrderProduct = ((OrderProductDataTable)(this.Table));
  2349. }
  2350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2352. public int OrderID {
  2353. get {
  2354. return ((int)(this[this.tableOrderProduct.OrderIDColumn]));
  2355. }
  2356. set {
  2357. this[this.tableOrderProduct.OrderIDColumn] = value;
  2358. }
  2359. }
  2360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2362. public string ProductArticleNumber {
  2363. get {
  2364. return ((string)(this[this.tableOrderProduct.ProductArticleNumberColumn]));
  2365. }
  2366. set {
  2367. this[this.tableOrderProduct.ProductArticleNumberColumn] = value;
  2368. }
  2369. }
  2370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2372. public int Quantity {
  2373. get {
  2374. try {
  2375. return ((int)(this[this.tableOrderProduct.QuantityColumn]));
  2376. }
  2377. catch (global::System.InvalidCastException e) {
  2378. throw new global::System.Data.StrongTypingException("Значение для столбца \'Quantity\' в таблице \'OrderProduct\' равно DBNull.", e);
  2379. }
  2380. }
  2381. set {
  2382. this[this.tableOrderProduct.QuantityColumn] = value;
  2383. }
  2384. }
  2385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2387. public bool IsQuantityNull() {
  2388. return this.IsNull(this.tableOrderProduct.QuantityColumn);
  2389. }
  2390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2392. public void SetQuantityNull() {
  2393. this[this.tableOrderProduct.QuantityColumn] = global::System.Convert.DBNull;
  2394. }
  2395. }
  2396. /// <summary>
  2397. ///Represents strongly named DataRow class.
  2398. ///</summary>
  2399. public partial class ProductRow : global::System.Data.DataRow {
  2400. private ProductDataTable tableProduct;
  2401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2403. internal ProductRow(global::System.Data.DataRowBuilder rb) :
  2404. base(rb) {
  2405. this.tableProduct = ((ProductDataTable)(this.Table));
  2406. }
  2407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2408. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2409. public string ProductArticleNumber {
  2410. get {
  2411. return ((string)(this[this.tableProduct.ProductArticleNumberColumn]));
  2412. }
  2413. set {
  2414. this[this.tableProduct.ProductArticleNumberColumn] = value;
  2415. }
  2416. }
  2417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2419. public string ProductName {
  2420. get {
  2421. return ((string)(this[this.tableProduct.ProductNameColumn]));
  2422. }
  2423. set {
  2424. this[this.tableProduct.ProductNameColumn] = value;
  2425. }
  2426. }
  2427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2429. public string ProductDescription {
  2430. get {
  2431. return ((string)(this[this.tableProduct.ProductDescriptionColumn]));
  2432. }
  2433. set {
  2434. this[this.tableProduct.ProductDescriptionColumn] = value;
  2435. }
  2436. }
  2437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2439. public string ProductCategory {
  2440. get {
  2441. return ((string)(this[this.tableProduct.ProductCategoryColumn]));
  2442. }
  2443. set {
  2444. this[this.tableProduct.ProductCategoryColumn] = value;
  2445. }
  2446. }
  2447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2448. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2449. public byte[] ProductPhoto {
  2450. get {
  2451. try {
  2452. return ((byte[])(this[this.tableProduct.ProductPhotoColumn]));
  2453. }
  2454. catch (global::System.InvalidCastException e) {
  2455. throw new global::System.Data.StrongTypingException("Значение для столбца \'ProductPhoto\' в таблице \'Product\' равно DBNull.", e);
  2456. }
  2457. }
  2458. set {
  2459. this[this.tableProduct.ProductPhotoColumn] = value;
  2460. }
  2461. }
  2462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2464. public string ProductManufacturer {
  2465. get {
  2466. return ((string)(this[this.tableProduct.ProductManufacturerColumn]));
  2467. }
  2468. set {
  2469. this[this.tableProduct.ProductManufacturerColumn] = value;
  2470. }
  2471. }
  2472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2474. public decimal ProductCost {
  2475. get {
  2476. return ((decimal)(this[this.tableProduct.ProductCostColumn]));
  2477. }
  2478. set {
  2479. this[this.tableProduct.ProductCostColumn] = value;
  2480. }
  2481. }
  2482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2484. public byte ProductDiscountAmount {
  2485. get {
  2486. try {
  2487. return ((byte)(this[this.tableProduct.ProductDiscountAmountColumn]));
  2488. }
  2489. catch (global::System.InvalidCastException e) {
  2490. throw new global::System.Data.StrongTypingException("Значение для столбца \'ProductDiscountAmount\' в таблице \'Product\' равно DBNull.", e);
  2491. }
  2492. }
  2493. set {
  2494. this[this.tableProduct.ProductDiscountAmountColumn] = value;
  2495. }
  2496. }
  2497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2499. public byte ProductMaxDiscount {
  2500. get {
  2501. try {
  2502. return ((byte)(this[this.tableProduct.ProductMaxDiscountColumn]));
  2503. }
  2504. catch (global::System.InvalidCastException e) {
  2505. throw new global::System.Data.StrongTypingException("Значение для столбца \'ProductMaxDiscount\' в таблице \'Product\' равно DBNull.", e);
  2506. }
  2507. }
  2508. set {
  2509. this[this.tableProduct.ProductMaxDiscountColumn] = value;
  2510. }
  2511. }
  2512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2514. public int ProductQuantityInStock {
  2515. get {
  2516. return ((int)(this[this.tableProduct.ProductQuantityInStockColumn]));
  2517. }
  2518. set {
  2519. this[this.tableProduct.ProductQuantityInStockColumn] = value;
  2520. }
  2521. }
  2522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2524. public string ProductStatus {
  2525. get {
  2526. try {
  2527. return ((string)(this[this.tableProduct.ProductStatusColumn]));
  2528. }
  2529. catch (global::System.InvalidCastException e) {
  2530. throw new global::System.Data.StrongTypingException("Значение для столбца \'ProductStatus\' в таблице \'Product\' равно DBNull.", e);
  2531. }
  2532. }
  2533. set {
  2534. this[this.tableProduct.ProductStatusColumn] = value;
  2535. }
  2536. }
  2537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2539. public bool IsProductPhotoNull() {
  2540. return this.IsNull(this.tableProduct.ProductPhotoColumn);
  2541. }
  2542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2544. public void SetProductPhotoNull() {
  2545. this[this.tableProduct.ProductPhotoColumn] = global::System.Convert.DBNull;
  2546. }
  2547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2549. public bool IsProductDiscountAmountNull() {
  2550. return this.IsNull(this.tableProduct.ProductDiscountAmountColumn);
  2551. }
  2552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2554. public void SetProductDiscountAmountNull() {
  2555. this[this.tableProduct.ProductDiscountAmountColumn] = global::System.Convert.DBNull;
  2556. }
  2557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2559. public bool IsProductMaxDiscountNull() {
  2560. return this.IsNull(this.tableProduct.ProductMaxDiscountColumn);
  2561. }
  2562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2564. public void SetProductMaxDiscountNull() {
  2565. this[this.tableProduct.ProductMaxDiscountColumn] = global::System.Convert.DBNull;
  2566. }
  2567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2569. public bool IsProductStatusNull() {
  2570. return this.IsNull(this.tableProduct.ProductStatusColumn);
  2571. }
  2572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2574. public void SetProductStatusNull() {
  2575. this[this.tableProduct.ProductStatusColumn] = global::System.Convert.DBNull;
  2576. }
  2577. }
  2578. /// <summary>
  2579. ///Represents strongly named DataRow class.
  2580. ///</summary>
  2581. public partial class pynkt_vidachi_importRow : global::System.Data.DataRow {
  2582. private pynkt_vidachi_importDataTable tablepynkt_vidachi_import;
  2583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2585. internal pynkt_vidachi_importRow(global::System.Data.DataRowBuilder rb) :
  2586. base(rb) {
  2587. this.tablepynkt_vidachi_import = ((pynkt_vidachi_importDataTable)(this.Table));
  2588. }
  2589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2591. public byte Id {
  2592. get {
  2593. return ((byte)(this[this.tablepynkt_vidachi_import.IdColumn]));
  2594. }
  2595. set {
  2596. this[this.tablepynkt_vidachi_import.IdColumn] = value;
  2597. }
  2598. }
  2599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2600. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2601. public int Index {
  2602. get {
  2603. return ((int)(this[this.tablepynkt_vidachi_import.IndexColumn]));
  2604. }
  2605. set {
  2606. this[this.tablepynkt_vidachi_import.IndexColumn] = value;
  2607. }
  2608. }
  2609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2611. public string City {
  2612. get {
  2613. return ((string)(this[this.tablepynkt_vidachi_import.CityColumn]));
  2614. }
  2615. set {
  2616. this[this.tablepynkt_vidachi_import.CityColumn] = 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 Street {
  2622. get {
  2623. return ((string)(this[this.tablepynkt_vidachi_import.StreetColumn]));
  2624. }
  2625. set {
  2626. this[this.tablepynkt_vidachi_import.StreetColumn] = value;
  2627. }
  2628. }
  2629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2631. public byte Home {
  2632. get {
  2633. return ((byte)(this[this.tablepynkt_vidachi_import.HomeColumn]));
  2634. }
  2635. set {
  2636. this[this.tablepynkt_vidachi_import.HomeColumn] = value;
  2637. }
  2638. }
  2639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2641. public OrderRow[] GetOrderRows() {
  2642. if ((this.Table.ChildRelations["FK_Order_pynkt_vidachi_import"] == null)) {
  2643. return new OrderRow[0];
  2644. }
  2645. else {
  2646. return ((OrderRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Order_pynkt_vidachi_import"])));
  2647. }
  2648. }
  2649. }
  2650. /// <summary>
  2651. ///Represents strongly named DataRow class.
  2652. ///</summary>
  2653. public partial class RoleRow : global::System.Data.DataRow {
  2654. private RoleDataTable tableRole;
  2655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2657. internal RoleRow(global::System.Data.DataRowBuilder rb) :
  2658. base(rb) {
  2659. this.tableRole = ((RoleDataTable)(this.Table));
  2660. }
  2661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2663. public int RoleID {
  2664. get {
  2665. return ((int)(this[this.tableRole.RoleIDColumn]));
  2666. }
  2667. set {
  2668. this[this.tableRole.RoleIDColumn] = value;
  2669. }
  2670. }
  2671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2673. public string RoleName {
  2674. get {
  2675. return ((string)(this[this.tableRole.RoleNameColumn]));
  2676. }
  2677. set {
  2678. this[this.tableRole.RoleNameColumn] = value;
  2679. }
  2680. }
  2681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2683. public UserRow[] GetUserRows() {
  2684. if ((this.Table.ChildRelations["FK__User__UserRole__25869641"] == null)) {
  2685. return new UserRow[0];
  2686. }
  2687. else {
  2688. return ((UserRow[])(base.GetChildRows(this.Table.ChildRelations["FK__User__UserRole__25869641"])));
  2689. }
  2690. }
  2691. }
  2692. /// <summary>
  2693. ///Represents strongly named DataRow class.
  2694. ///</summary>
  2695. public partial class UserRow : global::System.Data.DataRow {
  2696. private UserDataTable tableUser;
  2697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2699. internal UserRow(global::System.Data.DataRowBuilder rb) :
  2700. base(rb) {
  2701. this.tableUser = ((UserDataTable)(this.Table));
  2702. }
  2703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2705. public int UserID {
  2706. get {
  2707. return ((int)(this[this.tableUser.UserIDColumn]));
  2708. }
  2709. set {
  2710. this[this.tableUser.UserIDColumn] = value;
  2711. }
  2712. }
  2713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2715. public string UserSurname {
  2716. get {
  2717. return ((string)(this[this.tableUser.UserSurnameColumn]));
  2718. }
  2719. set {
  2720. this[this.tableUser.UserSurnameColumn] = value;
  2721. }
  2722. }
  2723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2725. public string UserName {
  2726. get {
  2727. return ((string)(this[this.tableUser.UserNameColumn]));
  2728. }
  2729. set {
  2730. this[this.tableUser.UserNameColumn] = value;
  2731. }
  2732. }
  2733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2735. public string UserPatronymic {
  2736. get {
  2737. return ((string)(this[this.tableUser.UserPatronymicColumn]));
  2738. }
  2739. set {
  2740. this[this.tableUser.UserPatronymicColumn] = value;
  2741. }
  2742. }
  2743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2745. public string UserLogin {
  2746. get {
  2747. return ((string)(this[this.tableUser.UserLoginColumn]));
  2748. }
  2749. set {
  2750. this[this.tableUser.UserLoginColumn] = value;
  2751. }
  2752. }
  2753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2755. public string UserPassword {
  2756. get {
  2757. return ((string)(this[this.tableUser.UserPasswordColumn]));
  2758. }
  2759. set {
  2760. this[this.tableUser.UserPasswordColumn] = value;
  2761. }
  2762. }
  2763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2765. public int UserRole {
  2766. get {
  2767. return ((int)(this[this.tableUser.UserRoleColumn]));
  2768. }
  2769. set {
  2770. this[this.tableUser.UserRoleColumn] = value;
  2771. }
  2772. }
  2773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2774. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2775. public RoleRow RoleRow {
  2776. get {
  2777. return ((RoleRow)(this.GetParentRow(this.Table.ParentRelations["FK__User__UserRole__25869641"])));
  2778. }
  2779. set {
  2780. this.SetParentRow(value, this.Table.ParentRelations["FK__User__UserRole__25869641"]);
  2781. }
  2782. }
  2783. }
  2784. /// <summary>
  2785. ///Row event argument class
  2786. ///</summary>
  2787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2788. public class OrderRowChangeEvent : global::System.EventArgs {
  2789. private OrderRow eventRow;
  2790. private global::System.Data.DataRowAction eventAction;
  2791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2793. public OrderRowChangeEvent(OrderRow row, global::System.Data.DataRowAction action) {
  2794. this.eventRow = row;
  2795. this.eventAction = action;
  2796. }
  2797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2799. public OrderRow Row {
  2800. get {
  2801. return this.eventRow;
  2802. }
  2803. }
  2804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2806. public global::System.Data.DataRowAction Action {
  2807. get {
  2808. return this.eventAction;
  2809. }
  2810. }
  2811. }
  2812. /// <summary>
  2813. ///Row event argument class
  2814. ///</summary>
  2815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2816. public class OrderProductRowChangeEvent : global::System.EventArgs {
  2817. private OrderProductRow eventRow;
  2818. private global::System.Data.DataRowAction eventAction;
  2819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2821. public OrderProductRowChangeEvent(OrderProductRow row, global::System.Data.DataRowAction action) {
  2822. this.eventRow = row;
  2823. this.eventAction = action;
  2824. }
  2825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2827. public OrderProductRow Row {
  2828. get {
  2829. return this.eventRow;
  2830. }
  2831. }
  2832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2834. public global::System.Data.DataRowAction Action {
  2835. get {
  2836. return this.eventAction;
  2837. }
  2838. }
  2839. }
  2840. /// <summary>
  2841. ///Row event argument class
  2842. ///</summary>
  2843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2844. public class ProductRowChangeEvent : global::System.EventArgs {
  2845. private ProductRow eventRow;
  2846. private global::System.Data.DataRowAction eventAction;
  2847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2849. public ProductRowChangeEvent(ProductRow row, global::System.Data.DataRowAction action) {
  2850. this.eventRow = row;
  2851. this.eventAction = action;
  2852. }
  2853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2855. public ProductRow Row {
  2856. get {
  2857. return this.eventRow;
  2858. }
  2859. }
  2860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2862. public global::System.Data.DataRowAction Action {
  2863. get {
  2864. return this.eventAction;
  2865. }
  2866. }
  2867. }
  2868. /// <summary>
  2869. ///Row event argument class
  2870. ///</summary>
  2871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2872. public class pynkt_vidachi_importRowChangeEvent : global::System.EventArgs {
  2873. private pynkt_vidachi_importRow eventRow;
  2874. private global::System.Data.DataRowAction eventAction;
  2875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2877. public pynkt_vidachi_importRowChangeEvent(pynkt_vidachi_importRow row, global::System.Data.DataRowAction action) {
  2878. this.eventRow = row;
  2879. this.eventAction = action;
  2880. }
  2881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2883. public pynkt_vidachi_importRow Row {
  2884. get {
  2885. return this.eventRow;
  2886. }
  2887. }
  2888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2890. public global::System.Data.DataRowAction Action {
  2891. get {
  2892. return this.eventAction;
  2893. }
  2894. }
  2895. }
  2896. /// <summary>
  2897. ///Row event argument class
  2898. ///</summary>
  2899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2900. public class RoleRowChangeEvent : global::System.EventArgs {
  2901. private RoleRow eventRow;
  2902. private global::System.Data.DataRowAction eventAction;
  2903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2904. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2905. public RoleRowChangeEvent(RoleRow row, global::System.Data.DataRowAction action) {
  2906. this.eventRow = row;
  2907. this.eventAction = action;
  2908. }
  2909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2910. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2911. public RoleRow Row {
  2912. get {
  2913. return this.eventRow;
  2914. }
  2915. }
  2916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2918. public global::System.Data.DataRowAction Action {
  2919. get {
  2920. return this.eventAction;
  2921. }
  2922. }
  2923. }
  2924. /// <summary>
  2925. ///Row event argument class
  2926. ///</summary>
  2927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2928. public class UserRowChangeEvent : global::System.EventArgs {
  2929. private UserRow eventRow;
  2930. private global::System.Data.DataRowAction eventAction;
  2931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2933. public UserRowChangeEvent(UserRow row, global::System.Data.DataRowAction action) {
  2934. this.eventRow = row;
  2935. this.eventAction = action;
  2936. }
  2937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2939. public UserRow Row {
  2940. get {
  2941. return this.eventRow;
  2942. }
  2943. }
  2944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2946. public global::System.Data.DataRowAction Action {
  2947. get {
  2948. return this.eventAction;
  2949. }
  2950. }
  2951. }
  2952. }
  2953. }
  2954. namespace OsadchiStr._05TradeDataSetTableAdapters {
  2955. /// <summary>
  2956. ///Represents the connection and commands used to retrieve and save data.
  2957. ///</summary>
  2958. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  2959. [global::System.ComponentModel.ToolboxItem(true)]
  2960. [global::System.ComponentModel.DataObjectAttribute(true)]
  2961. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  2962. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  2963. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2964. public partial class OrderTableAdapter : global::System.ComponentModel.Component {
  2965. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  2966. private global::System.Data.SqlClient.SqlConnection _connection;
  2967. private global::System.Data.SqlClient.SqlTransaction _transaction;
  2968. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  2969. private bool _clearBeforeFill;
  2970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2972. public OrderTableAdapter() {
  2973. this.ClearBeforeFill = true;
  2974. }
  2975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2976. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2977. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  2978. get {
  2979. if ((this._adapter == null)) {
  2980. this.InitAdapter();
  2981. }
  2982. return this._adapter;
  2983. }
  2984. }
  2985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2987. internal global::System.Data.SqlClient.SqlConnection Connection {
  2988. get {
  2989. if ((this._connection == null)) {
  2990. this.InitConnection();
  2991. }
  2992. return this._connection;
  2993. }
  2994. set {
  2995. this._connection = value;
  2996. if ((this.Adapter.InsertCommand != null)) {
  2997. this.Adapter.InsertCommand.Connection = value;
  2998. }
  2999. if ((this.Adapter.DeleteCommand != null)) {
  3000. this.Adapter.DeleteCommand.Connection = value;
  3001. }
  3002. if ((this.Adapter.UpdateCommand != null)) {
  3003. this.Adapter.UpdateCommand.Connection = value;
  3004. }
  3005. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3006. if ((this.CommandCollection[i] != null)) {
  3007. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3008. }
  3009. }
  3010. }
  3011. }
  3012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3014. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3015. get {
  3016. return this._transaction;
  3017. }
  3018. set {
  3019. this._transaction = value;
  3020. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3021. this.CommandCollection[i].Transaction = this._transaction;
  3022. }
  3023. if (((this.Adapter != null)
  3024. && (this.Adapter.DeleteCommand != null))) {
  3025. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3026. }
  3027. if (((this.Adapter != null)
  3028. && (this.Adapter.InsertCommand != null))) {
  3029. this.Adapter.InsertCommand.Transaction = this._transaction;
  3030. }
  3031. if (((this.Adapter != null)
  3032. && (this.Adapter.UpdateCommand != null))) {
  3033. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3034. }
  3035. }
  3036. }
  3037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3039. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3040. get {
  3041. if ((this._commandCollection == null)) {
  3042. this.InitCommandCollection();
  3043. }
  3044. return this._commandCollection;
  3045. }
  3046. }
  3047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3048. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3049. public bool ClearBeforeFill {
  3050. get {
  3051. return this._clearBeforeFill;
  3052. }
  3053. set {
  3054. this._clearBeforeFill = value;
  3055. }
  3056. }
  3057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3059. private void InitAdapter() {
  3060. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3061. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3062. tableMapping.SourceTable = "Table";
  3063. tableMapping.DataSetTable = "Order";
  3064. tableMapping.ColumnMappings.Add("OrderID", "OrderID");
  3065. tableMapping.ColumnMappings.Add("OrderStatus", "OrderStatus");
  3066. tableMapping.ColumnMappings.Add("OrderDeliveryDate", "OrderDeliveryDate");
  3067. tableMapping.ColumnMappings.Add("OrderPickupPoint", "OrderPickupPoint");
  3068. tableMapping.ColumnMappings.Add("OrderDate", "OrderDate");
  3069. tableMapping.ColumnMappings.Add("FIOClient", "FIOClient");
  3070. tableMapping.ColumnMappings.Add("Code", "Code");
  3071. this._adapter.TableMappings.Add(tableMapping);
  3072. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3073. this._adapter.DeleteCommand.Connection = this.Connection;
  3074. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Order] WHERE (([OrderID] = @Original_OrderID) AND ([OrderDeliveryDate] = @Original_OrderDeliveryDate) AND ([OrderPickupPoint] = @Original_OrderPickupPoint) AND ((@IsNull_OrderDate = 1 AND [OrderDate] IS NULL) OR ([OrderDate] = @Original_OrderDate)) AND ((@IsNull_Code = 1 AND [Code] IS NULL) OR ([Code] = @Original_Code)))";
  3075. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3076. 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, "", "", ""));
  3077. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderDeliveryDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDeliveryDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3078. 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, "", "", ""));
  3079. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OrderDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3080. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3081. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Code", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3082. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Code", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3083. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3084. this._adapter.InsertCommand.Connection = this.Connection;
  3085. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Order] ([OrderStatus], [OrderDeliveryDate], [OrderPickupPoint], [OrderDate], [FIOClient], [Code]) VALUES (@OrderStatus, @OrderDeliveryDate, @OrderPickupPoint, @OrderDate, @FIOClient, @Code);
  3086. SELECT OrderID, OrderStatus, OrderDeliveryDate, OrderPickupPoint, OrderDate, FIOClient, Code FROM [Order] WHERE (OrderID = SCOPE_IDENTITY())";
  3087. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3088. 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, "", "", ""));
  3089. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderDeliveryDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDeliveryDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3090. 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, "", "", ""));
  3091. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3092. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FIOClient", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FIOClient", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3093. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Code", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3094. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3095. this._adapter.UpdateCommand.Connection = this.Connection;
  3096. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Order] SET [OrderStatus] = @OrderStatus, [OrderDeliveryDate] = @OrderDeliveryDate, [OrderPickupPoint] = @OrderPickupPoint, [OrderDate] = @OrderDate, [FIOClient] = @FIOClient, [Code] = @Code WHERE (([OrderID] = @Original_OrderID) AND ([OrderDeliveryDate] = @Original_OrderDeliveryDate) AND ([OrderPickupPoint] = @Original_OrderPickupPoint) AND ((@IsNull_OrderDate = 1 AND [OrderDate] IS NULL) OR ([OrderDate] = @Original_OrderDate)) AND ((@IsNull_Code = 1 AND [Code] IS NULL) OR ([Code] = @Original_Code)));
  3097. SELECT OrderID, OrderStatus, OrderDeliveryDate, OrderPickupPoint, OrderDate, FIOClient, Code FROM [Order] WHERE (OrderID = @OrderID)";
  3098. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3099. 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, "", "", ""));
  3100. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderDeliveryDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDeliveryDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3101. 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, "", "", ""));
  3102. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3103. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FIOClient", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FIOClient", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3104. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Code", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3105. 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, "", "", ""));
  3106. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderDeliveryDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDeliveryDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3107. 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, "", "", ""));
  3108. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OrderDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3109. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3110. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Code", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3111. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Code", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3112. 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, "", "", ""));
  3113. }
  3114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3116. private void InitConnection() {
  3117. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3118. this._connection.ConnectionString = global::OsadchiStr.Properties.Settings.Default._05TradeConnectionString;
  3119. }
  3120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3122. private void InitCommandCollection() {
  3123. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3124. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3125. this._commandCollection[0].Connection = this.Connection;
  3126. this._commandCollection[0].CommandText = "SELECT OrderID, OrderStatus, OrderDeliveryDate, OrderPickupPoint, OrderDate, FIOC" +
  3127. "lient, Code FROM dbo.[Order]";
  3128. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3129. }
  3130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3132. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3133. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3134. public virtual int Fill(_05TradeDataSet.OrderDataTable dataTable) {
  3135. this.Adapter.SelectCommand = this.CommandCollection[0];
  3136. if ((this.ClearBeforeFill == true)) {
  3137. dataTable.Clear();
  3138. }
  3139. int returnValue = this.Adapter.Fill(dataTable);
  3140. return returnValue;
  3141. }
  3142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3144. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3145. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3146. public virtual _05TradeDataSet.OrderDataTable GetData() {
  3147. this.Adapter.SelectCommand = this.CommandCollection[0];
  3148. _05TradeDataSet.OrderDataTable dataTable = new _05TradeDataSet.OrderDataTable();
  3149. this.Adapter.Fill(dataTable);
  3150. return dataTable;
  3151. }
  3152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3154. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3155. public virtual int Update(_05TradeDataSet.OrderDataTable dataTable) {
  3156. return this.Adapter.Update(dataTable);
  3157. }
  3158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3160. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3161. public virtual int Update(_05TradeDataSet dataSet) {
  3162. return this.Adapter.Update(dataSet, "Order");
  3163. }
  3164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3166. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3167. public virtual int Update(global::System.Data.DataRow dataRow) {
  3168. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3169. dataRow});
  3170. }
  3171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3173. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3174. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3175. return this.Adapter.Update(dataRows);
  3176. }
  3177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3179. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3180. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3181. public virtual int Delete(int Original_OrderID, System.DateTime Original_OrderDeliveryDate, byte Original_OrderPickupPoint, global::System.Nullable<global::System.DateTime> Original_OrderDate, global::System.Nullable<int> Original_Code) {
  3182. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_OrderID));
  3183. this.Adapter.DeleteCommand.Parameters[1].Value = ((System.DateTime)(Original_OrderDeliveryDate));
  3184. this.Adapter.DeleteCommand.Parameters[2].Value = ((byte)(Original_OrderPickupPoint));
  3185. if ((Original_OrderDate.HasValue == true)) {
  3186. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  3187. this.Adapter.DeleteCommand.Parameters[4].Value = ((System.DateTime)(Original_OrderDate.Value));
  3188. }
  3189. else {
  3190. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  3191. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  3192. }
  3193. if ((Original_Code.HasValue == true)) {
  3194. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  3195. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_Code.Value));
  3196. }
  3197. else {
  3198. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  3199. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  3200. }
  3201. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  3202. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3203. != global::System.Data.ConnectionState.Open)) {
  3204. this.Adapter.DeleteCommand.Connection.Open();
  3205. }
  3206. try {
  3207. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  3208. return returnValue;
  3209. }
  3210. finally {
  3211. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3212. this.Adapter.DeleteCommand.Connection.Close();
  3213. }
  3214. }
  3215. }
  3216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3218. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3219. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3220. public virtual int Insert(string OrderStatus, System.DateTime OrderDeliveryDate, byte OrderPickupPoint, global::System.Nullable<global::System.DateTime> OrderDate, string FIOClient, global::System.Nullable<int> Code) {
  3221. if ((OrderStatus == null)) {
  3222. throw new global::System.ArgumentNullException("OrderStatus");
  3223. }
  3224. else {
  3225. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(OrderStatus));
  3226. }
  3227. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(OrderDeliveryDate));
  3228. this.Adapter.InsertCommand.Parameters[2].Value = ((byte)(OrderPickupPoint));
  3229. if ((OrderDate.HasValue == true)) {
  3230. this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(OrderDate.Value));
  3231. }
  3232. else {
  3233. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  3234. }
  3235. if ((FIOClient == null)) {
  3236. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  3237. }
  3238. else {
  3239. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(FIOClient));
  3240. }
  3241. if ((Code.HasValue == true)) {
  3242. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(Code.Value));
  3243. }
  3244. else {
  3245. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  3246. }
  3247. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3248. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3249. != global::System.Data.ConnectionState.Open)) {
  3250. this.Adapter.InsertCommand.Connection.Open();
  3251. }
  3252. try {
  3253. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3254. return returnValue;
  3255. }
  3256. finally {
  3257. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3258. this.Adapter.InsertCommand.Connection.Close();
  3259. }
  3260. }
  3261. }
  3262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3264. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3265. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3266. public virtual int Update(string OrderStatus, System.DateTime OrderDeliveryDate, byte OrderPickupPoint, global::System.Nullable<global::System.DateTime> OrderDate, string FIOClient, global::System.Nullable<int> Code, int Original_OrderID, System.DateTime Original_OrderDeliveryDate, byte Original_OrderPickupPoint, global::System.Nullable<global::System.DateTime> Original_OrderDate, global::System.Nullable<int> Original_Code, int OrderID) {
  3267. if ((OrderStatus == null)) {
  3268. throw new global::System.ArgumentNullException("OrderStatus");
  3269. }
  3270. else {
  3271. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(OrderStatus));
  3272. }
  3273. this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(OrderDeliveryDate));
  3274. this.Adapter.UpdateCommand.Parameters[2].Value = ((byte)(OrderPickupPoint));
  3275. if ((OrderDate.HasValue == true)) {
  3276. this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(OrderDate.Value));
  3277. }
  3278. else {
  3279. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  3280. }
  3281. if ((FIOClient == null)) {
  3282. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  3283. }
  3284. else {
  3285. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(FIOClient));
  3286. }
  3287. if ((Code.HasValue == true)) {
  3288. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Code.Value));
  3289. }
  3290. else {
  3291. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  3292. }
  3293. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_OrderID));
  3294. this.Adapter.UpdateCommand.Parameters[7].Value = ((System.DateTime)(Original_OrderDeliveryDate));
  3295. this.Adapter.UpdateCommand.Parameters[8].Value = ((byte)(Original_OrderPickupPoint));
  3296. if ((Original_OrderDate.HasValue == true)) {
  3297. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  3298. this.Adapter.UpdateCommand.Parameters[10].Value = ((System.DateTime)(Original_OrderDate.Value));
  3299. }
  3300. else {
  3301. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  3302. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  3303. }
  3304. if ((Original_Code.HasValue == true)) {
  3305. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  3306. this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_Code.Value));
  3307. }
  3308. else {
  3309. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  3310. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  3311. }
  3312. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(OrderID));
  3313. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  3314. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3315. != global::System.Data.ConnectionState.Open)) {
  3316. this.Adapter.UpdateCommand.Connection.Open();
  3317. }
  3318. try {
  3319. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  3320. return returnValue;
  3321. }
  3322. finally {
  3323. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3324. this.Adapter.UpdateCommand.Connection.Close();
  3325. }
  3326. }
  3327. }
  3328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3330. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3331. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3332. public virtual int Update(string OrderStatus, System.DateTime OrderDeliveryDate, byte OrderPickupPoint, global::System.Nullable<global::System.DateTime> OrderDate, string FIOClient, global::System.Nullable<int> Code, int Original_OrderID, System.DateTime Original_OrderDeliveryDate, byte Original_OrderPickupPoint, global::System.Nullable<global::System.DateTime> Original_OrderDate, global::System.Nullable<int> Original_Code) {
  3333. return this.Update(OrderStatus, OrderDeliveryDate, OrderPickupPoint, OrderDate, FIOClient, Code, Original_OrderID, Original_OrderDeliveryDate, Original_OrderPickupPoint, Original_OrderDate, Original_Code, Original_OrderID);
  3334. }
  3335. }
  3336. /// <summary>
  3337. ///Represents the connection and commands used to retrieve and save data.
  3338. ///</summary>
  3339. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3340. [global::System.ComponentModel.ToolboxItem(true)]
  3341. [global::System.ComponentModel.DataObjectAttribute(true)]
  3342. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3343. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3344. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3345. public partial class OrderProductTableAdapter : global::System.ComponentModel.Component {
  3346. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3347. private global::System.Data.SqlClient.SqlConnection _connection;
  3348. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3349. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3350. private bool _clearBeforeFill;
  3351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3352. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3353. public OrderProductTableAdapter() {
  3354. this.ClearBeforeFill = true;
  3355. }
  3356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3358. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3359. get {
  3360. if ((this._adapter == null)) {
  3361. this.InitAdapter();
  3362. }
  3363. return this._adapter;
  3364. }
  3365. }
  3366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3367. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3368. internal global::System.Data.SqlClient.SqlConnection Connection {
  3369. get {
  3370. if ((this._connection == null)) {
  3371. this.InitConnection();
  3372. }
  3373. return this._connection;
  3374. }
  3375. set {
  3376. this._connection = value;
  3377. if ((this.Adapter.InsertCommand != null)) {
  3378. this.Adapter.InsertCommand.Connection = value;
  3379. }
  3380. if ((this.Adapter.DeleteCommand != null)) {
  3381. this.Adapter.DeleteCommand.Connection = value;
  3382. }
  3383. if ((this.Adapter.UpdateCommand != null)) {
  3384. this.Adapter.UpdateCommand.Connection = value;
  3385. }
  3386. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3387. if ((this.CommandCollection[i] != null)) {
  3388. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3389. }
  3390. }
  3391. }
  3392. }
  3393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3395. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3396. get {
  3397. return this._transaction;
  3398. }
  3399. set {
  3400. this._transaction = value;
  3401. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3402. this.CommandCollection[i].Transaction = this._transaction;
  3403. }
  3404. if (((this.Adapter != null)
  3405. && (this.Adapter.DeleteCommand != null))) {
  3406. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3407. }
  3408. if (((this.Adapter != null)
  3409. && (this.Adapter.InsertCommand != null))) {
  3410. this.Adapter.InsertCommand.Transaction = this._transaction;
  3411. }
  3412. if (((this.Adapter != null)
  3413. && (this.Adapter.UpdateCommand != null))) {
  3414. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3415. }
  3416. }
  3417. }
  3418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3420. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3421. get {
  3422. if ((this._commandCollection == null)) {
  3423. this.InitCommandCollection();
  3424. }
  3425. return this._commandCollection;
  3426. }
  3427. }
  3428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3429. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3430. public bool ClearBeforeFill {
  3431. get {
  3432. return this._clearBeforeFill;
  3433. }
  3434. set {
  3435. this._clearBeforeFill = value;
  3436. }
  3437. }
  3438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3440. private void InitAdapter() {
  3441. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3442. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3443. tableMapping.SourceTable = "Table";
  3444. tableMapping.DataSetTable = "OrderProduct";
  3445. tableMapping.ColumnMappings.Add("OrderID", "OrderID");
  3446. tableMapping.ColumnMappings.Add("ProductArticleNumber", "ProductArticleNumber");
  3447. tableMapping.ColumnMappings.Add("Quantity", "Quantity");
  3448. this._adapter.TableMappings.Add(tableMapping);
  3449. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3450. this._adapter.DeleteCommand.Connection = this.Connection;
  3451. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[OrderProduct] WHERE (([OrderID] = @Original_OrderID) AND ([Pro" +
  3452. "ductArticleNumber] = @Original_ProductArticleNumber) AND ((@IsNull_Quantity = 1 " +
  3453. "AND [Quantity] IS NULL) OR ([Quantity] = @Original_Quantity)))";
  3454. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3455. 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, "", "", ""));
  3456. 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, "", "", ""));
  3457. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Quantity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantity", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3458. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Quantity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantity", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3459. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3460. this._adapter.InsertCommand.Connection = this.Connection;
  3461. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[OrderProduct] ([OrderID], [ProductArticleNumber], [Quantity]) VALUES (@OrderID, @ProductArticleNumber, @Quantity);
  3462. SELECT OrderID, ProductArticleNumber, Quantity FROM OrderProduct WHERE (OrderID = @OrderID) AND (ProductArticleNumber = @ProductArticleNumber)";
  3463. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3464. 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, "", "", ""));
  3465. 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, "", "", ""));
  3466. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Quantity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantity", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3467. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3468. this._adapter.UpdateCommand.Connection = this.Connection;
  3469. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[OrderProduct] SET [OrderID] = @OrderID, [ProductArticleNumber] = @ProductArticleNumber, [Quantity] = @Quantity WHERE (([OrderID] = @Original_OrderID) AND ([ProductArticleNumber] = @Original_ProductArticleNumber) AND ((@IsNull_Quantity = 1 AND [Quantity] IS NULL) OR ([Quantity] = @Original_Quantity)));
  3470. SELECT OrderID, ProductArticleNumber, Quantity FROM OrderProduct WHERE (OrderID = @OrderID) AND (ProductArticleNumber = @ProductArticleNumber)";
  3471. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3472. 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, "", "", ""));
  3473. 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, "", "", ""));
  3474. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Quantity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantity", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3475. 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, "", "", ""));
  3476. 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, "", "", ""));
  3477. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Quantity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantity", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3478. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Quantity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantity", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3479. }
  3480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3482. private void InitConnection() {
  3483. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3484. this._connection.ConnectionString = global::OsadchiStr.Properties.Settings.Default._05TradeConnectionString;
  3485. }
  3486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3488. private void InitCommandCollection() {
  3489. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3490. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3491. this._commandCollection[0].Connection = this.Connection;
  3492. this._commandCollection[0].CommandText = "SELECT OrderID, ProductArticleNumber, Quantity FROM dbo.OrderProduct";
  3493. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3494. }
  3495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3497. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3498. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3499. public virtual int Fill(_05TradeDataSet.OrderProductDataTable dataTable) {
  3500. this.Adapter.SelectCommand = this.CommandCollection[0];
  3501. if ((this.ClearBeforeFill == true)) {
  3502. dataTable.Clear();
  3503. }
  3504. int returnValue = this.Adapter.Fill(dataTable);
  3505. return returnValue;
  3506. }
  3507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3509. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3510. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3511. public virtual _05TradeDataSet.OrderProductDataTable GetData() {
  3512. this.Adapter.SelectCommand = this.CommandCollection[0];
  3513. _05TradeDataSet.OrderProductDataTable dataTable = new _05TradeDataSet.OrderProductDataTable();
  3514. this.Adapter.Fill(dataTable);
  3515. return dataTable;
  3516. }
  3517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3519. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3520. public virtual int Update(_05TradeDataSet.OrderProductDataTable dataTable) {
  3521. return this.Adapter.Update(dataTable);
  3522. }
  3523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3525. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3526. public virtual int Update(_05TradeDataSet dataSet) {
  3527. return this.Adapter.Update(dataSet, "OrderProduct");
  3528. }
  3529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3531. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3532. public virtual int Update(global::System.Data.DataRow dataRow) {
  3533. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3534. dataRow});
  3535. }
  3536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3538. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3539. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3540. return this.Adapter.Update(dataRows);
  3541. }
  3542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3544. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3545. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3546. public virtual int Delete(int Original_OrderID, string Original_ProductArticleNumber, global::System.Nullable<int> Original_Quantity) {
  3547. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_OrderID));
  3548. if ((Original_ProductArticleNumber == null)) {
  3549. throw new global::System.ArgumentNullException("Original_ProductArticleNumber");
  3550. }
  3551. else {
  3552. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_ProductArticleNumber));
  3553. }
  3554. if ((Original_Quantity.HasValue == true)) {
  3555. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  3556. this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_Quantity.Value));
  3557. }
  3558. else {
  3559. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  3560. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  3561. }
  3562. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  3563. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3564. != global::System.Data.ConnectionState.Open)) {
  3565. this.Adapter.DeleteCommand.Connection.Open();
  3566. }
  3567. try {
  3568. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  3569. return returnValue;
  3570. }
  3571. finally {
  3572. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3573. this.Adapter.DeleteCommand.Connection.Close();
  3574. }
  3575. }
  3576. }
  3577. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3578. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3579. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3580. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3581. public virtual int Insert(int OrderID, string ProductArticleNumber, global::System.Nullable<int> Quantity) {
  3582. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(OrderID));
  3583. if ((ProductArticleNumber == null)) {
  3584. throw new global::System.ArgumentNullException("ProductArticleNumber");
  3585. }
  3586. else {
  3587. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(ProductArticleNumber));
  3588. }
  3589. if ((Quantity.HasValue == true)) {
  3590. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Quantity.Value));
  3591. }
  3592. else {
  3593. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  3594. }
  3595. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3596. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3597. != global::System.Data.ConnectionState.Open)) {
  3598. this.Adapter.InsertCommand.Connection.Open();
  3599. }
  3600. try {
  3601. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3602. return returnValue;
  3603. }
  3604. finally {
  3605. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3606. this.Adapter.InsertCommand.Connection.Close();
  3607. }
  3608. }
  3609. }
  3610. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3611. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3612. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3613. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3614. public virtual int Update(int OrderID, string ProductArticleNumber, global::System.Nullable<int> Quantity, int Original_OrderID, string Original_ProductArticleNumber, global::System.Nullable<int> Original_Quantity) {
  3615. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(OrderID));
  3616. if ((ProductArticleNumber == null)) {
  3617. throw new global::System.ArgumentNullException("ProductArticleNumber");
  3618. }
  3619. else {
  3620. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(ProductArticleNumber));
  3621. }
  3622. if ((Quantity.HasValue == true)) {
  3623. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Quantity.Value));
  3624. }
  3625. else {
  3626. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  3627. }
  3628. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_OrderID));
  3629. if ((Original_ProductArticleNumber == null)) {
  3630. throw new global::System.ArgumentNullException("Original_ProductArticleNumber");
  3631. }
  3632. else {
  3633. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_ProductArticleNumber));
  3634. }
  3635. if ((Original_Quantity.HasValue == true)) {
  3636. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  3637. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_Quantity.Value));
  3638. }
  3639. else {
  3640. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  3641. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  3642. }
  3643. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  3644. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3645. != global::System.Data.ConnectionState.Open)) {
  3646. this.Adapter.UpdateCommand.Connection.Open();
  3647. }
  3648. try {
  3649. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  3650. return returnValue;
  3651. }
  3652. finally {
  3653. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3654. this.Adapter.UpdateCommand.Connection.Close();
  3655. }
  3656. }
  3657. }
  3658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3660. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3661. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3662. public virtual int Update(global::System.Nullable<int> Quantity, int Original_OrderID, string Original_ProductArticleNumber, global::System.Nullable<int> Original_Quantity) {
  3663. return this.Update(Original_OrderID, Original_ProductArticleNumber, Quantity, Original_OrderID, Original_ProductArticleNumber, Original_Quantity);
  3664. }
  3665. }
  3666. /// <summary>
  3667. ///Represents the connection and commands used to retrieve and save data.
  3668. ///</summary>
  3669. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3670. [global::System.ComponentModel.ToolboxItem(true)]
  3671. [global::System.ComponentModel.DataObjectAttribute(true)]
  3672. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3673. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3674. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3675. public partial class ProductTableAdapter : global::System.ComponentModel.Component {
  3676. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3677. private global::System.Data.SqlClient.SqlConnection _connection;
  3678. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3679. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3680. private bool _clearBeforeFill;
  3681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3683. public ProductTableAdapter() {
  3684. this.ClearBeforeFill = true;
  3685. }
  3686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3688. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3689. get {
  3690. if ((this._adapter == null)) {
  3691. this.InitAdapter();
  3692. }
  3693. return this._adapter;
  3694. }
  3695. }
  3696. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3698. internal global::System.Data.SqlClient.SqlConnection Connection {
  3699. get {
  3700. if ((this._connection == null)) {
  3701. this.InitConnection();
  3702. }
  3703. return this._connection;
  3704. }
  3705. set {
  3706. this._connection = value;
  3707. if ((this.Adapter.InsertCommand != null)) {
  3708. this.Adapter.InsertCommand.Connection = value;
  3709. }
  3710. if ((this.Adapter.DeleteCommand != null)) {
  3711. this.Adapter.DeleteCommand.Connection = value;
  3712. }
  3713. if ((this.Adapter.UpdateCommand != null)) {
  3714. this.Adapter.UpdateCommand.Connection = value;
  3715. }
  3716. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3717. if ((this.CommandCollection[i] != null)) {
  3718. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3719. }
  3720. }
  3721. }
  3722. }
  3723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3725. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3726. get {
  3727. return this._transaction;
  3728. }
  3729. set {
  3730. this._transaction = value;
  3731. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3732. this.CommandCollection[i].Transaction = this._transaction;
  3733. }
  3734. if (((this.Adapter != null)
  3735. && (this.Adapter.DeleteCommand != null))) {
  3736. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3737. }
  3738. if (((this.Adapter != null)
  3739. && (this.Adapter.InsertCommand != null))) {
  3740. this.Adapter.InsertCommand.Transaction = this._transaction;
  3741. }
  3742. if (((this.Adapter != null)
  3743. && (this.Adapter.UpdateCommand != null))) {
  3744. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3745. }
  3746. }
  3747. }
  3748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3750. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3751. get {
  3752. if ((this._commandCollection == null)) {
  3753. this.InitCommandCollection();
  3754. }
  3755. return this._commandCollection;
  3756. }
  3757. }
  3758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3760. public bool ClearBeforeFill {
  3761. get {
  3762. return this._clearBeforeFill;
  3763. }
  3764. set {
  3765. this._clearBeforeFill = value;
  3766. }
  3767. }
  3768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3770. private void InitAdapter() {
  3771. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3772. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3773. tableMapping.SourceTable = "Table";
  3774. tableMapping.DataSetTable = "Product";
  3775. tableMapping.ColumnMappings.Add("ProductArticleNumber", "ProductArticleNumber");
  3776. tableMapping.ColumnMappings.Add("ProductName", "ProductName");
  3777. tableMapping.ColumnMappings.Add("ProductDescription", "ProductDescription");
  3778. tableMapping.ColumnMappings.Add("ProductCategory", "ProductCategory");
  3779. tableMapping.ColumnMappings.Add("ProductPhoto", "ProductPhoto");
  3780. tableMapping.ColumnMappings.Add("ProductManufacturer", "ProductManufacturer");
  3781. tableMapping.ColumnMappings.Add("ProductCost", "ProductCost");
  3782. tableMapping.ColumnMappings.Add("ProductDiscountAmount", "ProductDiscountAmount");
  3783. tableMapping.ColumnMappings.Add("ProductMaxDiscount", "ProductMaxDiscount");
  3784. tableMapping.ColumnMappings.Add("ProductQuantityInStock", "ProductQuantityInStock");
  3785. tableMapping.ColumnMappings.Add("ProductStatus", "ProductStatus");
  3786. this._adapter.TableMappings.Add(tableMapping);
  3787. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3788. this._adapter.DeleteCommand.Connection = this.Connection;
  3789. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Product] WHERE (([ProductArticleNumber] = @Original_ProductArticleNumber) AND ((@IsNull_ProductPhoto = 1 AND [ProductPhoto] IS NULL) OR ([ProductPhoto] = @Original_ProductPhoto)) 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))";
  3790. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3791. 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, "", "", ""));
  3792. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ProductPhoto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductPhoto", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3793. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductPhoto", global::System.Data.SqlDbType.VarBinary, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductPhoto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3794. 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, "", "", ""));
  3795. 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, "", "", ""));
  3796. 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, "", "", ""));
  3797. 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, "", "", ""));
  3798. 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, "", "", ""));
  3799. 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, "", "", ""));
  3800. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3801. this._adapter.InsertCommand.Connection = this.Connection;
  3802. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Product] ([ProductArticleNumber], [ProductName], [ProductDescription], [ProductCategory], [ProductPhoto], [ProductManufacturer], [ProductCost], [ProductDiscountAmount], [ProductMaxDiscount], [ProductQuantityInStock], [ProductStatus]) VALUES (@ProductArticleNumber, @ProductName, @ProductDescription, @ProductCategory, @ProductPhoto, @ProductManufacturer, @ProductCost, @ProductDiscountAmount, @ProductMaxDiscount, @ProductQuantityInStock, @ProductStatus);
  3803. SELECT ProductArticleNumber, ProductName, ProductDescription, ProductCategory, ProductPhoto, ProductManufacturer, ProductCost, ProductDiscountAmount, ProductMaxDiscount, ProductQuantityInStock, ProductStatus FROM Product WHERE (ProductArticleNumber = @ProductArticleNumber)";
  3804. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3805. 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, "", "", ""));
  3806. 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, "", "", ""));
  3807. 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, "", "", ""));
  3808. 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, "", "", ""));
  3809. 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, "", "", ""));
  3810. 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, "", "", ""));
  3811. 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, "", "", ""));
  3812. 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, "", "", ""));
  3813. 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, "", "", ""));
  3814. 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, "", "", ""));
  3815. 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, "", "", ""));
  3816. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3817. this._adapter.UpdateCommand.Connection = this.Connection;
  3818. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Product] SET [ProductArticleNumber] = @ProductArticleNumber, [ProductName] = @ProductName, [ProductDescription] = @ProductDescription, [ProductCategory] = @ProductCategory, [ProductPhoto] = @ProductPhoto, [ProductManufacturer] = @ProductManufacturer, [ProductCost] = @ProductCost, [ProductDiscountAmount] = @ProductDiscountAmount, [ProductMaxDiscount] = @ProductMaxDiscount, [ProductQuantityInStock] = @ProductQuantityInStock, [ProductStatus] = @ProductStatus WHERE (([ProductArticleNumber] = @Original_ProductArticleNumber) AND ((@IsNull_ProductPhoto = 1 AND [ProductPhoto] IS NULL) OR ([ProductPhoto] = @Original_ProductPhoto)) 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));
  3819. SELECT ProductArticleNumber, ProductName, ProductDescription, ProductCategory, ProductPhoto, ProductManufacturer, ProductCost, ProductDiscountAmount, ProductMaxDiscount, ProductQuantityInStock, ProductStatus FROM Product WHERE (ProductArticleNumber = @ProductArticleNumber)";
  3820. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3821. 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, "", "", ""));
  3822. 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, "", "", ""));
  3823. 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, "", "", ""));
  3824. 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, "", "", ""));
  3825. 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, "", "", ""));
  3826. 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, "", "", ""));
  3827. 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, "", "", ""));
  3828. 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, "", "", ""));
  3829. 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, "", "", ""));
  3830. 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, "", "", ""));
  3831. 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, "", "", ""));
  3832. 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, "", "", ""));
  3833. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ProductPhoto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductPhoto", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3834. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductPhoto", global::System.Data.SqlDbType.VarBinary, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductPhoto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3835. 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, "", "", ""));
  3836. 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, "", "", ""));
  3837. 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, "", "", ""));
  3838. 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, "", "", ""));
  3839. 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, "", "", ""));
  3840. 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, "", "", ""));
  3841. }
  3842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3844. private void InitConnection() {
  3845. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3846. this._connection.ConnectionString = global::OsadchiStr.Properties.Settings.Default._05TradeConnectionString;
  3847. }
  3848. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3849. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3850. private void InitCommandCollection() {
  3851. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
  3852. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3853. this._commandCollection[0].Connection = this.Connection;
  3854. this._commandCollection[0].CommandText = "SELECT ProductArticleNumber, ProductName, ProductDescription, ProductCategory, Pr" +
  3855. "oductPhoto, ProductManufacturer, ProductCost, ProductDiscountAmount, ProductMaxD" +
  3856. "iscount, ProductQuantityInStock, ProductStatus FROM dbo.Product";
  3857. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3858. this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
  3859. this._commandCollection[1].Connection = this.Connection;
  3860. this._commandCollection[1].CommandText = "SELECT ProductArticleNumber, ProductName, ProductDescription, ProductCategory, Pr" +
  3861. "oductPhoto, ProductManufacturer, ProductCost, ProductDiscountAmount, ProductMaxD" +
  3862. "iscount, ProductQuantityInStock, ProductStatus FROM dbo.Product";
  3863. this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
  3864. }
  3865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3867. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3868. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3869. public virtual int Fill(_05TradeDataSet.ProductDataTable dataTable) {
  3870. this.Adapter.SelectCommand = this.CommandCollection[0];
  3871. if ((this.ClearBeforeFill == true)) {
  3872. dataTable.Clear();
  3873. }
  3874. int returnValue = this.Adapter.Fill(dataTable);
  3875. return returnValue;
  3876. }
  3877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3879. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3880. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3881. public virtual _05TradeDataSet.ProductDataTable GetData() {
  3882. this.Adapter.SelectCommand = this.CommandCollection[0];
  3883. _05TradeDataSet.ProductDataTable dataTable = new _05TradeDataSet.ProductDataTable();
  3884. this.Adapter.Fill(dataTable);
  3885. return dataTable;
  3886. }
  3887. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3888. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3889. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3890. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)]
  3891. public virtual int FillBy(_05TradeDataSet.ProductDataTable dataTable) {
  3892. this.Adapter.SelectCommand = this.CommandCollection[1];
  3893. if ((this.ClearBeforeFill == true)) {
  3894. dataTable.Clear();
  3895. }
  3896. int returnValue = this.Adapter.Fill(dataTable);
  3897. return returnValue;
  3898. }
  3899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3901. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3902. public virtual int Update(_05TradeDataSet.ProductDataTable dataTable) {
  3903. return this.Adapter.Update(dataTable);
  3904. }
  3905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3907. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3908. public virtual int Update(_05TradeDataSet dataSet) {
  3909. return this.Adapter.Update(dataSet, "Product");
  3910. }
  3911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3913. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3914. public virtual int Update(global::System.Data.DataRow dataRow) {
  3915. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3916. dataRow});
  3917. }
  3918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3920. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3921. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3922. return this.Adapter.Update(dataRows);
  3923. }
  3924. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3925. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3926. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3927. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3928. public virtual int Delete(string Original_ProductArticleNumber, byte[] Original_ProductPhoto, decimal Original_ProductCost, global::System.Nullable<byte> Original_ProductDiscountAmount, global::System.Nullable<byte> Original_ProductMaxDiscount, int Original_ProductQuantityInStock) {
  3929. if ((Original_ProductArticleNumber == null)) {
  3930. throw new global::System.ArgumentNullException("Original_ProductArticleNumber");
  3931. }
  3932. else {
  3933. this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_ProductArticleNumber));
  3934. }
  3935. if ((Original_ProductPhoto == null)) {
  3936. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  3937. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  3938. }
  3939. else {
  3940. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  3941. this.Adapter.DeleteCommand.Parameters[2].Value = ((byte[])(Original_ProductPhoto));
  3942. }
  3943. this.Adapter.DeleteCommand.Parameters[3].Value = ((decimal)(Original_ProductCost));
  3944. if ((Original_ProductDiscountAmount.HasValue == true)) {
  3945. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  3946. this.Adapter.DeleteCommand.Parameters[5].Value = ((byte)(Original_ProductDiscountAmount.Value));
  3947. }
  3948. else {
  3949. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  3950. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  3951. }
  3952. if ((Original_ProductMaxDiscount.HasValue == true)) {
  3953. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
  3954. this.Adapter.DeleteCommand.Parameters[7].Value = ((byte)(Original_ProductMaxDiscount.Value));
  3955. }
  3956. else {
  3957. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
  3958. this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
  3959. }
  3960. this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_ProductQuantityInStock));
  3961. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  3962. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3963. != global::System.Data.ConnectionState.Open)) {
  3964. this.Adapter.DeleteCommand.Connection.Open();
  3965. }
  3966. try {
  3967. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  3968. return returnValue;
  3969. }
  3970. finally {
  3971. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3972. this.Adapter.DeleteCommand.Connection.Close();
  3973. }
  3974. }
  3975. }
  3976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3978. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3979. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3980. 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) {
  3981. if ((ProductArticleNumber == null)) {
  3982. throw new global::System.ArgumentNullException("ProductArticleNumber");
  3983. }
  3984. else {
  3985. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(ProductArticleNumber));
  3986. }
  3987. if ((ProductName == null)) {
  3988. throw new global::System.ArgumentNullException("ProductName");
  3989. }
  3990. else {
  3991. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(ProductName));
  3992. }
  3993. if ((ProductDescription == null)) {
  3994. throw new global::System.ArgumentNullException("ProductDescription");
  3995. }
  3996. else {
  3997. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(ProductDescription));
  3998. }
  3999. if ((ProductCategory == null)) {
  4000. throw new global::System.ArgumentNullException("ProductCategory");
  4001. }
  4002. else {
  4003. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(ProductCategory));
  4004. }
  4005. if ((ProductPhoto == null)) {
  4006. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  4007. }
  4008. else {
  4009. this.Adapter.InsertCommand.Parameters[4].Value = ((byte[])(ProductPhoto));
  4010. }
  4011. if ((ProductManufacturer == null)) {
  4012. throw new global::System.ArgumentNullException("ProductManufacturer");
  4013. }
  4014. else {
  4015. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(ProductManufacturer));
  4016. }
  4017. this.Adapter.InsertCommand.Parameters[6].Value = ((decimal)(ProductCost));
  4018. if ((ProductDiscountAmount.HasValue == true)) {
  4019. this.Adapter.InsertCommand.Parameters[7].Value = ((byte)(ProductDiscountAmount.Value));
  4020. }
  4021. else {
  4022. this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
  4023. }
  4024. if ((ProductMaxDiscount.HasValue == true)) {
  4025. this.Adapter.InsertCommand.Parameters[8].Value = ((byte)(ProductMaxDiscount.Value));
  4026. }
  4027. else {
  4028. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  4029. }
  4030. this.Adapter.InsertCommand.Parameters[9].Value = ((int)(ProductQuantityInStock));
  4031. if ((ProductStatus == null)) {
  4032. this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value;
  4033. }
  4034. else {
  4035. this.Adapter.InsertCommand.Parameters[10].Value = ((string)(ProductStatus));
  4036. }
  4037. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4038. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4039. != global::System.Data.ConnectionState.Open)) {
  4040. this.Adapter.InsertCommand.Connection.Open();
  4041. }
  4042. try {
  4043. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4044. return returnValue;
  4045. }
  4046. finally {
  4047. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4048. this.Adapter.InsertCommand.Connection.Close();
  4049. }
  4050. }
  4051. }
  4052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4054. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4055. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4056. public virtual int Update(
  4057. string ProductArticleNumber,
  4058. string ProductName,
  4059. string ProductDescription,
  4060. string ProductCategory,
  4061. byte[] ProductPhoto,
  4062. string ProductManufacturer,
  4063. decimal ProductCost,
  4064. global::System.Nullable<byte> ProductDiscountAmount,
  4065. global::System.Nullable<byte> ProductMaxDiscount,
  4066. int ProductQuantityInStock,
  4067. string ProductStatus,
  4068. string Original_ProductArticleNumber,
  4069. byte[] Original_ProductPhoto,
  4070. decimal Original_ProductCost,
  4071. global::System.Nullable<byte> Original_ProductDiscountAmount,
  4072. global::System.Nullable<byte> Original_ProductMaxDiscount,
  4073. int Original_ProductQuantityInStock) {
  4074. if ((ProductArticleNumber == null)) {
  4075. throw new global::System.ArgumentNullException("ProductArticleNumber");
  4076. }
  4077. else {
  4078. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(ProductArticleNumber));
  4079. }
  4080. if ((ProductName == null)) {
  4081. throw new global::System.ArgumentNullException("ProductName");
  4082. }
  4083. else {
  4084. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(ProductName));
  4085. }
  4086. if ((ProductDescription == null)) {
  4087. throw new global::System.ArgumentNullException("ProductDescription");
  4088. }
  4089. else {
  4090. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(ProductDescription));
  4091. }
  4092. if ((ProductCategory == null)) {
  4093. throw new global::System.ArgumentNullException("ProductCategory");
  4094. }
  4095. else {
  4096. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(ProductCategory));
  4097. }
  4098. if ((ProductPhoto == null)) {
  4099. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  4100. }
  4101. else {
  4102. this.Adapter.UpdateCommand.Parameters[4].Value = ((byte[])(ProductPhoto));
  4103. }
  4104. if ((ProductManufacturer == null)) {
  4105. throw new global::System.ArgumentNullException("ProductManufacturer");
  4106. }
  4107. else {
  4108. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(ProductManufacturer));
  4109. }
  4110. this.Adapter.UpdateCommand.Parameters[6].Value = ((decimal)(ProductCost));
  4111. if ((ProductDiscountAmount.HasValue == true)) {
  4112. this.Adapter.UpdateCommand.Parameters[7].Value = ((byte)(ProductDiscountAmount.Value));
  4113. }
  4114. else {
  4115. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  4116. }
  4117. if ((ProductMaxDiscount.HasValue == true)) {
  4118. this.Adapter.UpdateCommand.Parameters[8].Value = ((byte)(ProductMaxDiscount.Value));
  4119. }
  4120. else {
  4121. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  4122. }
  4123. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(ProductQuantityInStock));
  4124. if ((ProductStatus == null)) {
  4125. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  4126. }
  4127. else {
  4128. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(ProductStatus));
  4129. }
  4130. if ((Original_ProductArticleNumber == null)) {
  4131. throw new global::System.ArgumentNullException("Original_ProductArticleNumber");
  4132. }
  4133. else {
  4134. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_ProductArticleNumber));
  4135. }
  4136. if ((Original_ProductPhoto == null)) {
  4137. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  4138. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  4139. }
  4140. else {
  4141. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  4142. this.Adapter.UpdateCommand.Parameters[13].Value = ((byte[])(Original_ProductPhoto));
  4143. }
  4144. this.Adapter.UpdateCommand.Parameters[14].Value = ((decimal)(Original_ProductCost));
  4145. if ((Original_ProductDiscountAmount.HasValue == true)) {
  4146. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  4147. this.Adapter.UpdateCommand.Parameters[16].Value = ((byte)(Original_ProductDiscountAmount.Value));
  4148. }
  4149. else {
  4150. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  4151. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  4152. }
  4153. if ((Original_ProductMaxDiscount.HasValue == true)) {
  4154. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
  4155. this.Adapter.UpdateCommand.Parameters[18].Value = ((byte)(Original_ProductMaxDiscount.Value));
  4156. }
  4157. else {
  4158. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
  4159. this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
  4160. }
  4161. this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(Original_ProductQuantityInStock));
  4162. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4163. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4164. != global::System.Data.ConnectionState.Open)) {
  4165. this.Adapter.UpdateCommand.Connection.Open();
  4166. }
  4167. try {
  4168. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4169. return returnValue;
  4170. }
  4171. finally {
  4172. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4173. this.Adapter.UpdateCommand.Connection.Close();
  4174. }
  4175. }
  4176. }
  4177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4179. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4180. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4181. public virtual int Update(
  4182. string ProductName,
  4183. string ProductDescription,
  4184. string ProductCategory,
  4185. byte[] ProductPhoto,
  4186. string ProductManufacturer,
  4187. decimal ProductCost,
  4188. global::System.Nullable<byte> ProductDiscountAmount,
  4189. global::System.Nullable<byte> ProductMaxDiscount,
  4190. int ProductQuantityInStock,
  4191. string ProductStatus,
  4192. string Original_ProductArticleNumber,
  4193. byte[] Original_ProductPhoto,
  4194. decimal Original_ProductCost,
  4195. global::System.Nullable<byte> Original_ProductDiscountAmount,
  4196. global::System.Nullable<byte> Original_ProductMaxDiscount,
  4197. int Original_ProductQuantityInStock) {
  4198. return this.Update(Original_ProductArticleNumber, ProductName, ProductDescription, ProductCategory, ProductPhoto, ProductManufacturer, ProductCost, ProductDiscountAmount, ProductMaxDiscount, ProductQuantityInStock, ProductStatus, Original_ProductArticleNumber, Original_ProductPhoto, Original_ProductCost, Original_ProductDiscountAmount, Original_ProductMaxDiscount, Original_ProductQuantityInStock);
  4199. }
  4200. }
  4201. /// <summary>
  4202. ///Represents the connection and commands used to retrieve and save data.
  4203. ///</summary>
  4204. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4205. [global::System.ComponentModel.ToolboxItem(true)]
  4206. [global::System.ComponentModel.DataObjectAttribute(true)]
  4207. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4208. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4209. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4210. public partial class pynkt_vidachi_importTableAdapter : global::System.ComponentModel.Component {
  4211. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4212. private global::System.Data.SqlClient.SqlConnection _connection;
  4213. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4214. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4215. private bool _clearBeforeFill;
  4216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4218. public pynkt_vidachi_importTableAdapter() {
  4219. this.ClearBeforeFill = true;
  4220. }
  4221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4223. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4224. get {
  4225. if ((this._adapter == null)) {
  4226. this.InitAdapter();
  4227. }
  4228. return this._adapter;
  4229. }
  4230. }
  4231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4233. internal global::System.Data.SqlClient.SqlConnection Connection {
  4234. get {
  4235. if ((this._connection == null)) {
  4236. this.InitConnection();
  4237. }
  4238. return this._connection;
  4239. }
  4240. set {
  4241. this._connection = value;
  4242. if ((this.Adapter.InsertCommand != null)) {
  4243. this.Adapter.InsertCommand.Connection = value;
  4244. }
  4245. if ((this.Adapter.DeleteCommand != null)) {
  4246. this.Adapter.DeleteCommand.Connection = value;
  4247. }
  4248. if ((this.Adapter.UpdateCommand != null)) {
  4249. this.Adapter.UpdateCommand.Connection = value;
  4250. }
  4251. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4252. if ((this.CommandCollection[i] != null)) {
  4253. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4254. }
  4255. }
  4256. }
  4257. }
  4258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4260. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4261. get {
  4262. return this._transaction;
  4263. }
  4264. set {
  4265. this._transaction = value;
  4266. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4267. this.CommandCollection[i].Transaction = this._transaction;
  4268. }
  4269. if (((this.Adapter != null)
  4270. && (this.Adapter.DeleteCommand != null))) {
  4271. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4272. }
  4273. if (((this.Adapter != null)
  4274. && (this.Adapter.InsertCommand != null))) {
  4275. this.Adapter.InsertCommand.Transaction = this._transaction;
  4276. }
  4277. if (((this.Adapter != null)
  4278. && (this.Adapter.UpdateCommand != null))) {
  4279. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4280. }
  4281. }
  4282. }
  4283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4285. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4286. get {
  4287. if ((this._commandCollection == null)) {
  4288. this.InitCommandCollection();
  4289. }
  4290. return this._commandCollection;
  4291. }
  4292. }
  4293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4295. public bool ClearBeforeFill {
  4296. get {
  4297. return this._clearBeforeFill;
  4298. }
  4299. set {
  4300. this._clearBeforeFill = value;
  4301. }
  4302. }
  4303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4304. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4305. private void InitAdapter() {
  4306. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4307. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4308. tableMapping.SourceTable = "Table";
  4309. tableMapping.DataSetTable = "pynkt_vidachi_import";
  4310. tableMapping.ColumnMappings.Add("Id", "Id");
  4311. tableMapping.ColumnMappings.Add("Index", "Index");
  4312. tableMapping.ColumnMappings.Add("City", "City");
  4313. tableMapping.ColumnMappings.Add("Street", "Street");
  4314. tableMapping.ColumnMappings.Add("Home", "Home");
  4315. this._adapter.TableMappings.Add(tableMapping);
  4316. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4317. this._adapter.DeleteCommand.Connection = this.Connection;
  4318. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[pynkt_vidachi_import] WHERE (([Id] = @Original_Id) AND ([Index" +
  4319. "] = @Original_Index) AND ([City] = @Original_City) AND ([Street] = @Original_Str" +
  4320. "eet) AND ([Home] = @Original_Home))";
  4321. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4322. 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, "", "", ""));
  4323. 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, "", "", ""));
  4324. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_City", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "City", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4325. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Street", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Street", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4326. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Home", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Home", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4327. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4328. this._adapter.InsertCommand.Connection = this.Connection;
  4329. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[pynkt_vidachi_import] ([Index], [City], [Street], [Home]) VALU" +
  4330. "ES (@Index, @City, @Street, @Home);\r\nSELECT Id, [Index], City, Street, Home FROM" +
  4331. " pynkt_vidachi_import WHERE (Id = SCOPE_IDENTITY())";
  4332. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4333. 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, "", "", ""));
  4334. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@City", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "City", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4335. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Street", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Street", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4336. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Home", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Home", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4337. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4338. this._adapter.UpdateCommand.Connection = this.Connection;
  4339. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[pynkt_vidachi_import] SET [Index] = @Index, [City] = @City, [Street] = @Street, [Home] = @Home WHERE (([Id] = @Original_Id) AND ([Index] = @Original_Index) AND ([City] = @Original_City) AND ([Street] = @Original_Street) AND ([Home] = @Original_Home));
  4340. SELECT Id, [Index], City, Street, Home FROM pynkt_vidachi_import WHERE (Id = @Id)";
  4341. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4342. 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, "", "", ""));
  4343. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@City", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "City", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4344. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Street", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Street", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4345. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Home", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Home", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4346. 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, "", "", ""));
  4347. 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, "", "", ""));
  4348. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_City", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "City", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4349. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Street", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Street", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4350. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Home", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Home", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4351. 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, "", "", ""));
  4352. }
  4353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4354. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4355. private void InitConnection() {
  4356. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4357. this._connection.ConnectionString = global::OsadchiStr.Properties.Settings.Default._05TradeConnectionString;
  4358. }
  4359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4361. private void InitCommandCollection() {
  4362. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4363. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4364. this._commandCollection[0].Connection = this.Connection;
  4365. this._commandCollection[0].CommandText = "SELECT Id, [Index], City, Street, Home FROM dbo.pynkt_vidachi_import";
  4366. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4367. }
  4368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4370. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4371. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4372. public virtual int Fill(_05TradeDataSet.pynkt_vidachi_importDataTable dataTable) {
  4373. this.Adapter.SelectCommand = this.CommandCollection[0];
  4374. if ((this.ClearBeforeFill == true)) {
  4375. dataTable.Clear();
  4376. }
  4377. int returnValue = this.Adapter.Fill(dataTable);
  4378. return returnValue;
  4379. }
  4380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4382. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4383. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4384. public virtual _05TradeDataSet.pynkt_vidachi_importDataTable GetData() {
  4385. this.Adapter.SelectCommand = this.CommandCollection[0];
  4386. _05TradeDataSet.pynkt_vidachi_importDataTable dataTable = new _05TradeDataSet.pynkt_vidachi_importDataTable();
  4387. this.Adapter.Fill(dataTable);
  4388. return dataTable;
  4389. }
  4390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4392. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4393. public virtual int Update(_05TradeDataSet.pynkt_vidachi_importDataTable dataTable) {
  4394. return this.Adapter.Update(dataTable);
  4395. }
  4396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4398. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4399. public virtual int Update(_05TradeDataSet dataSet) {
  4400. return this.Adapter.Update(dataSet, "pynkt_vidachi_import");
  4401. }
  4402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4403. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4404. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4405. public virtual int Update(global::System.Data.DataRow dataRow) {
  4406. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4407. dataRow});
  4408. }
  4409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4411. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4412. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4413. return this.Adapter.Update(dataRows);
  4414. }
  4415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4416. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4417. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4418. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4419. public virtual int Delete(byte Original_Id, int Original_Index, string Original_City, string Original_Street, byte Original_Home) {
  4420. this.Adapter.DeleteCommand.Parameters[0].Value = ((byte)(Original_Id));
  4421. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_Index));
  4422. if ((Original_City == null)) {
  4423. throw new global::System.ArgumentNullException("Original_City");
  4424. }
  4425. else {
  4426. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_City));
  4427. }
  4428. if ((Original_Street == null)) {
  4429. throw new global::System.ArgumentNullException("Original_Street");
  4430. }
  4431. else {
  4432. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_Street));
  4433. }
  4434. this.Adapter.DeleteCommand.Parameters[4].Value = ((byte)(Original_Home));
  4435. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4436. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4437. != global::System.Data.ConnectionState.Open)) {
  4438. this.Adapter.DeleteCommand.Connection.Open();
  4439. }
  4440. try {
  4441. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4442. return returnValue;
  4443. }
  4444. finally {
  4445. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4446. this.Adapter.DeleteCommand.Connection.Close();
  4447. }
  4448. }
  4449. }
  4450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4452. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4453. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4454. public virtual int Insert(int Index, string City, string Street, byte Home) {
  4455. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Index));
  4456. if ((City == null)) {
  4457. throw new global::System.ArgumentNullException("City");
  4458. }
  4459. else {
  4460. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(City));
  4461. }
  4462. if ((Street == null)) {
  4463. throw new global::System.ArgumentNullException("Street");
  4464. }
  4465. else {
  4466. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Street));
  4467. }
  4468. this.Adapter.InsertCommand.Parameters[3].Value = ((byte)(Home));
  4469. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4470. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4471. != global::System.Data.ConnectionState.Open)) {
  4472. this.Adapter.InsertCommand.Connection.Open();
  4473. }
  4474. try {
  4475. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4476. return returnValue;
  4477. }
  4478. finally {
  4479. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4480. this.Adapter.InsertCommand.Connection.Close();
  4481. }
  4482. }
  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. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4488. public virtual int Update(int Index, string City, string Street, byte Home, byte Original_Id, int Original_Index, string Original_City, string Original_Street, byte Original_Home, byte Id) {
  4489. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(Index));
  4490. if ((City == null)) {
  4491. throw new global::System.ArgumentNullException("City");
  4492. }
  4493. else {
  4494. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(City));
  4495. }
  4496. if ((Street == null)) {
  4497. throw new global::System.ArgumentNullException("Street");
  4498. }
  4499. else {
  4500. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Street));
  4501. }
  4502. this.Adapter.UpdateCommand.Parameters[3].Value = ((byte)(Home));
  4503. this.Adapter.UpdateCommand.Parameters[4].Value = ((byte)(Original_Id));
  4504. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_Index));
  4505. if ((Original_City == null)) {
  4506. throw new global::System.ArgumentNullException("Original_City");
  4507. }
  4508. else {
  4509. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_City));
  4510. }
  4511. if ((Original_Street == null)) {
  4512. throw new global::System.ArgumentNullException("Original_Street");
  4513. }
  4514. else {
  4515. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Street));
  4516. }
  4517. this.Adapter.UpdateCommand.Parameters[8].Value = ((byte)(Original_Home));
  4518. this.Adapter.UpdateCommand.Parameters[9].Value = ((byte)(Id));
  4519. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4520. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4521. != global::System.Data.ConnectionState.Open)) {
  4522. this.Adapter.UpdateCommand.Connection.Open();
  4523. }
  4524. try {
  4525. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4526. return returnValue;
  4527. }
  4528. finally {
  4529. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4530. this.Adapter.UpdateCommand.Connection.Close();
  4531. }
  4532. }
  4533. }
  4534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4536. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4537. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4538. public virtual int Update(int Index, string City, string Street, byte Home, byte Original_Id, int Original_Index, string Original_City, string Original_Street, byte Original_Home) {
  4539. return this.Update(Index, City, Street, Home, Original_Id, Original_Index, Original_City, Original_Street, Original_Home, Original_Id);
  4540. }
  4541. }
  4542. /// <summary>
  4543. ///Represents the connection and commands used to retrieve and save data.
  4544. ///</summary>
  4545. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4546. [global::System.ComponentModel.ToolboxItem(true)]
  4547. [global::System.ComponentModel.DataObjectAttribute(true)]
  4548. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4549. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4550. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4551. public partial class RoleTableAdapter : global::System.ComponentModel.Component {
  4552. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4553. private global::System.Data.SqlClient.SqlConnection _connection;
  4554. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4555. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4556. private bool _clearBeforeFill;
  4557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4559. public RoleTableAdapter() {
  4560. this.ClearBeforeFill = true;
  4561. }
  4562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4564. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4565. get {
  4566. if ((this._adapter == null)) {
  4567. this.InitAdapter();
  4568. }
  4569. return this._adapter;
  4570. }
  4571. }
  4572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4574. internal global::System.Data.SqlClient.SqlConnection Connection {
  4575. get {
  4576. if ((this._connection == null)) {
  4577. this.InitConnection();
  4578. }
  4579. return this._connection;
  4580. }
  4581. set {
  4582. this._connection = value;
  4583. if ((this.Adapter.InsertCommand != null)) {
  4584. this.Adapter.InsertCommand.Connection = value;
  4585. }
  4586. if ((this.Adapter.DeleteCommand != null)) {
  4587. this.Adapter.DeleteCommand.Connection = value;
  4588. }
  4589. if ((this.Adapter.UpdateCommand != null)) {
  4590. this.Adapter.UpdateCommand.Connection = value;
  4591. }
  4592. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4593. if ((this.CommandCollection[i] != null)) {
  4594. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4595. }
  4596. }
  4597. }
  4598. }
  4599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4600. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4601. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4602. get {
  4603. return this._transaction;
  4604. }
  4605. set {
  4606. this._transaction = value;
  4607. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4608. this.CommandCollection[i].Transaction = this._transaction;
  4609. }
  4610. if (((this.Adapter != null)
  4611. && (this.Adapter.DeleteCommand != null))) {
  4612. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4613. }
  4614. if (((this.Adapter != null)
  4615. && (this.Adapter.InsertCommand != null))) {
  4616. this.Adapter.InsertCommand.Transaction = this._transaction;
  4617. }
  4618. if (((this.Adapter != null)
  4619. && (this.Adapter.UpdateCommand != null))) {
  4620. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4621. }
  4622. }
  4623. }
  4624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4626. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4627. get {
  4628. if ((this._commandCollection == null)) {
  4629. this.InitCommandCollection();
  4630. }
  4631. return this._commandCollection;
  4632. }
  4633. }
  4634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4636. public bool ClearBeforeFill {
  4637. get {
  4638. return this._clearBeforeFill;
  4639. }
  4640. set {
  4641. this._clearBeforeFill = value;
  4642. }
  4643. }
  4644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4646. private void InitAdapter() {
  4647. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4648. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4649. tableMapping.SourceTable = "Table";
  4650. tableMapping.DataSetTable = "Role";
  4651. tableMapping.ColumnMappings.Add("RoleID", "RoleID");
  4652. tableMapping.ColumnMappings.Add("RoleName", "RoleName");
  4653. this._adapter.TableMappings.Add(tableMapping);
  4654. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4655. this._adapter.DeleteCommand.Connection = this.Connection;
  4656. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Role] WHERE (([RoleID] = @Original_RoleID) AND ([RoleName] = @" +
  4657. "Original_RoleName))";
  4658. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4659. 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, "", "", ""));
  4660. 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, "", "", ""));
  4661. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4662. this._adapter.InsertCommand.Connection = this.Connection;
  4663. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Role] ([RoleName]) VALUES (@RoleName);\r\nSELECT RoleID, RoleNam" +
  4664. "e FROM Role WHERE (RoleID = SCOPE_IDENTITY())";
  4665. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4666. 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, "", "", ""));
  4667. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4668. this._adapter.UpdateCommand.Connection = this.Connection;
  4669. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Role] SET [RoleName] = @RoleName WHERE (([RoleID] = @Original_RoleI" +
  4670. "D) AND ([RoleName] = @Original_RoleName));\r\nSELECT RoleID, RoleName FROM Role WH" +
  4671. "ERE (RoleID = @RoleID)";
  4672. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4673. 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, "", "", ""));
  4674. 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, "", "", ""));
  4675. 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, "", "", ""));
  4676. 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, "", "", ""));
  4677. }
  4678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4680. private void InitConnection() {
  4681. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4682. this._connection.ConnectionString = global::OsadchiStr.Properties.Settings.Default._05TradeConnectionString;
  4683. }
  4684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4686. private void InitCommandCollection() {
  4687. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4688. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4689. this._commandCollection[0].Connection = this.Connection;
  4690. this._commandCollection[0].CommandText = "SELECT RoleID, RoleName FROM dbo.Role";
  4691. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4692. }
  4693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4695. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4696. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4697. public virtual int Fill(_05TradeDataSet.RoleDataTable dataTable) {
  4698. this.Adapter.SelectCommand = this.CommandCollection[0];
  4699. if ((this.ClearBeforeFill == true)) {
  4700. dataTable.Clear();
  4701. }
  4702. int returnValue = this.Adapter.Fill(dataTable);
  4703. return returnValue;
  4704. }
  4705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4707. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4708. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4709. public virtual _05TradeDataSet.RoleDataTable GetData() {
  4710. this.Adapter.SelectCommand = this.CommandCollection[0];
  4711. _05TradeDataSet.RoleDataTable dataTable = new _05TradeDataSet.RoleDataTable();
  4712. this.Adapter.Fill(dataTable);
  4713. return dataTable;
  4714. }
  4715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4717. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4718. public virtual int Update(_05TradeDataSet.RoleDataTable dataTable) {
  4719. return this.Adapter.Update(dataTable);
  4720. }
  4721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4723. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4724. public virtual int Update(_05TradeDataSet dataSet) {
  4725. return this.Adapter.Update(dataSet, "Role");
  4726. }
  4727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4729. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4730. public virtual int Update(global::System.Data.DataRow dataRow) {
  4731. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4732. dataRow});
  4733. }
  4734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4736. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4737. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4738. return this.Adapter.Update(dataRows);
  4739. }
  4740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4742. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4743. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4744. public virtual int Delete(int Original_RoleID, string Original_RoleName) {
  4745. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_RoleID));
  4746. if ((Original_RoleName == null)) {
  4747. throw new global::System.ArgumentNullException("Original_RoleName");
  4748. }
  4749. else {
  4750. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_RoleName));
  4751. }
  4752. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4753. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4754. != global::System.Data.ConnectionState.Open)) {
  4755. this.Adapter.DeleteCommand.Connection.Open();
  4756. }
  4757. try {
  4758. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4759. return returnValue;
  4760. }
  4761. finally {
  4762. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4763. this.Adapter.DeleteCommand.Connection.Close();
  4764. }
  4765. }
  4766. }
  4767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4769. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4770. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4771. public virtual int Insert(string RoleName) {
  4772. if ((RoleName == null)) {
  4773. throw new global::System.ArgumentNullException("RoleName");
  4774. }
  4775. else {
  4776. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(RoleName));
  4777. }
  4778. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4779. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4780. != global::System.Data.ConnectionState.Open)) {
  4781. this.Adapter.InsertCommand.Connection.Open();
  4782. }
  4783. try {
  4784. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4785. return returnValue;
  4786. }
  4787. finally {
  4788. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4789. this.Adapter.InsertCommand.Connection.Close();
  4790. }
  4791. }
  4792. }
  4793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4795. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4796. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4797. public virtual int Update(string RoleName, int Original_RoleID, string Original_RoleName, int RoleID) {
  4798. if ((RoleName == null)) {
  4799. throw new global::System.ArgumentNullException("RoleName");
  4800. }
  4801. else {
  4802. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(RoleName));
  4803. }
  4804. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_RoleID));
  4805. if ((Original_RoleName == null)) {
  4806. throw new global::System.ArgumentNullException("Original_RoleName");
  4807. }
  4808. else {
  4809. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_RoleName));
  4810. }
  4811. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(RoleID));
  4812. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4813. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4814. != global::System.Data.ConnectionState.Open)) {
  4815. this.Adapter.UpdateCommand.Connection.Open();
  4816. }
  4817. try {
  4818. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4819. return returnValue;
  4820. }
  4821. finally {
  4822. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4823. this.Adapter.UpdateCommand.Connection.Close();
  4824. }
  4825. }
  4826. }
  4827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4829. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4830. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4831. public virtual int Update(string RoleName, int Original_RoleID, string Original_RoleName) {
  4832. return this.Update(RoleName, Original_RoleID, Original_RoleName, Original_RoleID);
  4833. }
  4834. }
  4835. /// <summary>
  4836. ///Represents the connection and commands used to retrieve and save data.
  4837. ///</summary>
  4838. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4839. [global::System.ComponentModel.ToolboxItem(true)]
  4840. [global::System.ComponentModel.DataObjectAttribute(true)]
  4841. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4842. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4843. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4844. public partial class UserTableAdapter : global::System.ComponentModel.Component {
  4845. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4846. private global::System.Data.SqlClient.SqlConnection _connection;
  4847. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4848. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4849. private bool _clearBeforeFill;
  4850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4852. public UserTableAdapter() {
  4853. this.ClearBeforeFill = true;
  4854. }
  4855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4857. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4858. get {
  4859. if ((this._adapter == null)) {
  4860. this.InitAdapter();
  4861. }
  4862. return this._adapter;
  4863. }
  4864. }
  4865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4867. internal global::System.Data.SqlClient.SqlConnection Connection {
  4868. get {
  4869. if ((this._connection == null)) {
  4870. this.InitConnection();
  4871. }
  4872. return this._connection;
  4873. }
  4874. set {
  4875. this._connection = value;
  4876. if ((this.Adapter.InsertCommand != null)) {
  4877. this.Adapter.InsertCommand.Connection = value;
  4878. }
  4879. if ((this.Adapter.DeleteCommand != null)) {
  4880. this.Adapter.DeleteCommand.Connection = value;
  4881. }
  4882. if ((this.Adapter.UpdateCommand != null)) {
  4883. this.Adapter.UpdateCommand.Connection = value;
  4884. }
  4885. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4886. if ((this.CommandCollection[i] != null)) {
  4887. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4888. }
  4889. }
  4890. }
  4891. }
  4892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4894. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4895. get {
  4896. return this._transaction;
  4897. }
  4898. set {
  4899. this._transaction = value;
  4900. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4901. this.CommandCollection[i].Transaction = this._transaction;
  4902. }
  4903. if (((this.Adapter != null)
  4904. && (this.Adapter.DeleteCommand != null))) {
  4905. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4906. }
  4907. if (((this.Adapter != null)
  4908. && (this.Adapter.InsertCommand != null))) {
  4909. this.Adapter.InsertCommand.Transaction = this._transaction;
  4910. }
  4911. if (((this.Adapter != null)
  4912. && (this.Adapter.UpdateCommand != null))) {
  4913. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4914. }
  4915. }
  4916. }
  4917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4919. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4920. get {
  4921. if ((this._commandCollection == null)) {
  4922. this.InitCommandCollection();
  4923. }
  4924. return this._commandCollection;
  4925. }
  4926. }
  4927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4929. public bool ClearBeforeFill {
  4930. get {
  4931. return this._clearBeforeFill;
  4932. }
  4933. set {
  4934. this._clearBeforeFill = value;
  4935. }
  4936. }
  4937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4939. private void InitAdapter() {
  4940. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4941. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4942. tableMapping.SourceTable = "Table";
  4943. tableMapping.DataSetTable = "User";
  4944. tableMapping.ColumnMappings.Add("UserID", "UserID");
  4945. tableMapping.ColumnMappings.Add("UserSurname", "UserSurname");
  4946. tableMapping.ColumnMappings.Add("UserName", "UserName");
  4947. tableMapping.ColumnMappings.Add("UserPatronymic", "UserPatronymic");
  4948. tableMapping.ColumnMappings.Add("UserLogin", "UserLogin");
  4949. tableMapping.ColumnMappings.Add("UserPassword", "UserPassword");
  4950. tableMapping.ColumnMappings.Add("UserRole", "UserRole");
  4951. this._adapter.TableMappings.Add(tableMapping);
  4952. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4953. this._adapter.DeleteCommand.Connection = this.Connection;
  4954. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[User] WHERE (([UserID] = @Original_UserID) AND ([UserSurname] " +
  4955. "= @Original_UserSurname) AND ([UserName] = @Original_UserName) AND ([UserPatrony" +
  4956. "mic] = @Original_UserPatronymic) AND ([UserRole] = @Original_UserRole))";
  4957. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4958. 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, "", "", ""));
  4959. 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, "", "", ""));
  4960. 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, "", "", ""));
  4961. 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, "", "", ""));
  4962. 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, "", "", ""));
  4963. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4964. this._adapter.InsertCommand.Connection = this.Connection;
  4965. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[User] ([UserSurname], [UserName], [UserPatronymic], [UserLogin], [UserPassword], [UserRole]) VALUES (@UserSurname, @UserName, @UserPatronymic, @UserLogin, @UserPassword, @UserRole);
  4966. SELECT UserID, UserSurname, UserName, UserPatronymic, UserLogin, UserPassword, UserRole FROM [User] WHERE (UserID = SCOPE_IDENTITY())";
  4967. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4968. 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, "", "", ""));
  4969. 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, "", "", ""));
  4970. 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, "", "", ""));
  4971. 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, "", "", ""));
  4972. 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, "", "", ""));
  4973. 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, "", "", ""));
  4974. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4975. this._adapter.UpdateCommand.Connection = this.Connection;
  4976. 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));
  4977. SELECT UserID, UserSurname, UserName, UserPatronymic, UserLogin, UserPassword, UserRole FROM [User] WHERE (UserID = @UserID)";
  4978. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4979. 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, "", "", ""));
  4980. 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, "", "", ""));
  4981. 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, "", "", ""));
  4982. 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, "", "", ""));
  4983. 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, "", "", ""));
  4984. 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, "", "", ""));
  4985. 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, "", "", ""));
  4986. 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, "", "", ""));
  4987. 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, "", "", ""));
  4988. 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, "", "", ""));
  4989. 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, "", "", ""));
  4990. 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, "", "", ""));
  4991. }
  4992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4994. private void InitConnection() {
  4995. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4996. this._connection.ConnectionString = global::OsadchiStr.Properties.Settings.Default._05TradeConnectionString;
  4997. }
  4998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5000. private void InitCommandCollection() {
  5001. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5002. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5003. this._commandCollection[0].Connection = this.Connection;
  5004. this._commandCollection[0].CommandText = "SELECT UserID, UserSurname, UserName, UserPatronymic, UserLogin, UserPassword, Us" +
  5005. "erRole FROM dbo.[User]";
  5006. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5007. }
  5008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5010. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5011. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5012. public virtual int Fill(_05TradeDataSet.UserDataTable dataTable) {
  5013. this.Adapter.SelectCommand = this.CommandCollection[0];
  5014. if ((this.ClearBeforeFill == true)) {
  5015. dataTable.Clear();
  5016. }
  5017. int returnValue = this.Adapter.Fill(dataTable);
  5018. return returnValue;
  5019. }
  5020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5022. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5023. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5024. public virtual _05TradeDataSet.UserDataTable GetData() {
  5025. this.Adapter.SelectCommand = this.CommandCollection[0];
  5026. _05TradeDataSet.UserDataTable dataTable = new _05TradeDataSet.UserDataTable();
  5027. this.Adapter.Fill(dataTable);
  5028. return dataTable;
  5029. }
  5030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5032. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5033. public virtual int Update(_05TradeDataSet.UserDataTable dataTable) {
  5034. return this.Adapter.Update(dataTable);
  5035. }
  5036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5038. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5039. public virtual int Update(_05TradeDataSet dataSet) {
  5040. return this.Adapter.Update(dataSet, "User");
  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. public virtual int Update(global::System.Data.DataRow dataRow) {
  5046. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5047. dataRow});
  5048. }
  5049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5051. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5052. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5053. return this.Adapter.Update(dataRows);
  5054. }
  5055. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5056. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5057. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5058. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5059. public virtual int Delete(int Original_UserID, string Original_UserSurname, string Original_UserName, string Original_UserPatronymic, int Original_UserRole) {
  5060. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_UserID));
  5061. if ((Original_UserSurname == null)) {
  5062. throw new global::System.ArgumentNullException("Original_UserSurname");
  5063. }
  5064. else {
  5065. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_UserSurname));
  5066. }
  5067. if ((Original_UserName == null)) {
  5068. throw new global::System.ArgumentNullException("Original_UserName");
  5069. }
  5070. else {
  5071. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_UserName));
  5072. }
  5073. if ((Original_UserPatronymic == null)) {
  5074. throw new global::System.ArgumentNullException("Original_UserPatronymic");
  5075. }
  5076. else {
  5077. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_UserPatronymic));
  5078. }
  5079. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_UserRole));
  5080. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5081. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5082. != global::System.Data.ConnectionState.Open)) {
  5083. this.Adapter.DeleteCommand.Connection.Open();
  5084. }
  5085. try {
  5086. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5087. return returnValue;
  5088. }
  5089. finally {
  5090. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5091. this.Adapter.DeleteCommand.Connection.Close();
  5092. }
  5093. }
  5094. }
  5095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5097. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5098. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5099. public virtual int Insert(string UserSurname, string UserName, string UserPatronymic, string UserLogin, string UserPassword, int UserRole) {
  5100. if ((UserSurname == null)) {
  5101. throw new global::System.ArgumentNullException("UserSurname");
  5102. }
  5103. else {
  5104. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(UserSurname));
  5105. }
  5106. if ((UserName == null)) {
  5107. throw new global::System.ArgumentNullException("UserName");
  5108. }
  5109. else {
  5110. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(UserName));
  5111. }
  5112. if ((UserPatronymic == null)) {
  5113. throw new global::System.ArgumentNullException("UserPatronymic");
  5114. }
  5115. else {
  5116. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(UserPatronymic));
  5117. }
  5118. if ((UserLogin == null)) {
  5119. throw new global::System.ArgumentNullException("UserLogin");
  5120. }
  5121. else {
  5122. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(UserLogin));
  5123. }
  5124. if ((UserPassword == null)) {
  5125. throw new global::System.ArgumentNullException("UserPassword");
  5126. }
  5127. else {
  5128. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(UserPassword));
  5129. }
  5130. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(UserRole));
  5131. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5132. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5133. != global::System.Data.ConnectionState.Open)) {
  5134. this.Adapter.InsertCommand.Connection.Open();
  5135. }
  5136. try {
  5137. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5138. return returnValue;
  5139. }
  5140. finally {
  5141. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5142. this.Adapter.InsertCommand.Connection.Close();
  5143. }
  5144. }
  5145. }
  5146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5147. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5148. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5149. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5150. 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) {
  5151. if ((UserSurname == null)) {
  5152. throw new global::System.ArgumentNullException("UserSurname");
  5153. }
  5154. else {
  5155. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(UserSurname));
  5156. }
  5157. if ((UserName == null)) {
  5158. throw new global::System.ArgumentNullException("UserName");
  5159. }
  5160. else {
  5161. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(UserName));
  5162. }
  5163. if ((UserPatronymic == null)) {
  5164. throw new global::System.ArgumentNullException("UserPatronymic");
  5165. }
  5166. else {
  5167. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(UserPatronymic));
  5168. }
  5169. if ((UserLogin == null)) {
  5170. throw new global::System.ArgumentNullException("UserLogin");
  5171. }
  5172. else {
  5173. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(UserLogin));
  5174. }
  5175. if ((UserPassword == null)) {
  5176. throw new global::System.ArgumentNullException("UserPassword");
  5177. }
  5178. else {
  5179. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(UserPassword));
  5180. }
  5181. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(UserRole));
  5182. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_UserID));
  5183. if ((Original_UserSurname == null)) {
  5184. throw new global::System.ArgumentNullException("Original_UserSurname");
  5185. }
  5186. else {
  5187. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_UserSurname));
  5188. }
  5189. if ((Original_UserName == null)) {
  5190. throw new global::System.ArgumentNullException("Original_UserName");
  5191. }
  5192. else {
  5193. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_UserName));
  5194. }
  5195. if ((Original_UserPatronymic == null)) {
  5196. throw new global::System.ArgumentNullException("Original_UserPatronymic");
  5197. }
  5198. else {
  5199. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_UserPatronymic));
  5200. }
  5201. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_UserRole));
  5202. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(UserID));
  5203. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5204. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5205. != global::System.Data.ConnectionState.Open)) {
  5206. this.Adapter.UpdateCommand.Connection.Open();
  5207. }
  5208. try {
  5209. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5210. return returnValue;
  5211. }
  5212. finally {
  5213. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5214. this.Adapter.UpdateCommand.Connection.Close();
  5215. }
  5216. }
  5217. }
  5218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5220. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5221. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5222. 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) {
  5223. return this.Update(UserSurname, UserName, UserPatronymic, UserLogin, UserPassword, UserRole, Original_UserID, Original_UserSurname, Original_UserName, Original_UserPatronymic, Original_UserRole, Original_UserID);
  5224. }
  5225. }
  5226. /// <summary>
  5227. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  5228. ///</summary>
  5229. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5230. [global::System.ComponentModel.ToolboxItem(true)]
  5231. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  5232. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5233. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  5234. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  5235. private UpdateOrderOption _updateOrder;
  5236. private OrderTableAdapter _orderTableAdapter;
  5237. private OrderProductTableAdapter _orderProductTableAdapter;
  5238. private ProductTableAdapter _productTableAdapter;
  5239. private pynkt_vidachi_importTableAdapter _pynkt_vidachi_importTableAdapter;
  5240. private RoleTableAdapter _roleTableAdapter;
  5241. private UserTableAdapter _userTableAdapter;
  5242. private bool _backupDataSetBeforeUpdate;
  5243. private global::System.Data.IDbConnection _connection;
  5244. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5245. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5246. public UpdateOrderOption UpdateOrder {
  5247. get {
  5248. return this._updateOrder;
  5249. }
  5250. set {
  5251. this._updateOrder = value;
  5252. }
  5253. }
  5254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5255. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5256. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  5257. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  5258. "a", "System.Drawing.Design.UITypeEditor")]
  5259. public OrderTableAdapter OrderTableAdapter {
  5260. get {
  5261. return this._orderTableAdapter;
  5262. }
  5263. set {
  5264. this._orderTableAdapter = value;
  5265. }
  5266. }
  5267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5269. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  5270. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  5271. "a", "System.Drawing.Design.UITypeEditor")]
  5272. public OrderProductTableAdapter OrderProductTableAdapter {
  5273. get {
  5274. return this._orderProductTableAdapter;
  5275. }
  5276. set {
  5277. this._orderProductTableAdapter = value;
  5278. }
  5279. }
  5280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5282. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  5283. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  5284. "a", "System.Drawing.Design.UITypeEditor")]
  5285. public ProductTableAdapter ProductTableAdapter {
  5286. get {
  5287. return this._productTableAdapter;
  5288. }
  5289. set {
  5290. this._productTableAdapter = value;
  5291. }
  5292. }
  5293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5295. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  5296. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  5297. "a", "System.Drawing.Design.UITypeEditor")]
  5298. public pynkt_vidachi_importTableAdapter pynkt_vidachi_importTableAdapter {
  5299. get {
  5300. return this._pynkt_vidachi_importTableAdapter;
  5301. }
  5302. set {
  5303. this._pynkt_vidachi_importTableAdapter = value;
  5304. }
  5305. }
  5306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5308. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  5309. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  5310. "a", "System.Drawing.Design.UITypeEditor")]
  5311. public RoleTableAdapter RoleTableAdapter {
  5312. get {
  5313. return this._roleTableAdapter;
  5314. }
  5315. set {
  5316. this._roleTableAdapter = value;
  5317. }
  5318. }
  5319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5321. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  5322. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  5323. "a", "System.Drawing.Design.UITypeEditor")]
  5324. public UserTableAdapter UserTableAdapter {
  5325. get {
  5326. return this._userTableAdapter;
  5327. }
  5328. set {
  5329. this._userTableAdapter = value;
  5330. }
  5331. }
  5332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5334. public bool BackupDataSetBeforeUpdate {
  5335. get {
  5336. return this._backupDataSetBeforeUpdate;
  5337. }
  5338. set {
  5339. this._backupDataSetBeforeUpdate = value;
  5340. }
  5341. }
  5342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5344. [global::System.ComponentModel.Browsable(false)]
  5345. public global::System.Data.IDbConnection Connection {
  5346. get {
  5347. if ((this._connection != null)) {
  5348. return this._connection;
  5349. }
  5350. if (((this._orderTableAdapter != null)
  5351. && (this._orderTableAdapter.Connection != null))) {
  5352. return this._orderTableAdapter.Connection;
  5353. }
  5354. if (((this._orderProductTableAdapter != null)
  5355. && (this._orderProductTableAdapter.Connection != null))) {
  5356. return this._orderProductTableAdapter.Connection;
  5357. }
  5358. if (((this._productTableAdapter != null)
  5359. && (this._productTableAdapter.Connection != null))) {
  5360. return this._productTableAdapter.Connection;
  5361. }
  5362. if (((this._pynkt_vidachi_importTableAdapter != null)
  5363. && (this._pynkt_vidachi_importTableAdapter.Connection != null))) {
  5364. return this._pynkt_vidachi_importTableAdapter.Connection;
  5365. }
  5366. if (((this._roleTableAdapter != null)
  5367. && (this._roleTableAdapter.Connection != null))) {
  5368. return this._roleTableAdapter.Connection;
  5369. }
  5370. if (((this._userTableAdapter != null)
  5371. && (this._userTableAdapter.Connection != null))) {
  5372. return this._userTableAdapter.Connection;
  5373. }
  5374. return null;
  5375. }
  5376. set {
  5377. this._connection = value;
  5378. }
  5379. }
  5380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5382. [global::System.ComponentModel.Browsable(false)]
  5383. public int TableAdapterInstanceCount {
  5384. get {
  5385. int count = 0;
  5386. if ((this._orderTableAdapter != null)) {
  5387. count = (count + 1);
  5388. }
  5389. if ((this._orderProductTableAdapter != null)) {
  5390. count = (count + 1);
  5391. }
  5392. if ((this._productTableAdapter != null)) {
  5393. count = (count + 1);
  5394. }
  5395. if ((this._pynkt_vidachi_importTableAdapter != null)) {
  5396. count = (count + 1);
  5397. }
  5398. if ((this._roleTableAdapter != null)) {
  5399. count = (count + 1);
  5400. }
  5401. if ((this._userTableAdapter != null)) {
  5402. count = (count + 1);
  5403. }
  5404. return count;
  5405. }
  5406. }
  5407. /// <summary>
  5408. ///Update rows in top-down order.
  5409. ///</summary>
  5410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5412. private int UpdateUpdatedRows(_05TradeDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  5413. int result = 0;
  5414. if ((this._pynkt_vidachi_importTableAdapter != null)) {
  5415. global::System.Data.DataRow[] updatedRows = dataSet.pynkt_vidachi_import.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  5416. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  5417. if (((updatedRows != null)
  5418. && (0 < updatedRows.Length))) {
  5419. result = (result + this._pynkt_vidachi_importTableAdapter.Update(updatedRows));
  5420. allChangedRows.AddRange(updatedRows);
  5421. }
  5422. }
  5423. if ((this._roleTableAdapter != null)) {
  5424. global::System.Data.DataRow[] updatedRows = dataSet.Role.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  5425. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  5426. if (((updatedRows != null)
  5427. && (0 < updatedRows.Length))) {
  5428. result = (result + this._roleTableAdapter.Update(updatedRows));
  5429. allChangedRows.AddRange(updatedRows);
  5430. }
  5431. }
  5432. if ((this._orderTableAdapter != null)) {
  5433. global::System.Data.DataRow[] updatedRows = dataSet.Order.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  5434. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  5435. if (((updatedRows != null)
  5436. && (0 < updatedRows.Length))) {
  5437. result = (result + this._orderTableAdapter.Update(updatedRows));
  5438. allChangedRows.AddRange(updatedRows);
  5439. }
  5440. }
  5441. if ((this._orderProductTableAdapter != null)) {
  5442. global::System.Data.DataRow[] updatedRows = dataSet.OrderProduct.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  5443. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  5444. if (((updatedRows != null)
  5445. && (0 < updatedRows.Length))) {
  5446. result = (result + this._orderProductTableAdapter.Update(updatedRows));
  5447. allChangedRows.AddRange(updatedRows);
  5448. }
  5449. }
  5450. if ((this._productTableAdapter != null)) {
  5451. global::System.Data.DataRow[] updatedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  5452. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  5453. if (((updatedRows != null)
  5454. && (0 < updatedRows.Length))) {
  5455. result = (result + this._productTableAdapter.Update(updatedRows));
  5456. allChangedRows.AddRange(updatedRows);
  5457. }
  5458. }
  5459. if ((this._userTableAdapter != null)) {
  5460. global::System.Data.DataRow[] updatedRows = dataSet.User.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  5461. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  5462. if (((updatedRows != null)
  5463. && (0 < updatedRows.Length))) {
  5464. result = (result + this._userTableAdapter.Update(updatedRows));
  5465. allChangedRows.AddRange(updatedRows);
  5466. }
  5467. }
  5468. return result;
  5469. }
  5470. /// <summary>
  5471. ///Insert rows in top-down order.
  5472. ///</summary>
  5473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5475. private int UpdateInsertedRows(_05TradeDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  5476. int result = 0;
  5477. if ((this._pynkt_vidachi_importTableAdapter != null)) {
  5478. global::System.Data.DataRow[] addedRows = dataSet.pynkt_vidachi_import.Select(null, null, global::System.Data.DataViewRowState.Added);
  5479. if (((addedRows != null)
  5480. && (0 < addedRows.Length))) {
  5481. result = (result + this._pynkt_vidachi_importTableAdapter.Update(addedRows));
  5482. allAddedRows.AddRange(addedRows);
  5483. }
  5484. }
  5485. if ((this._roleTableAdapter != null)) {
  5486. global::System.Data.DataRow[] addedRows = dataSet.Role.Select(null, null, global::System.Data.DataViewRowState.Added);
  5487. if (((addedRows != null)
  5488. && (0 < addedRows.Length))) {
  5489. result = (result + this._roleTableAdapter.Update(addedRows));
  5490. allAddedRows.AddRange(addedRows);
  5491. }
  5492. }
  5493. if ((this._orderTableAdapter != null)) {
  5494. global::System.Data.DataRow[] addedRows = dataSet.Order.Select(null, null, global::System.Data.DataViewRowState.Added);
  5495. if (((addedRows != null)
  5496. && (0 < addedRows.Length))) {
  5497. result = (result + this._orderTableAdapter.Update(addedRows));
  5498. allAddedRows.AddRange(addedRows);
  5499. }
  5500. }
  5501. if ((this._orderProductTableAdapter != null)) {
  5502. global::System.Data.DataRow[] addedRows = dataSet.OrderProduct.Select(null, null, global::System.Data.DataViewRowState.Added);
  5503. if (((addedRows != null)
  5504. && (0 < addedRows.Length))) {
  5505. result = (result + this._orderProductTableAdapter.Update(addedRows));
  5506. allAddedRows.AddRange(addedRows);
  5507. }
  5508. }
  5509. if ((this._productTableAdapter != null)) {
  5510. global::System.Data.DataRow[] addedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Added);
  5511. if (((addedRows != null)
  5512. && (0 < addedRows.Length))) {
  5513. result = (result + this._productTableAdapter.Update(addedRows));
  5514. allAddedRows.AddRange(addedRows);
  5515. }
  5516. }
  5517. if ((this._userTableAdapter != null)) {
  5518. global::System.Data.DataRow[] addedRows = dataSet.User.Select(null, null, global::System.Data.DataViewRowState.Added);
  5519. if (((addedRows != null)
  5520. && (0 < addedRows.Length))) {
  5521. result = (result + this._userTableAdapter.Update(addedRows));
  5522. allAddedRows.AddRange(addedRows);
  5523. }
  5524. }
  5525. return result;
  5526. }
  5527. /// <summary>
  5528. ///Delete rows in bottom-up order.
  5529. ///</summary>
  5530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5532. private int UpdateDeletedRows(_05TradeDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  5533. int result = 0;
  5534. if ((this._userTableAdapter != null)) {
  5535. global::System.Data.DataRow[] deletedRows = dataSet.User.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  5536. if (((deletedRows != null)
  5537. && (0 < deletedRows.Length))) {
  5538. result = (result + this._userTableAdapter.Update(deletedRows));
  5539. allChangedRows.AddRange(deletedRows);
  5540. }
  5541. }
  5542. if ((this._productTableAdapter != null)) {
  5543. global::System.Data.DataRow[] deletedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  5544. if (((deletedRows != null)
  5545. && (0 < deletedRows.Length))) {
  5546. result = (result + this._productTableAdapter.Update(deletedRows));
  5547. allChangedRows.AddRange(deletedRows);
  5548. }
  5549. }
  5550. if ((this._orderProductTableAdapter != null)) {
  5551. global::System.Data.DataRow[] deletedRows = dataSet.OrderProduct.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  5552. if (((deletedRows != null)
  5553. && (0 < deletedRows.Length))) {
  5554. result = (result + this._orderProductTableAdapter.Update(deletedRows));
  5555. allChangedRows.AddRange(deletedRows);
  5556. }
  5557. }
  5558. if ((this._orderTableAdapter != null)) {
  5559. global::System.Data.DataRow[] deletedRows = dataSet.Order.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  5560. if (((deletedRows != null)
  5561. && (0 < deletedRows.Length))) {
  5562. result = (result + this._orderTableAdapter.Update(deletedRows));
  5563. allChangedRows.AddRange(deletedRows);
  5564. }
  5565. }
  5566. if ((this._roleTableAdapter != null)) {
  5567. global::System.Data.DataRow[] deletedRows = dataSet.Role.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  5568. if (((deletedRows != null)
  5569. && (0 < deletedRows.Length))) {
  5570. result = (result + this._roleTableAdapter.Update(deletedRows));
  5571. allChangedRows.AddRange(deletedRows);
  5572. }
  5573. }
  5574. if ((this._pynkt_vidachi_importTableAdapter != null)) {
  5575. global::System.Data.DataRow[] deletedRows = dataSet.pynkt_vidachi_import.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  5576. if (((deletedRows != null)
  5577. && (0 < deletedRows.Length))) {
  5578. result = (result + this._pynkt_vidachi_importTableAdapter.Update(deletedRows));
  5579. allChangedRows.AddRange(deletedRows);
  5580. }
  5581. }
  5582. return result;
  5583. }
  5584. /// <summary>
  5585. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  5586. ///</summary>
  5587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5589. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  5590. if (((updatedRows == null)
  5591. || (updatedRows.Length < 1))) {
  5592. return updatedRows;
  5593. }
  5594. if (((allAddedRows == null)
  5595. || (allAddedRows.Count < 1))) {
  5596. return updatedRows;
  5597. }
  5598. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  5599. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  5600. global::System.Data.DataRow row = updatedRows[i];
  5601. if ((allAddedRows.Contains(row) == false)) {
  5602. realUpdatedRows.Add(row);
  5603. }
  5604. }
  5605. return realUpdatedRows.ToArray();
  5606. }
  5607. /// <summary>
  5608. ///Update all changes to the dataset.
  5609. ///</summary>
  5610. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5611. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5612. public virtual int UpdateAll(_05TradeDataSet dataSet) {
  5613. if ((dataSet == null)) {
  5614. throw new global::System.ArgumentNullException("dataSet");
  5615. }
  5616. if ((dataSet.HasChanges() == false)) {
  5617. return 0;
  5618. }
  5619. if (((this._orderTableAdapter != null)
  5620. && (this.MatchTableAdapterConnection(this._orderTableAdapter.Connection) == false))) {
  5621. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  5622. "r, должны использовать одинаковую строку подключения.");
  5623. }
  5624. if (((this._orderProductTableAdapter != null)
  5625. && (this.MatchTableAdapterConnection(this._orderProductTableAdapter.Connection) == false))) {
  5626. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  5627. "r, должны использовать одинаковую строку подключения.");
  5628. }
  5629. if (((this._productTableAdapter != null)
  5630. && (this.MatchTableAdapterConnection(this._productTableAdapter.Connection) == false))) {
  5631. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  5632. "r, должны использовать одинаковую строку подключения.");
  5633. }
  5634. if (((this._pynkt_vidachi_importTableAdapter != null)
  5635. && (this.MatchTableAdapterConnection(this._pynkt_vidachi_importTableAdapter.Connection) == false))) {
  5636. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  5637. "r, должны использовать одинаковую строку подключения.");
  5638. }
  5639. if (((this._roleTableAdapter != null)
  5640. && (this.MatchTableAdapterConnection(this._roleTableAdapter.Connection) == false))) {
  5641. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  5642. "r, должны использовать одинаковую строку подключения.");
  5643. }
  5644. if (((this._userTableAdapter != null)
  5645. && (this.MatchTableAdapterConnection(this._userTableAdapter.Connection) == false))) {
  5646. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  5647. "r, должны использовать одинаковую строку подключения.");
  5648. }
  5649. global::System.Data.IDbConnection workConnection = this.Connection;
  5650. if ((workConnection == null)) {
  5651. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  5652. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  5653. }
  5654. bool workConnOpened = false;
  5655. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  5656. == global::System.Data.ConnectionState.Broken)) {
  5657. workConnection.Close();
  5658. }
  5659. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  5660. workConnection.Open();
  5661. workConnOpened = true;
  5662. }
  5663. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  5664. if ((workTransaction == null)) {
  5665. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  5666. "и или текущее состояние не позволяет начать транзакцию.");
  5667. }
  5668. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  5669. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  5670. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  5671. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  5672. int result = 0;
  5673. global::System.Data.DataSet backupDataSet = null;
  5674. if (this.BackupDataSetBeforeUpdate) {
  5675. backupDataSet = new global::System.Data.DataSet();
  5676. backupDataSet.Merge(dataSet);
  5677. }
  5678. try {
  5679. // ---- Prepare for update -----------
  5680. //
  5681. if ((this._orderTableAdapter != null)) {
  5682. revertConnections.Add(this._orderTableAdapter, this._orderTableAdapter.Connection);
  5683. this._orderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  5684. this._orderTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  5685. if (this._orderTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  5686. this._orderTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  5687. adaptersWithAcceptChangesDuringUpdate.Add(this._orderTableAdapter.Adapter);
  5688. }
  5689. }
  5690. if ((this._orderProductTableAdapter != null)) {
  5691. revertConnections.Add(this._orderProductTableAdapter, this._orderProductTableAdapter.Connection);
  5692. this._orderProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  5693. this._orderProductTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  5694. if (this._orderProductTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  5695. this._orderProductTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  5696. adaptersWithAcceptChangesDuringUpdate.Add(this._orderProductTableAdapter.Adapter);
  5697. }
  5698. }
  5699. if ((this._productTableAdapter != null)) {
  5700. revertConnections.Add(this._productTableAdapter, this._productTableAdapter.Connection);
  5701. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  5702. this._productTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  5703. if (this._productTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  5704. this._productTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  5705. adaptersWithAcceptChangesDuringUpdate.Add(this._productTableAdapter.Adapter);
  5706. }
  5707. }
  5708. if ((this._pynkt_vidachi_importTableAdapter != null)) {
  5709. revertConnections.Add(this._pynkt_vidachi_importTableAdapter, this._pynkt_vidachi_importTableAdapter.Connection);
  5710. this._pynkt_vidachi_importTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  5711. this._pynkt_vidachi_importTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  5712. if (this._pynkt_vidachi_importTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  5713. this._pynkt_vidachi_importTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  5714. adaptersWithAcceptChangesDuringUpdate.Add(this._pynkt_vidachi_importTableAdapter.Adapter);
  5715. }
  5716. }
  5717. if ((this._roleTableAdapter != null)) {
  5718. revertConnections.Add(this._roleTableAdapter, this._roleTableAdapter.Connection);
  5719. this._roleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  5720. this._roleTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  5721. if (this._roleTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  5722. this._roleTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  5723. adaptersWithAcceptChangesDuringUpdate.Add(this._roleTableAdapter.Adapter);
  5724. }
  5725. }
  5726. if ((this._userTableAdapter != null)) {
  5727. revertConnections.Add(this._userTableAdapter, this._userTableAdapter.Connection);
  5728. this._userTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  5729. this._userTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  5730. if (this._userTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  5731. this._userTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  5732. adaptersWithAcceptChangesDuringUpdate.Add(this._userTableAdapter.Adapter);
  5733. }
  5734. }
  5735. //
  5736. //---- Perform updates -----------
  5737. //
  5738. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  5739. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  5740. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  5741. }
  5742. else {
  5743. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  5744. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  5745. }
  5746. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  5747. //
  5748. //---- Commit updates -----------
  5749. //
  5750. workTransaction.Commit();
  5751. if ((0 < allAddedRows.Count)) {
  5752. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  5753. allAddedRows.CopyTo(rows);
  5754. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  5755. global::System.Data.DataRow row = rows[i];
  5756. row.AcceptChanges();
  5757. }
  5758. }
  5759. if ((0 < allChangedRows.Count)) {
  5760. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  5761. allChangedRows.CopyTo(rows);
  5762. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  5763. global::System.Data.DataRow row = rows[i];
  5764. row.AcceptChanges();
  5765. }
  5766. }
  5767. }
  5768. catch (global::System.Exception ex) {
  5769. workTransaction.Rollback();
  5770. // ---- Restore the dataset -----------
  5771. if (this.BackupDataSetBeforeUpdate) {
  5772. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  5773. dataSet.Clear();
  5774. dataSet.Merge(backupDataSet);
  5775. }
  5776. else {
  5777. if ((0 < allAddedRows.Count)) {
  5778. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  5779. allAddedRows.CopyTo(rows);
  5780. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  5781. global::System.Data.DataRow row = rows[i];
  5782. row.AcceptChanges();
  5783. row.SetAdded();
  5784. }
  5785. }
  5786. }
  5787. throw ex;
  5788. }
  5789. finally {
  5790. if (workConnOpened) {
  5791. workConnection.Close();
  5792. }
  5793. if ((this._orderTableAdapter != null)) {
  5794. this._orderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._orderTableAdapter]));
  5795. this._orderTableAdapter.Transaction = null;
  5796. }
  5797. if ((this._orderProductTableAdapter != null)) {
  5798. this._orderProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._orderProductTableAdapter]));
  5799. this._orderProductTableAdapter.Transaction = null;
  5800. }
  5801. if ((this._productTableAdapter != null)) {
  5802. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productTableAdapter]));
  5803. this._productTableAdapter.Transaction = null;
  5804. }
  5805. if ((this._pynkt_vidachi_importTableAdapter != null)) {
  5806. this._pynkt_vidachi_importTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._pynkt_vidachi_importTableAdapter]));
  5807. this._pynkt_vidachi_importTableAdapter.Transaction = null;
  5808. }
  5809. if ((this._roleTableAdapter != null)) {
  5810. this._roleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._roleTableAdapter]));
  5811. this._roleTableAdapter.Transaction = null;
  5812. }
  5813. if ((this._userTableAdapter != null)) {
  5814. this._userTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._userTableAdapter]));
  5815. this._userTableAdapter.Transaction = null;
  5816. }
  5817. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  5818. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  5819. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  5820. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  5821. global::System.Data.Common.DataAdapter adapter = adapters[i];
  5822. adapter.AcceptChangesDuringUpdate = true;
  5823. }
  5824. }
  5825. }
  5826. return result;
  5827. }
  5828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5830. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  5831. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  5832. }
  5833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5835. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  5836. if ((this._connection != null)) {
  5837. return true;
  5838. }
  5839. if (((this.Connection == null)
  5840. || (inputConnection == null))) {
  5841. return true;
  5842. }
  5843. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  5844. return true;
  5845. }
  5846. return false;
  5847. }
  5848. /// <summary>
  5849. ///Update Order Option
  5850. ///</summary>
  5851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5852. public enum UpdateOrderOption {
  5853. InsertUpdateDelete = 0,
  5854. UpdateInsertDelete = 1,
  5855. }
  5856. /// <summary>
  5857. ///Used to sort self-referenced table's rows
  5858. ///</summary>
  5859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5860. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  5861. private global::System.Data.DataRelation _relation;
  5862. private int _childFirst;
  5863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5865. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  5866. this._relation = relation;
  5867. if (childFirst) {
  5868. this._childFirst = -1;
  5869. }
  5870. else {
  5871. this._childFirst = 1;
  5872. }
  5873. }
  5874. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5875. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5876. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  5877. global::System.Diagnostics.Debug.Assert((row != null));
  5878. global::System.Data.DataRow root = row;
  5879. distance = 0;
  5880. 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>();
  5881. traversedRows[row] = row;
  5882. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  5883. for (
  5884. ; ((parent != null)
  5885. && (traversedRows.ContainsKey(parent) == false));
  5886. ) {
  5887. distance = (distance + 1);
  5888. root = parent;
  5889. traversedRows[parent] = parent;
  5890. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  5891. }
  5892. if ((distance == 0)) {
  5893. traversedRows.Clear();
  5894. traversedRows[row] = row;
  5895. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  5896. for (
  5897. ; ((parent != null)
  5898. && (traversedRows.ContainsKey(parent) == false));
  5899. ) {
  5900. distance = (distance + 1);
  5901. root = parent;
  5902. traversedRows[parent] = parent;
  5903. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  5904. }
  5905. }
  5906. return root;
  5907. }
  5908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5910. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  5911. if (object.ReferenceEquals(row1, row2)) {
  5912. return 0;
  5913. }
  5914. if ((row1 == null)) {
  5915. return -1;
  5916. }
  5917. if ((row2 == null)) {
  5918. return 1;
  5919. }
  5920. int distance1 = 0;
  5921. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  5922. int distance2 = 0;
  5923. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  5924. if (object.ReferenceEquals(root1, root2)) {
  5925. return (this._childFirst * distance1.CompareTo(distance2));
  5926. }
  5927. else {
  5928. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  5929. && (root2.Table != null)));
  5930. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  5931. return -1;
  5932. }
  5933. else {
  5934. return 1;
  5935. }
  5936. }
  5937. }
  5938. }
  5939. }
  5940. }
  5941. #pragma warning restore 1591