dbAlphapolAGDataSet.Designer.cs 702 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // This code was generated by a tool.
  4. // Runtime Version:4.0.30319.42000
  5. //
  6. // Changes to this file may cause incorrect behavior and will be lost if
  7. // the code is regenerated.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace СУБД_Альфапол {
  12. /// <summary>
  13. ///Represents a strongly typed in-memory cache of data.
  14. ///</summary>
  15. [global::System.Serializable()]
  16. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  17. [global::System.ComponentModel.ToolboxItem(true)]
  18. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
  19. [global::System.Xml.Serialization.XmlRootAttribute("dbAlphapolAGDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class dbAlphapolAGDataSet : global::System.Data.DataSet {
  22. private CityDataTable tableCity;
  23. private IndexPartnerDataTable tableIndexPartner;
  24. private ManagerDataTable tableManager;
  25. private PartnerDataTable tablePartner;
  26. private ProductPartnerDataTable tableProductPartner;
  27. private ProductsDataTable tableProducts;
  28. private RegionDataTable tableRegion;
  29. private StreetDataTable tableStreet;
  30. private TypeMaterialDataTable tableTypeMaterial;
  31. private TypePartnerDataTable tableTypePartner;
  32. private TypeProductDataTable tableTypeProduct;
  33. private global::System.Data.DataRelation relationFK_Partner_City;
  34. private global::System.Data.DataRelation relationFK_Partner_IndexPartner;
  35. private global::System.Data.DataRelation relationFK_Partner_Region;
  36. private global::System.Data.DataRelation relationFK_Partner_Street;
  37. private global::System.Data.DataRelation relationFK_Partner_TypePartner;
  38. private global::System.Data.DataRelation relationFK_ProductPartner_Partner;
  39. private global::System.Data.DataRelation relationFK_ProductPartner_Products;
  40. private global::System.Data.DataRelation relationFK_Products_TypeProduct;
  41. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  42. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  43. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  44. public dbAlphapolAGDataSet() {
  45. this.BeginInit();
  46. this.InitClass();
  47. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  48. base.Tables.CollectionChanged += schemaChangedHandler;
  49. base.Relations.CollectionChanged += schemaChangedHandler;
  50. this.EndInit();
  51. }
  52. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  53. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  54. protected dbAlphapolAGDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  55. base(info, context, false) {
  56. if ((this.IsBinarySerialized(info, context) == true)) {
  57. this.InitVars(false);
  58. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  59. this.Tables.CollectionChanged += schemaChangedHandler1;
  60. this.Relations.CollectionChanged += schemaChangedHandler1;
  61. return;
  62. }
  63. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  64. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  65. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  66. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  67. if ((ds.Tables["City"] != null)) {
  68. base.Tables.Add(new CityDataTable(ds.Tables["City"]));
  69. }
  70. if ((ds.Tables["IndexPartner"] != null)) {
  71. base.Tables.Add(new IndexPartnerDataTable(ds.Tables["IndexPartner"]));
  72. }
  73. if ((ds.Tables["Manager"] != null)) {
  74. base.Tables.Add(new ManagerDataTable(ds.Tables["Manager"]));
  75. }
  76. if ((ds.Tables["Partner"] != null)) {
  77. base.Tables.Add(new PartnerDataTable(ds.Tables["Partner"]));
  78. }
  79. if ((ds.Tables["ProductPartner"] != null)) {
  80. base.Tables.Add(new ProductPartnerDataTable(ds.Tables["ProductPartner"]));
  81. }
  82. if ((ds.Tables["Products"] != null)) {
  83. base.Tables.Add(new ProductsDataTable(ds.Tables["Products"]));
  84. }
  85. if ((ds.Tables["Region"] != null)) {
  86. base.Tables.Add(new RegionDataTable(ds.Tables["Region"]));
  87. }
  88. if ((ds.Tables["Street"] != null)) {
  89. base.Tables.Add(new StreetDataTable(ds.Tables["Street"]));
  90. }
  91. if ((ds.Tables["TypeMaterial"] != null)) {
  92. base.Tables.Add(new TypeMaterialDataTable(ds.Tables["TypeMaterial"]));
  93. }
  94. if ((ds.Tables["TypePartner"] != null)) {
  95. base.Tables.Add(new TypePartnerDataTable(ds.Tables["TypePartner"]));
  96. }
  97. if ((ds.Tables["TypeProduct"] != null)) {
  98. base.Tables.Add(new TypeProductDataTable(ds.Tables["TypeProduct"]));
  99. }
  100. this.DataSetName = ds.DataSetName;
  101. this.Prefix = ds.Prefix;
  102. this.Namespace = ds.Namespace;
  103. this.Locale = ds.Locale;
  104. this.CaseSensitive = ds.CaseSensitive;
  105. this.EnforceConstraints = ds.EnforceConstraints;
  106. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  107. this.InitVars();
  108. }
  109. else {
  110. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  111. }
  112. this.GetSerializationData(info, context);
  113. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  114. base.Tables.CollectionChanged += schemaChangedHandler;
  115. this.Relations.CollectionChanged += schemaChangedHandler;
  116. }
  117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  119. [global::System.ComponentModel.Browsable(false)]
  120. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  121. public CityDataTable City {
  122. get {
  123. return this.tableCity;
  124. }
  125. }
  126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  128. [global::System.ComponentModel.Browsable(false)]
  129. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  130. public IndexPartnerDataTable IndexPartner {
  131. get {
  132. return this.tableIndexPartner;
  133. }
  134. }
  135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  137. [global::System.ComponentModel.Browsable(false)]
  138. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  139. public ManagerDataTable Manager {
  140. get {
  141. return this.tableManager;
  142. }
  143. }
  144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  146. [global::System.ComponentModel.Browsable(false)]
  147. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  148. public PartnerDataTable Partner {
  149. get {
  150. return this.tablePartner;
  151. }
  152. }
  153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  155. [global::System.ComponentModel.Browsable(false)]
  156. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  157. public ProductPartnerDataTable ProductPartner {
  158. get {
  159. return this.tableProductPartner;
  160. }
  161. }
  162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  164. [global::System.ComponentModel.Browsable(false)]
  165. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  166. public ProductsDataTable Products {
  167. get {
  168. return this.tableProducts;
  169. }
  170. }
  171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  173. [global::System.ComponentModel.Browsable(false)]
  174. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  175. public RegionDataTable Region {
  176. get {
  177. return this.tableRegion;
  178. }
  179. }
  180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  182. [global::System.ComponentModel.Browsable(false)]
  183. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  184. public StreetDataTable Street {
  185. get {
  186. return this.tableStreet;
  187. }
  188. }
  189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  191. [global::System.ComponentModel.Browsable(false)]
  192. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  193. public TypeMaterialDataTable TypeMaterial {
  194. get {
  195. return this.tableTypeMaterial;
  196. }
  197. }
  198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  200. [global::System.ComponentModel.Browsable(false)]
  201. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  202. public TypePartnerDataTable TypePartner {
  203. get {
  204. return this.tableTypePartner;
  205. }
  206. }
  207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  209. [global::System.ComponentModel.Browsable(false)]
  210. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  211. public TypeProductDataTable TypeProduct {
  212. get {
  213. return this.tableTypeProduct;
  214. }
  215. }
  216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  218. [global::System.ComponentModel.BrowsableAttribute(true)]
  219. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  220. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  221. get {
  222. return this._schemaSerializationMode;
  223. }
  224. set {
  225. this._schemaSerializationMode = value;
  226. }
  227. }
  228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  230. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  231. public new global::System.Data.DataTableCollection Tables {
  232. get {
  233. return base.Tables;
  234. }
  235. }
  236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  238. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  239. public new global::System.Data.DataRelationCollection Relations {
  240. get {
  241. return base.Relations;
  242. }
  243. }
  244. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  245. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  246. protected override void InitializeDerivedDataSet() {
  247. this.BeginInit();
  248. this.InitClass();
  249. this.EndInit();
  250. }
  251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  253. public override global::System.Data.DataSet Clone() {
  254. dbAlphapolAGDataSet cln = ((dbAlphapolAGDataSet)(base.Clone()));
  255. cln.InitVars();
  256. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  257. return cln;
  258. }
  259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  261. protected override bool ShouldSerializeTables() {
  262. return false;
  263. }
  264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  265. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  266. protected override bool ShouldSerializeRelations() {
  267. return false;
  268. }
  269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  270. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  271. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  272. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  273. this.Reset();
  274. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  275. ds.ReadXml(reader);
  276. if ((ds.Tables["City"] != null)) {
  277. base.Tables.Add(new CityDataTable(ds.Tables["City"]));
  278. }
  279. if ((ds.Tables["IndexPartner"] != null)) {
  280. base.Tables.Add(new IndexPartnerDataTable(ds.Tables["IndexPartner"]));
  281. }
  282. if ((ds.Tables["Manager"] != null)) {
  283. base.Tables.Add(new ManagerDataTable(ds.Tables["Manager"]));
  284. }
  285. if ((ds.Tables["Partner"] != null)) {
  286. base.Tables.Add(new PartnerDataTable(ds.Tables["Partner"]));
  287. }
  288. if ((ds.Tables["ProductPartner"] != null)) {
  289. base.Tables.Add(new ProductPartnerDataTable(ds.Tables["ProductPartner"]));
  290. }
  291. if ((ds.Tables["Products"] != null)) {
  292. base.Tables.Add(new ProductsDataTable(ds.Tables["Products"]));
  293. }
  294. if ((ds.Tables["Region"] != null)) {
  295. base.Tables.Add(new RegionDataTable(ds.Tables["Region"]));
  296. }
  297. if ((ds.Tables["Street"] != null)) {
  298. base.Tables.Add(new StreetDataTable(ds.Tables["Street"]));
  299. }
  300. if ((ds.Tables["TypeMaterial"] != null)) {
  301. base.Tables.Add(new TypeMaterialDataTable(ds.Tables["TypeMaterial"]));
  302. }
  303. if ((ds.Tables["TypePartner"] != null)) {
  304. base.Tables.Add(new TypePartnerDataTable(ds.Tables["TypePartner"]));
  305. }
  306. if ((ds.Tables["TypeProduct"] != null)) {
  307. base.Tables.Add(new TypeProductDataTable(ds.Tables["TypeProduct"]));
  308. }
  309. this.DataSetName = ds.DataSetName;
  310. this.Prefix = ds.Prefix;
  311. this.Namespace = ds.Namespace;
  312. this.Locale = ds.Locale;
  313. this.CaseSensitive = ds.CaseSensitive;
  314. this.EnforceConstraints = ds.EnforceConstraints;
  315. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  316. this.InitVars();
  317. }
  318. else {
  319. this.ReadXml(reader);
  320. this.InitVars();
  321. }
  322. }
  323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  325. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  326. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  327. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  328. stream.Position = 0;
  329. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  330. }
  331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  332. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  333. internal void InitVars() {
  334. this.InitVars(true);
  335. }
  336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  338. internal void InitVars(bool initTable) {
  339. this.tableCity = ((CityDataTable)(base.Tables["City"]));
  340. if ((initTable == true)) {
  341. if ((this.tableCity != null)) {
  342. this.tableCity.InitVars();
  343. }
  344. }
  345. this.tableIndexPartner = ((IndexPartnerDataTable)(base.Tables["IndexPartner"]));
  346. if ((initTable == true)) {
  347. if ((this.tableIndexPartner != null)) {
  348. this.tableIndexPartner.InitVars();
  349. }
  350. }
  351. this.tableManager = ((ManagerDataTable)(base.Tables["Manager"]));
  352. if ((initTable == true)) {
  353. if ((this.tableManager != null)) {
  354. this.tableManager.InitVars();
  355. }
  356. }
  357. this.tablePartner = ((PartnerDataTable)(base.Tables["Partner"]));
  358. if ((initTable == true)) {
  359. if ((this.tablePartner != null)) {
  360. this.tablePartner.InitVars();
  361. }
  362. }
  363. this.tableProductPartner = ((ProductPartnerDataTable)(base.Tables["ProductPartner"]));
  364. if ((initTable == true)) {
  365. if ((this.tableProductPartner != null)) {
  366. this.tableProductPartner.InitVars();
  367. }
  368. }
  369. this.tableProducts = ((ProductsDataTable)(base.Tables["Products"]));
  370. if ((initTable == true)) {
  371. if ((this.tableProducts != null)) {
  372. this.tableProducts.InitVars();
  373. }
  374. }
  375. this.tableRegion = ((RegionDataTable)(base.Tables["Region"]));
  376. if ((initTable == true)) {
  377. if ((this.tableRegion != null)) {
  378. this.tableRegion.InitVars();
  379. }
  380. }
  381. this.tableStreet = ((StreetDataTable)(base.Tables["Street"]));
  382. if ((initTable == true)) {
  383. if ((this.tableStreet != null)) {
  384. this.tableStreet.InitVars();
  385. }
  386. }
  387. this.tableTypeMaterial = ((TypeMaterialDataTable)(base.Tables["TypeMaterial"]));
  388. if ((initTable == true)) {
  389. if ((this.tableTypeMaterial != null)) {
  390. this.tableTypeMaterial.InitVars();
  391. }
  392. }
  393. this.tableTypePartner = ((TypePartnerDataTable)(base.Tables["TypePartner"]));
  394. if ((initTable == true)) {
  395. if ((this.tableTypePartner != null)) {
  396. this.tableTypePartner.InitVars();
  397. }
  398. }
  399. this.tableTypeProduct = ((TypeProductDataTable)(base.Tables["TypeProduct"]));
  400. if ((initTable == true)) {
  401. if ((this.tableTypeProduct != null)) {
  402. this.tableTypeProduct.InitVars();
  403. }
  404. }
  405. this.relationFK_Partner_City = this.Relations["FK_Partner_City"];
  406. this.relationFK_Partner_IndexPartner = this.Relations["FK_Partner_IndexPartner"];
  407. this.relationFK_Partner_Region = this.Relations["FK_Partner_Region"];
  408. this.relationFK_Partner_Street = this.Relations["FK_Partner_Street"];
  409. this.relationFK_Partner_TypePartner = this.Relations["FK_Partner_TypePartner"];
  410. this.relationFK_ProductPartner_Partner = this.Relations["FK_ProductPartner_Partner"];
  411. this.relationFK_ProductPartner_Products = this.Relations["FK_ProductPartner_Products"];
  412. this.relationFK_Products_TypeProduct = this.Relations["FK_Products_TypeProduct"];
  413. }
  414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  416. private void InitClass() {
  417. this.DataSetName = "dbAlphapolAGDataSet";
  418. this.Prefix = "";
  419. this.Namespace = "http://tempuri.org/dbAlphapolAGDataSet.xsd";
  420. this.EnforceConstraints = true;
  421. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  422. this.tableCity = new CityDataTable();
  423. base.Tables.Add(this.tableCity);
  424. this.tableIndexPartner = new IndexPartnerDataTable();
  425. base.Tables.Add(this.tableIndexPartner);
  426. this.tableManager = new ManagerDataTable();
  427. base.Tables.Add(this.tableManager);
  428. this.tablePartner = new PartnerDataTable();
  429. base.Tables.Add(this.tablePartner);
  430. this.tableProductPartner = new ProductPartnerDataTable();
  431. base.Tables.Add(this.tableProductPartner);
  432. this.tableProducts = new ProductsDataTable();
  433. base.Tables.Add(this.tableProducts);
  434. this.tableRegion = new RegionDataTable();
  435. base.Tables.Add(this.tableRegion);
  436. this.tableStreet = new StreetDataTable();
  437. base.Tables.Add(this.tableStreet);
  438. this.tableTypeMaterial = new TypeMaterialDataTable();
  439. base.Tables.Add(this.tableTypeMaterial);
  440. this.tableTypePartner = new TypePartnerDataTable();
  441. base.Tables.Add(this.tableTypePartner);
  442. this.tableTypeProduct = new TypeProductDataTable();
  443. base.Tables.Add(this.tableTypeProduct);
  444. this.relationFK_Partner_City = new global::System.Data.DataRelation("FK_Partner_City", new global::System.Data.DataColumn[] {
  445. this.tableCity.idCityColumn}, new global::System.Data.DataColumn[] {
  446. this.tablePartner.idCityColumn}, false);
  447. this.Relations.Add(this.relationFK_Partner_City);
  448. this.relationFK_Partner_IndexPartner = new global::System.Data.DataRelation("FK_Partner_IndexPartner", new global::System.Data.DataColumn[] {
  449. this.tableIndexPartner.idIndexColumn}, new global::System.Data.DataColumn[] {
  450. this.tablePartner.idIndexColumn}, false);
  451. this.Relations.Add(this.relationFK_Partner_IndexPartner);
  452. this.relationFK_Partner_Region = new global::System.Data.DataRelation("FK_Partner_Region", new global::System.Data.DataColumn[] {
  453. this.tableRegion.idRegionColumn}, new global::System.Data.DataColumn[] {
  454. this.tablePartner.idRegionColumn}, false);
  455. this.Relations.Add(this.relationFK_Partner_Region);
  456. this.relationFK_Partner_Street = new global::System.Data.DataRelation("FK_Partner_Street", new global::System.Data.DataColumn[] {
  457. this.tableStreet.idStreetColumn}, new global::System.Data.DataColumn[] {
  458. this.tablePartner.idStreetColumn}, false);
  459. this.Relations.Add(this.relationFK_Partner_Street);
  460. this.relationFK_Partner_TypePartner = new global::System.Data.DataRelation("FK_Partner_TypePartner", new global::System.Data.DataColumn[] {
  461. this.tableTypePartner.idTypePartnerColumn}, new global::System.Data.DataColumn[] {
  462. this.tablePartner.idTypePartnerColumn}, false);
  463. this.Relations.Add(this.relationFK_Partner_TypePartner);
  464. this.relationFK_ProductPartner_Partner = new global::System.Data.DataRelation("FK_ProductPartner_Partner", new global::System.Data.DataColumn[] {
  465. this.tablePartner.idPartnerColumn}, new global::System.Data.DataColumn[] {
  466. this.tableProductPartner.idPartnerColumn}, false);
  467. this.Relations.Add(this.relationFK_ProductPartner_Partner);
  468. this.relationFK_ProductPartner_Products = new global::System.Data.DataRelation("FK_ProductPartner_Products", new global::System.Data.DataColumn[] {
  469. this.tableProducts.idProductColumn}, new global::System.Data.DataColumn[] {
  470. this.tableProductPartner.idProductColumn}, false);
  471. this.Relations.Add(this.relationFK_ProductPartner_Products);
  472. this.relationFK_Products_TypeProduct = new global::System.Data.DataRelation("FK_Products_TypeProduct", new global::System.Data.DataColumn[] {
  473. this.tableTypeProduct.idTypeProductColumn}, new global::System.Data.DataColumn[] {
  474. this.tableProducts.idTypeProductColumn}, false);
  475. this.Relations.Add(this.relationFK_Products_TypeProduct);
  476. }
  477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  479. private bool ShouldSerializeCity() {
  480. return false;
  481. }
  482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  484. private bool ShouldSerializeIndexPartner() {
  485. return false;
  486. }
  487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  489. private bool ShouldSerializeManager() {
  490. return false;
  491. }
  492. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  493. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  494. private bool ShouldSerializePartner() {
  495. return false;
  496. }
  497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  499. private bool ShouldSerializeProductPartner() {
  500. return false;
  501. }
  502. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  503. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  504. private bool ShouldSerializeProducts() {
  505. return false;
  506. }
  507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  509. private bool ShouldSerializeRegion() {
  510. return false;
  511. }
  512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  514. private bool ShouldSerializeStreet() {
  515. return false;
  516. }
  517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  519. private bool ShouldSerializeTypeMaterial() {
  520. return false;
  521. }
  522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  524. private bool ShouldSerializeTypePartner() {
  525. return false;
  526. }
  527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  529. private bool ShouldSerializeTypeProduct() {
  530. return false;
  531. }
  532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  533. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  534. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  535. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  536. this.InitVars();
  537. }
  538. }
  539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  541. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  542. dbAlphapolAGDataSet ds = new dbAlphapolAGDataSet();
  543. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  544. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  545. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  546. any.Namespace = ds.Namespace;
  547. sequence.Items.Add(any);
  548. type.Particle = sequence;
  549. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  550. if (xs.Contains(dsSchema.TargetNamespace)) {
  551. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  552. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  553. try {
  554. global::System.Xml.Schema.XmlSchema schema = null;
  555. dsSchema.Write(s1);
  556. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  557. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  558. s2.SetLength(0);
  559. schema.Write(s2);
  560. if ((s1.Length == s2.Length)) {
  561. s1.Position = 0;
  562. s2.Position = 0;
  563. for (; ((s1.Position != s1.Length)
  564. && (s1.ReadByte() == s2.ReadByte())); ) {
  565. ;
  566. }
  567. if ((s1.Position == s1.Length)) {
  568. return type;
  569. }
  570. }
  571. }
  572. }
  573. finally {
  574. if ((s1 != null)) {
  575. s1.Close();
  576. }
  577. if ((s2 != null)) {
  578. s2.Close();
  579. }
  580. }
  581. }
  582. xs.Add(dsSchema);
  583. return type;
  584. }
  585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  586. public delegate void CityRowChangeEventHandler(object sender, CityRowChangeEvent e);
  587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  588. public delegate void IndexPartnerRowChangeEventHandler(object sender, IndexPartnerRowChangeEvent e);
  589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  590. public delegate void ManagerRowChangeEventHandler(object sender, ManagerRowChangeEvent e);
  591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  592. public delegate void PartnerRowChangeEventHandler(object sender, PartnerRowChangeEvent e);
  593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  594. public delegate void ProductPartnerRowChangeEventHandler(object sender, ProductPartnerRowChangeEvent e);
  595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  596. public delegate void ProductsRowChangeEventHandler(object sender, ProductsRowChangeEvent e);
  597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  598. public delegate void RegionRowChangeEventHandler(object sender, RegionRowChangeEvent e);
  599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  600. public delegate void StreetRowChangeEventHandler(object sender, StreetRowChangeEvent e);
  601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  602. public delegate void TypeMaterialRowChangeEventHandler(object sender, TypeMaterialRowChangeEvent e);
  603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  604. public delegate void TypePartnerRowChangeEventHandler(object sender, TypePartnerRowChangeEvent e);
  605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  606. public delegate void TypeProductRowChangeEventHandler(object sender, TypeProductRowChangeEvent e);
  607. /// <summary>
  608. ///Represents the strongly named DataTable class.
  609. ///</summary>
  610. [global::System.Serializable()]
  611. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  612. public partial class CityDataTable : global::System.Data.TypedTableBase<CityRow> {
  613. private global::System.Data.DataColumn columnidCity;
  614. private global::System.Data.DataColumn columnCity;
  615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  617. public CityDataTable() {
  618. this.TableName = "City";
  619. this.BeginInit();
  620. this.InitClass();
  621. this.EndInit();
  622. }
  623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  625. internal CityDataTable(global::System.Data.DataTable table) {
  626. this.TableName = table.TableName;
  627. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  628. this.CaseSensitive = table.CaseSensitive;
  629. }
  630. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  631. this.Locale = table.Locale;
  632. }
  633. if ((table.Namespace != table.DataSet.Namespace)) {
  634. this.Namespace = table.Namespace;
  635. }
  636. this.Prefix = table.Prefix;
  637. this.MinimumCapacity = table.MinimumCapacity;
  638. }
  639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  641. protected CityDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  642. base(info, context) {
  643. this.InitVars();
  644. }
  645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  647. public global::System.Data.DataColumn idCityColumn {
  648. get {
  649. return this.columnidCity;
  650. }
  651. }
  652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  654. public global::System.Data.DataColumn CityColumn {
  655. get {
  656. return this.columnCity;
  657. }
  658. }
  659. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  660. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  661. [global::System.ComponentModel.Browsable(false)]
  662. public int Count {
  663. get {
  664. return this.Rows.Count;
  665. }
  666. }
  667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  668. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  669. public CityRow this[int index] {
  670. get {
  671. return ((CityRow)(this.Rows[index]));
  672. }
  673. }
  674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  675. public event CityRowChangeEventHandler CityRowChanging;
  676. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  677. public event CityRowChangeEventHandler CityRowChanged;
  678. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  679. public event CityRowChangeEventHandler CityRowDeleting;
  680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  681. public event CityRowChangeEventHandler CityRowDeleted;
  682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  684. public void AddCityRow(CityRow row) {
  685. this.Rows.Add(row);
  686. }
  687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  689. public CityRow AddCityRow(string City) {
  690. CityRow rowCityRow = ((CityRow)(this.NewRow()));
  691. object[] columnValuesArray = new object[] {
  692. null,
  693. City};
  694. rowCityRow.ItemArray = columnValuesArray;
  695. this.Rows.Add(rowCityRow);
  696. return rowCityRow;
  697. }
  698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  700. public CityRow FindByidCity(int idCity) {
  701. return ((CityRow)(this.Rows.Find(new object[] {
  702. idCity})));
  703. }
  704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  706. public override global::System.Data.DataTable Clone() {
  707. CityDataTable cln = ((CityDataTable)(base.Clone()));
  708. cln.InitVars();
  709. return cln;
  710. }
  711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  712. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  713. protected override global::System.Data.DataTable CreateInstance() {
  714. return new CityDataTable();
  715. }
  716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  718. internal void InitVars() {
  719. this.columnidCity = base.Columns["idCity"];
  720. this.columnCity = base.Columns["City"];
  721. }
  722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  724. private void InitClass() {
  725. this.columnidCity = new global::System.Data.DataColumn("idCity", typeof(int), null, global::System.Data.MappingType.Element);
  726. base.Columns.Add(this.columnidCity);
  727. this.columnCity = new global::System.Data.DataColumn("City", typeof(string), null, global::System.Data.MappingType.Element);
  728. base.Columns.Add(this.columnCity);
  729. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  730. this.columnidCity}, true));
  731. this.columnidCity.AutoIncrement = true;
  732. this.columnidCity.AutoIncrementSeed = 1;
  733. this.columnidCity.AllowDBNull = false;
  734. this.columnidCity.ReadOnly = true;
  735. this.columnidCity.Unique = true;
  736. this.columnCity.MaxLength = 50;
  737. }
  738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  740. public CityRow NewCityRow() {
  741. return ((CityRow)(this.NewRow()));
  742. }
  743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  745. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  746. return new CityRow(builder);
  747. }
  748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  750. protected override global::System.Type GetRowType() {
  751. return typeof(CityRow);
  752. }
  753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  755. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  756. base.OnRowChanged(e);
  757. if ((this.CityRowChanged != null)) {
  758. this.CityRowChanged(this, new CityRowChangeEvent(((CityRow)(e.Row)), e.Action));
  759. }
  760. }
  761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  763. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  764. base.OnRowChanging(e);
  765. if ((this.CityRowChanging != null)) {
  766. this.CityRowChanging(this, new CityRowChangeEvent(((CityRow)(e.Row)), e.Action));
  767. }
  768. }
  769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  771. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  772. base.OnRowDeleted(e);
  773. if ((this.CityRowDeleted != null)) {
  774. this.CityRowDeleted(this, new CityRowChangeEvent(((CityRow)(e.Row)), e.Action));
  775. }
  776. }
  777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  779. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  780. base.OnRowDeleting(e);
  781. if ((this.CityRowDeleting != null)) {
  782. this.CityRowDeleting(this, new CityRowChangeEvent(((CityRow)(e.Row)), e.Action));
  783. }
  784. }
  785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  786. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  787. public void RemoveCityRow(CityRow row) {
  788. this.Rows.Remove(row);
  789. }
  790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  792. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  793. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  794. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  795. dbAlphapolAGDataSet ds = new dbAlphapolAGDataSet();
  796. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  797. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  798. any1.MinOccurs = new decimal(0);
  799. any1.MaxOccurs = decimal.MaxValue;
  800. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  801. sequence.Items.Add(any1);
  802. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  803. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  804. any2.MinOccurs = new decimal(1);
  805. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  806. sequence.Items.Add(any2);
  807. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  808. attribute1.Name = "namespace";
  809. attribute1.FixedValue = ds.Namespace;
  810. type.Attributes.Add(attribute1);
  811. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  812. attribute2.Name = "tableTypeName";
  813. attribute2.FixedValue = "CityDataTable";
  814. type.Attributes.Add(attribute2);
  815. type.Particle = sequence;
  816. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  817. if (xs.Contains(dsSchema.TargetNamespace)) {
  818. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  819. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  820. try {
  821. global::System.Xml.Schema.XmlSchema schema = null;
  822. dsSchema.Write(s1);
  823. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  824. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  825. s2.SetLength(0);
  826. schema.Write(s2);
  827. if ((s1.Length == s2.Length)) {
  828. s1.Position = 0;
  829. s2.Position = 0;
  830. for (; ((s1.Position != s1.Length)
  831. && (s1.ReadByte() == s2.ReadByte())); ) {
  832. ;
  833. }
  834. if ((s1.Position == s1.Length)) {
  835. return type;
  836. }
  837. }
  838. }
  839. }
  840. finally {
  841. if ((s1 != null)) {
  842. s1.Close();
  843. }
  844. if ((s2 != null)) {
  845. s2.Close();
  846. }
  847. }
  848. }
  849. xs.Add(dsSchema);
  850. return type;
  851. }
  852. }
  853. /// <summary>
  854. ///Represents the strongly named DataTable class.
  855. ///</summary>
  856. [global::System.Serializable()]
  857. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  858. public partial class IndexPartnerDataTable : global::System.Data.TypedTableBase<IndexPartnerRow> {
  859. private global::System.Data.DataColumn columnidIndex;
  860. private global::System.Data.DataColumn columnCodePartner;
  861. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  862. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  863. public IndexPartnerDataTable() {
  864. this.TableName = "IndexPartner";
  865. this.BeginInit();
  866. this.InitClass();
  867. this.EndInit();
  868. }
  869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  871. internal IndexPartnerDataTable(global::System.Data.DataTable table) {
  872. this.TableName = table.TableName;
  873. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  874. this.CaseSensitive = table.CaseSensitive;
  875. }
  876. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  877. this.Locale = table.Locale;
  878. }
  879. if ((table.Namespace != table.DataSet.Namespace)) {
  880. this.Namespace = table.Namespace;
  881. }
  882. this.Prefix = table.Prefix;
  883. this.MinimumCapacity = table.MinimumCapacity;
  884. }
  885. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  886. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  887. protected IndexPartnerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  888. base(info, context) {
  889. this.InitVars();
  890. }
  891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  893. public global::System.Data.DataColumn idIndexColumn {
  894. get {
  895. return this.columnidIndex;
  896. }
  897. }
  898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  900. public global::System.Data.DataColumn CodePartnerColumn {
  901. get {
  902. return this.columnCodePartner;
  903. }
  904. }
  905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  907. [global::System.ComponentModel.Browsable(false)]
  908. public int Count {
  909. get {
  910. return this.Rows.Count;
  911. }
  912. }
  913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  915. public IndexPartnerRow this[int index] {
  916. get {
  917. return ((IndexPartnerRow)(this.Rows[index]));
  918. }
  919. }
  920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  921. public event IndexPartnerRowChangeEventHandler IndexPartnerRowChanging;
  922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  923. public event IndexPartnerRowChangeEventHandler IndexPartnerRowChanged;
  924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  925. public event IndexPartnerRowChangeEventHandler IndexPartnerRowDeleting;
  926. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  927. public event IndexPartnerRowChangeEventHandler IndexPartnerRowDeleted;
  928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  930. public void AddIndexPartnerRow(IndexPartnerRow row) {
  931. this.Rows.Add(row);
  932. }
  933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  934. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  935. public IndexPartnerRow AddIndexPartnerRow(string CodePartner) {
  936. IndexPartnerRow rowIndexPartnerRow = ((IndexPartnerRow)(this.NewRow()));
  937. object[] columnValuesArray = new object[] {
  938. null,
  939. CodePartner};
  940. rowIndexPartnerRow.ItemArray = columnValuesArray;
  941. this.Rows.Add(rowIndexPartnerRow);
  942. return rowIndexPartnerRow;
  943. }
  944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  946. public IndexPartnerRow FindByidIndex(int idIndex) {
  947. return ((IndexPartnerRow)(this.Rows.Find(new object[] {
  948. idIndex})));
  949. }
  950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  952. public override global::System.Data.DataTable Clone() {
  953. IndexPartnerDataTable cln = ((IndexPartnerDataTable)(base.Clone()));
  954. cln.InitVars();
  955. return cln;
  956. }
  957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  959. protected override global::System.Data.DataTable CreateInstance() {
  960. return new IndexPartnerDataTable();
  961. }
  962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  964. internal void InitVars() {
  965. this.columnidIndex = base.Columns["idIndex"];
  966. this.columnCodePartner = base.Columns["CodePartner"];
  967. }
  968. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  969. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  970. private void InitClass() {
  971. this.columnidIndex = new global::System.Data.DataColumn("idIndex", typeof(int), null, global::System.Data.MappingType.Element);
  972. base.Columns.Add(this.columnidIndex);
  973. this.columnCodePartner = new global::System.Data.DataColumn("CodePartner", typeof(string), null, global::System.Data.MappingType.Element);
  974. base.Columns.Add(this.columnCodePartner);
  975. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  976. this.columnidIndex}, true));
  977. this.columnidIndex.AutoIncrement = true;
  978. this.columnidIndex.AutoIncrementSeed = 1;
  979. this.columnidIndex.AllowDBNull = false;
  980. this.columnidIndex.ReadOnly = true;
  981. this.columnidIndex.Unique = true;
  982. this.columnCodePartner.MaxLength = 50;
  983. }
  984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  986. public IndexPartnerRow NewIndexPartnerRow() {
  987. return ((IndexPartnerRow)(this.NewRow()));
  988. }
  989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  991. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  992. return new IndexPartnerRow(builder);
  993. }
  994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  996. protected override global::System.Type GetRowType() {
  997. return typeof(IndexPartnerRow);
  998. }
  999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1001. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1002. base.OnRowChanged(e);
  1003. if ((this.IndexPartnerRowChanged != null)) {
  1004. this.IndexPartnerRowChanged(this, new IndexPartnerRowChangeEvent(((IndexPartnerRow)(e.Row)), e.Action));
  1005. }
  1006. }
  1007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1008. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1009. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1010. base.OnRowChanging(e);
  1011. if ((this.IndexPartnerRowChanging != null)) {
  1012. this.IndexPartnerRowChanging(this, new IndexPartnerRowChangeEvent(((IndexPartnerRow)(e.Row)), e.Action));
  1013. }
  1014. }
  1015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1017. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1018. base.OnRowDeleted(e);
  1019. if ((this.IndexPartnerRowDeleted != null)) {
  1020. this.IndexPartnerRowDeleted(this, new IndexPartnerRowChangeEvent(((IndexPartnerRow)(e.Row)), e.Action));
  1021. }
  1022. }
  1023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1025. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1026. base.OnRowDeleting(e);
  1027. if ((this.IndexPartnerRowDeleting != null)) {
  1028. this.IndexPartnerRowDeleting(this, new IndexPartnerRowChangeEvent(((IndexPartnerRow)(e.Row)), e.Action));
  1029. }
  1030. }
  1031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1032. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1033. public void RemoveIndexPartnerRow(IndexPartnerRow row) {
  1034. this.Rows.Remove(row);
  1035. }
  1036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1038. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1039. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1040. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1041. dbAlphapolAGDataSet ds = new dbAlphapolAGDataSet();
  1042. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1043. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1044. any1.MinOccurs = new decimal(0);
  1045. any1.MaxOccurs = decimal.MaxValue;
  1046. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1047. sequence.Items.Add(any1);
  1048. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1049. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1050. any2.MinOccurs = new decimal(1);
  1051. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1052. sequence.Items.Add(any2);
  1053. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1054. attribute1.Name = "namespace";
  1055. attribute1.FixedValue = ds.Namespace;
  1056. type.Attributes.Add(attribute1);
  1057. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1058. attribute2.Name = "tableTypeName";
  1059. attribute2.FixedValue = "IndexPartnerDataTable";
  1060. type.Attributes.Add(attribute2);
  1061. type.Particle = sequence;
  1062. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1063. if (xs.Contains(dsSchema.TargetNamespace)) {
  1064. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1065. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1066. try {
  1067. global::System.Xml.Schema.XmlSchema schema = null;
  1068. dsSchema.Write(s1);
  1069. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1070. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1071. s2.SetLength(0);
  1072. schema.Write(s2);
  1073. if ((s1.Length == s2.Length)) {
  1074. s1.Position = 0;
  1075. s2.Position = 0;
  1076. for (; ((s1.Position != s1.Length)
  1077. && (s1.ReadByte() == s2.ReadByte())); ) {
  1078. ;
  1079. }
  1080. if ((s1.Position == s1.Length)) {
  1081. return type;
  1082. }
  1083. }
  1084. }
  1085. }
  1086. finally {
  1087. if ((s1 != null)) {
  1088. s1.Close();
  1089. }
  1090. if ((s2 != null)) {
  1091. s2.Close();
  1092. }
  1093. }
  1094. }
  1095. xs.Add(dsSchema);
  1096. return type;
  1097. }
  1098. }
  1099. /// <summary>
  1100. ///Represents the strongly named DataTable class.
  1101. ///</summary>
  1102. [global::System.Serializable()]
  1103. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1104. public partial class ManagerDataTable : global::System.Data.TypedTableBase<ManagerRow> {
  1105. private global::System.Data.DataColumn columnidManager;
  1106. private global::System.Data.DataColumn columnSurname;
  1107. private global::System.Data.DataColumn columnName;
  1108. private global::System.Data.DataColumn columnPatronymic;
  1109. private global::System.Data.DataColumn columnLogin;
  1110. private global::System.Data.DataColumn columnPassword;
  1111. private global::System.Data.DataColumn columnPhoto;
  1112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1113. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1114. public ManagerDataTable() {
  1115. this.TableName = "Manager";
  1116. this.BeginInit();
  1117. this.InitClass();
  1118. this.EndInit();
  1119. }
  1120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1122. internal ManagerDataTable(global::System.Data.DataTable table) {
  1123. this.TableName = table.TableName;
  1124. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1125. this.CaseSensitive = table.CaseSensitive;
  1126. }
  1127. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1128. this.Locale = table.Locale;
  1129. }
  1130. if ((table.Namespace != table.DataSet.Namespace)) {
  1131. this.Namespace = table.Namespace;
  1132. }
  1133. this.Prefix = table.Prefix;
  1134. this.MinimumCapacity = table.MinimumCapacity;
  1135. }
  1136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1138. protected ManagerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1139. base(info, context) {
  1140. this.InitVars();
  1141. }
  1142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1144. public global::System.Data.DataColumn idManagerColumn {
  1145. get {
  1146. return this.columnidManager;
  1147. }
  1148. }
  1149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1151. public global::System.Data.DataColumn SurnameColumn {
  1152. get {
  1153. return this.columnSurname;
  1154. }
  1155. }
  1156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1158. public global::System.Data.DataColumn NameColumn {
  1159. get {
  1160. return this.columnName;
  1161. }
  1162. }
  1163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1165. public global::System.Data.DataColumn PatronymicColumn {
  1166. get {
  1167. return this.columnPatronymic;
  1168. }
  1169. }
  1170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1171. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1172. public global::System.Data.DataColumn LoginColumn {
  1173. get {
  1174. return this.columnLogin;
  1175. }
  1176. }
  1177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1179. public global::System.Data.DataColumn PasswordColumn {
  1180. get {
  1181. return this.columnPassword;
  1182. }
  1183. }
  1184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1186. public global::System.Data.DataColumn PhotoColumn {
  1187. get {
  1188. return this.columnPhoto;
  1189. }
  1190. }
  1191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1193. [global::System.ComponentModel.Browsable(false)]
  1194. public int Count {
  1195. get {
  1196. return this.Rows.Count;
  1197. }
  1198. }
  1199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1200. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1201. public ManagerRow this[int index] {
  1202. get {
  1203. return ((ManagerRow)(this.Rows[index]));
  1204. }
  1205. }
  1206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1207. public event ManagerRowChangeEventHandler ManagerRowChanging;
  1208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1209. public event ManagerRowChangeEventHandler ManagerRowChanged;
  1210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1211. public event ManagerRowChangeEventHandler ManagerRowDeleting;
  1212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1213. public event ManagerRowChangeEventHandler ManagerRowDeleted;
  1214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1216. public void AddManagerRow(ManagerRow row) {
  1217. this.Rows.Add(row);
  1218. }
  1219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1221. public ManagerRow AddManagerRow(string Surname, string Name, string Patronymic, string Login, string Password, string Photo) {
  1222. ManagerRow rowManagerRow = ((ManagerRow)(this.NewRow()));
  1223. object[] columnValuesArray = new object[] {
  1224. null,
  1225. Surname,
  1226. Name,
  1227. Patronymic,
  1228. Login,
  1229. Password,
  1230. Photo};
  1231. rowManagerRow.ItemArray = columnValuesArray;
  1232. this.Rows.Add(rowManagerRow);
  1233. return rowManagerRow;
  1234. }
  1235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1236. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1237. public ManagerRow FindByidManager(int idManager) {
  1238. return ((ManagerRow)(this.Rows.Find(new object[] {
  1239. idManager})));
  1240. }
  1241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1243. public override global::System.Data.DataTable Clone() {
  1244. ManagerDataTable cln = ((ManagerDataTable)(base.Clone()));
  1245. cln.InitVars();
  1246. return cln;
  1247. }
  1248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1250. protected override global::System.Data.DataTable CreateInstance() {
  1251. return new ManagerDataTable();
  1252. }
  1253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1255. internal void InitVars() {
  1256. this.columnidManager = base.Columns["idManager"];
  1257. this.columnSurname = base.Columns["Surname"];
  1258. this.columnName = base.Columns["Name"];
  1259. this.columnPatronymic = base.Columns["Patronymic"];
  1260. this.columnLogin = base.Columns["Login"];
  1261. this.columnPassword = base.Columns["Password"];
  1262. this.columnPhoto = base.Columns["Photo"];
  1263. }
  1264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1265. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1266. private void InitClass() {
  1267. this.columnidManager = new global::System.Data.DataColumn("idManager", typeof(int), null, global::System.Data.MappingType.Element);
  1268. base.Columns.Add(this.columnidManager);
  1269. this.columnSurname = new global::System.Data.DataColumn("Surname", typeof(string), null, global::System.Data.MappingType.Element);
  1270. base.Columns.Add(this.columnSurname);
  1271. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  1272. base.Columns.Add(this.columnName);
  1273. this.columnPatronymic = new global::System.Data.DataColumn("Patronymic", typeof(string), null, global::System.Data.MappingType.Element);
  1274. base.Columns.Add(this.columnPatronymic);
  1275. this.columnLogin = new global::System.Data.DataColumn("Login", typeof(string), null, global::System.Data.MappingType.Element);
  1276. base.Columns.Add(this.columnLogin);
  1277. this.columnPassword = new global::System.Data.DataColumn("Password", typeof(string), null, global::System.Data.MappingType.Element);
  1278. base.Columns.Add(this.columnPassword);
  1279. this.columnPhoto = new global::System.Data.DataColumn("Photo", typeof(string), null, global::System.Data.MappingType.Element);
  1280. base.Columns.Add(this.columnPhoto);
  1281. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1282. this.columnidManager}, true));
  1283. this.columnidManager.AutoIncrement = true;
  1284. this.columnidManager.AutoIncrementSeed = 1;
  1285. this.columnidManager.AllowDBNull = false;
  1286. this.columnidManager.ReadOnly = true;
  1287. this.columnidManager.Unique = true;
  1288. this.columnSurname.MaxLength = 50;
  1289. this.columnName.MaxLength = 50;
  1290. this.columnPatronymic.MaxLength = 50;
  1291. this.columnLogin.MaxLength = 50;
  1292. this.columnPassword.MaxLength = 50;
  1293. this.columnPhoto.MaxLength = 50;
  1294. }
  1295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1297. public ManagerRow NewManagerRow() {
  1298. return ((ManagerRow)(this.NewRow()));
  1299. }
  1300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1302. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1303. return new ManagerRow(builder);
  1304. }
  1305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1306. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1307. protected override global::System.Type GetRowType() {
  1308. return typeof(ManagerRow);
  1309. }
  1310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1312. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1313. base.OnRowChanged(e);
  1314. if ((this.ManagerRowChanged != null)) {
  1315. this.ManagerRowChanged(this, new ManagerRowChangeEvent(((ManagerRow)(e.Row)), e.Action));
  1316. }
  1317. }
  1318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1320. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1321. base.OnRowChanging(e);
  1322. if ((this.ManagerRowChanging != null)) {
  1323. this.ManagerRowChanging(this, new ManagerRowChangeEvent(((ManagerRow)(e.Row)), e.Action));
  1324. }
  1325. }
  1326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1327. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1328. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1329. base.OnRowDeleted(e);
  1330. if ((this.ManagerRowDeleted != null)) {
  1331. this.ManagerRowDeleted(this, new ManagerRowChangeEvent(((ManagerRow)(e.Row)), e.Action));
  1332. }
  1333. }
  1334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1336. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1337. base.OnRowDeleting(e);
  1338. if ((this.ManagerRowDeleting != null)) {
  1339. this.ManagerRowDeleting(this, new ManagerRowChangeEvent(((ManagerRow)(e.Row)), e.Action));
  1340. }
  1341. }
  1342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1344. public void RemoveManagerRow(ManagerRow row) {
  1345. this.Rows.Remove(row);
  1346. }
  1347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1349. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1350. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1351. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1352. dbAlphapolAGDataSet ds = new dbAlphapolAGDataSet();
  1353. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1354. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1355. any1.MinOccurs = new decimal(0);
  1356. any1.MaxOccurs = decimal.MaxValue;
  1357. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1358. sequence.Items.Add(any1);
  1359. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1360. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1361. any2.MinOccurs = new decimal(1);
  1362. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1363. sequence.Items.Add(any2);
  1364. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1365. attribute1.Name = "namespace";
  1366. attribute1.FixedValue = ds.Namespace;
  1367. type.Attributes.Add(attribute1);
  1368. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1369. attribute2.Name = "tableTypeName";
  1370. attribute2.FixedValue = "ManagerDataTable";
  1371. type.Attributes.Add(attribute2);
  1372. type.Particle = sequence;
  1373. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1374. if (xs.Contains(dsSchema.TargetNamespace)) {
  1375. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1376. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1377. try {
  1378. global::System.Xml.Schema.XmlSchema schema = null;
  1379. dsSchema.Write(s1);
  1380. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1381. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1382. s2.SetLength(0);
  1383. schema.Write(s2);
  1384. if ((s1.Length == s2.Length)) {
  1385. s1.Position = 0;
  1386. s2.Position = 0;
  1387. for (; ((s1.Position != s1.Length)
  1388. && (s1.ReadByte() == s2.ReadByte())); ) {
  1389. ;
  1390. }
  1391. if ((s1.Position == s1.Length)) {
  1392. return type;
  1393. }
  1394. }
  1395. }
  1396. }
  1397. finally {
  1398. if ((s1 != null)) {
  1399. s1.Close();
  1400. }
  1401. if ((s2 != null)) {
  1402. s2.Close();
  1403. }
  1404. }
  1405. }
  1406. xs.Add(dsSchema);
  1407. return type;
  1408. }
  1409. }
  1410. /// <summary>
  1411. ///Represents the strongly named DataTable class.
  1412. ///</summary>
  1413. [global::System.Serializable()]
  1414. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1415. public partial class PartnerDataTable : global::System.Data.TypedTableBase<PartnerRow> {
  1416. private global::System.Data.DataColumn columnidPartner;
  1417. private global::System.Data.DataColumn columnSurname;
  1418. private global::System.Data.DataColumn columnName;
  1419. private global::System.Data.DataColumn columnPatronymic;
  1420. private global::System.Data.DataColumn columnEmail;
  1421. private global::System.Data.DataColumn columnPhone;
  1422. private global::System.Data.DataColumn columnidIndex;
  1423. private global::System.Data.DataColumn columnidCity;
  1424. private global::System.Data.DataColumn columnidStreet;
  1425. private global::System.Data.DataColumn columnHouse;
  1426. private global::System.Data.DataColumn columnINN;
  1427. private global::System.Data.DataColumn columnRating;
  1428. private global::System.Data.DataColumn columnidRegion;
  1429. private global::System.Data.DataColumn columnidTypePartner;
  1430. private global::System.Data.DataColumn columnNamePartner;
  1431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1433. public PartnerDataTable() {
  1434. this.TableName = "Partner";
  1435. this.BeginInit();
  1436. this.InitClass();
  1437. this.EndInit();
  1438. }
  1439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1441. internal PartnerDataTable(global::System.Data.DataTable table) {
  1442. this.TableName = table.TableName;
  1443. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1444. this.CaseSensitive = table.CaseSensitive;
  1445. }
  1446. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1447. this.Locale = table.Locale;
  1448. }
  1449. if ((table.Namespace != table.DataSet.Namespace)) {
  1450. this.Namespace = table.Namespace;
  1451. }
  1452. this.Prefix = table.Prefix;
  1453. this.MinimumCapacity = table.MinimumCapacity;
  1454. }
  1455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1456. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1457. protected PartnerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1458. base(info, context) {
  1459. this.InitVars();
  1460. }
  1461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1463. public global::System.Data.DataColumn idPartnerColumn {
  1464. get {
  1465. return this.columnidPartner;
  1466. }
  1467. }
  1468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1470. public global::System.Data.DataColumn SurnameColumn {
  1471. get {
  1472. return this.columnSurname;
  1473. }
  1474. }
  1475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1477. public global::System.Data.DataColumn NameColumn {
  1478. get {
  1479. return this.columnName;
  1480. }
  1481. }
  1482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1484. public global::System.Data.DataColumn PatronymicColumn {
  1485. get {
  1486. return this.columnPatronymic;
  1487. }
  1488. }
  1489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1491. public global::System.Data.DataColumn EmailColumn {
  1492. get {
  1493. return this.columnEmail;
  1494. }
  1495. }
  1496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1498. public global::System.Data.DataColumn PhoneColumn {
  1499. get {
  1500. return this.columnPhone;
  1501. }
  1502. }
  1503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1505. public global::System.Data.DataColumn idIndexColumn {
  1506. get {
  1507. return this.columnidIndex;
  1508. }
  1509. }
  1510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1512. public global::System.Data.DataColumn idCityColumn {
  1513. get {
  1514. return this.columnidCity;
  1515. }
  1516. }
  1517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1519. public global::System.Data.DataColumn idStreetColumn {
  1520. get {
  1521. return this.columnidStreet;
  1522. }
  1523. }
  1524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1526. public global::System.Data.DataColumn HouseColumn {
  1527. get {
  1528. return this.columnHouse;
  1529. }
  1530. }
  1531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1533. public global::System.Data.DataColumn INNColumn {
  1534. get {
  1535. return this.columnINN;
  1536. }
  1537. }
  1538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1539. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1540. public global::System.Data.DataColumn RatingColumn {
  1541. get {
  1542. return this.columnRating;
  1543. }
  1544. }
  1545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1547. public global::System.Data.DataColumn idRegionColumn {
  1548. get {
  1549. return this.columnidRegion;
  1550. }
  1551. }
  1552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1554. public global::System.Data.DataColumn idTypePartnerColumn {
  1555. get {
  1556. return this.columnidTypePartner;
  1557. }
  1558. }
  1559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1561. public global::System.Data.DataColumn NamePartnerColumn {
  1562. get {
  1563. return this.columnNamePartner;
  1564. }
  1565. }
  1566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1568. [global::System.ComponentModel.Browsable(false)]
  1569. public int Count {
  1570. get {
  1571. return this.Rows.Count;
  1572. }
  1573. }
  1574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1576. public PartnerRow this[int index] {
  1577. get {
  1578. return ((PartnerRow)(this.Rows[index]));
  1579. }
  1580. }
  1581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1582. public event PartnerRowChangeEventHandler PartnerRowChanging;
  1583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1584. public event PartnerRowChangeEventHandler PartnerRowChanged;
  1585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1586. public event PartnerRowChangeEventHandler PartnerRowDeleting;
  1587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1588. public event PartnerRowChangeEventHandler PartnerRowDeleted;
  1589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1591. public void AddPartnerRow(PartnerRow row) {
  1592. this.Rows.Add(row);
  1593. }
  1594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1596. public PartnerRow AddPartnerRow(string Surname, string Name, string Patronymic, string Email, string Phone, IndexPartnerRow parentIndexPartnerRowByFK_Partner_IndexPartner, CityRow parentCityRowByFK_Partner_City, StreetRow parentStreetRowByFK_Partner_Street, int House, string INN, string Rating, RegionRow parentRegionRowByFK_Partner_Region, TypePartnerRow parentTypePartnerRowByFK_Partner_TypePartner, string NamePartner) {
  1597. PartnerRow rowPartnerRow = ((PartnerRow)(this.NewRow()));
  1598. object[] columnValuesArray = new object[] {
  1599. null,
  1600. Surname,
  1601. Name,
  1602. Patronymic,
  1603. Email,
  1604. Phone,
  1605. null,
  1606. null,
  1607. null,
  1608. House,
  1609. INN,
  1610. Rating,
  1611. null,
  1612. null,
  1613. NamePartner};
  1614. if ((parentIndexPartnerRowByFK_Partner_IndexPartner != null)) {
  1615. columnValuesArray[6] = parentIndexPartnerRowByFK_Partner_IndexPartner[0];
  1616. }
  1617. if ((parentCityRowByFK_Partner_City != null)) {
  1618. columnValuesArray[7] = parentCityRowByFK_Partner_City[0];
  1619. }
  1620. if ((parentStreetRowByFK_Partner_Street != null)) {
  1621. columnValuesArray[8] = parentStreetRowByFK_Partner_Street[0];
  1622. }
  1623. if ((parentRegionRowByFK_Partner_Region != null)) {
  1624. columnValuesArray[12] = parentRegionRowByFK_Partner_Region[0];
  1625. }
  1626. if ((parentTypePartnerRowByFK_Partner_TypePartner != null)) {
  1627. columnValuesArray[13] = parentTypePartnerRowByFK_Partner_TypePartner[0];
  1628. }
  1629. rowPartnerRow.ItemArray = columnValuesArray;
  1630. this.Rows.Add(rowPartnerRow);
  1631. return rowPartnerRow;
  1632. }
  1633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1635. public PartnerRow FindByidPartner(int idPartner) {
  1636. return ((PartnerRow)(this.Rows.Find(new object[] {
  1637. idPartner})));
  1638. }
  1639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1641. public override global::System.Data.DataTable Clone() {
  1642. PartnerDataTable cln = ((PartnerDataTable)(base.Clone()));
  1643. cln.InitVars();
  1644. return cln;
  1645. }
  1646. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1648. protected override global::System.Data.DataTable CreateInstance() {
  1649. return new PartnerDataTable();
  1650. }
  1651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1653. internal void InitVars() {
  1654. this.columnidPartner = base.Columns["idPartner"];
  1655. this.columnSurname = base.Columns["Surname"];
  1656. this.columnName = base.Columns["Name"];
  1657. this.columnPatronymic = base.Columns["Patronymic"];
  1658. this.columnEmail = base.Columns["Email"];
  1659. this.columnPhone = base.Columns["Phone"];
  1660. this.columnidIndex = base.Columns["idIndex"];
  1661. this.columnidCity = base.Columns["idCity"];
  1662. this.columnidStreet = base.Columns["idStreet"];
  1663. this.columnHouse = base.Columns["House"];
  1664. this.columnINN = base.Columns["INN"];
  1665. this.columnRating = base.Columns["Rating"];
  1666. this.columnidRegion = base.Columns["idRegion"];
  1667. this.columnidTypePartner = base.Columns["idTypePartner"];
  1668. this.columnNamePartner = base.Columns["NamePartner"];
  1669. }
  1670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1672. private void InitClass() {
  1673. this.columnidPartner = new global::System.Data.DataColumn("idPartner", typeof(int), null, global::System.Data.MappingType.Element);
  1674. base.Columns.Add(this.columnidPartner);
  1675. this.columnSurname = new global::System.Data.DataColumn("Surname", typeof(string), null, global::System.Data.MappingType.Element);
  1676. base.Columns.Add(this.columnSurname);
  1677. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  1678. base.Columns.Add(this.columnName);
  1679. this.columnPatronymic = new global::System.Data.DataColumn("Patronymic", typeof(string), null, global::System.Data.MappingType.Element);
  1680. base.Columns.Add(this.columnPatronymic);
  1681. this.columnEmail = new global::System.Data.DataColumn("Email", typeof(string), null, global::System.Data.MappingType.Element);
  1682. base.Columns.Add(this.columnEmail);
  1683. this.columnPhone = new global::System.Data.DataColumn("Phone", typeof(string), null, global::System.Data.MappingType.Element);
  1684. base.Columns.Add(this.columnPhone);
  1685. this.columnidIndex = new global::System.Data.DataColumn("idIndex", typeof(int), null, global::System.Data.MappingType.Element);
  1686. base.Columns.Add(this.columnidIndex);
  1687. this.columnidCity = new global::System.Data.DataColumn("idCity", typeof(int), null, global::System.Data.MappingType.Element);
  1688. base.Columns.Add(this.columnidCity);
  1689. this.columnidStreet = new global::System.Data.DataColumn("idStreet", typeof(int), null, global::System.Data.MappingType.Element);
  1690. base.Columns.Add(this.columnidStreet);
  1691. this.columnHouse = new global::System.Data.DataColumn("House", typeof(int), null, global::System.Data.MappingType.Element);
  1692. base.Columns.Add(this.columnHouse);
  1693. this.columnINN = new global::System.Data.DataColumn("INN", typeof(string), null, global::System.Data.MappingType.Element);
  1694. base.Columns.Add(this.columnINN);
  1695. this.columnRating = new global::System.Data.DataColumn("Rating", typeof(string), null, global::System.Data.MappingType.Element);
  1696. base.Columns.Add(this.columnRating);
  1697. this.columnidRegion = new global::System.Data.DataColumn("idRegion", typeof(int), null, global::System.Data.MappingType.Element);
  1698. base.Columns.Add(this.columnidRegion);
  1699. this.columnidTypePartner = new global::System.Data.DataColumn("idTypePartner", typeof(int), null, global::System.Data.MappingType.Element);
  1700. base.Columns.Add(this.columnidTypePartner);
  1701. this.columnNamePartner = new global::System.Data.DataColumn("NamePartner", typeof(string), null, global::System.Data.MappingType.Element);
  1702. base.Columns.Add(this.columnNamePartner);
  1703. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1704. this.columnidPartner}, true));
  1705. this.columnidPartner.AutoIncrement = true;
  1706. this.columnidPartner.AutoIncrementSeed = 1;
  1707. this.columnidPartner.AllowDBNull = false;
  1708. this.columnidPartner.ReadOnly = true;
  1709. this.columnidPartner.Unique = true;
  1710. this.columnSurname.MaxLength = 50;
  1711. this.columnName.MaxLength = 50;
  1712. this.columnPatronymic.MaxLength = 50;
  1713. this.columnEmail.MaxLength = 50;
  1714. this.columnPhone.MaxLength = 50;
  1715. this.columnINN.MaxLength = 50;
  1716. this.columnRating.MaxLength = 50;
  1717. this.columnNamePartner.MaxLength = 50;
  1718. }
  1719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1721. public PartnerRow NewPartnerRow() {
  1722. return ((PartnerRow)(this.NewRow()));
  1723. }
  1724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1725. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1726. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1727. return new PartnerRow(builder);
  1728. }
  1729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1731. protected override global::System.Type GetRowType() {
  1732. return typeof(PartnerRow);
  1733. }
  1734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1736. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1737. base.OnRowChanged(e);
  1738. if ((this.PartnerRowChanged != null)) {
  1739. this.PartnerRowChanged(this, new PartnerRowChangeEvent(((PartnerRow)(e.Row)), e.Action));
  1740. }
  1741. }
  1742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1744. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1745. base.OnRowChanging(e);
  1746. if ((this.PartnerRowChanging != null)) {
  1747. this.PartnerRowChanging(this, new PartnerRowChangeEvent(((PartnerRow)(e.Row)), e.Action));
  1748. }
  1749. }
  1750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1752. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1753. base.OnRowDeleted(e);
  1754. if ((this.PartnerRowDeleted != null)) {
  1755. this.PartnerRowDeleted(this, new PartnerRowChangeEvent(((PartnerRow)(e.Row)), e.Action));
  1756. }
  1757. }
  1758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1760. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1761. base.OnRowDeleting(e);
  1762. if ((this.PartnerRowDeleting != null)) {
  1763. this.PartnerRowDeleting(this, new PartnerRowChangeEvent(((PartnerRow)(e.Row)), e.Action));
  1764. }
  1765. }
  1766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1768. public void RemovePartnerRow(PartnerRow row) {
  1769. this.Rows.Remove(row);
  1770. }
  1771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1773. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1774. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1775. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1776. dbAlphapolAGDataSet ds = new dbAlphapolAGDataSet();
  1777. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1778. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1779. any1.MinOccurs = new decimal(0);
  1780. any1.MaxOccurs = decimal.MaxValue;
  1781. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1782. sequence.Items.Add(any1);
  1783. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1784. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1785. any2.MinOccurs = new decimal(1);
  1786. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1787. sequence.Items.Add(any2);
  1788. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1789. attribute1.Name = "namespace";
  1790. attribute1.FixedValue = ds.Namespace;
  1791. type.Attributes.Add(attribute1);
  1792. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1793. attribute2.Name = "tableTypeName";
  1794. attribute2.FixedValue = "PartnerDataTable";
  1795. type.Attributes.Add(attribute2);
  1796. type.Particle = sequence;
  1797. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1798. if (xs.Contains(dsSchema.TargetNamespace)) {
  1799. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1800. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1801. try {
  1802. global::System.Xml.Schema.XmlSchema schema = null;
  1803. dsSchema.Write(s1);
  1804. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1805. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1806. s2.SetLength(0);
  1807. schema.Write(s2);
  1808. if ((s1.Length == s2.Length)) {
  1809. s1.Position = 0;
  1810. s2.Position = 0;
  1811. for (; ((s1.Position != s1.Length)
  1812. && (s1.ReadByte() == s2.ReadByte())); ) {
  1813. ;
  1814. }
  1815. if ((s1.Position == s1.Length)) {
  1816. return type;
  1817. }
  1818. }
  1819. }
  1820. }
  1821. finally {
  1822. if ((s1 != null)) {
  1823. s1.Close();
  1824. }
  1825. if ((s2 != null)) {
  1826. s2.Close();
  1827. }
  1828. }
  1829. }
  1830. xs.Add(dsSchema);
  1831. return type;
  1832. }
  1833. }
  1834. /// <summary>
  1835. ///Represents the strongly named DataTable class.
  1836. ///</summary>
  1837. [global::System.Serializable()]
  1838. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1839. public partial class ProductPartnerDataTable : global::System.Data.TypedTableBase<ProductPartnerRow> {
  1840. private global::System.Data.DataColumn columnidPartnerProduct;
  1841. private global::System.Data.DataColumn columnidProduct;
  1842. private global::System.Data.DataColumn columnidPartner;
  1843. private global::System.Data.DataColumn columnCountProduct;
  1844. private global::System.Data.DataColumn columnDateSale;
  1845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1847. public ProductPartnerDataTable() {
  1848. this.TableName = "ProductPartner";
  1849. this.BeginInit();
  1850. this.InitClass();
  1851. this.EndInit();
  1852. }
  1853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1855. internal ProductPartnerDataTable(global::System.Data.DataTable table) {
  1856. this.TableName = table.TableName;
  1857. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1858. this.CaseSensitive = table.CaseSensitive;
  1859. }
  1860. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1861. this.Locale = table.Locale;
  1862. }
  1863. if ((table.Namespace != table.DataSet.Namespace)) {
  1864. this.Namespace = table.Namespace;
  1865. }
  1866. this.Prefix = table.Prefix;
  1867. this.MinimumCapacity = table.MinimumCapacity;
  1868. }
  1869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1871. protected ProductPartnerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1872. base(info, context) {
  1873. this.InitVars();
  1874. }
  1875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1877. public global::System.Data.DataColumn idPartnerProductColumn {
  1878. get {
  1879. return this.columnidPartnerProduct;
  1880. }
  1881. }
  1882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1884. public global::System.Data.DataColumn idProductColumn {
  1885. get {
  1886. return this.columnidProduct;
  1887. }
  1888. }
  1889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1891. public global::System.Data.DataColumn idPartnerColumn {
  1892. get {
  1893. return this.columnidPartner;
  1894. }
  1895. }
  1896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1898. public global::System.Data.DataColumn CountProductColumn {
  1899. get {
  1900. return this.columnCountProduct;
  1901. }
  1902. }
  1903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1904. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1905. public global::System.Data.DataColumn DateSaleColumn {
  1906. get {
  1907. return this.columnDateSale;
  1908. }
  1909. }
  1910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1911. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1912. [global::System.ComponentModel.Browsable(false)]
  1913. public int Count {
  1914. get {
  1915. return this.Rows.Count;
  1916. }
  1917. }
  1918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1920. public ProductPartnerRow this[int index] {
  1921. get {
  1922. return ((ProductPartnerRow)(this.Rows[index]));
  1923. }
  1924. }
  1925. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1926. public event ProductPartnerRowChangeEventHandler ProductPartnerRowChanging;
  1927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1928. public event ProductPartnerRowChangeEventHandler ProductPartnerRowChanged;
  1929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1930. public event ProductPartnerRowChangeEventHandler ProductPartnerRowDeleting;
  1931. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1932. public event ProductPartnerRowChangeEventHandler ProductPartnerRowDeleted;
  1933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1934. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1935. public void AddProductPartnerRow(ProductPartnerRow row) {
  1936. this.Rows.Add(row);
  1937. }
  1938. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1939. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1940. public ProductPartnerRow AddProductPartnerRow(ProductsRow parentProductsRowByFK_ProductPartner_Products, PartnerRow parentPartnerRowByFK_ProductPartner_Partner, int CountProduct, System.DateTime DateSale) {
  1941. ProductPartnerRow rowProductPartnerRow = ((ProductPartnerRow)(this.NewRow()));
  1942. object[] columnValuesArray = new object[] {
  1943. null,
  1944. null,
  1945. null,
  1946. CountProduct,
  1947. DateSale};
  1948. if ((parentProductsRowByFK_ProductPartner_Products != null)) {
  1949. columnValuesArray[1] = parentProductsRowByFK_ProductPartner_Products[0];
  1950. }
  1951. if ((parentPartnerRowByFK_ProductPartner_Partner != null)) {
  1952. columnValuesArray[2] = parentPartnerRowByFK_ProductPartner_Partner[0];
  1953. }
  1954. rowProductPartnerRow.ItemArray = columnValuesArray;
  1955. this.Rows.Add(rowProductPartnerRow);
  1956. return rowProductPartnerRow;
  1957. }
  1958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1959. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1960. public ProductPartnerRow FindByidPartnerProduct(int idPartnerProduct) {
  1961. return ((ProductPartnerRow)(this.Rows.Find(new object[] {
  1962. idPartnerProduct})));
  1963. }
  1964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1966. public override global::System.Data.DataTable Clone() {
  1967. ProductPartnerDataTable cln = ((ProductPartnerDataTable)(base.Clone()));
  1968. cln.InitVars();
  1969. return cln;
  1970. }
  1971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1972. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1973. protected override global::System.Data.DataTable CreateInstance() {
  1974. return new ProductPartnerDataTable();
  1975. }
  1976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1978. internal void InitVars() {
  1979. this.columnidPartnerProduct = base.Columns["idPartnerProduct"];
  1980. this.columnidProduct = base.Columns["idProduct"];
  1981. this.columnidPartner = base.Columns["idPartner"];
  1982. this.columnCountProduct = base.Columns["CountProduct"];
  1983. this.columnDateSale = base.Columns["DateSale"];
  1984. }
  1985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1987. private void InitClass() {
  1988. this.columnidPartnerProduct = new global::System.Data.DataColumn("idPartnerProduct", typeof(int), null, global::System.Data.MappingType.Element);
  1989. base.Columns.Add(this.columnidPartnerProduct);
  1990. this.columnidProduct = new global::System.Data.DataColumn("idProduct", typeof(int), null, global::System.Data.MappingType.Element);
  1991. base.Columns.Add(this.columnidProduct);
  1992. this.columnidPartner = new global::System.Data.DataColumn("idPartner", typeof(int), null, global::System.Data.MappingType.Element);
  1993. base.Columns.Add(this.columnidPartner);
  1994. this.columnCountProduct = new global::System.Data.DataColumn("CountProduct", typeof(int), null, global::System.Data.MappingType.Element);
  1995. base.Columns.Add(this.columnCountProduct);
  1996. this.columnDateSale = new global::System.Data.DataColumn("DateSale", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1997. base.Columns.Add(this.columnDateSale);
  1998. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1999. this.columnidPartnerProduct}, true));
  2000. this.columnidPartnerProduct.AutoIncrement = true;
  2001. this.columnidPartnerProduct.AutoIncrementSeed = 1;
  2002. this.columnidPartnerProduct.AllowDBNull = false;
  2003. this.columnidPartnerProduct.ReadOnly = true;
  2004. this.columnidPartnerProduct.Unique = true;
  2005. }
  2006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2008. public ProductPartnerRow NewProductPartnerRow() {
  2009. return ((ProductPartnerRow)(this.NewRow()));
  2010. }
  2011. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2012. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2013. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2014. return new ProductPartnerRow(builder);
  2015. }
  2016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2018. protected override global::System.Type GetRowType() {
  2019. return typeof(ProductPartnerRow);
  2020. }
  2021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2023. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2024. base.OnRowChanged(e);
  2025. if ((this.ProductPartnerRowChanged != null)) {
  2026. this.ProductPartnerRowChanged(this, new ProductPartnerRowChangeEvent(((ProductPartnerRow)(e.Row)), e.Action));
  2027. }
  2028. }
  2029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2031. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2032. base.OnRowChanging(e);
  2033. if ((this.ProductPartnerRowChanging != null)) {
  2034. this.ProductPartnerRowChanging(this, new ProductPartnerRowChangeEvent(((ProductPartnerRow)(e.Row)), e.Action));
  2035. }
  2036. }
  2037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2039. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2040. base.OnRowDeleted(e);
  2041. if ((this.ProductPartnerRowDeleted != null)) {
  2042. this.ProductPartnerRowDeleted(this, new ProductPartnerRowChangeEvent(((ProductPartnerRow)(e.Row)), e.Action));
  2043. }
  2044. }
  2045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2047. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2048. base.OnRowDeleting(e);
  2049. if ((this.ProductPartnerRowDeleting != null)) {
  2050. this.ProductPartnerRowDeleting(this, new ProductPartnerRowChangeEvent(((ProductPartnerRow)(e.Row)), e.Action));
  2051. }
  2052. }
  2053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2055. public void RemoveProductPartnerRow(ProductPartnerRow row) {
  2056. this.Rows.Remove(row);
  2057. }
  2058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2060. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2061. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2062. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2063. dbAlphapolAGDataSet ds = new dbAlphapolAGDataSet();
  2064. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2065. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2066. any1.MinOccurs = new decimal(0);
  2067. any1.MaxOccurs = decimal.MaxValue;
  2068. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2069. sequence.Items.Add(any1);
  2070. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2071. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2072. any2.MinOccurs = new decimal(1);
  2073. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2074. sequence.Items.Add(any2);
  2075. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2076. attribute1.Name = "namespace";
  2077. attribute1.FixedValue = ds.Namespace;
  2078. type.Attributes.Add(attribute1);
  2079. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2080. attribute2.Name = "tableTypeName";
  2081. attribute2.FixedValue = "ProductPartnerDataTable";
  2082. type.Attributes.Add(attribute2);
  2083. type.Particle = sequence;
  2084. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2085. if (xs.Contains(dsSchema.TargetNamespace)) {
  2086. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2087. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2088. try {
  2089. global::System.Xml.Schema.XmlSchema schema = null;
  2090. dsSchema.Write(s1);
  2091. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2092. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2093. s2.SetLength(0);
  2094. schema.Write(s2);
  2095. if ((s1.Length == s2.Length)) {
  2096. s1.Position = 0;
  2097. s2.Position = 0;
  2098. for (; ((s1.Position != s1.Length)
  2099. && (s1.ReadByte() == s2.ReadByte())); ) {
  2100. ;
  2101. }
  2102. if ((s1.Position == s1.Length)) {
  2103. return type;
  2104. }
  2105. }
  2106. }
  2107. }
  2108. finally {
  2109. if ((s1 != null)) {
  2110. s1.Close();
  2111. }
  2112. if ((s2 != null)) {
  2113. s2.Close();
  2114. }
  2115. }
  2116. }
  2117. xs.Add(dsSchema);
  2118. return type;
  2119. }
  2120. }
  2121. /// <summary>
  2122. ///Represents the strongly named DataTable class.
  2123. ///</summary>
  2124. [global::System.Serializable()]
  2125. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2126. public partial class ProductsDataTable : global::System.Data.TypedTableBase<ProductsRow> {
  2127. private global::System.Data.DataColumn columnidProduct;
  2128. private global::System.Data.DataColumn columnidTypeProduct;
  2129. private global::System.Data.DataColumn columnNameProduct;
  2130. private global::System.Data.DataColumn columnArticle;
  2131. private global::System.Data.DataColumn columnMinCost;
  2132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2133. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2134. public ProductsDataTable() {
  2135. this.TableName = "Products";
  2136. this.BeginInit();
  2137. this.InitClass();
  2138. this.EndInit();
  2139. }
  2140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2142. internal ProductsDataTable(global::System.Data.DataTable table) {
  2143. this.TableName = table.TableName;
  2144. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2145. this.CaseSensitive = table.CaseSensitive;
  2146. }
  2147. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2148. this.Locale = table.Locale;
  2149. }
  2150. if ((table.Namespace != table.DataSet.Namespace)) {
  2151. this.Namespace = table.Namespace;
  2152. }
  2153. this.Prefix = table.Prefix;
  2154. this.MinimumCapacity = table.MinimumCapacity;
  2155. }
  2156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2158. protected ProductsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2159. base(info, context) {
  2160. this.InitVars();
  2161. }
  2162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2164. public global::System.Data.DataColumn idProductColumn {
  2165. get {
  2166. return this.columnidProduct;
  2167. }
  2168. }
  2169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2171. public global::System.Data.DataColumn idTypeProductColumn {
  2172. get {
  2173. return this.columnidTypeProduct;
  2174. }
  2175. }
  2176. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2177. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2178. public global::System.Data.DataColumn NameProductColumn {
  2179. get {
  2180. return this.columnNameProduct;
  2181. }
  2182. }
  2183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2185. public global::System.Data.DataColumn ArticleColumn {
  2186. get {
  2187. return this.columnArticle;
  2188. }
  2189. }
  2190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2191. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2192. public global::System.Data.DataColumn MinCostColumn {
  2193. get {
  2194. return this.columnMinCost;
  2195. }
  2196. }
  2197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2199. [global::System.ComponentModel.Browsable(false)]
  2200. public int Count {
  2201. get {
  2202. return this.Rows.Count;
  2203. }
  2204. }
  2205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2207. public ProductsRow this[int index] {
  2208. get {
  2209. return ((ProductsRow)(this.Rows[index]));
  2210. }
  2211. }
  2212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2213. public event ProductsRowChangeEventHandler ProductsRowChanging;
  2214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2215. public event ProductsRowChangeEventHandler ProductsRowChanged;
  2216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2217. public event ProductsRowChangeEventHandler ProductsRowDeleting;
  2218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2219. public event ProductsRowChangeEventHandler ProductsRowDeleted;
  2220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2222. public void AddProductsRow(ProductsRow row) {
  2223. this.Rows.Add(row);
  2224. }
  2225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2227. public ProductsRow AddProductsRow(TypeProductRow parentTypeProductRowByFK_Products_TypeProduct, string NameProduct, int Article, decimal MinCost) {
  2228. ProductsRow rowProductsRow = ((ProductsRow)(this.NewRow()));
  2229. object[] columnValuesArray = new object[] {
  2230. null,
  2231. null,
  2232. NameProduct,
  2233. Article,
  2234. MinCost};
  2235. if ((parentTypeProductRowByFK_Products_TypeProduct != null)) {
  2236. columnValuesArray[1] = parentTypeProductRowByFK_Products_TypeProduct[0];
  2237. }
  2238. rowProductsRow.ItemArray = columnValuesArray;
  2239. this.Rows.Add(rowProductsRow);
  2240. return rowProductsRow;
  2241. }
  2242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2244. public ProductsRow FindByidProduct(int idProduct) {
  2245. return ((ProductsRow)(this.Rows.Find(new object[] {
  2246. idProduct})));
  2247. }
  2248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2250. public override global::System.Data.DataTable Clone() {
  2251. ProductsDataTable cln = ((ProductsDataTable)(base.Clone()));
  2252. cln.InitVars();
  2253. return cln;
  2254. }
  2255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2257. protected override global::System.Data.DataTable CreateInstance() {
  2258. return new ProductsDataTable();
  2259. }
  2260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2262. internal void InitVars() {
  2263. this.columnidProduct = base.Columns["idProduct"];
  2264. this.columnidTypeProduct = base.Columns["idTypeProduct"];
  2265. this.columnNameProduct = base.Columns["NameProduct"];
  2266. this.columnArticle = base.Columns["Article"];
  2267. this.columnMinCost = base.Columns["MinCost"];
  2268. }
  2269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2270. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2271. private void InitClass() {
  2272. this.columnidProduct = new global::System.Data.DataColumn("idProduct", typeof(int), null, global::System.Data.MappingType.Element);
  2273. base.Columns.Add(this.columnidProduct);
  2274. this.columnidTypeProduct = new global::System.Data.DataColumn("idTypeProduct", typeof(int), null, global::System.Data.MappingType.Element);
  2275. base.Columns.Add(this.columnidTypeProduct);
  2276. this.columnNameProduct = new global::System.Data.DataColumn("NameProduct", typeof(string), null, global::System.Data.MappingType.Element);
  2277. base.Columns.Add(this.columnNameProduct);
  2278. this.columnArticle = new global::System.Data.DataColumn("Article", typeof(int), null, global::System.Data.MappingType.Element);
  2279. base.Columns.Add(this.columnArticle);
  2280. this.columnMinCost = new global::System.Data.DataColumn("MinCost", typeof(decimal), null, global::System.Data.MappingType.Element);
  2281. base.Columns.Add(this.columnMinCost);
  2282. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2283. this.columnidProduct}, true));
  2284. this.columnidProduct.AutoIncrement = true;
  2285. this.columnidProduct.AutoIncrementSeed = 1;
  2286. this.columnidProduct.AllowDBNull = false;
  2287. this.columnidProduct.ReadOnly = true;
  2288. this.columnidProduct.Unique = true;
  2289. this.columnNameProduct.MaxLength = 2147483647;
  2290. }
  2291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2293. public ProductsRow NewProductsRow() {
  2294. return ((ProductsRow)(this.NewRow()));
  2295. }
  2296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2297. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2298. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2299. return new ProductsRow(builder);
  2300. }
  2301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2303. protected override global::System.Type GetRowType() {
  2304. return typeof(ProductsRow);
  2305. }
  2306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2308. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2309. base.OnRowChanged(e);
  2310. if ((this.ProductsRowChanged != null)) {
  2311. this.ProductsRowChanged(this, new ProductsRowChangeEvent(((ProductsRow)(e.Row)), e.Action));
  2312. }
  2313. }
  2314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2316. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2317. base.OnRowChanging(e);
  2318. if ((this.ProductsRowChanging != null)) {
  2319. this.ProductsRowChanging(this, new ProductsRowChangeEvent(((ProductsRow)(e.Row)), e.Action));
  2320. }
  2321. }
  2322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2324. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2325. base.OnRowDeleted(e);
  2326. if ((this.ProductsRowDeleted != null)) {
  2327. this.ProductsRowDeleted(this, new ProductsRowChangeEvent(((ProductsRow)(e.Row)), e.Action));
  2328. }
  2329. }
  2330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2332. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2333. base.OnRowDeleting(e);
  2334. if ((this.ProductsRowDeleting != null)) {
  2335. this.ProductsRowDeleting(this, new ProductsRowChangeEvent(((ProductsRow)(e.Row)), e.Action));
  2336. }
  2337. }
  2338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2340. public void RemoveProductsRow(ProductsRow row) {
  2341. this.Rows.Remove(row);
  2342. }
  2343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2344. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2345. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2346. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2347. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2348. dbAlphapolAGDataSet ds = new dbAlphapolAGDataSet();
  2349. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2350. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2351. any1.MinOccurs = new decimal(0);
  2352. any1.MaxOccurs = decimal.MaxValue;
  2353. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2354. sequence.Items.Add(any1);
  2355. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2356. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2357. any2.MinOccurs = new decimal(1);
  2358. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2359. sequence.Items.Add(any2);
  2360. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2361. attribute1.Name = "namespace";
  2362. attribute1.FixedValue = ds.Namespace;
  2363. type.Attributes.Add(attribute1);
  2364. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2365. attribute2.Name = "tableTypeName";
  2366. attribute2.FixedValue = "ProductsDataTable";
  2367. type.Attributes.Add(attribute2);
  2368. type.Particle = sequence;
  2369. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2370. if (xs.Contains(dsSchema.TargetNamespace)) {
  2371. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2372. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2373. try {
  2374. global::System.Xml.Schema.XmlSchema schema = null;
  2375. dsSchema.Write(s1);
  2376. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2377. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2378. s2.SetLength(0);
  2379. schema.Write(s2);
  2380. if ((s1.Length == s2.Length)) {
  2381. s1.Position = 0;
  2382. s2.Position = 0;
  2383. for (; ((s1.Position != s1.Length)
  2384. && (s1.ReadByte() == s2.ReadByte())); ) {
  2385. ;
  2386. }
  2387. if ((s1.Position == s1.Length)) {
  2388. return type;
  2389. }
  2390. }
  2391. }
  2392. }
  2393. finally {
  2394. if ((s1 != null)) {
  2395. s1.Close();
  2396. }
  2397. if ((s2 != null)) {
  2398. s2.Close();
  2399. }
  2400. }
  2401. }
  2402. xs.Add(dsSchema);
  2403. return type;
  2404. }
  2405. }
  2406. /// <summary>
  2407. ///Represents the strongly named DataTable class.
  2408. ///</summary>
  2409. [global::System.Serializable()]
  2410. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2411. public partial class RegionDataTable : global::System.Data.TypedTableBase<RegionRow> {
  2412. private global::System.Data.DataColumn columnidRegion;
  2413. private global::System.Data.DataColumn columnRegion;
  2414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2416. public RegionDataTable() {
  2417. this.TableName = "Region";
  2418. this.BeginInit();
  2419. this.InitClass();
  2420. this.EndInit();
  2421. }
  2422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2423. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2424. internal RegionDataTable(global::System.Data.DataTable table) {
  2425. this.TableName = table.TableName;
  2426. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2427. this.CaseSensitive = table.CaseSensitive;
  2428. }
  2429. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2430. this.Locale = table.Locale;
  2431. }
  2432. if ((table.Namespace != table.DataSet.Namespace)) {
  2433. this.Namespace = table.Namespace;
  2434. }
  2435. this.Prefix = table.Prefix;
  2436. this.MinimumCapacity = table.MinimumCapacity;
  2437. }
  2438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2440. protected RegionDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2441. base(info, context) {
  2442. this.InitVars();
  2443. }
  2444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2446. public global::System.Data.DataColumn idRegionColumn {
  2447. get {
  2448. return this.columnidRegion;
  2449. }
  2450. }
  2451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2453. public global::System.Data.DataColumn RegionColumn {
  2454. get {
  2455. return this.columnRegion;
  2456. }
  2457. }
  2458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2459. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2460. [global::System.ComponentModel.Browsable(false)]
  2461. public int Count {
  2462. get {
  2463. return this.Rows.Count;
  2464. }
  2465. }
  2466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2468. public RegionRow this[int index] {
  2469. get {
  2470. return ((RegionRow)(this.Rows[index]));
  2471. }
  2472. }
  2473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2474. public event RegionRowChangeEventHandler RegionRowChanging;
  2475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2476. public event RegionRowChangeEventHandler RegionRowChanged;
  2477. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2478. public event RegionRowChangeEventHandler RegionRowDeleting;
  2479. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2480. public event RegionRowChangeEventHandler RegionRowDeleted;
  2481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2483. public void AddRegionRow(RegionRow row) {
  2484. this.Rows.Add(row);
  2485. }
  2486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2488. public RegionRow AddRegionRow(string Region) {
  2489. RegionRow rowRegionRow = ((RegionRow)(this.NewRow()));
  2490. object[] columnValuesArray = new object[] {
  2491. null,
  2492. Region};
  2493. rowRegionRow.ItemArray = columnValuesArray;
  2494. this.Rows.Add(rowRegionRow);
  2495. return rowRegionRow;
  2496. }
  2497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2499. public RegionRow FindByidRegion(int idRegion) {
  2500. return ((RegionRow)(this.Rows.Find(new object[] {
  2501. idRegion})));
  2502. }
  2503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2505. public override global::System.Data.DataTable Clone() {
  2506. RegionDataTable cln = ((RegionDataTable)(base.Clone()));
  2507. cln.InitVars();
  2508. return cln;
  2509. }
  2510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2512. protected override global::System.Data.DataTable CreateInstance() {
  2513. return new RegionDataTable();
  2514. }
  2515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2516. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2517. internal void InitVars() {
  2518. this.columnidRegion = base.Columns["idRegion"];
  2519. this.columnRegion = base.Columns["Region"];
  2520. }
  2521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2523. private void InitClass() {
  2524. this.columnidRegion = new global::System.Data.DataColumn("idRegion", typeof(int), null, global::System.Data.MappingType.Element);
  2525. base.Columns.Add(this.columnidRegion);
  2526. this.columnRegion = new global::System.Data.DataColumn("Region", typeof(string), null, global::System.Data.MappingType.Element);
  2527. base.Columns.Add(this.columnRegion);
  2528. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2529. this.columnidRegion}, true));
  2530. this.columnidRegion.AutoIncrement = true;
  2531. this.columnidRegion.AutoIncrementSeed = 1;
  2532. this.columnidRegion.AllowDBNull = false;
  2533. this.columnidRegion.ReadOnly = true;
  2534. this.columnidRegion.Unique = true;
  2535. this.columnRegion.MaxLength = 50;
  2536. }
  2537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2539. public RegionRow NewRegionRow() {
  2540. return ((RegionRow)(this.NewRow()));
  2541. }
  2542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2544. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2545. return new RegionRow(builder);
  2546. }
  2547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2549. protected override global::System.Type GetRowType() {
  2550. return typeof(RegionRow);
  2551. }
  2552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2554. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2555. base.OnRowChanged(e);
  2556. if ((this.RegionRowChanged != null)) {
  2557. this.RegionRowChanged(this, new RegionRowChangeEvent(((RegionRow)(e.Row)), e.Action));
  2558. }
  2559. }
  2560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2562. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2563. base.OnRowChanging(e);
  2564. if ((this.RegionRowChanging != null)) {
  2565. this.RegionRowChanging(this, new RegionRowChangeEvent(((RegionRow)(e.Row)), e.Action));
  2566. }
  2567. }
  2568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2570. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2571. base.OnRowDeleted(e);
  2572. if ((this.RegionRowDeleted != null)) {
  2573. this.RegionRowDeleted(this, new RegionRowChangeEvent(((RegionRow)(e.Row)), e.Action));
  2574. }
  2575. }
  2576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2578. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2579. base.OnRowDeleting(e);
  2580. if ((this.RegionRowDeleting != null)) {
  2581. this.RegionRowDeleting(this, new RegionRowChangeEvent(((RegionRow)(e.Row)), e.Action));
  2582. }
  2583. }
  2584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2586. public void RemoveRegionRow(RegionRow row) {
  2587. this.Rows.Remove(row);
  2588. }
  2589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2591. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2592. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2593. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2594. dbAlphapolAGDataSet ds = new dbAlphapolAGDataSet();
  2595. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2596. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2597. any1.MinOccurs = new decimal(0);
  2598. any1.MaxOccurs = decimal.MaxValue;
  2599. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2600. sequence.Items.Add(any1);
  2601. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2602. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2603. any2.MinOccurs = new decimal(1);
  2604. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2605. sequence.Items.Add(any2);
  2606. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2607. attribute1.Name = "namespace";
  2608. attribute1.FixedValue = ds.Namespace;
  2609. type.Attributes.Add(attribute1);
  2610. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2611. attribute2.Name = "tableTypeName";
  2612. attribute2.FixedValue = "RegionDataTable";
  2613. type.Attributes.Add(attribute2);
  2614. type.Particle = sequence;
  2615. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2616. if (xs.Contains(dsSchema.TargetNamespace)) {
  2617. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2618. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2619. try {
  2620. global::System.Xml.Schema.XmlSchema schema = null;
  2621. dsSchema.Write(s1);
  2622. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2623. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2624. s2.SetLength(0);
  2625. schema.Write(s2);
  2626. if ((s1.Length == s2.Length)) {
  2627. s1.Position = 0;
  2628. s2.Position = 0;
  2629. for (; ((s1.Position != s1.Length)
  2630. && (s1.ReadByte() == s2.ReadByte())); ) {
  2631. ;
  2632. }
  2633. if ((s1.Position == s1.Length)) {
  2634. return type;
  2635. }
  2636. }
  2637. }
  2638. }
  2639. finally {
  2640. if ((s1 != null)) {
  2641. s1.Close();
  2642. }
  2643. if ((s2 != null)) {
  2644. s2.Close();
  2645. }
  2646. }
  2647. }
  2648. xs.Add(dsSchema);
  2649. return type;
  2650. }
  2651. }
  2652. /// <summary>
  2653. ///Represents the strongly named DataTable class.
  2654. ///</summary>
  2655. [global::System.Serializable()]
  2656. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2657. public partial class StreetDataTable : global::System.Data.TypedTableBase<StreetRow> {
  2658. private global::System.Data.DataColumn columnidStreet;
  2659. private global::System.Data.DataColumn columnStreet;
  2660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2662. public StreetDataTable() {
  2663. this.TableName = "Street";
  2664. this.BeginInit();
  2665. this.InitClass();
  2666. this.EndInit();
  2667. }
  2668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2670. internal StreetDataTable(global::System.Data.DataTable table) {
  2671. this.TableName = table.TableName;
  2672. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2673. this.CaseSensitive = table.CaseSensitive;
  2674. }
  2675. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2676. this.Locale = table.Locale;
  2677. }
  2678. if ((table.Namespace != table.DataSet.Namespace)) {
  2679. this.Namespace = table.Namespace;
  2680. }
  2681. this.Prefix = table.Prefix;
  2682. this.MinimumCapacity = table.MinimumCapacity;
  2683. }
  2684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2686. protected StreetDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2687. base(info, context) {
  2688. this.InitVars();
  2689. }
  2690. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2692. public global::System.Data.DataColumn idStreetColumn {
  2693. get {
  2694. return this.columnidStreet;
  2695. }
  2696. }
  2697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2699. public global::System.Data.DataColumn StreetColumn {
  2700. get {
  2701. return this.columnStreet;
  2702. }
  2703. }
  2704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2706. [global::System.ComponentModel.Browsable(false)]
  2707. public int Count {
  2708. get {
  2709. return this.Rows.Count;
  2710. }
  2711. }
  2712. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2713. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2714. public StreetRow this[int index] {
  2715. get {
  2716. return ((StreetRow)(this.Rows[index]));
  2717. }
  2718. }
  2719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2720. public event StreetRowChangeEventHandler StreetRowChanging;
  2721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2722. public event StreetRowChangeEventHandler StreetRowChanged;
  2723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2724. public event StreetRowChangeEventHandler StreetRowDeleting;
  2725. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2726. public event StreetRowChangeEventHandler StreetRowDeleted;
  2727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2729. public void AddStreetRow(StreetRow row) {
  2730. this.Rows.Add(row);
  2731. }
  2732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2734. public StreetRow AddStreetRow(string Street) {
  2735. StreetRow rowStreetRow = ((StreetRow)(this.NewRow()));
  2736. object[] columnValuesArray = new object[] {
  2737. null,
  2738. Street};
  2739. rowStreetRow.ItemArray = columnValuesArray;
  2740. this.Rows.Add(rowStreetRow);
  2741. return rowStreetRow;
  2742. }
  2743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2745. public StreetRow FindByidStreet(int idStreet) {
  2746. return ((StreetRow)(this.Rows.Find(new object[] {
  2747. idStreet})));
  2748. }
  2749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2751. public override global::System.Data.DataTable Clone() {
  2752. StreetDataTable cln = ((StreetDataTable)(base.Clone()));
  2753. cln.InitVars();
  2754. return cln;
  2755. }
  2756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2758. protected override global::System.Data.DataTable CreateInstance() {
  2759. return new StreetDataTable();
  2760. }
  2761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2763. internal void InitVars() {
  2764. this.columnidStreet = base.Columns["idStreet"];
  2765. this.columnStreet = base.Columns["Street"];
  2766. }
  2767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2769. private void InitClass() {
  2770. this.columnidStreet = new global::System.Data.DataColumn("idStreet", typeof(int), null, global::System.Data.MappingType.Element);
  2771. base.Columns.Add(this.columnidStreet);
  2772. this.columnStreet = new global::System.Data.DataColumn("Street", typeof(string), null, global::System.Data.MappingType.Element);
  2773. base.Columns.Add(this.columnStreet);
  2774. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2775. this.columnidStreet}, true));
  2776. this.columnidStreet.AutoIncrement = true;
  2777. this.columnidStreet.AutoIncrementSeed = 1;
  2778. this.columnidStreet.AllowDBNull = false;
  2779. this.columnidStreet.ReadOnly = true;
  2780. this.columnidStreet.Unique = true;
  2781. this.columnStreet.MaxLength = 50;
  2782. }
  2783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2785. public StreetRow NewStreetRow() {
  2786. return ((StreetRow)(this.NewRow()));
  2787. }
  2788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2790. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2791. return new StreetRow(builder);
  2792. }
  2793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2795. protected override global::System.Type GetRowType() {
  2796. return typeof(StreetRow);
  2797. }
  2798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2800. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2801. base.OnRowChanged(e);
  2802. if ((this.StreetRowChanged != null)) {
  2803. this.StreetRowChanged(this, new StreetRowChangeEvent(((StreetRow)(e.Row)), e.Action));
  2804. }
  2805. }
  2806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2808. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2809. base.OnRowChanging(e);
  2810. if ((this.StreetRowChanging != null)) {
  2811. this.StreetRowChanging(this, new StreetRowChangeEvent(((StreetRow)(e.Row)), e.Action));
  2812. }
  2813. }
  2814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2816. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2817. base.OnRowDeleted(e);
  2818. if ((this.StreetRowDeleted != null)) {
  2819. this.StreetRowDeleted(this, new StreetRowChangeEvent(((StreetRow)(e.Row)), e.Action));
  2820. }
  2821. }
  2822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2824. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2825. base.OnRowDeleting(e);
  2826. if ((this.StreetRowDeleting != null)) {
  2827. this.StreetRowDeleting(this, new StreetRowChangeEvent(((StreetRow)(e.Row)), e.Action));
  2828. }
  2829. }
  2830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2831. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2832. public void RemoveStreetRow(StreetRow row) {
  2833. this.Rows.Remove(row);
  2834. }
  2835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2837. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2838. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2839. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2840. dbAlphapolAGDataSet ds = new dbAlphapolAGDataSet();
  2841. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2842. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2843. any1.MinOccurs = new decimal(0);
  2844. any1.MaxOccurs = decimal.MaxValue;
  2845. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2846. sequence.Items.Add(any1);
  2847. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2848. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2849. any2.MinOccurs = new decimal(1);
  2850. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2851. sequence.Items.Add(any2);
  2852. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2853. attribute1.Name = "namespace";
  2854. attribute1.FixedValue = ds.Namespace;
  2855. type.Attributes.Add(attribute1);
  2856. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2857. attribute2.Name = "tableTypeName";
  2858. attribute2.FixedValue = "StreetDataTable";
  2859. type.Attributes.Add(attribute2);
  2860. type.Particle = sequence;
  2861. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2862. if (xs.Contains(dsSchema.TargetNamespace)) {
  2863. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2864. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2865. try {
  2866. global::System.Xml.Schema.XmlSchema schema = null;
  2867. dsSchema.Write(s1);
  2868. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2869. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2870. s2.SetLength(0);
  2871. schema.Write(s2);
  2872. if ((s1.Length == s2.Length)) {
  2873. s1.Position = 0;
  2874. s2.Position = 0;
  2875. for (; ((s1.Position != s1.Length)
  2876. && (s1.ReadByte() == s2.ReadByte())); ) {
  2877. ;
  2878. }
  2879. if ((s1.Position == s1.Length)) {
  2880. return type;
  2881. }
  2882. }
  2883. }
  2884. }
  2885. finally {
  2886. if ((s1 != null)) {
  2887. s1.Close();
  2888. }
  2889. if ((s2 != null)) {
  2890. s2.Close();
  2891. }
  2892. }
  2893. }
  2894. xs.Add(dsSchema);
  2895. return type;
  2896. }
  2897. }
  2898. /// <summary>
  2899. ///Represents the strongly named DataTable class.
  2900. ///</summary>
  2901. [global::System.Serializable()]
  2902. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2903. public partial class TypeMaterialDataTable : global::System.Data.TypedTableBase<TypeMaterialRow> {
  2904. private global::System.Data.DataColumn columnidTypeMaterial;
  2905. private global::System.Data.DataColumn columnTypeMaterial;
  2906. private global::System.Data.DataColumn columnPercentDefect;
  2907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2909. public TypeMaterialDataTable() {
  2910. this.TableName = "TypeMaterial";
  2911. this.BeginInit();
  2912. this.InitClass();
  2913. this.EndInit();
  2914. }
  2915. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2916. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2917. internal TypeMaterialDataTable(global::System.Data.DataTable table) {
  2918. this.TableName = table.TableName;
  2919. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2920. this.CaseSensitive = table.CaseSensitive;
  2921. }
  2922. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2923. this.Locale = table.Locale;
  2924. }
  2925. if ((table.Namespace != table.DataSet.Namespace)) {
  2926. this.Namespace = table.Namespace;
  2927. }
  2928. this.Prefix = table.Prefix;
  2929. this.MinimumCapacity = table.MinimumCapacity;
  2930. }
  2931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2933. protected TypeMaterialDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2934. base(info, context) {
  2935. this.InitVars();
  2936. }
  2937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2939. public global::System.Data.DataColumn idTypeMaterialColumn {
  2940. get {
  2941. return this.columnidTypeMaterial;
  2942. }
  2943. }
  2944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2946. public global::System.Data.DataColumn TypeMaterialColumn {
  2947. get {
  2948. return this.columnTypeMaterial;
  2949. }
  2950. }
  2951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2952. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2953. public global::System.Data.DataColumn PercentDefectColumn {
  2954. get {
  2955. return this.columnPercentDefect;
  2956. }
  2957. }
  2958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2959. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2960. [global::System.ComponentModel.Browsable(false)]
  2961. public int Count {
  2962. get {
  2963. return this.Rows.Count;
  2964. }
  2965. }
  2966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2968. public TypeMaterialRow this[int index] {
  2969. get {
  2970. return ((TypeMaterialRow)(this.Rows[index]));
  2971. }
  2972. }
  2973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2974. public event TypeMaterialRowChangeEventHandler TypeMaterialRowChanging;
  2975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2976. public event TypeMaterialRowChangeEventHandler TypeMaterialRowChanged;
  2977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2978. public event TypeMaterialRowChangeEventHandler TypeMaterialRowDeleting;
  2979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2980. public event TypeMaterialRowChangeEventHandler TypeMaterialRowDeleted;
  2981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2982. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2983. public void AddTypeMaterialRow(TypeMaterialRow row) {
  2984. this.Rows.Add(row);
  2985. }
  2986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2987. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2988. public TypeMaterialRow AddTypeMaterialRow(string TypeMaterial, decimal PercentDefect) {
  2989. TypeMaterialRow rowTypeMaterialRow = ((TypeMaterialRow)(this.NewRow()));
  2990. object[] columnValuesArray = new object[] {
  2991. null,
  2992. TypeMaterial,
  2993. PercentDefect};
  2994. rowTypeMaterialRow.ItemArray = columnValuesArray;
  2995. this.Rows.Add(rowTypeMaterialRow);
  2996. return rowTypeMaterialRow;
  2997. }
  2998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3000. public TypeMaterialRow FindByidTypeMaterial(int idTypeMaterial) {
  3001. return ((TypeMaterialRow)(this.Rows.Find(new object[] {
  3002. idTypeMaterial})));
  3003. }
  3004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3006. public override global::System.Data.DataTable Clone() {
  3007. TypeMaterialDataTable cln = ((TypeMaterialDataTable)(base.Clone()));
  3008. cln.InitVars();
  3009. return cln;
  3010. }
  3011. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3012. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3013. protected override global::System.Data.DataTable CreateInstance() {
  3014. return new TypeMaterialDataTable();
  3015. }
  3016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3018. internal void InitVars() {
  3019. this.columnidTypeMaterial = base.Columns["idTypeMaterial"];
  3020. this.columnTypeMaterial = base.Columns["TypeMaterial"];
  3021. this.columnPercentDefect = base.Columns["PercentDefect"];
  3022. }
  3023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3025. private void InitClass() {
  3026. this.columnidTypeMaterial = new global::System.Data.DataColumn("idTypeMaterial", typeof(int), null, global::System.Data.MappingType.Element);
  3027. base.Columns.Add(this.columnidTypeMaterial);
  3028. this.columnTypeMaterial = new global::System.Data.DataColumn("TypeMaterial", typeof(string), null, global::System.Data.MappingType.Element);
  3029. base.Columns.Add(this.columnTypeMaterial);
  3030. this.columnPercentDefect = new global::System.Data.DataColumn("PercentDefect", typeof(decimal), null, global::System.Data.MappingType.Element);
  3031. base.Columns.Add(this.columnPercentDefect);
  3032. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3033. this.columnidTypeMaterial}, true));
  3034. this.columnidTypeMaterial.AutoIncrement = true;
  3035. this.columnidTypeMaterial.AutoIncrementSeed = 1;
  3036. this.columnidTypeMaterial.AllowDBNull = false;
  3037. this.columnidTypeMaterial.ReadOnly = true;
  3038. this.columnidTypeMaterial.Unique = true;
  3039. this.columnTypeMaterial.MaxLength = 50;
  3040. }
  3041. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3042. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3043. public TypeMaterialRow NewTypeMaterialRow() {
  3044. return ((TypeMaterialRow)(this.NewRow()));
  3045. }
  3046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3048. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3049. return new TypeMaterialRow(builder);
  3050. }
  3051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3053. protected override global::System.Type GetRowType() {
  3054. return typeof(TypeMaterialRow);
  3055. }
  3056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3057. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3058. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3059. base.OnRowChanged(e);
  3060. if ((this.TypeMaterialRowChanged != null)) {
  3061. this.TypeMaterialRowChanged(this, new TypeMaterialRowChangeEvent(((TypeMaterialRow)(e.Row)), e.Action));
  3062. }
  3063. }
  3064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3066. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3067. base.OnRowChanging(e);
  3068. if ((this.TypeMaterialRowChanging != null)) {
  3069. this.TypeMaterialRowChanging(this, new TypeMaterialRowChangeEvent(((TypeMaterialRow)(e.Row)), e.Action));
  3070. }
  3071. }
  3072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3074. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3075. base.OnRowDeleted(e);
  3076. if ((this.TypeMaterialRowDeleted != null)) {
  3077. this.TypeMaterialRowDeleted(this, new TypeMaterialRowChangeEvent(((TypeMaterialRow)(e.Row)), e.Action));
  3078. }
  3079. }
  3080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3082. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3083. base.OnRowDeleting(e);
  3084. if ((this.TypeMaterialRowDeleting != null)) {
  3085. this.TypeMaterialRowDeleting(this, new TypeMaterialRowChangeEvent(((TypeMaterialRow)(e.Row)), e.Action));
  3086. }
  3087. }
  3088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3090. public void RemoveTypeMaterialRow(TypeMaterialRow row) {
  3091. this.Rows.Remove(row);
  3092. }
  3093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3095. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3096. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3097. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3098. dbAlphapolAGDataSet ds = new dbAlphapolAGDataSet();
  3099. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3100. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3101. any1.MinOccurs = new decimal(0);
  3102. any1.MaxOccurs = decimal.MaxValue;
  3103. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3104. sequence.Items.Add(any1);
  3105. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3106. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3107. any2.MinOccurs = new decimal(1);
  3108. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3109. sequence.Items.Add(any2);
  3110. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3111. attribute1.Name = "namespace";
  3112. attribute1.FixedValue = ds.Namespace;
  3113. type.Attributes.Add(attribute1);
  3114. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3115. attribute2.Name = "tableTypeName";
  3116. attribute2.FixedValue = "TypeMaterialDataTable";
  3117. type.Attributes.Add(attribute2);
  3118. type.Particle = sequence;
  3119. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3120. if (xs.Contains(dsSchema.TargetNamespace)) {
  3121. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3122. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3123. try {
  3124. global::System.Xml.Schema.XmlSchema schema = null;
  3125. dsSchema.Write(s1);
  3126. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3127. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3128. s2.SetLength(0);
  3129. schema.Write(s2);
  3130. if ((s1.Length == s2.Length)) {
  3131. s1.Position = 0;
  3132. s2.Position = 0;
  3133. for (; ((s1.Position != s1.Length)
  3134. && (s1.ReadByte() == s2.ReadByte())); ) {
  3135. ;
  3136. }
  3137. if ((s1.Position == s1.Length)) {
  3138. return type;
  3139. }
  3140. }
  3141. }
  3142. }
  3143. finally {
  3144. if ((s1 != null)) {
  3145. s1.Close();
  3146. }
  3147. if ((s2 != null)) {
  3148. s2.Close();
  3149. }
  3150. }
  3151. }
  3152. xs.Add(dsSchema);
  3153. return type;
  3154. }
  3155. }
  3156. /// <summary>
  3157. ///Represents the strongly named DataTable class.
  3158. ///</summary>
  3159. [global::System.Serializable()]
  3160. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3161. public partial class TypePartnerDataTable : global::System.Data.TypedTableBase<TypePartnerRow> {
  3162. private global::System.Data.DataColumn columnidTypePartner;
  3163. private global::System.Data.DataColumn columnType;
  3164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3166. public TypePartnerDataTable() {
  3167. this.TableName = "TypePartner";
  3168. this.BeginInit();
  3169. this.InitClass();
  3170. this.EndInit();
  3171. }
  3172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3174. internal TypePartnerDataTable(global::System.Data.DataTable table) {
  3175. this.TableName = table.TableName;
  3176. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3177. this.CaseSensitive = table.CaseSensitive;
  3178. }
  3179. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3180. this.Locale = table.Locale;
  3181. }
  3182. if ((table.Namespace != table.DataSet.Namespace)) {
  3183. this.Namespace = table.Namespace;
  3184. }
  3185. this.Prefix = table.Prefix;
  3186. this.MinimumCapacity = table.MinimumCapacity;
  3187. }
  3188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3190. protected TypePartnerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3191. base(info, context) {
  3192. this.InitVars();
  3193. }
  3194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3196. public global::System.Data.DataColumn idTypePartnerColumn {
  3197. get {
  3198. return this.columnidTypePartner;
  3199. }
  3200. }
  3201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3203. public global::System.Data.DataColumn TypeColumn {
  3204. get {
  3205. return this.columnType;
  3206. }
  3207. }
  3208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3210. [global::System.ComponentModel.Browsable(false)]
  3211. public int Count {
  3212. get {
  3213. return this.Rows.Count;
  3214. }
  3215. }
  3216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3218. public TypePartnerRow this[int index] {
  3219. get {
  3220. return ((TypePartnerRow)(this.Rows[index]));
  3221. }
  3222. }
  3223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3224. public event TypePartnerRowChangeEventHandler TypePartnerRowChanging;
  3225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3226. public event TypePartnerRowChangeEventHandler TypePartnerRowChanged;
  3227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3228. public event TypePartnerRowChangeEventHandler TypePartnerRowDeleting;
  3229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3230. public event TypePartnerRowChangeEventHandler TypePartnerRowDeleted;
  3231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3233. public void AddTypePartnerRow(TypePartnerRow row) {
  3234. this.Rows.Add(row);
  3235. }
  3236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3238. public TypePartnerRow AddTypePartnerRow(string Type) {
  3239. TypePartnerRow rowTypePartnerRow = ((TypePartnerRow)(this.NewRow()));
  3240. object[] columnValuesArray = new object[] {
  3241. null,
  3242. Type};
  3243. rowTypePartnerRow.ItemArray = columnValuesArray;
  3244. this.Rows.Add(rowTypePartnerRow);
  3245. return rowTypePartnerRow;
  3246. }
  3247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3249. public TypePartnerRow FindByidTypePartner(int idTypePartner) {
  3250. return ((TypePartnerRow)(this.Rows.Find(new object[] {
  3251. idTypePartner})));
  3252. }
  3253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3255. public override global::System.Data.DataTable Clone() {
  3256. TypePartnerDataTable cln = ((TypePartnerDataTable)(base.Clone()));
  3257. cln.InitVars();
  3258. return cln;
  3259. }
  3260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3262. protected override global::System.Data.DataTable CreateInstance() {
  3263. return new TypePartnerDataTable();
  3264. }
  3265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3267. internal void InitVars() {
  3268. this.columnidTypePartner = base.Columns["idTypePartner"];
  3269. this.columnType = base.Columns["Type"];
  3270. }
  3271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3272. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3273. private void InitClass() {
  3274. this.columnidTypePartner = new global::System.Data.DataColumn("idTypePartner", typeof(int), null, global::System.Data.MappingType.Element);
  3275. base.Columns.Add(this.columnidTypePartner);
  3276. this.columnType = new global::System.Data.DataColumn("Type", typeof(string), null, global::System.Data.MappingType.Element);
  3277. base.Columns.Add(this.columnType);
  3278. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3279. this.columnidTypePartner}, true));
  3280. this.columnidTypePartner.AutoIncrement = true;
  3281. this.columnidTypePartner.AutoIncrementSeed = 1;
  3282. this.columnidTypePartner.AllowDBNull = false;
  3283. this.columnidTypePartner.ReadOnly = true;
  3284. this.columnidTypePartner.Unique = true;
  3285. this.columnType.MaxLength = 50;
  3286. }
  3287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3289. public TypePartnerRow NewTypePartnerRow() {
  3290. return ((TypePartnerRow)(this.NewRow()));
  3291. }
  3292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3294. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3295. return new TypePartnerRow(builder);
  3296. }
  3297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3299. protected override global::System.Type GetRowType() {
  3300. return typeof(TypePartnerRow);
  3301. }
  3302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3304. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3305. base.OnRowChanged(e);
  3306. if ((this.TypePartnerRowChanged != null)) {
  3307. this.TypePartnerRowChanged(this, new TypePartnerRowChangeEvent(((TypePartnerRow)(e.Row)), e.Action));
  3308. }
  3309. }
  3310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3312. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3313. base.OnRowChanging(e);
  3314. if ((this.TypePartnerRowChanging != null)) {
  3315. this.TypePartnerRowChanging(this, new TypePartnerRowChangeEvent(((TypePartnerRow)(e.Row)), e.Action));
  3316. }
  3317. }
  3318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3320. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3321. base.OnRowDeleted(e);
  3322. if ((this.TypePartnerRowDeleted != null)) {
  3323. this.TypePartnerRowDeleted(this, new TypePartnerRowChangeEvent(((TypePartnerRow)(e.Row)), e.Action));
  3324. }
  3325. }
  3326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3327. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3328. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3329. base.OnRowDeleting(e);
  3330. if ((this.TypePartnerRowDeleting != null)) {
  3331. this.TypePartnerRowDeleting(this, new TypePartnerRowChangeEvent(((TypePartnerRow)(e.Row)), e.Action));
  3332. }
  3333. }
  3334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3336. public void RemoveTypePartnerRow(TypePartnerRow row) {
  3337. this.Rows.Remove(row);
  3338. }
  3339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3341. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3342. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3343. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3344. dbAlphapolAGDataSet ds = new dbAlphapolAGDataSet();
  3345. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3346. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3347. any1.MinOccurs = new decimal(0);
  3348. any1.MaxOccurs = decimal.MaxValue;
  3349. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3350. sequence.Items.Add(any1);
  3351. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3352. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3353. any2.MinOccurs = new decimal(1);
  3354. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3355. sequence.Items.Add(any2);
  3356. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3357. attribute1.Name = "namespace";
  3358. attribute1.FixedValue = ds.Namespace;
  3359. type.Attributes.Add(attribute1);
  3360. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3361. attribute2.Name = "tableTypeName";
  3362. attribute2.FixedValue = "TypePartnerDataTable";
  3363. type.Attributes.Add(attribute2);
  3364. type.Particle = sequence;
  3365. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3366. if (xs.Contains(dsSchema.TargetNamespace)) {
  3367. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3368. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3369. try {
  3370. global::System.Xml.Schema.XmlSchema schema = null;
  3371. dsSchema.Write(s1);
  3372. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3373. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3374. s2.SetLength(0);
  3375. schema.Write(s2);
  3376. if ((s1.Length == s2.Length)) {
  3377. s1.Position = 0;
  3378. s2.Position = 0;
  3379. for (; ((s1.Position != s1.Length)
  3380. && (s1.ReadByte() == s2.ReadByte())); ) {
  3381. ;
  3382. }
  3383. if ((s1.Position == s1.Length)) {
  3384. return type;
  3385. }
  3386. }
  3387. }
  3388. }
  3389. finally {
  3390. if ((s1 != null)) {
  3391. s1.Close();
  3392. }
  3393. if ((s2 != null)) {
  3394. s2.Close();
  3395. }
  3396. }
  3397. }
  3398. xs.Add(dsSchema);
  3399. return type;
  3400. }
  3401. }
  3402. /// <summary>
  3403. ///Represents the strongly named DataTable class.
  3404. ///</summary>
  3405. [global::System.Serializable()]
  3406. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3407. public partial class TypeProductDataTable : global::System.Data.TypedTableBase<TypeProductRow> {
  3408. private global::System.Data.DataColumn columnidTypeProduct;
  3409. private global::System.Data.DataColumn columnTypeProduct;
  3410. private global::System.Data.DataColumn columnCoefficient;
  3411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3413. public TypeProductDataTable() {
  3414. this.TableName = "TypeProduct";
  3415. this.BeginInit();
  3416. this.InitClass();
  3417. this.EndInit();
  3418. }
  3419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3421. internal TypeProductDataTable(global::System.Data.DataTable table) {
  3422. this.TableName = table.TableName;
  3423. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3424. this.CaseSensitive = table.CaseSensitive;
  3425. }
  3426. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3427. this.Locale = table.Locale;
  3428. }
  3429. if ((table.Namespace != table.DataSet.Namespace)) {
  3430. this.Namespace = table.Namespace;
  3431. }
  3432. this.Prefix = table.Prefix;
  3433. this.MinimumCapacity = table.MinimumCapacity;
  3434. }
  3435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3437. protected TypeProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3438. base(info, context) {
  3439. this.InitVars();
  3440. }
  3441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3443. public global::System.Data.DataColumn idTypeProductColumn {
  3444. get {
  3445. return this.columnidTypeProduct;
  3446. }
  3447. }
  3448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3450. public global::System.Data.DataColumn TypeProductColumn {
  3451. get {
  3452. return this.columnTypeProduct;
  3453. }
  3454. }
  3455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3456. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3457. public global::System.Data.DataColumn CoefficientColumn {
  3458. get {
  3459. return this.columnCoefficient;
  3460. }
  3461. }
  3462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3464. [global::System.ComponentModel.Browsable(false)]
  3465. public int Count {
  3466. get {
  3467. return this.Rows.Count;
  3468. }
  3469. }
  3470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3471. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3472. public TypeProductRow this[int index] {
  3473. get {
  3474. return ((TypeProductRow)(this.Rows[index]));
  3475. }
  3476. }
  3477. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3478. public event TypeProductRowChangeEventHandler TypeProductRowChanging;
  3479. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3480. public event TypeProductRowChangeEventHandler TypeProductRowChanged;
  3481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3482. public event TypeProductRowChangeEventHandler TypeProductRowDeleting;
  3483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3484. public event TypeProductRowChangeEventHandler TypeProductRowDeleted;
  3485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3487. public void AddTypeProductRow(TypeProductRow row) {
  3488. this.Rows.Add(row);
  3489. }
  3490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3492. public TypeProductRow AddTypeProductRow(string TypeProduct, double Coefficient) {
  3493. TypeProductRow rowTypeProductRow = ((TypeProductRow)(this.NewRow()));
  3494. object[] columnValuesArray = new object[] {
  3495. null,
  3496. TypeProduct,
  3497. Coefficient};
  3498. rowTypeProductRow.ItemArray = columnValuesArray;
  3499. this.Rows.Add(rowTypeProductRow);
  3500. return rowTypeProductRow;
  3501. }
  3502. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3503. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3504. public TypeProductRow FindByidTypeProduct(int idTypeProduct) {
  3505. return ((TypeProductRow)(this.Rows.Find(new object[] {
  3506. idTypeProduct})));
  3507. }
  3508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3510. public override global::System.Data.DataTable Clone() {
  3511. TypeProductDataTable cln = ((TypeProductDataTable)(base.Clone()));
  3512. cln.InitVars();
  3513. return cln;
  3514. }
  3515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3516. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3517. protected override global::System.Data.DataTable CreateInstance() {
  3518. return new TypeProductDataTable();
  3519. }
  3520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3522. internal void InitVars() {
  3523. this.columnidTypeProduct = base.Columns["idTypeProduct"];
  3524. this.columnTypeProduct = base.Columns["TypeProduct"];
  3525. this.columnCoefficient = base.Columns["Coefficient"];
  3526. }
  3527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3529. private void InitClass() {
  3530. this.columnidTypeProduct = new global::System.Data.DataColumn("idTypeProduct", typeof(int), null, global::System.Data.MappingType.Element);
  3531. base.Columns.Add(this.columnidTypeProduct);
  3532. this.columnTypeProduct = new global::System.Data.DataColumn("TypeProduct", typeof(string), null, global::System.Data.MappingType.Element);
  3533. base.Columns.Add(this.columnTypeProduct);
  3534. this.columnCoefficient = new global::System.Data.DataColumn("Coefficient", typeof(double), null, global::System.Data.MappingType.Element);
  3535. base.Columns.Add(this.columnCoefficient);
  3536. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3537. this.columnidTypeProduct}, true));
  3538. this.columnidTypeProduct.AutoIncrement = true;
  3539. this.columnidTypeProduct.AutoIncrementSeed = 1;
  3540. this.columnidTypeProduct.AllowDBNull = false;
  3541. this.columnidTypeProduct.ReadOnly = true;
  3542. this.columnidTypeProduct.Unique = true;
  3543. this.columnTypeProduct.MaxLength = 50;
  3544. }
  3545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3547. public TypeProductRow NewTypeProductRow() {
  3548. return ((TypeProductRow)(this.NewRow()));
  3549. }
  3550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3552. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3553. return new TypeProductRow(builder);
  3554. }
  3555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3557. protected override global::System.Type GetRowType() {
  3558. return typeof(TypeProductRow);
  3559. }
  3560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3562. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3563. base.OnRowChanged(e);
  3564. if ((this.TypeProductRowChanged != null)) {
  3565. this.TypeProductRowChanged(this, new TypeProductRowChangeEvent(((TypeProductRow)(e.Row)), e.Action));
  3566. }
  3567. }
  3568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3570. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3571. base.OnRowChanging(e);
  3572. if ((this.TypeProductRowChanging != null)) {
  3573. this.TypeProductRowChanging(this, new TypeProductRowChangeEvent(((TypeProductRow)(e.Row)), e.Action));
  3574. }
  3575. }
  3576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3578. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3579. base.OnRowDeleted(e);
  3580. if ((this.TypeProductRowDeleted != null)) {
  3581. this.TypeProductRowDeleted(this, new TypeProductRowChangeEvent(((TypeProductRow)(e.Row)), e.Action));
  3582. }
  3583. }
  3584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3586. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3587. base.OnRowDeleting(e);
  3588. if ((this.TypeProductRowDeleting != null)) {
  3589. this.TypeProductRowDeleting(this, new TypeProductRowChangeEvent(((TypeProductRow)(e.Row)), e.Action));
  3590. }
  3591. }
  3592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3594. public void RemoveTypeProductRow(TypeProductRow row) {
  3595. this.Rows.Remove(row);
  3596. }
  3597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3599. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3600. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3601. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3602. dbAlphapolAGDataSet ds = new dbAlphapolAGDataSet();
  3603. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3604. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3605. any1.MinOccurs = new decimal(0);
  3606. any1.MaxOccurs = decimal.MaxValue;
  3607. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3608. sequence.Items.Add(any1);
  3609. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3610. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3611. any2.MinOccurs = new decimal(1);
  3612. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3613. sequence.Items.Add(any2);
  3614. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3615. attribute1.Name = "namespace";
  3616. attribute1.FixedValue = ds.Namespace;
  3617. type.Attributes.Add(attribute1);
  3618. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3619. attribute2.Name = "tableTypeName";
  3620. attribute2.FixedValue = "TypeProductDataTable";
  3621. type.Attributes.Add(attribute2);
  3622. type.Particle = sequence;
  3623. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3624. if (xs.Contains(dsSchema.TargetNamespace)) {
  3625. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3626. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3627. try {
  3628. global::System.Xml.Schema.XmlSchema schema = null;
  3629. dsSchema.Write(s1);
  3630. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3631. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3632. s2.SetLength(0);
  3633. schema.Write(s2);
  3634. if ((s1.Length == s2.Length)) {
  3635. s1.Position = 0;
  3636. s2.Position = 0;
  3637. for (; ((s1.Position != s1.Length)
  3638. && (s1.ReadByte() == s2.ReadByte())); ) {
  3639. ;
  3640. }
  3641. if ((s1.Position == s1.Length)) {
  3642. return type;
  3643. }
  3644. }
  3645. }
  3646. }
  3647. finally {
  3648. if ((s1 != null)) {
  3649. s1.Close();
  3650. }
  3651. if ((s2 != null)) {
  3652. s2.Close();
  3653. }
  3654. }
  3655. }
  3656. xs.Add(dsSchema);
  3657. return type;
  3658. }
  3659. }
  3660. /// <summary>
  3661. ///Represents strongly named DataRow class.
  3662. ///</summary>
  3663. public partial class CityRow : global::System.Data.DataRow {
  3664. private CityDataTable tableCity;
  3665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3666. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3667. internal CityRow(global::System.Data.DataRowBuilder rb) :
  3668. base(rb) {
  3669. this.tableCity = ((CityDataTable)(this.Table));
  3670. }
  3671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3673. public int idCity {
  3674. get {
  3675. return ((int)(this[this.tableCity.idCityColumn]));
  3676. }
  3677. set {
  3678. this[this.tableCity.idCityColumn] = value;
  3679. }
  3680. }
  3681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3683. public string City {
  3684. get {
  3685. try {
  3686. return ((string)(this[this.tableCity.CityColumn]));
  3687. }
  3688. catch (global::System.InvalidCastException e) {
  3689. throw new global::System.Data.StrongTypingException("The value for column \'City\' in table \'City\' is DBNull.", e);
  3690. }
  3691. }
  3692. set {
  3693. this[this.tableCity.CityColumn] = value;
  3694. }
  3695. }
  3696. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3698. public bool IsCityNull() {
  3699. return this.IsNull(this.tableCity.CityColumn);
  3700. }
  3701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3703. public void SetCityNull() {
  3704. this[this.tableCity.CityColumn] = global::System.Convert.DBNull;
  3705. }
  3706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3708. public PartnerRow[] GetPartnerRows() {
  3709. if ((this.Table.ChildRelations["FK_Partner_City"] == null)) {
  3710. return new PartnerRow[0];
  3711. }
  3712. else {
  3713. return ((PartnerRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Partner_City"])));
  3714. }
  3715. }
  3716. }
  3717. /// <summary>
  3718. ///Represents strongly named DataRow class.
  3719. ///</summary>
  3720. public partial class IndexPartnerRow : global::System.Data.DataRow {
  3721. private IndexPartnerDataTable tableIndexPartner;
  3722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3724. internal IndexPartnerRow(global::System.Data.DataRowBuilder rb) :
  3725. base(rb) {
  3726. this.tableIndexPartner = ((IndexPartnerDataTable)(this.Table));
  3727. }
  3728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3730. public int idIndex {
  3731. get {
  3732. return ((int)(this[this.tableIndexPartner.idIndexColumn]));
  3733. }
  3734. set {
  3735. this[this.tableIndexPartner.idIndexColumn] = value;
  3736. }
  3737. }
  3738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3740. public string CodePartner {
  3741. get {
  3742. try {
  3743. return ((string)(this[this.tableIndexPartner.CodePartnerColumn]));
  3744. }
  3745. catch (global::System.InvalidCastException e) {
  3746. throw new global::System.Data.StrongTypingException("The value for column \'CodePartner\' in table \'IndexPartner\' is DBNull.", e);
  3747. }
  3748. }
  3749. set {
  3750. this[this.tableIndexPartner.CodePartnerColumn] = value;
  3751. }
  3752. }
  3753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3755. public bool IsCodePartnerNull() {
  3756. return this.IsNull(this.tableIndexPartner.CodePartnerColumn);
  3757. }
  3758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3760. public void SetCodePartnerNull() {
  3761. this[this.tableIndexPartner.CodePartnerColumn] = global::System.Convert.DBNull;
  3762. }
  3763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3765. public PartnerRow[] GetPartnerRows() {
  3766. if ((this.Table.ChildRelations["FK_Partner_IndexPartner"] == null)) {
  3767. return new PartnerRow[0];
  3768. }
  3769. else {
  3770. return ((PartnerRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Partner_IndexPartner"])));
  3771. }
  3772. }
  3773. }
  3774. /// <summary>
  3775. ///Represents strongly named DataRow class.
  3776. ///</summary>
  3777. public partial class ManagerRow : global::System.Data.DataRow {
  3778. private ManagerDataTable tableManager;
  3779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3781. internal ManagerRow(global::System.Data.DataRowBuilder rb) :
  3782. base(rb) {
  3783. this.tableManager = ((ManagerDataTable)(this.Table));
  3784. }
  3785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3786. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3787. public int idManager {
  3788. get {
  3789. return ((int)(this[this.tableManager.idManagerColumn]));
  3790. }
  3791. set {
  3792. this[this.tableManager.idManagerColumn] = value;
  3793. }
  3794. }
  3795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3797. public string Surname {
  3798. get {
  3799. try {
  3800. return ((string)(this[this.tableManager.SurnameColumn]));
  3801. }
  3802. catch (global::System.InvalidCastException e) {
  3803. throw new global::System.Data.StrongTypingException("The value for column \'Surname\' in table \'Manager\' is DBNull.", e);
  3804. }
  3805. }
  3806. set {
  3807. this[this.tableManager.SurnameColumn] = value;
  3808. }
  3809. }
  3810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3812. public string Name {
  3813. get {
  3814. try {
  3815. return ((string)(this[this.tableManager.NameColumn]));
  3816. }
  3817. catch (global::System.InvalidCastException e) {
  3818. throw new global::System.Data.StrongTypingException("The value for column \'Name\' in table \'Manager\' is DBNull.", e);
  3819. }
  3820. }
  3821. set {
  3822. this[this.tableManager.NameColumn] = value;
  3823. }
  3824. }
  3825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3827. public string Patronymic {
  3828. get {
  3829. try {
  3830. return ((string)(this[this.tableManager.PatronymicColumn]));
  3831. }
  3832. catch (global::System.InvalidCastException e) {
  3833. throw new global::System.Data.StrongTypingException("The value for column \'Patronymic\' in table \'Manager\' is DBNull.", e);
  3834. }
  3835. }
  3836. set {
  3837. this[this.tableManager.PatronymicColumn] = value;
  3838. }
  3839. }
  3840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3841. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3842. public string Login {
  3843. get {
  3844. try {
  3845. return ((string)(this[this.tableManager.LoginColumn]));
  3846. }
  3847. catch (global::System.InvalidCastException e) {
  3848. throw new global::System.Data.StrongTypingException("The value for column \'Login\' in table \'Manager\' is DBNull.", e);
  3849. }
  3850. }
  3851. set {
  3852. this[this.tableManager.LoginColumn] = value;
  3853. }
  3854. }
  3855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3857. public string Password {
  3858. get {
  3859. try {
  3860. return ((string)(this[this.tableManager.PasswordColumn]));
  3861. }
  3862. catch (global::System.InvalidCastException e) {
  3863. throw new global::System.Data.StrongTypingException("The value for column \'Password\' in table \'Manager\' is DBNull.", e);
  3864. }
  3865. }
  3866. set {
  3867. this[this.tableManager.PasswordColumn] = value;
  3868. }
  3869. }
  3870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3872. public string Photo {
  3873. get {
  3874. try {
  3875. return ((string)(this[this.tableManager.PhotoColumn]));
  3876. }
  3877. catch (global::System.InvalidCastException e) {
  3878. throw new global::System.Data.StrongTypingException("The value for column \'Photo\' in table \'Manager\' is DBNull.", e);
  3879. }
  3880. }
  3881. set {
  3882. this[this.tableManager.PhotoColumn] = value;
  3883. }
  3884. }
  3885. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3886. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3887. public bool IsSurnameNull() {
  3888. return this.IsNull(this.tableManager.SurnameColumn);
  3889. }
  3890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3892. public void SetSurnameNull() {
  3893. this[this.tableManager.SurnameColumn] = global::System.Convert.DBNull;
  3894. }
  3895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3897. public bool IsNameNull() {
  3898. return this.IsNull(this.tableManager.NameColumn);
  3899. }
  3900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3902. public void SetNameNull() {
  3903. this[this.tableManager.NameColumn] = global::System.Convert.DBNull;
  3904. }
  3905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3907. public bool IsPatronymicNull() {
  3908. return this.IsNull(this.tableManager.PatronymicColumn);
  3909. }
  3910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3911. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3912. public void SetPatronymicNull() {
  3913. this[this.tableManager.PatronymicColumn] = global::System.Convert.DBNull;
  3914. }
  3915. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3916. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3917. public bool IsLoginNull() {
  3918. return this.IsNull(this.tableManager.LoginColumn);
  3919. }
  3920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3921. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3922. public void SetLoginNull() {
  3923. this[this.tableManager.LoginColumn] = global::System.Convert.DBNull;
  3924. }
  3925. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3926. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3927. public bool IsPasswordNull() {
  3928. return this.IsNull(this.tableManager.PasswordColumn);
  3929. }
  3930. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3931. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3932. public void SetPasswordNull() {
  3933. this[this.tableManager.PasswordColumn] = global::System.Convert.DBNull;
  3934. }
  3935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3936. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3937. public bool IsPhotoNull() {
  3938. return this.IsNull(this.tableManager.PhotoColumn);
  3939. }
  3940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3942. public void SetPhotoNull() {
  3943. this[this.tableManager.PhotoColumn] = global::System.Convert.DBNull;
  3944. }
  3945. }
  3946. /// <summary>
  3947. ///Represents strongly named DataRow class.
  3948. ///</summary>
  3949. public partial class PartnerRow : global::System.Data.DataRow {
  3950. private PartnerDataTable tablePartner;
  3951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3952. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3953. internal PartnerRow(global::System.Data.DataRowBuilder rb) :
  3954. base(rb) {
  3955. this.tablePartner = ((PartnerDataTable)(this.Table));
  3956. }
  3957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3959. public int idPartner {
  3960. get {
  3961. return ((int)(this[this.tablePartner.idPartnerColumn]));
  3962. }
  3963. set {
  3964. this[this.tablePartner.idPartnerColumn] = value;
  3965. }
  3966. }
  3967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3969. public string Surname {
  3970. get {
  3971. try {
  3972. return ((string)(this[this.tablePartner.SurnameColumn]));
  3973. }
  3974. catch (global::System.InvalidCastException e) {
  3975. throw new global::System.Data.StrongTypingException("The value for column \'Surname\' in table \'Partner\' is DBNull.", e);
  3976. }
  3977. }
  3978. set {
  3979. this[this.tablePartner.SurnameColumn] = value;
  3980. }
  3981. }
  3982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3984. public string Name {
  3985. get {
  3986. try {
  3987. return ((string)(this[this.tablePartner.NameColumn]));
  3988. }
  3989. catch (global::System.InvalidCastException e) {
  3990. throw new global::System.Data.StrongTypingException("The value for column \'Name\' in table \'Partner\' is DBNull.", e);
  3991. }
  3992. }
  3993. set {
  3994. this[this.tablePartner.NameColumn] = value;
  3995. }
  3996. }
  3997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3998. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3999. public string Patronymic {
  4000. get {
  4001. try {
  4002. return ((string)(this[this.tablePartner.PatronymicColumn]));
  4003. }
  4004. catch (global::System.InvalidCastException e) {
  4005. throw new global::System.Data.StrongTypingException("The value for column \'Patronymic\' in table \'Partner\' is DBNull.", e);
  4006. }
  4007. }
  4008. set {
  4009. this[this.tablePartner.PatronymicColumn] = value;
  4010. }
  4011. }
  4012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4014. public string Email {
  4015. get {
  4016. try {
  4017. return ((string)(this[this.tablePartner.EmailColumn]));
  4018. }
  4019. catch (global::System.InvalidCastException e) {
  4020. throw new global::System.Data.StrongTypingException("The value for column \'Email\' in table \'Partner\' is DBNull.", e);
  4021. }
  4022. }
  4023. set {
  4024. this[this.tablePartner.EmailColumn] = value;
  4025. }
  4026. }
  4027. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4028. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4029. public string Phone {
  4030. get {
  4031. try {
  4032. return ((string)(this[this.tablePartner.PhoneColumn]));
  4033. }
  4034. catch (global::System.InvalidCastException e) {
  4035. throw new global::System.Data.StrongTypingException("The value for column \'Phone\' in table \'Partner\' is DBNull.", e);
  4036. }
  4037. }
  4038. set {
  4039. this[this.tablePartner.PhoneColumn] = value;
  4040. }
  4041. }
  4042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4044. public int idIndex {
  4045. get {
  4046. try {
  4047. return ((int)(this[this.tablePartner.idIndexColumn]));
  4048. }
  4049. catch (global::System.InvalidCastException e) {
  4050. throw new global::System.Data.StrongTypingException("The value for column \'idIndex\' in table \'Partner\' is DBNull.", e);
  4051. }
  4052. }
  4053. set {
  4054. this[this.tablePartner.idIndexColumn] = value;
  4055. }
  4056. }
  4057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4059. public int idCity {
  4060. get {
  4061. try {
  4062. return ((int)(this[this.tablePartner.idCityColumn]));
  4063. }
  4064. catch (global::System.InvalidCastException e) {
  4065. throw new global::System.Data.StrongTypingException("The value for column \'idCity\' in table \'Partner\' is DBNull.", e);
  4066. }
  4067. }
  4068. set {
  4069. this[this.tablePartner.idCityColumn] = value;
  4070. }
  4071. }
  4072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4074. public int idStreet {
  4075. get {
  4076. try {
  4077. return ((int)(this[this.tablePartner.idStreetColumn]));
  4078. }
  4079. catch (global::System.InvalidCastException e) {
  4080. throw new global::System.Data.StrongTypingException("The value for column \'idStreet\' in table \'Partner\' is DBNull.", e);
  4081. }
  4082. }
  4083. set {
  4084. this[this.tablePartner.idStreetColumn] = value;
  4085. }
  4086. }
  4087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4089. public int House {
  4090. get {
  4091. try {
  4092. return ((int)(this[this.tablePartner.HouseColumn]));
  4093. }
  4094. catch (global::System.InvalidCastException e) {
  4095. throw new global::System.Data.StrongTypingException("The value for column \'House\' in table \'Partner\' is DBNull.", e);
  4096. }
  4097. }
  4098. set {
  4099. this[this.tablePartner.HouseColumn] = value;
  4100. }
  4101. }
  4102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4103. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4104. public string INN {
  4105. get {
  4106. try {
  4107. return ((string)(this[this.tablePartner.INNColumn]));
  4108. }
  4109. catch (global::System.InvalidCastException e) {
  4110. throw new global::System.Data.StrongTypingException("The value for column \'INN\' in table \'Partner\' is DBNull.", e);
  4111. }
  4112. }
  4113. set {
  4114. this[this.tablePartner.INNColumn] = value;
  4115. }
  4116. }
  4117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4119. public string Rating {
  4120. get {
  4121. try {
  4122. return ((string)(this[this.tablePartner.RatingColumn]));
  4123. }
  4124. catch (global::System.InvalidCastException e) {
  4125. throw new global::System.Data.StrongTypingException("The value for column \'Rating\' in table \'Partner\' is DBNull.", e);
  4126. }
  4127. }
  4128. set {
  4129. this[this.tablePartner.RatingColumn] = value;
  4130. }
  4131. }
  4132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4133. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4134. public int idRegion {
  4135. get {
  4136. try {
  4137. return ((int)(this[this.tablePartner.idRegionColumn]));
  4138. }
  4139. catch (global::System.InvalidCastException e) {
  4140. throw new global::System.Data.StrongTypingException("The value for column \'idRegion\' in table \'Partner\' is DBNull.", e);
  4141. }
  4142. }
  4143. set {
  4144. this[this.tablePartner.idRegionColumn] = value;
  4145. }
  4146. }
  4147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4149. public int idTypePartner {
  4150. get {
  4151. try {
  4152. return ((int)(this[this.tablePartner.idTypePartnerColumn]));
  4153. }
  4154. catch (global::System.InvalidCastException e) {
  4155. throw new global::System.Data.StrongTypingException("The value for column \'idTypePartner\' in table \'Partner\' is DBNull.", e);
  4156. }
  4157. }
  4158. set {
  4159. this[this.tablePartner.idTypePartnerColumn] = value;
  4160. }
  4161. }
  4162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4164. public string NamePartner {
  4165. get {
  4166. try {
  4167. return ((string)(this[this.tablePartner.NamePartnerColumn]));
  4168. }
  4169. catch (global::System.InvalidCastException e) {
  4170. throw new global::System.Data.StrongTypingException("The value for column \'NamePartner\' in table \'Partner\' is DBNull.", e);
  4171. }
  4172. }
  4173. set {
  4174. this[this.tablePartner.NamePartnerColumn] = value;
  4175. }
  4176. }
  4177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4179. public CityRow CityRow {
  4180. get {
  4181. return ((CityRow)(this.GetParentRow(this.Table.ParentRelations["FK_Partner_City"])));
  4182. }
  4183. set {
  4184. this.SetParentRow(value, this.Table.ParentRelations["FK_Partner_City"]);
  4185. }
  4186. }
  4187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4189. public IndexPartnerRow IndexPartnerRow {
  4190. get {
  4191. return ((IndexPartnerRow)(this.GetParentRow(this.Table.ParentRelations["FK_Partner_IndexPartner"])));
  4192. }
  4193. set {
  4194. this.SetParentRow(value, this.Table.ParentRelations["FK_Partner_IndexPartner"]);
  4195. }
  4196. }
  4197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4199. public RegionRow RegionRow {
  4200. get {
  4201. return ((RegionRow)(this.GetParentRow(this.Table.ParentRelations["FK_Partner_Region"])));
  4202. }
  4203. set {
  4204. this.SetParentRow(value, this.Table.ParentRelations["FK_Partner_Region"]);
  4205. }
  4206. }
  4207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4209. public StreetRow StreetRow {
  4210. get {
  4211. return ((StreetRow)(this.GetParentRow(this.Table.ParentRelations["FK_Partner_Street"])));
  4212. }
  4213. set {
  4214. this.SetParentRow(value, this.Table.ParentRelations["FK_Partner_Street"]);
  4215. }
  4216. }
  4217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4219. public TypePartnerRow TypePartnerRow {
  4220. get {
  4221. return ((TypePartnerRow)(this.GetParentRow(this.Table.ParentRelations["FK_Partner_TypePartner"])));
  4222. }
  4223. set {
  4224. this.SetParentRow(value, this.Table.ParentRelations["FK_Partner_TypePartner"]);
  4225. }
  4226. }
  4227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4229. public bool IsSurnameNull() {
  4230. return this.IsNull(this.tablePartner.SurnameColumn);
  4231. }
  4232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4234. public void SetSurnameNull() {
  4235. this[this.tablePartner.SurnameColumn] = global::System.Convert.DBNull;
  4236. }
  4237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4239. public bool IsNameNull() {
  4240. return this.IsNull(this.tablePartner.NameColumn);
  4241. }
  4242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4244. public void SetNameNull() {
  4245. this[this.tablePartner.NameColumn] = global::System.Convert.DBNull;
  4246. }
  4247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4249. public bool IsPatronymicNull() {
  4250. return this.IsNull(this.tablePartner.PatronymicColumn);
  4251. }
  4252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4254. public void SetPatronymicNull() {
  4255. this[this.tablePartner.PatronymicColumn] = global::System.Convert.DBNull;
  4256. }
  4257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4259. public bool IsEmailNull() {
  4260. return this.IsNull(this.tablePartner.EmailColumn);
  4261. }
  4262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4264. public void SetEmailNull() {
  4265. this[this.tablePartner.EmailColumn] = global::System.Convert.DBNull;
  4266. }
  4267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4269. public bool IsPhoneNull() {
  4270. return this.IsNull(this.tablePartner.PhoneColumn);
  4271. }
  4272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4274. public void SetPhoneNull() {
  4275. this[this.tablePartner.PhoneColumn] = global::System.Convert.DBNull;
  4276. }
  4277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4279. public bool IsidIndexNull() {
  4280. return this.IsNull(this.tablePartner.idIndexColumn);
  4281. }
  4282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4284. public void SetidIndexNull() {
  4285. this[this.tablePartner.idIndexColumn] = global::System.Convert.DBNull;
  4286. }
  4287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4289. public bool IsidCityNull() {
  4290. return this.IsNull(this.tablePartner.idCityColumn);
  4291. }
  4292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4294. public void SetidCityNull() {
  4295. this[this.tablePartner.idCityColumn] = global::System.Convert.DBNull;
  4296. }
  4297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4299. public bool IsidStreetNull() {
  4300. return this.IsNull(this.tablePartner.idStreetColumn);
  4301. }
  4302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4304. public void SetidStreetNull() {
  4305. this[this.tablePartner.idStreetColumn] = global::System.Convert.DBNull;
  4306. }
  4307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4309. public bool IsHouseNull() {
  4310. return this.IsNull(this.tablePartner.HouseColumn);
  4311. }
  4312. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4313. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4314. public void SetHouseNull() {
  4315. this[this.tablePartner.HouseColumn] = global::System.Convert.DBNull;
  4316. }
  4317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4319. public bool IsINNNull() {
  4320. return this.IsNull(this.tablePartner.INNColumn);
  4321. }
  4322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4324. public void SetINNNull() {
  4325. this[this.tablePartner.INNColumn] = global::System.Convert.DBNull;
  4326. }
  4327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4328. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4329. public bool IsRatingNull() {
  4330. return this.IsNull(this.tablePartner.RatingColumn);
  4331. }
  4332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4334. public void SetRatingNull() {
  4335. this[this.tablePartner.RatingColumn] = global::System.Convert.DBNull;
  4336. }
  4337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4339. public bool IsidRegionNull() {
  4340. return this.IsNull(this.tablePartner.idRegionColumn);
  4341. }
  4342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4344. public void SetidRegionNull() {
  4345. this[this.tablePartner.idRegionColumn] = global::System.Convert.DBNull;
  4346. }
  4347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4349. public bool IsidTypePartnerNull() {
  4350. return this.IsNull(this.tablePartner.idTypePartnerColumn);
  4351. }
  4352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4354. public void SetidTypePartnerNull() {
  4355. this[this.tablePartner.idTypePartnerColumn] = global::System.Convert.DBNull;
  4356. }
  4357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4359. public bool IsNamePartnerNull() {
  4360. return this.IsNull(this.tablePartner.NamePartnerColumn);
  4361. }
  4362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4364. public void SetNamePartnerNull() {
  4365. this[this.tablePartner.NamePartnerColumn] = global::System.Convert.DBNull;
  4366. }
  4367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4369. public ProductPartnerRow[] GetProductPartnerRows() {
  4370. if ((this.Table.ChildRelations["FK_ProductPartner_Partner"] == null)) {
  4371. return new ProductPartnerRow[0];
  4372. }
  4373. else {
  4374. return ((ProductPartnerRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductPartner_Partner"])));
  4375. }
  4376. }
  4377. }
  4378. /// <summary>
  4379. ///Represents strongly named DataRow class.
  4380. ///</summary>
  4381. public partial class ProductPartnerRow : global::System.Data.DataRow {
  4382. private ProductPartnerDataTable tableProductPartner;
  4383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4385. internal ProductPartnerRow(global::System.Data.DataRowBuilder rb) :
  4386. base(rb) {
  4387. this.tableProductPartner = ((ProductPartnerDataTable)(this.Table));
  4388. }
  4389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4391. public int idPartnerProduct {
  4392. get {
  4393. return ((int)(this[this.tableProductPartner.idPartnerProductColumn]));
  4394. }
  4395. set {
  4396. this[this.tableProductPartner.idPartnerProductColumn] = value;
  4397. }
  4398. }
  4399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4401. public int idProduct {
  4402. get {
  4403. try {
  4404. return ((int)(this[this.tableProductPartner.idProductColumn]));
  4405. }
  4406. catch (global::System.InvalidCastException e) {
  4407. throw new global::System.Data.StrongTypingException("The value for column \'idProduct\' in table \'ProductPartner\' is DBNull.", e);
  4408. }
  4409. }
  4410. set {
  4411. this[this.tableProductPartner.idProductColumn] = value;
  4412. }
  4413. }
  4414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4416. public int idPartner {
  4417. get {
  4418. try {
  4419. return ((int)(this[this.tableProductPartner.idPartnerColumn]));
  4420. }
  4421. catch (global::System.InvalidCastException e) {
  4422. throw new global::System.Data.StrongTypingException("The value for column \'idPartner\' in table \'ProductPartner\' is DBNull.", e);
  4423. }
  4424. }
  4425. set {
  4426. this[this.tableProductPartner.idPartnerColumn] = value;
  4427. }
  4428. }
  4429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4431. public int CountProduct {
  4432. get {
  4433. try {
  4434. return ((int)(this[this.tableProductPartner.CountProductColumn]));
  4435. }
  4436. catch (global::System.InvalidCastException e) {
  4437. throw new global::System.Data.StrongTypingException("The value for column \'CountProduct\' in table \'ProductPartner\' is DBNull.", e);
  4438. }
  4439. }
  4440. set {
  4441. this[this.tableProductPartner.CountProductColumn] = value;
  4442. }
  4443. }
  4444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4446. public System.DateTime DateSale {
  4447. get {
  4448. try {
  4449. return ((global::System.DateTime)(this[this.tableProductPartner.DateSaleColumn]));
  4450. }
  4451. catch (global::System.InvalidCastException e) {
  4452. throw new global::System.Data.StrongTypingException("The value for column \'DateSale\' in table \'ProductPartner\' is DBNull.", e);
  4453. }
  4454. }
  4455. set {
  4456. this[this.tableProductPartner.DateSaleColumn] = value;
  4457. }
  4458. }
  4459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4461. public PartnerRow PartnerRow {
  4462. get {
  4463. return ((PartnerRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductPartner_Partner"])));
  4464. }
  4465. set {
  4466. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductPartner_Partner"]);
  4467. }
  4468. }
  4469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4471. public ProductsRow ProductsRow {
  4472. get {
  4473. return ((ProductsRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductPartner_Products"])));
  4474. }
  4475. set {
  4476. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductPartner_Products"]);
  4477. }
  4478. }
  4479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4480. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4481. public bool IsidProductNull() {
  4482. return this.IsNull(this.tableProductPartner.idProductColumn);
  4483. }
  4484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4486. public void SetidProductNull() {
  4487. this[this.tableProductPartner.idProductColumn] = global::System.Convert.DBNull;
  4488. }
  4489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4491. public bool IsidPartnerNull() {
  4492. return this.IsNull(this.tableProductPartner.idPartnerColumn);
  4493. }
  4494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4496. public void SetidPartnerNull() {
  4497. this[this.tableProductPartner.idPartnerColumn] = global::System.Convert.DBNull;
  4498. }
  4499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4500. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4501. public bool IsCountProductNull() {
  4502. return this.IsNull(this.tableProductPartner.CountProductColumn);
  4503. }
  4504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4506. public void SetCountProductNull() {
  4507. this[this.tableProductPartner.CountProductColumn] = global::System.Convert.DBNull;
  4508. }
  4509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4511. public bool IsDateSaleNull() {
  4512. return this.IsNull(this.tableProductPartner.DateSaleColumn);
  4513. }
  4514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4516. public void SetDateSaleNull() {
  4517. this[this.tableProductPartner.DateSaleColumn] = global::System.Convert.DBNull;
  4518. }
  4519. }
  4520. /// <summary>
  4521. ///Represents strongly named DataRow class.
  4522. ///</summary>
  4523. public partial class ProductsRow : global::System.Data.DataRow {
  4524. private ProductsDataTable tableProducts;
  4525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4526. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4527. internal ProductsRow(global::System.Data.DataRowBuilder rb) :
  4528. base(rb) {
  4529. this.tableProducts = ((ProductsDataTable)(this.Table));
  4530. }
  4531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4533. public int idProduct {
  4534. get {
  4535. return ((int)(this[this.tableProducts.idProductColumn]));
  4536. }
  4537. set {
  4538. this[this.tableProducts.idProductColumn] = value;
  4539. }
  4540. }
  4541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4543. public int idTypeProduct {
  4544. get {
  4545. try {
  4546. return ((int)(this[this.tableProducts.idTypeProductColumn]));
  4547. }
  4548. catch (global::System.InvalidCastException e) {
  4549. throw new global::System.Data.StrongTypingException("The value for column \'idTypeProduct\' in table \'Products\' is DBNull.", e);
  4550. }
  4551. }
  4552. set {
  4553. this[this.tableProducts.idTypeProductColumn] = value;
  4554. }
  4555. }
  4556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4558. public string NameProduct {
  4559. get {
  4560. try {
  4561. return ((string)(this[this.tableProducts.NameProductColumn]));
  4562. }
  4563. catch (global::System.InvalidCastException e) {
  4564. throw new global::System.Data.StrongTypingException("The value for column \'NameProduct\' in table \'Products\' is DBNull.", e);
  4565. }
  4566. }
  4567. set {
  4568. this[this.tableProducts.NameProductColumn] = value;
  4569. }
  4570. }
  4571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4573. public int Article {
  4574. get {
  4575. try {
  4576. return ((int)(this[this.tableProducts.ArticleColumn]));
  4577. }
  4578. catch (global::System.InvalidCastException e) {
  4579. throw new global::System.Data.StrongTypingException("The value for column \'Article\' in table \'Products\' is DBNull.", e);
  4580. }
  4581. }
  4582. set {
  4583. this[this.tableProducts.ArticleColumn] = value;
  4584. }
  4585. }
  4586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4588. public decimal MinCost {
  4589. get {
  4590. try {
  4591. return ((decimal)(this[this.tableProducts.MinCostColumn]));
  4592. }
  4593. catch (global::System.InvalidCastException e) {
  4594. throw new global::System.Data.StrongTypingException("The value for column \'MinCost\' in table \'Products\' is DBNull.", e);
  4595. }
  4596. }
  4597. set {
  4598. this[this.tableProducts.MinCostColumn] = value;
  4599. }
  4600. }
  4601. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4602. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4603. public TypeProductRow TypeProductRow {
  4604. get {
  4605. return ((TypeProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_Products_TypeProduct"])));
  4606. }
  4607. set {
  4608. this.SetParentRow(value, this.Table.ParentRelations["FK_Products_TypeProduct"]);
  4609. }
  4610. }
  4611. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4612. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4613. public bool IsidTypeProductNull() {
  4614. return this.IsNull(this.tableProducts.idTypeProductColumn);
  4615. }
  4616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4618. public void SetidTypeProductNull() {
  4619. this[this.tableProducts.idTypeProductColumn] = global::System.Convert.DBNull;
  4620. }
  4621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4622. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4623. public bool IsNameProductNull() {
  4624. return this.IsNull(this.tableProducts.NameProductColumn);
  4625. }
  4626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4628. public void SetNameProductNull() {
  4629. this[this.tableProducts.NameProductColumn] = global::System.Convert.DBNull;
  4630. }
  4631. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4633. public bool IsArticleNull() {
  4634. return this.IsNull(this.tableProducts.ArticleColumn);
  4635. }
  4636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4638. public void SetArticleNull() {
  4639. this[this.tableProducts.ArticleColumn] = global::System.Convert.DBNull;
  4640. }
  4641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4642. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4643. public bool IsMinCostNull() {
  4644. return this.IsNull(this.tableProducts.MinCostColumn);
  4645. }
  4646. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4648. public void SetMinCostNull() {
  4649. this[this.tableProducts.MinCostColumn] = global::System.Convert.DBNull;
  4650. }
  4651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4653. public ProductPartnerRow[] GetProductPartnerRows() {
  4654. if ((this.Table.ChildRelations["FK_ProductPartner_Products"] == null)) {
  4655. return new ProductPartnerRow[0];
  4656. }
  4657. else {
  4658. return ((ProductPartnerRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductPartner_Products"])));
  4659. }
  4660. }
  4661. }
  4662. /// <summary>
  4663. ///Represents strongly named DataRow class.
  4664. ///</summary>
  4665. public partial class RegionRow : global::System.Data.DataRow {
  4666. private RegionDataTable tableRegion;
  4667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4668. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4669. internal RegionRow(global::System.Data.DataRowBuilder rb) :
  4670. base(rb) {
  4671. this.tableRegion = ((RegionDataTable)(this.Table));
  4672. }
  4673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4675. public int idRegion {
  4676. get {
  4677. return ((int)(this[this.tableRegion.idRegionColumn]));
  4678. }
  4679. set {
  4680. this[this.tableRegion.idRegionColumn] = value;
  4681. }
  4682. }
  4683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4685. public string Region {
  4686. get {
  4687. try {
  4688. return ((string)(this[this.tableRegion.RegionColumn]));
  4689. }
  4690. catch (global::System.InvalidCastException e) {
  4691. throw new global::System.Data.StrongTypingException("The value for column \'Region\' in table \'Region\' is DBNull.", e);
  4692. }
  4693. }
  4694. set {
  4695. this[this.tableRegion.RegionColumn] = value;
  4696. }
  4697. }
  4698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4700. public bool IsRegionNull() {
  4701. return this.IsNull(this.tableRegion.RegionColumn);
  4702. }
  4703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4705. public void SetRegionNull() {
  4706. this[this.tableRegion.RegionColumn] = global::System.Convert.DBNull;
  4707. }
  4708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4710. public PartnerRow[] GetPartnerRows() {
  4711. if ((this.Table.ChildRelations["FK_Partner_Region"] == null)) {
  4712. return new PartnerRow[0];
  4713. }
  4714. else {
  4715. return ((PartnerRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Partner_Region"])));
  4716. }
  4717. }
  4718. }
  4719. /// <summary>
  4720. ///Represents strongly named DataRow class.
  4721. ///</summary>
  4722. public partial class StreetRow : global::System.Data.DataRow {
  4723. private StreetDataTable tableStreet;
  4724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4725. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4726. internal StreetRow(global::System.Data.DataRowBuilder rb) :
  4727. base(rb) {
  4728. this.tableStreet = ((StreetDataTable)(this.Table));
  4729. }
  4730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4732. public int idStreet {
  4733. get {
  4734. return ((int)(this[this.tableStreet.idStreetColumn]));
  4735. }
  4736. set {
  4737. this[this.tableStreet.idStreetColumn] = value;
  4738. }
  4739. }
  4740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4742. public string Street {
  4743. get {
  4744. try {
  4745. return ((string)(this[this.tableStreet.StreetColumn]));
  4746. }
  4747. catch (global::System.InvalidCastException e) {
  4748. throw new global::System.Data.StrongTypingException("The value for column \'Street\' in table \'Street\' is DBNull.", e);
  4749. }
  4750. }
  4751. set {
  4752. this[this.tableStreet.StreetColumn] = value;
  4753. }
  4754. }
  4755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4757. public bool IsStreetNull() {
  4758. return this.IsNull(this.tableStreet.StreetColumn);
  4759. }
  4760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4761. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4762. public void SetStreetNull() {
  4763. this[this.tableStreet.StreetColumn] = global::System.Convert.DBNull;
  4764. }
  4765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4767. public PartnerRow[] GetPartnerRows() {
  4768. if ((this.Table.ChildRelations["FK_Partner_Street"] == null)) {
  4769. return new PartnerRow[0];
  4770. }
  4771. else {
  4772. return ((PartnerRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Partner_Street"])));
  4773. }
  4774. }
  4775. }
  4776. /// <summary>
  4777. ///Represents strongly named DataRow class.
  4778. ///</summary>
  4779. public partial class TypeMaterialRow : global::System.Data.DataRow {
  4780. private TypeMaterialDataTable tableTypeMaterial;
  4781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4783. internal TypeMaterialRow(global::System.Data.DataRowBuilder rb) :
  4784. base(rb) {
  4785. this.tableTypeMaterial = ((TypeMaterialDataTable)(this.Table));
  4786. }
  4787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4788. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4789. public int idTypeMaterial {
  4790. get {
  4791. return ((int)(this[this.tableTypeMaterial.idTypeMaterialColumn]));
  4792. }
  4793. set {
  4794. this[this.tableTypeMaterial.idTypeMaterialColumn] = value;
  4795. }
  4796. }
  4797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4799. public string TypeMaterial {
  4800. get {
  4801. try {
  4802. return ((string)(this[this.tableTypeMaterial.TypeMaterialColumn]));
  4803. }
  4804. catch (global::System.InvalidCastException e) {
  4805. throw new global::System.Data.StrongTypingException("The value for column \'TypeMaterial\' in table \'TypeMaterial\' is DBNull.", e);
  4806. }
  4807. }
  4808. set {
  4809. this[this.tableTypeMaterial.TypeMaterialColumn] = value;
  4810. }
  4811. }
  4812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4814. public decimal PercentDefect {
  4815. get {
  4816. try {
  4817. return ((decimal)(this[this.tableTypeMaterial.PercentDefectColumn]));
  4818. }
  4819. catch (global::System.InvalidCastException e) {
  4820. throw new global::System.Data.StrongTypingException("The value for column \'PercentDefect\' in table \'TypeMaterial\' is DBNull.", e);
  4821. }
  4822. }
  4823. set {
  4824. this[this.tableTypeMaterial.PercentDefectColumn] = value;
  4825. }
  4826. }
  4827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4829. public bool IsTypeMaterialNull() {
  4830. return this.IsNull(this.tableTypeMaterial.TypeMaterialColumn);
  4831. }
  4832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4834. public void SetTypeMaterialNull() {
  4835. this[this.tableTypeMaterial.TypeMaterialColumn] = global::System.Convert.DBNull;
  4836. }
  4837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4839. public bool IsPercentDefectNull() {
  4840. return this.IsNull(this.tableTypeMaterial.PercentDefectColumn);
  4841. }
  4842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4844. public void SetPercentDefectNull() {
  4845. this[this.tableTypeMaterial.PercentDefectColumn] = global::System.Convert.DBNull;
  4846. }
  4847. }
  4848. /// <summary>
  4849. ///Represents strongly named DataRow class.
  4850. ///</summary>
  4851. public partial class TypePartnerRow : global::System.Data.DataRow {
  4852. private TypePartnerDataTable tableTypePartner;
  4853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4855. internal TypePartnerRow(global::System.Data.DataRowBuilder rb) :
  4856. base(rb) {
  4857. this.tableTypePartner = ((TypePartnerDataTable)(this.Table));
  4858. }
  4859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4861. public int idTypePartner {
  4862. get {
  4863. return ((int)(this[this.tableTypePartner.idTypePartnerColumn]));
  4864. }
  4865. set {
  4866. this[this.tableTypePartner.idTypePartnerColumn] = value;
  4867. }
  4868. }
  4869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4871. public string Type {
  4872. get {
  4873. try {
  4874. return ((string)(this[this.tableTypePartner.TypeColumn]));
  4875. }
  4876. catch (global::System.InvalidCastException e) {
  4877. throw new global::System.Data.StrongTypingException("The value for column \'Type\' in table \'TypePartner\' is DBNull.", e);
  4878. }
  4879. }
  4880. set {
  4881. this[this.tableTypePartner.TypeColumn] = value;
  4882. }
  4883. }
  4884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4886. public bool IsTypeNull() {
  4887. return this.IsNull(this.tableTypePartner.TypeColumn);
  4888. }
  4889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4891. public void SetTypeNull() {
  4892. this[this.tableTypePartner.TypeColumn] = global::System.Convert.DBNull;
  4893. }
  4894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4896. public PartnerRow[] GetPartnerRows() {
  4897. if ((this.Table.ChildRelations["FK_Partner_TypePartner"] == null)) {
  4898. return new PartnerRow[0];
  4899. }
  4900. else {
  4901. return ((PartnerRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Partner_TypePartner"])));
  4902. }
  4903. }
  4904. }
  4905. /// <summary>
  4906. ///Represents strongly named DataRow class.
  4907. ///</summary>
  4908. public partial class TypeProductRow : global::System.Data.DataRow {
  4909. private TypeProductDataTable tableTypeProduct;
  4910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4911. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4912. internal TypeProductRow(global::System.Data.DataRowBuilder rb) :
  4913. base(rb) {
  4914. this.tableTypeProduct = ((TypeProductDataTable)(this.Table));
  4915. }
  4916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4918. public int idTypeProduct {
  4919. get {
  4920. return ((int)(this[this.tableTypeProduct.idTypeProductColumn]));
  4921. }
  4922. set {
  4923. this[this.tableTypeProduct.idTypeProductColumn] = value;
  4924. }
  4925. }
  4926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4928. public string TypeProduct {
  4929. get {
  4930. try {
  4931. return ((string)(this[this.tableTypeProduct.TypeProductColumn]));
  4932. }
  4933. catch (global::System.InvalidCastException e) {
  4934. throw new global::System.Data.StrongTypingException("The value for column \'TypeProduct\' in table \'TypeProduct\' is DBNull.", e);
  4935. }
  4936. }
  4937. set {
  4938. this[this.tableTypeProduct.TypeProductColumn] = value;
  4939. }
  4940. }
  4941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4942. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4943. public double Coefficient {
  4944. get {
  4945. try {
  4946. return ((double)(this[this.tableTypeProduct.CoefficientColumn]));
  4947. }
  4948. catch (global::System.InvalidCastException e) {
  4949. throw new global::System.Data.StrongTypingException("The value for column \'Coefficient\' in table \'TypeProduct\' is DBNull.", e);
  4950. }
  4951. }
  4952. set {
  4953. this[this.tableTypeProduct.CoefficientColumn] = value;
  4954. }
  4955. }
  4956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4958. public bool IsTypeProductNull() {
  4959. return this.IsNull(this.tableTypeProduct.TypeProductColumn);
  4960. }
  4961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4963. public void SetTypeProductNull() {
  4964. this[this.tableTypeProduct.TypeProductColumn] = global::System.Convert.DBNull;
  4965. }
  4966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4968. public bool IsCoefficientNull() {
  4969. return this.IsNull(this.tableTypeProduct.CoefficientColumn);
  4970. }
  4971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4972. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4973. public void SetCoefficientNull() {
  4974. this[this.tableTypeProduct.CoefficientColumn] = global::System.Convert.DBNull;
  4975. }
  4976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4978. public ProductsRow[] GetProductsRows() {
  4979. if ((this.Table.ChildRelations["FK_Products_TypeProduct"] == null)) {
  4980. return new ProductsRow[0];
  4981. }
  4982. else {
  4983. return ((ProductsRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Products_TypeProduct"])));
  4984. }
  4985. }
  4986. }
  4987. /// <summary>
  4988. ///Row event argument class
  4989. ///</summary>
  4990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4991. public class CityRowChangeEvent : global::System.EventArgs {
  4992. private CityRow eventRow;
  4993. private global::System.Data.DataRowAction eventAction;
  4994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4996. public CityRowChangeEvent(CityRow row, global::System.Data.DataRowAction action) {
  4997. this.eventRow = row;
  4998. this.eventAction = action;
  4999. }
  5000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5002. public CityRow Row {
  5003. get {
  5004. return this.eventRow;
  5005. }
  5006. }
  5007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5008. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5009. public global::System.Data.DataRowAction Action {
  5010. get {
  5011. return this.eventAction;
  5012. }
  5013. }
  5014. }
  5015. /// <summary>
  5016. ///Row event argument class
  5017. ///</summary>
  5018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5019. public class IndexPartnerRowChangeEvent : global::System.EventArgs {
  5020. private IndexPartnerRow eventRow;
  5021. private global::System.Data.DataRowAction eventAction;
  5022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5024. public IndexPartnerRowChangeEvent(IndexPartnerRow row, global::System.Data.DataRowAction action) {
  5025. this.eventRow = row;
  5026. this.eventAction = action;
  5027. }
  5028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5030. public IndexPartnerRow Row {
  5031. get {
  5032. return this.eventRow;
  5033. }
  5034. }
  5035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5037. public global::System.Data.DataRowAction Action {
  5038. get {
  5039. return this.eventAction;
  5040. }
  5041. }
  5042. }
  5043. /// <summary>
  5044. ///Row event argument class
  5045. ///</summary>
  5046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5047. public class ManagerRowChangeEvent : global::System.EventArgs {
  5048. private ManagerRow eventRow;
  5049. private global::System.Data.DataRowAction eventAction;
  5050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5052. public ManagerRowChangeEvent(ManagerRow row, global::System.Data.DataRowAction action) {
  5053. this.eventRow = row;
  5054. this.eventAction = action;
  5055. }
  5056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5057. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5058. public ManagerRow Row {
  5059. get {
  5060. return this.eventRow;
  5061. }
  5062. }
  5063. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5064. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5065. public global::System.Data.DataRowAction Action {
  5066. get {
  5067. return this.eventAction;
  5068. }
  5069. }
  5070. }
  5071. /// <summary>
  5072. ///Row event argument class
  5073. ///</summary>
  5074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5075. public class PartnerRowChangeEvent : global::System.EventArgs {
  5076. private PartnerRow eventRow;
  5077. private global::System.Data.DataRowAction eventAction;
  5078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5080. public PartnerRowChangeEvent(PartnerRow row, global::System.Data.DataRowAction action) {
  5081. this.eventRow = row;
  5082. this.eventAction = action;
  5083. }
  5084. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5085. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5086. public PartnerRow Row {
  5087. get {
  5088. return this.eventRow;
  5089. }
  5090. }
  5091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5093. public global::System.Data.DataRowAction Action {
  5094. get {
  5095. return this.eventAction;
  5096. }
  5097. }
  5098. }
  5099. /// <summary>
  5100. ///Row event argument class
  5101. ///</summary>
  5102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5103. public class ProductPartnerRowChangeEvent : global::System.EventArgs {
  5104. private ProductPartnerRow eventRow;
  5105. private global::System.Data.DataRowAction eventAction;
  5106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5108. public ProductPartnerRowChangeEvent(ProductPartnerRow row, global::System.Data.DataRowAction action) {
  5109. this.eventRow = row;
  5110. this.eventAction = action;
  5111. }
  5112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5113. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5114. public ProductPartnerRow Row {
  5115. get {
  5116. return this.eventRow;
  5117. }
  5118. }
  5119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5121. public global::System.Data.DataRowAction Action {
  5122. get {
  5123. return this.eventAction;
  5124. }
  5125. }
  5126. }
  5127. /// <summary>
  5128. ///Row event argument class
  5129. ///</summary>
  5130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5131. public class ProductsRowChangeEvent : global::System.EventArgs {
  5132. private ProductsRow eventRow;
  5133. private global::System.Data.DataRowAction eventAction;
  5134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5136. public ProductsRowChangeEvent(ProductsRow row, global::System.Data.DataRowAction action) {
  5137. this.eventRow = row;
  5138. this.eventAction = action;
  5139. }
  5140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5142. public ProductsRow Row {
  5143. get {
  5144. return this.eventRow;
  5145. }
  5146. }
  5147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5149. public global::System.Data.DataRowAction Action {
  5150. get {
  5151. return this.eventAction;
  5152. }
  5153. }
  5154. }
  5155. /// <summary>
  5156. ///Row event argument class
  5157. ///</summary>
  5158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5159. public class RegionRowChangeEvent : global::System.EventArgs {
  5160. private RegionRow eventRow;
  5161. private global::System.Data.DataRowAction eventAction;
  5162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5164. public RegionRowChangeEvent(RegionRow row, global::System.Data.DataRowAction action) {
  5165. this.eventRow = row;
  5166. this.eventAction = action;
  5167. }
  5168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5170. public RegionRow Row {
  5171. get {
  5172. return this.eventRow;
  5173. }
  5174. }
  5175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5177. public global::System.Data.DataRowAction Action {
  5178. get {
  5179. return this.eventAction;
  5180. }
  5181. }
  5182. }
  5183. /// <summary>
  5184. ///Row event argument class
  5185. ///</summary>
  5186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5187. public class StreetRowChangeEvent : global::System.EventArgs {
  5188. private StreetRow eventRow;
  5189. private global::System.Data.DataRowAction eventAction;
  5190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5191. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5192. public StreetRowChangeEvent(StreetRow row, global::System.Data.DataRowAction action) {
  5193. this.eventRow = row;
  5194. this.eventAction = action;
  5195. }
  5196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5198. public StreetRow Row {
  5199. get {
  5200. return this.eventRow;
  5201. }
  5202. }
  5203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5205. public global::System.Data.DataRowAction Action {
  5206. get {
  5207. return this.eventAction;
  5208. }
  5209. }
  5210. }
  5211. /// <summary>
  5212. ///Row event argument class
  5213. ///</summary>
  5214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5215. public class TypeMaterialRowChangeEvent : global::System.EventArgs {
  5216. private TypeMaterialRow eventRow;
  5217. private global::System.Data.DataRowAction eventAction;
  5218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5220. public TypeMaterialRowChangeEvent(TypeMaterialRow row, global::System.Data.DataRowAction action) {
  5221. this.eventRow = row;
  5222. this.eventAction = action;
  5223. }
  5224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5226. public TypeMaterialRow Row {
  5227. get {
  5228. return this.eventRow;
  5229. }
  5230. }
  5231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5233. public global::System.Data.DataRowAction Action {
  5234. get {
  5235. return this.eventAction;
  5236. }
  5237. }
  5238. }
  5239. /// <summary>
  5240. ///Row event argument class
  5241. ///</summary>
  5242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5243. public class TypePartnerRowChangeEvent : global::System.EventArgs {
  5244. private TypePartnerRow eventRow;
  5245. private global::System.Data.DataRowAction eventAction;
  5246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5248. public TypePartnerRowChangeEvent(TypePartnerRow row, global::System.Data.DataRowAction action) {
  5249. this.eventRow = row;
  5250. this.eventAction = action;
  5251. }
  5252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5254. public TypePartnerRow Row {
  5255. get {
  5256. return this.eventRow;
  5257. }
  5258. }
  5259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5261. public global::System.Data.DataRowAction Action {
  5262. get {
  5263. return this.eventAction;
  5264. }
  5265. }
  5266. }
  5267. /// <summary>
  5268. ///Row event argument class
  5269. ///</summary>
  5270. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5271. public class TypeProductRowChangeEvent : global::System.EventArgs {
  5272. private TypeProductRow eventRow;
  5273. private global::System.Data.DataRowAction eventAction;
  5274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5276. public TypeProductRowChangeEvent(TypeProductRow row, global::System.Data.DataRowAction action) {
  5277. this.eventRow = row;
  5278. this.eventAction = action;
  5279. }
  5280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5282. public TypeProductRow Row {
  5283. get {
  5284. return this.eventRow;
  5285. }
  5286. }
  5287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5289. public global::System.Data.DataRowAction Action {
  5290. get {
  5291. return this.eventAction;
  5292. }
  5293. }
  5294. }
  5295. }
  5296. }
  5297. namespace СУБД_Альфапол.dbAlphapolAGDataSetTableAdapters {
  5298. /// <summary>
  5299. ///Represents the connection and commands used to retrieve and save data.
  5300. ///</summary>
  5301. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5302. [global::System.ComponentModel.ToolboxItem(true)]
  5303. [global::System.ComponentModel.DataObjectAttribute(true)]
  5304. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5305. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5306. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5307. public partial class CityTableAdapter : global::System.ComponentModel.Component {
  5308. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5309. private global::System.Data.SqlClient.SqlConnection _connection;
  5310. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5311. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5312. private bool _clearBeforeFill;
  5313. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5314. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5315. public CityTableAdapter() {
  5316. this.ClearBeforeFill = true;
  5317. }
  5318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5320. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5321. get {
  5322. if ((this._adapter == null)) {
  5323. this.InitAdapter();
  5324. }
  5325. return this._adapter;
  5326. }
  5327. }
  5328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5330. internal global::System.Data.SqlClient.SqlConnection Connection {
  5331. get {
  5332. if ((this._connection == null)) {
  5333. this.InitConnection();
  5334. }
  5335. return this._connection;
  5336. }
  5337. set {
  5338. this._connection = value;
  5339. if ((this.Adapter.InsertCommand != null)) {
  5340. this.Adapter.InsertCommand.Connection = value;
  5341. }
  5342. if ((this.Adapter.DeleteCommand != null)) {
  5343. this.Adapter.DeleteCommand.Connection = value;
  5344. }
  5345. if ((this.Adapter.UpdateCommand != null)) {
  5346. this.Adapter.UpdateCommand.Connection = value;
  5347. }
  5348. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5349. if ((this.CommandCollection[i] != null)) {
  5350. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5351. }
  5352. }
  5353. }
  5354. }
  5355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5357. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5358. get {
  5359. return this._transaction;
  5360. }
  5361. set {
  5362. this._transaction = value;
  5363. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5364. this.CommandCollection[i].Transaction = this._transaction;
  5365. }
  5366. if (((this.Adapter != null)
  5367. && (this.Adapter.DeleteCommand != null))) {
  5368. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5369. }
  5370. if (((this.Adapter != null)
  5371. && (this.Adapter.InsertCommand != null))) {
  5372. this.Adapter.InsertCommand.Transaction = this._transaction;
  5373. }
  5374. if (((this.Adapter != null)
  5375. && (this.Adapter.UpdateCommand != null))) {
  5376. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5377. }
  5378. }
  5379. }
  5380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5382. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5383. get {
  5384. if ((this._commandCollection == null)) {
  5385. this.InitCommandCollection();
  5386. }
  5387. return this._commandCollection;
  5388. }
  5389. }
  5390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5392. public bool ClearBeforeFill {
  5393. get {
  5394. return this._clearBeforeFill;
  5395. }
  5396. set {
  5397. this._clearBeforeFill = value;
  5398. }
  5399. }
  5400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5402. private void InitAdapter() {
  5403. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5404. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5405. tableMapping.SourceTable = "Table";
  5406. tableMapping.DataSetTable = "City";
  5407. tableMapping.ColumnMappings.Add("idCity", "idCity");
  5408. tableMapping.ColumnMappings.Add("City", "City");
  5409. this._adapter.TableMappings.Add(tableMapping);
  5410. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5411. this._adapter.DeleteCommand.Connection = this.Connection;
  5412. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[City] WHERE (([idCity] = @Original_idCity) AND ((@IsNull_City " +
  5413. "= 1 AND [City] IS NULL) OR ([City] = @Original_City)))";
  5414. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5415. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idCity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idCity", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5416. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_City", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "City", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5417. 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, "", "", ""));
  5418. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5419. this._adapter.InsertCommand.Connection = this.Connection;
  5420. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[City] ([City]) VALUES (@City);\r\nSELECT idCity, City FROM City " +
  5421. "WHERE (idCity = SCOPE_IDENTITY())";
  5422. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5423. 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, "", "", ""));
  5424. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5425. this._adapter.UpdateCommand.Connection = this.Connection;
  5426. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[City] SET [City] = @City WHERE (([idCity] = @Original_idCity) AND (" +
  5427. "(@IsNull_City = 1 AND [City] IS NULL) OR ([City] = @Original_City)));\r\nSELECT id" +
  5428. "City, City FROM City WHERE (idCity = @idCity)";
  5429. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5430. 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, "", "", ""));
  5431. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idCity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idCity", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5432. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_City", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "City", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5433. 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, "", "", ""));
  5434. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idCity", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idCity", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5435. }
  5436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5438. private void InitConnection() {
  5439. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5440. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.dbAlphapolAGConnectionString;
  5441. }
  5442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5444. private void InitCommandCollection() {
  5445. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5446. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5447. this._commandCollection[0].Connection = this.Connection;
  5448. this._commandCollection[0].CommandText = "SELECT idCity, City FROM dbo.City";
  5449. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5450. }
  5451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5453. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5454. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5455. public virtual int Fill(dbAlphapolAGDataSet.CityDataTable dataTable) {
  5456. this.Adapter.SelectCommand = this.CommandCollection[0];
  5457. if ((this.ClearBeforeFill == true)) {
  5458. dataTable.Clear();
  5459. }
  5460. int returnValue = this.Adapter.Fill(dataTable);
  5461. return returnValue;
  5462. }
  5463. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5464. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5465. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5466. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5467. public virtual dbAlphapolAGDataSet.CityDataTable GetData() {
  5468. this.Adapter.SelectCommand = this.CommandCollection[0];
  5469. dbAlphapolAGDataSet.CityDataTable dataTable = new dbAlphapolAGDataSet.CityDataTable();
  5470. this.Adapter.Fill(dataTable);
  5471. return dataTable;
  5472. }
  5473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5475. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5476. public virtual int Update(dbAlphapolAGDataSet.CityDataTable dataTable) {
  5477. return this.Adapter.Update(dataTable);
  5478. }
  5479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5480. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5481. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5482. public virtual int Update(dbAlphapolAGDataSet dataSet) {
  5483. return this.Adapter.Update(dataSet, "City");
  5484. }
  5485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5487. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5488. public virtual int Update(global::System.Data.DataRow dataRow) {
  5489. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5490. dataRow});
  5491. }
  5492. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5493. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5494. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5495. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5496. return this.Adapter.Update(dataRows);
  5497. }
  5498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5500. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5501. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5502. public virtual int Delete(int Original_idCity, string Original_City) {
  5503. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idCity));
  5504. if ((Original_City == null)) {
  5505. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  5506. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  5507. }
  5508. else {
  5509. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  5510. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_City));
  5511. }
  5512. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5513. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5514. != global::System.Data.ConnectionState.Open)) {
  5515. this.Adapter.DeleteCommand.Connection.Open();
  5516. }
  5517. try {
  5518. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5519. return returnValue;
  5520. }
  5521. finally {
  5522. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5523. this.Adapter.DeleteCommand.Connection.Close();
  5524. }
  5525. }
  5526. }
  5527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5529. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5530. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5531. public virtual int Insert(string City) {
  5532. if ((City == null)) {
  5533. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  5534. }
  5535. else {
  5536. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(City));
  5537. }
  5538. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5539. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5540. != global::System.Data.ConnectionState.Open)) {
  5541. this.Adapter.InsertCommand.Connection.Open();
  5542. }
  5543. try {
  5544. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5545. return returnValue;
  5546. }
  5547. finally {
  5548. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5549. this.Adapter.InsertCommand.Connection.Close();
  5550. }
  5551. }
  5552. }
  5553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5555. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5556. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5557. public virtual int Update(string City, int Original_idCity, string Original_City, int idCity) {
  5558. if ((City == null)) {
  5559. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  5560. }
  5561. else {
  5562. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(City));
  5563. }
  5564. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_idCity));
  5565. if ((Original_City == null)) {
  5566. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  5567. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  5568. }
  5569. else {
  5570. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  5571. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_City));
  5572. }
  5573. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(idCity));
  5574. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5575. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5576. != global::System.Data.ConnectionState.Open)) {
  5577. this.Adapter.UpdateCommand.Connection.Open();
  5578. }
  5579. try {
  5580. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5581. return returnValue;
  5582. }
  5583. finally {
  5584. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5585. this.Adapter.UpdateCommand.Connection.Close();
  5586. }
  5587. }
  5588. }
  5589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5591. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5592. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5593. public virtual int Update(string City, int Original_idCity, string Original_City) {
  5594. return this.Update(City, Original_idCity, Original_City, Original_idCity);
  5595. }
  5596. }
  5597. /// <summary>
  5598. ///Represents the connection and commands used to retrieve and save data.
  5599. ///</summary>
  5600. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5601. [global::System.ComponentModel.ToolboxItem(true)]
  5602. [global::System.ComponentModel.DataObjectAttribute(true)]
  5603. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5604. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5605. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5606. public partial class IndexPartnerTableAdapter : global::System.ComponentModel.Component {
  5607. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5608. private global::System.Data.SqlClient.SqlConnection _connection;
  5609. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5610. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5611. private bool _clearBeforeFill;
  5612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5614. public IndexPartnerTableAdapter() {
  5615. this.ClearBeforeFill = true;
  5616. }
  5617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5619. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5620. get {
  5621. if ((this._adapter == null)) {
  5622. this.InitAdapter();
  5623. }
  5624. return this._adapter;
  5625. }
  5626. }
  5627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5629. internal global::System.Data.SqlClient.SqlConnection Connection {
  5630. get {
  5631. if ((this._connection == null)) {
  5632. this.InitConnection();
  5633. }
  5634. return this._connection;
  5635. }
  5636. set {
  5637. this._connection = value;
  5638. if ((this.Adapter.InsertCommand != null)) {
  5639. this.Adapter.InsertCommand.Connection = value;
  5640. }
  5641. if ((this.Adapter.DeleteCommand != null)) {
  5642. this.Adapter.DeleteCommand.Connection = value;
  5643. }
  5644. if ((this.Adapter.UpdateCommand != null)) {
  5645. this.Adapter.UpdateCommand.Connection = value;
  5646. }
  5647. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5648. if ((this.CommandCollection[i] != null)) {
  5649. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5650. }
  5651. }
  5652. }
  5653. }
  5654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5656. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5657. get {
  5658. return this._transaction;
  5659. }
  5660. set {
  5661. this._transaction = value;
  5662. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5663. this.CommandCollection[i].Transaction = this._transaction;
  5664. }
  5665. if (((this.Adapter != null)
  5666. && (this.Adapter.DeleteCommand != null))) {
  5667. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5668. }
  5669. if (((this.Adapter != null)
  5670. && (this.Adapter.InsertCommand != null))) {
  5671. this.Adapter.InsertCommand.Transaction = this._transaction;
  5672. }
  5673. if (((this.Adapter != null)
  5674. && (this.Adapter.UpdateCommand != null))) {
  5675. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5676. }
  5677. }
  5678. }
  5679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5681. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5682. get {
  5683. if ((this._commandCollection == null)) {
  5684. this.InitCommandCollection();
  5685. }
  5686. return this._commandCollection;
  5687. }
  5688. }
  5689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5690. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5691. public bool ClearBeforeFill {
  5692. get {
  5693. return this._clearBeforeFill;
  5694. }
  5695. set {
  5696. this._clearBeforeFill = value;
  5697. }
  5698. }
  5699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5701. private void InitAdapter() {
  5702. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5703. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5704. tableMapping.SourceTable = "Table";
  5705. tableMapping.DataSetTable = "IndexPartner";
  5706. tableMapping.ColumnMappings.Add("idIndex", "idIndex");
  5707. tableMapping.ColumnMappings.Add("CodePartner", "CodePartner");
  5708. this._adapter.TableMappings.Add(tableMapping);
  5709. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5710. this._adapter.DeleteCommand.Connection = this.Connection;
  5711. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[IndexPartner] WHERE (([idIndex] = @Original_idIndex) AND ((@Is" +
  5712. "Null_CodePartner = 1 AND [CodePartner] IS NULL) OR ([CodePartner] = @Original_Co" +
  5713. "dePartner)))";
  5714. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5715. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idIndex", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idIndex", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5716. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodePartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodePartner", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5717. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodePartner", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodePartner", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5718. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5719. this._adapter.InsertCommand.Connection = this.Connection;
  5720. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[IndexPartner] ([CodePartner]) VALUES (@CodePartner);\r\nSELECT i" +
  5721. "dIndex, CodePartner FROM IndexPartner WHERE (idIndex = SCOPE_IDENTITY())";
  5722. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5723. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodePartner", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodePartner", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5724. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5725. this._adapter.UpdateCommand.Connection = this.Connection;
  5726. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[IndexPartner] SET [CodePartner] = @CodePartner WHERE (([idIndex] = @Original_idIndex) AND ((@IsNull_CodePartner = 1 AND [CodePartner] IS NULL) OR ([CodePartner] = @Original_CodePartner)));
  5727. SELECT idIndex, CodePartner FROM IndexPartner WHERE (idIndex = @idIndex)";
  5728. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5729. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodePartner", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodePartner", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5730. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idIndex", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idIndex", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5731. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodePartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodePartner", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5732. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodePartner", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodePartner", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5733. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idIndex", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idIndex", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5734. }
  5735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5737. private void InitConnection() {
  5738. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5739. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.dbAlphapolAGConnectionString;
  5740. }
  5741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5742. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5743. private void InitCommandCollection() {
  5744. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5745. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5746. this._commandCollection[0].Connection = this.Connection;
  5747. this._commandCollection[0].CommandText = "SELECT idIndex, CodePartner FROM dbo.IndexPartner";
  5748. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5749. }
  5750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5752. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5753. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5754. public virtual int Fill(dbAlphapolAGDataSet.IndexPartnerDataTable dataTable) {
  5755. this.Adapter.SelectCommand = this.CommandCollection[0];
  5756. if ((this.ClearBeforeFill == true)) {
  5757. dataTable.Clear();
  5758. }
  5759. int returnValue = this.Adapter.Fill(dataTable);
  5760. return returnValue;
  5761. }
  5762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5764. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5765. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5766. public virtual dbAlphapolAGDataSet.IndexPartnerDataTable GetData() {
  5767. this.Adapter.SelectCommand = this.CommandCollection[0];
  5768. dbAlphapolAGDataSet.IndexPartnerDataTable dataTable = new dbAlphapolAGDataSet.IndexPartnerDataTable();
  5769. this.Adapter.Fill(dataTable);
  5770. return dataTable;
  5771. }
  5772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5774. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5775. public virtual int Update(dbAlphapolAGDataSet.IndexPartnerDataTable dataTable) {
  5776. return this.Adapter.Update(dataTable);
  5777. }
  5778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5780. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5781. public virtual int Update(dbAlphapolAGDataSet dataSet) {
  5782. return this.Adapter.Update(dataSet, "IndexPartner");
  5783. }
  5784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5786. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5787. public virtual int Update(global::System.Data.DataRow dataRow) {
  5788. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5789. dataRow});
  5790. }
  5791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5793. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5794. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5795. return this.Adapter.Update(dataRows);
  5796. }
  5797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5799. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5800. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5801. public virtual int Delete(int Original_idIndex, string Original_CodePartner) {
  5802. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idIndex));
  5803. if ((Original_CodePartner == null)) {
  5804. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  5805. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  5806. }
  5807. else {
  5808. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  5809. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_CodePartner));
  5810. }
  5811. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5812. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5813. != global::System.Data.ConnectionState.Open)) {
  5814. this.Adapter.DeleteCommand.Connection.Open();
  5815. }
  5816. try {
  5817. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5818. return returnValue;
  5819. }
  5820. finally {
  5821. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5822. this.Adapter.DeleteCommand.Connection.Close();
  5823. }
  5824. }
  5825. }
  5826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5828. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5829. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5830. public virtual int Insert(string CodePartner) {
  5831. if ((CodePartner == null)) {
  5832. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  5833. }
  5834. else {
  5835. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodePartner));
  5836. }
  5837. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5838. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5839. != global::System.Data.ConnectionState.Open)) {
  5840. this.Adapter.InsertCommand.Connection.Open();
  5841. }
  5842. try {
  5843. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5844. return returnValue;
  5845. }
  5846. finally {
  5847. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5848. this.Adapter.InsertCommand.Connection.Close();
  5849. }
  5850. }
  5851. }
  5852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5854. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5855. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5856. public virtual int Update(string CodePartner, int Original_idIndex, string Original_CodePartner, int idIndex) {
  5857. if ((CodePartner == null)) {
  5858. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  5859. }
  5860. else {
  5861. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodePartner));
  5862. }
  5863. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_idIndex));
  5864. if ((Original_CodePartner == null)) {
  5865. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  5866. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  5867. }
  5868. else {
  5869. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  5870. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_CodePartner));
  5871. }
  5872. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(idIndex));
  5873. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5874. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5875. != global::System.Data.ConnectionState.Open)) {
  5876. this.Adapter.UpdateCommand.Connection.Open();
  5877. }
  5878. try {
  5879. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5880. return returnValue;
  5881. }
  5882. finally {
  5883. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5884. this.Adapter.UpdateCommand.Connection.Close();
  5885. }
  5886. }
  5887. }
  5888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5890. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5891. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5892. public virtual int Update(string CodePartner, int Original_idIndex, string Original_CodePartner) {
  5893. return this.Update(CodePartner, Original_idIndex, Original_CodePartner, Original_idIndex);
  5894. }
  5895. }
  5896. /// <summary>
  5897. ///Represents the connection and commands used to retrieve and save data.
  5898. ///</summary>
  5899. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5900. [global::System.ComponentModel.ToolboxItem(true)]
  5901. [global::System.ComponentModel.DataObjectAttribute(true)]
  5902. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5903. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5904. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5905. public partial class ManagerTableAdapter : global::System.ComponentModel.Component {
  5906. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5907. private global::System.Data.SqlClient.SqlConnection _connection;
  5908. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5909. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5910. private bool _clearBeforeFill;
  5911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5913. public ManagerTableAdapter() {
  5914. this.ClearBeforeFill = true;
  5915. }
  5916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5918. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5919. get {
  5920. if ((this._adapter == null)) {
  5921. this.InitAdapter();
  5922. }
  5923. return this._adapter;
  5924. }
  5925. }
  5926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5928. internal global::System.Data.SqlClient.SqlConnection Connection {
  5929. get {
  5930. if ((this._connection == null)) {
  5931. this.InitConnection();
  5932. }
  5933. return this._connection;
  5934. }
  5935. set {
  5936. this._connection = value;
  5937. if ((this.Adapter.InsertCommand != null)) {
  5938. this.Adapter.InsertCommand.Connection = value;
  5939. }
  5940. if ((this.Adapter.DeleteCommand != null)) {
  5941. this.Adapter.DeleteCommand.Connection = value;
  5942. }
  5943. if ((this.Adapter.UpdateCommand != null)) {
  5944. this.Adapter.UpdateCommand.Connection = value;
  5945. }
  5946. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5947. if ((this.CommandCollection[i] != null)) {
  5948. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5949. }
  5950. }
  5951. }
  5952. }
  5953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5955. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5956. get {
  5957. return this._transaction;
  5958. }
  5959. set {
  5960. this._transaction = value;
  5961. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5962. this.CommandCollection[i].Transaction = this._transaction;
  5963. }
  5964. if (((this.Adapter != null)
  5965. && (this.Adapter.DeleteCommand != null))) {
  5966. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5967. }
  5968. if (((this.Adapter != null)
  5969. && (this.Adapter.InsertCommand != null))) {
  5970. this.Adapter.InsertCommand.Transaction = this._transaction;
  5971. }
  5972. if (((this.Adapter != null)
  5973. && (this.Adapter.UpdateCommand != null))) {
  5974. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5975. }
  5976. }
  5977. }
  5978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5980. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5981. get {
  5982. if ((this._commandCollection == null)) {
  5983. this.InitCommandCollection();
  5984. }
  5985. return this._commandCollection;
  5986. }
  5987. }
  5988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5989. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5990. public bool ClearBeforeFill {
  5991. get {
  5992. return this._clearBeforeFill;
  5993. }
  5994. set {
  5995. this._clearBeforeFill = value;
  5996. }
  5997. }
  5998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6000. private void InitAdapter() {
  6001. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6002. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6003. tableMapping.SourceTable = "Table";
  6004. tableMapping.DataSetTable = "Manager";
  6005. tableMapping.ColumnMappings.Add("idManager", "idManager");
  6006. tableMapping.ColumnMappings.Add("Surname", "Surname");
  6007. tableMapping.ColumnMappings.Add("Name", "Name");
  6008. tableMapping.ColumnMappings.Add("Patronymic", "Patronymic");
  6009. tableMapping.ColumnMappings.Add("Login", "Login");
  6010. tableMapping.ColumnMappings.Add("Password", "Password");
  6011. tableMapping.ColumnMappings.Add("Photo", "Photo");
  6012. this._adapter.TableMappings.Add(tableMapping);
  6013. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6014. this._adapter.DeleteCommand.Connection = this.Connection;
  6015. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Manager] WHERE (([idManager] = @Original_idManager) AND ((@IsNull_Surname = 1 AND [Surname] IS NULL) OR ([Surname] = @Original_Surname)) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) AND ((@IsNull_Login = 1 AND [Login] IS NULL) OR ([Login] = @Original_Login)) AND ((@IsNull_Password = 1 AND [Password] IS NULL) OR ([Password] = @Original_Password)) AND ((@IsNull_Photo = 1 AND [Photo] IS NULL) OR ([Photo] = @Original_Photo)))";
  6016. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6017. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idManager", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idManager", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6018. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Surname", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6019. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Surname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6020. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6021. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6022. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Patronymic", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6023. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6024. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Login", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6025. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6026. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Password", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6027. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6028. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Photo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Photo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6029. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Photo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6030. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6031. this._adapter.InsertCommand.Connection = this.Connection;
  6032. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Manager] ([Surname], [Name], [Patronymic], [Login], [Password], [Photo]) VALUES (@Surname, @Name, @Patronymic, @Login, @Password, @Photo);
  6033. SELECT idManager, Surname, Name, Patronymic, Login, Password, Photo FROM Manager WHERE (idManager = SCOPE_IDENTITY())";
  6034. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6035. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Surname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6036. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6037. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6038. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6039. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6040. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Photo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6041. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6042. this._adapter.UpdateCommand.Connection = this.Connection;
  6043. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Manager] SET [Surname] = @Surname, [Name] = @Name, [Patronymic] = @Patronymic, [Login] = @Login, [Password] = @Password, [Photo] = @Photo WHERE (([idManager] = @Original_idManager) AND ((@IsNull_Surname = 1 AND [Surname] IS NULL) OR ([Surname] = @Original_Surname)) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) AND ((@IsNull_Login = 1 AND [Login] IS NULL) OR ([Login] = @Original_Login)) AND ((@IsNull_Password = 1 AND [Password] IS NULL) OR ([Password] = @Original_Password)) AND ((@IsNull_Photo = 1 AND [Photo] IS NULL) OR ([Photo] = @Original_Photo)));
  6044. SELECT idManager, Surname, Name, Patronymic, Login, Password, Photo FROM Manager WHERE (idManager = @idManager)";
  6045. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6046. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Surname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6047. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6048. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6049. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6050. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6051. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Photo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6052. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idManager", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idManager", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6053. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Surname", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6054. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Surname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6055. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6056. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6057. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Patronymic", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6058. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6059. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Login", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6060. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6061. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Password", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6062. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6063. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Photo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Photo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6064. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Photo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6065. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idManager", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idManager", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6066. }
  6067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6069. private void InitConnection() {
  6070. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6071. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.dbAlphapolAGConnectionString;
  6072. }
  6073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6075. private void InitCommandCollection() {
  6076. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6077. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6078. this._commandCollection[0].Connection = this.Connection;
  6079. this._commandCollection[0].CommandText = "SELECT idManager, Surname, Name, Patronymic, Login, Password, Photo FROM dbo.Mana" +
  6080. "ger";
  6081. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6082. }
  6083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6085. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6086. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6087. public virtual int Fill(dbAlphapolAGDataSet.ManagerDataTable dataTable) {
  6088. this.Adapter.SelectCommand = this.CommandCollection[0];
  6089. if ((this.ClearBeforeFill == true)) {
  6090. dataTable.Clear();
  6091. }
  6092. int returnValue = this.Adapter.Fill(dataTable);
  6093. return returnValue;
  6094. }
  6095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6097. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6098. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6099. public virtual dbAlphapolAGDataSet.ManagerDataTable GetData() {
  6100. this.Adapter.SelectCommand = this.CommandCollection[0];
  6101. dbAlphapolAGDataSet.ManagerDataTable dataTable = new dbAlphapolAGDataSet.ManagerDataTable();
  6102. this.Adapter.Fill(dataTable);
  6103. return dataTable;
  6104. }
  6105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6106. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6107. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6108. public virtual int Update(dbAlphapolAGDataSet.ManagerDataTable dataTable) {
  6109. return this.Adapter.Update(dataTable);
  6110. }
  6111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6113. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6114. public virtual int Update(dbAlphapolAGDataSet dataSet) {
  6115. return this.Adapter.Update(dataSet, "Manager");
  6116. }
  6117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6119. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6120. public virtual int Update(global::System.Data.DataRow dataRow) {
  6121. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6122. dataRow});
  6123. }
  6124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6126. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6127. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6128. return this.Adapter.Update(dataRows);
  6129. }
  6130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6132. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6133. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6134. public virtual int Delete(int Original_idManager, string Original_Surname, string Original_Name, string Original_Patronymic, string Original_Login, string Original_Password, string Original_Photo) {
  6135. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idManager));
  6136. if ((Original_Surname == null)) {
  6137. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6138. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6139. }
  6140. else {
  6141. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6142. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Surname));
  6143. }
  6144. if ((Original_Name == null)) {
  6145. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  6146. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  6147. }
  6148. else {
  6149. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  6150. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Name));
  6151. }
  6152. if ((Original_Patronymic == null)) {
  6153. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  6154. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  6155. }
  6156. else {
  6157. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  6158. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Patronymic));
  6159. }
  6160. if ((Original_Login == null)) {
  6161. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  6162. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  6163. }
  6164. else {
  6165. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  6166. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Login));
  6167. }
  6168. if ((Original_Password == null)) {
  6169. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  6170. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  6171. }
  6172. else {
  6173. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  6174. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Password));
  6175. }
  6176. if ((Original_Photo == null)) {
  6177. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  6178. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  6179. }
  6180. else {
  6181. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  6182. this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_Photo));
  6183. }
  6184. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6185. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6186. != global::System.Data.ConnectionState.Open)) {
  6187. this.Adapter.DeleteCommand.Connection.Open();
  6188. }
  6189. try {
  6190. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6191. return returnValue;
  6192. }
  6193. finally {
  6194. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6195. this.Adapter.DeleteCommand.Connection.Close();
  6196. }
  6197. }
  6198. }
  6199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6200. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6201. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6202. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6203. public virtual int Insert(string Surname, string Name, string Patronymic, string Login, string Password, string Photo) {
  6204. if ((Surname == null)) {
  6205. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6206. }
  6207. else {
  6208. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Surname));
  6209. }
  6210. if ((Name == null)) {
  6211. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  6212. }
  6213. else {
  6214. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Name));
  6215. }
  6216. if ((Patronymic == null)) {
  6217. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6218. }
  6219. else {
  6220. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Patronymic));
  6221. }
  6222. if ((Login == null)) {
  6223. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  6224. }
  6225. else {
  6226. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Login));
  6227. }
  6228. if ((Password == null)) {
  6229. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  6230. }
  6231. else {
  6232. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Password));
  6233. }
  6234. if ((Photo == null)) {
  6235. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  6236. }
  6237. else {
  6238. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Photo));
  6239. }
  6240. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6241. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6242. != global::System.Data.ConnectionState.Open)) {
  6243. this.Adapter.InsertCommand.Connection.Open();
  6244. }
  6245. try {
  6246. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6247. return returnValue;
  6248. }
  6249. finally {
  6250. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6251. this.Adapter.InsertCommand.Connection.Close();
  6252. }
  6253. }
  6254. }
  6255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6257. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6258. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6259. public virtual int Update(string Surname, string Name, string Patronymic, string Login, string Password, string Photo, int Original_idManager, string Original_Surname, string Original_Name, string Original_Patronymic, string Original_Login, string Original_Password, string Original_Photo, int idManager) {
  6260. if ((Surname == null)) {
  6261. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6262. }
  6263. else {
  6264. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Surname));
  6265. }
  6266. if ((Name == null)) {
  6267. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  6268. }
  6269. else {
  6270. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Name));
  6271. }
  6272. if ((Patronymic == null)) {
  6273. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  6274. }
  6275. else {
  6276. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Patronymic));
  6277. }
  6278. if ((Login == null)) {
  6279. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6280. }
  6281. else {
  6282. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Login));
  6283. }
  6284. if ((Password == null)) {
  6285. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  6286. }
  6287. else {
  6288. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Password));
  6289. }
  6290. if ((Photo == null)) {
  6291. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  6292. }
  6293. else {
  6294. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Photo));
  6295. }
  6296. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_idManager));
  6297. if ((Original_Surname == null)) {
  6298. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  6299. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  6300. }
  6301. else {
  6302. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  6303. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Surname));
  6304. }
  6305. if ((Original_Name == null)) {
  6306. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  6307. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  6308. }
  6309. else {
  6310. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  6311. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Name));
  6312. }
  6313. if ((Original_Patronymic == null)) {
  6314. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  6315. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  6316. }
  6317. else {
  6318. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  6319. this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_Patronymic));
  6320. }
  6321. if ((Original_Login == null)) {
  6322. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  6323. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  6324. }
  6325. else {
  6326. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  6327. this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_Login));
  6328. }
  6329. if ((Original_Password == null)) {
  6330. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  6331. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  6332. }
  6333. else {
  6334. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  6335. this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_Password));
  6336. }
  6337. if ((Original_Photo == null)) {
  6338. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
  6339. this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
  6340. }
  6341. else {
  6342. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
  6343. this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_Photo));
  6344. }
  6345. this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(idManager));
  6346. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6347. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6348. != global::System.Data.ConnectionState.Open)) {
  6349. this.Adapter.UpdateCommand.Connection.Open();
  6350. }
  6351. try {
  6352. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6353. return returnValue;
  6354. }
  6355. finally {
  6356. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6357. this.Adapter.UpdateCommand.Connection.Close();
  6358. }
  6359. }
  6360. }
  6361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6363. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6364. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6365. public virtual int Update(string Surname, string Name, string Patronymic, string Login, string Password, string Photo, int Original_idManager, string Original_Surname, string Original_Name, string Original_Patronymic, string Original_Login, string Original_Password, string Original_Photo) {
  6366. return this.Update(Surname, Name, Patronymic, Login, Password, Photo, Original_idManager, Original_Surname, Original_Name, Original_Patronymic, Original_Login, Original_Password, Original_Photo, Original_idManager);
  6367. }
  6368. }
  6369. /// <summary>
  6370. ///Represents the connection and commands used to retrieve and save data.
  6371. ///</summary>
  6372. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6373. [global::System.ComponentModel.ToolboxItem(true)]
  6374. [global::System.ComponentModel.DataObjectAttribute(true)]
  6375. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6376. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6377. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6378. public partial class PartnerTableAdapter : global::System.ComponentModel.Component {
  6379. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6380. private global::System.Data.SqlClient.SqlConnection _connection;
  6381. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6382. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6383. private bool _clearBeforeFill;
  6384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6386. public PartnerTableAdapter() {
  6387. this.ClearBeforeFill = true;
  6388. }
  6389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6391. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6392. get {
  6393. if ((this._adapter == null)) {
  6394. this.InitAdapter();
  6395. }
  6396. return this._adapter;
  6397. }
  6398. }
  6399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6401. internal global::System.Data.SqlClient.SqlConnection Connection {
  6402. get {
  6403. if ((this._connection == null)) {
  6404. this.InitConnection();
  6405. }
  6406. return this._connection;
  6407. }
  6408. set {
  6409. this._connection = value;
  6410. if ((this.Adapter.InsertCommand != null)) {
  6411. this.Adapter.InsertCommand.Connection = value;
  6412. }
  6413. if ((this.Adapter.DeleteCommand != null)) {
  6414. this.Adapter.DeleteCommand.Connection = value;
  6415. }
  6416. if ((this.Adapter.UpdateCommand != null)) {
  6417. this.Adapter.UpdateCommand.Connection = value;
  6418. }
  6419. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6420. if ((this.CommandCollection[i] != null)) {
  6421. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6422. }
  6423. }
  6424. }
  6425. }
  6426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6428. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6429. get {
  6430. return this._transaction;
  6431. }
  6432. set {
  6433. this._transaction = value;
  6434. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6435. this.CommandCollection[i].Transaction = this._transaction;
  6436. }
  6437. if (((this.Adapter != null)
  6438. && (this.Adapter.DeleteCommand != null))) {
  6439. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6440. }
  6441. if (((this.Adapter != null)
  6442. && (this.Adapter.InsertCommand != null))) {
  6443. this.Adapter.InsertCommand.Transaction = this._transaction;
  6444. }
  6445. if (((this.Adapter != null)
  6446. && (this.Adapter.UpdateCommand != null))) {
  6447. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6448. }
  6449. }
  6450. }
  6451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6453. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6454. get {
  6455. if ((this._commandCollection == null)) {
  6456. this.InitCommandCollection();
  6457. }
  6458. return this._commandCollection;
  6459. }
  6460. }
  6461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6463. public bool ClearBeforeFill {
  6464. get {
  6465. return this._clearBeforeFill;
  6466. }
  6467. set {
  6468. this._clearBeforeFill = value;
  6469. }
  6470. }
  6471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6473. private void InitAdapter() {
  6474. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6475. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6476. tableMapping.SourceTable = "Table";
  6477. tableMapping.DataSetTable = "Partner";
  6478. tableMapping.ColumnMappings.Add("idPartner", "idPartner");
  6479. tableMapping.ColumnMappings.Add("Surname", "Surname");
  6480. tableMapping.ColumnMappings.Add("Name", "Name");
  6481. tableMapping.ColumnMappings.Add("Patronymic", "Patronymic");
  6482. tableMapping.ColumnMappings.Add("Email", "Email");
  6483. tableMapping.ColumnMappings.Add("Phone", "Phone");
  6484. tableMapping.ColumnMappings.Add("idIndex", "idIndex");
  6485. tableMapping.ColumnMappings.Add("idCity", "idCity");
  6486. tableMapping.ColumnMappings.Add("idStreet", "idStreet");
  6487. tableMapping.ColumnMappings.Add("House", "House");
  6488. tableMapping.ColumnMappings.Add("INN", "INN");
  6489. tableMapping.ColumnMappings.Add("Rating", "Rating");
  6490. tableMapping.ColumnMappings.Add("idRegion", "idRegion");
  6491. tableMapping.ColumnMappings.Add("idTypePartner", "idTypePartner");
  6492. tableMapping.ColumnMappings.Add("NamePartner", "NamePartner");
  6493. this._adapter.TableMappings.Add(tableMapping);
  6494. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6495. this._adapter.DeleteCommand.Connection = this.Connection;
  6496. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Partner] WHERE (([idPartner] = @Original_idPartner) AND ((@IsNull_Surname = 1 AND [Surname] IS NULL) OR ([Surname] = @Original_Surname)) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ((@IsNull_Phone = 1 AND [Phone] IS NULL) OR ([Phone] = @Original_Phone)) AND ((@IsNull_idIndex = 1 AND [idIndex] IS NULL) OR ([idIndex] = @Original_idIndex)) AND ((@IsNull_idCity = 1 AND [idCity] IS NULL) OR ([idCity] = @Original_idCity)) AND ((@IsNull_idStreet = 1 AND [idStreet] IS NULL) OR ([idStreet] = @Original_idStreet)) AND ((@IsNull_House = 1 AND [House] IS NULL) OR ([House] = @Original_House)) AND ((@IsNull_INN = 1 AND [INN] IS NULL) OR ([INN] = @Original_INN)) AND ((@IsNull_Rating = 1 AND [Rating] IS NULL) OR ([Rating] = @Original_Rating)) AND ((@IsNull_idRegion = 1 AND [idRegion] IS NULL) OR ([idRegion] = @Original_idRegion)) AND ((@IsNull_idTypePartner = 1 AND [idTypePartner] IS NULL) OR ([idTypePartner] = @Original_idTypePartner)) AND ((@IsNull_NamePartner = 1 AND [NamePartner] IS NULL) OR ([NamePartner] = @Original_NamePartner)))";
  6497. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6498. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idPartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idPartner", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6499. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Surname", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6500. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Surname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6501. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6502. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6503. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Patronymic", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6504. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6505. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Email", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6506. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6507. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Phone", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6508. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6509. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_idIndex", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idIndex", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6510. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idIndex", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idIndex", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6511. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_idCity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idCity", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6512. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idCity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idCity", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6513. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_idStreet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idStreet", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6514. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idStreet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idStreet", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6515. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_House", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "House", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6516. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_House", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "House", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6517. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_INN", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "INN", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6518. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_INN", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "INN", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6519. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Rating", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Rating", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6520. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Rating", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Rating", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6521. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_idRegion", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idRegion", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6522. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idRegion", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idRegion", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6523. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_idTypePartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idTypePartner", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6524. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idTypePartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idTypePartner", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6525. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NamePartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NamePartner", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6526. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NamePartner", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NamePartner", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6527. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6528. this._adapter.InsertCommand.Connection = this.Connection;
  6529. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Partner] ([Surname], [Name], [Patronymic], [Email], [Phone], [idIndex], [idCity], [idStreet], [House], [INN], [Rating], [idRegion], [idTypePartner], [NamePartner]) VALUES (@Surname, @Name, @Patronymic, @Email, @Phone, @idIndex, @idCity, @idStreet, @House, @INN, @Rating, @idRegion, @idTypePartner, @NamePartner);
  6530. SELECT idPartner, Surname, Name, Patronymic, Email, Phone, idIndex, idCity, idStreet, House, INN, Rating, idRegion, idTypePartner, NamePartner FROM Partner WHERE (idPartner = SCOPE_IDENTITY())";
  6531. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6532. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Surname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6533. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6534. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6535. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6536. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6537. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idIndex", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idIndex", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6538. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idCity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idCity", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6539. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idStreet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idStreet", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6540. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@House", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "House", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6541. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@INN", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "INN", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6542. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Rating", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Rating", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6543. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idRegion", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idRegion", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6544. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idTypePartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idTypePartner", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6545. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NamePartner", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NamePartner", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6546. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6547. this._adapter.UpdateCommand.Connection = this.Connection;
  6548. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Partner] SET [Surname] = @Surname, [Name] = @Name, [Patronymic] = @" +
  6549. "Patronymic, [Email] = @Email, [Phone] = @Phone, [idIndex] = @idIndex, [idCity] =" +
  6550. " @idCity, [idStreet] = @idStreet, [House] = @House, [INN] = @INN, [Rating] = @Ra" +
  6551. "ting, [idRegion] = @idRegion, [idTypePartner] = @idTypePartner, [NamePartner] = " +
  6552. "@NamePartner WHERE (([idPartner] = @Original_idPartner) AND ((@IsNull_Surname = " +
  6553. "1 AND [Surname] IS NULL) OR ([Surname] = @Original_Surname)) AND ((@IsNull_Name " +
  6554. "= 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_Patronymic =" +
  6555. " 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) AND ((@Is" +
  6556. "Null_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ((@IsNul" +
  6557. "l_Phone = 1 AND [Phone] IS NULL) OR ([Phone] = @Original_Phone)) AND ((@IsNull_i" +
  6558. "dIndex = 1 AND [idIndex] IS NULL) OR ([idIndex] = @Original_idIndex)) AND ((@IsN" +
  6559. "ull_idCity = 1 AND [idCity] IS NULL) OR ([idCity] = @Original_idCity)) AND ((@Is" +
  6560. "Null_idStreet = 1 AND [idStreet] IS NULL) OR ([idStreet] = @Original_idStreet)) " +
  6561. "AND ((@IsNull_House = 1 AND [House] IS NULL) OR ([House] = @Original_House)) AND" +
  6562. " ((@IsNull_INN = 1 AND [INN] IS NULL) OR ([INN] = @Original_INN)) AND ((@IsNull_" +
  6563. "Rating = 1 AND [Rating] IS NULL) OR ([Rating] = @Original_Rating)) AND ((@IsNull" +
  6564. "_idRegion = 1 AND [idRegion] IS NULL) OR ([idRegion] = @Original_idRegion)) AND " +
  6565. "((@IsNull_idTypePartner = 1 AND [idTypePartner] IS NULL) OR ([idTypePartner] = @" +
  6566. "Original_idTypePartner)) AND ((@IsNull_NamePartner = 1 AND [NamePartner] IS NULL" +
  6567. ") OR ([NamePartner] = @Original_NamePartner)));\r\nSELECT idPartner, Surname, Name" +
  6568. ", Patronymic, Email, Phone, idIndex, idCity, idStreet, House, INN, Rating, idReg" +
  6569. "ion, idTypePartner, NamePartner FROM Partner WHERE (idPartner = @idPartner)";
  6570. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6571. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Surname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6572. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6573. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6574. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6575. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6576. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idIndex", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idIndex", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6577. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idCity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idCity", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6578. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idStreet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idStreet", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6579. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@House", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "House", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6580. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@INN", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "INN", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6581. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Rating", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Rating", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6582. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idRegion", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idRegion", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6583. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idTypePartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idTypePartner", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6584. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NamePartner", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NamePartner", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6585. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idPartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idPartner", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6586. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Surname", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6587. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Surname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6588. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6589. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6590. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Patronymic", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6591. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6592. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Email", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6593. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6594. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Phone", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6595. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6596. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_idIndex", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idIndex", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6597. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idIndex", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idIndex", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6598. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_idCity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idCity", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6599. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idCity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idCity", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6600. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_idStreet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idStreet", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6601. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idStreet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idStreet", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6602. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_House", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "House", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6603. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_House", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "House", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6604. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_INN", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "INN", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6605. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_INN", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "INN", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6606. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Rating", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Rating", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6607. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Rating", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Rating", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6608. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_idRegion", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idRegion", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6609. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idRegion", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idRegion", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6610. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_idTypePartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idTypePartner", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6611. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idTypePartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idTypePartner", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6612. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NamePartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NamePartner", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6613. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NamePartner", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NamePartner", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6614. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idPartner", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idPartner", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6615. }
  6616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6618. private void InitConnection() {
  6619. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6620. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.dbAlphapolAGConnectionString;
  6621. }
  6622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6624. private void InitCommandCollection() {
  6625. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6626. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6627. this._commandCollection[0].Connection = this.Connection;
  6628. this._commandCollection[0].CommandText = "SELECT idPartner, Surname, Name, Patronymic, Email, Phone, idIndex, idCity, idStr" +
  6629. "eet, House, INN, Rating, idRegion, idTypePartner, NamePartner FROM dbo.Partner";
  6630. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6631. }
  6632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6634. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6635. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6636. public virtual int Fill(dbAlphapolAGDataSet.PartnerDataTable dataTable) {
  6637. this.Adapter.SelectCommand = this.CommandCollection[0];
  6638. if ((this.ClearBeforeFill == true)) {
  6639. dataTable.Clear();
  6640. }
  6641. int returnValue = this.Adapter.Fill(dataTable);
  6642. return returnValue;
  6643. }
  6644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6646. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6647. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6648. public virtual dbAlphapolAGDataSet.PartnerDataTable GetData() {
  6649. this.Adapter.SelectCommand = this.CommandCollection[0];
  6650. dbAlphapolAGDataSet.PartnerDataTable dataTable = new dbAlphapolAGDataSet.PartnerDataTable();
  6651. this.Adapter.Fill(dataTable);
  6652. return dataTable;
  6653. }
  6654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6656. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6657. public virtual int Update(dbAlphapolAGDataSet.PartnerDataTable dataTable) {
  6658. return this.Adapter.Update(dataTable);
  6659. }
  6660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6662. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6663. public virtual int Update(dbAlphapolAGDataSet dataSet) {
  6664. return this.Adapter.Update(dataSet, "Partner");
  6665. }
  6666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6668. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6669. public virtual int Update(global::System.Data.DataRow dataRow) {
  6670. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6671. dataRow});
  6672. }
  6673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6675. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6676. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6677. return this.Adapter.Update(dataRows);
  6678. }
  6679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6681. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6682. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6683. public virtual int Delete(int Original_idPartner, string Original_Surname, string Original_Name, string Original_Patronymic, string Original_Email, string Original_Phone, global::System.Nullable<int> Original_idIndex, global::System.Nullable<int> Original_idCity, global::System.Nullable<int> Original_idStreet, global::System.Nullable<int> Original_House, string Original_INN, string Original_Rating, global::System.Nullable<int> Original_idRegion, global::System.Nullable<int> Original_idTypePartner, string Original_NamePartner) {
  6684. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idPartner));
  6685. if ((Original_Surname == null)) {
  6686. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6687. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6688. }
  6689. else {
  6690. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6691. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Surname));
  6692. }
  6693. if ((Original_Name == null)) {
  6694. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  6695. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  6696. }
  6697. else {
  6698. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  6699. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Name));
  6700. }
  6701. if ((Original_Patronymic == null)) {
  6702. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  6703. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  6704. }
  6705. else {
  6706. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  6707. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Patronymic));
  6708. }
  6709. if ((Original_Email == null)) {
  6710. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  6711. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  6712. }
  6713. else {
  6714. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  6715. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Email));
  6716. }
  6717. if ((Original_Phone == null)) {
  6718. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  6719. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  6720. }
  6721. else {
  6722. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  6723. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Phone));
  6724. }
  6725. if ((Original_idIndex.HasValue == true)) {
  6726. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  6727. this.Adapter.DeleteCommand.Parameters[12].Value = ((int)(Original_idIndex.Value));
  6728. }
  6729. else {
  6730. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  6731. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  6732. }
  6733. if ((Original_idCity.HasValue == true)) {
  6734. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
  6735. this.Adapter.DeleteCommand.Parameters[14].Value = ((int)(Original_idCity.Value));
  6736. }
  6737. else {
  6738. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
  6739. this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
  6740. }
  6741. if ((Original_idStreet.HasValue == true)) {
  6742. this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(0));
  6743. this.Adapter.DeleteCommand.Parameters[16].Value = ((int)(Original_idStreet.Value));
  6744. }
  6745. else {
  6746. this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(1));
  6747. this.Adapter.DeleteCommand.Parameters[16].Value = global::System.DBNull.Value;
  6748. }
  6749. if ((Original_House.HasValue == true)) {
  6750. this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(0));
  6751. this.Adapter.DeleteCommand.Parameters[18].Value = ((int)(Original_House.Value));
  6752. }
  6753. else {
  6754. this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(1));
  6755. this.Adapter.DeleteCommand.Parameters[18].Value = global::System.DBNull.Value;
  6756. }
  6757. if ((Original_INN == null)) {
  6758. this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(1));
  6759. this.Adapter.DeleteCommand.Parameters[20].Value = global::System.DBNull.Value;
  6760. }
  6761. else {
  6762. this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(0));
  6763. this.Adapter.DeleteCommand.Parameters[20].Value = ((string)(Original_INN));
  6764. }
  6765. if ((Original_Rating == null)) {
  6766. this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(1));
  6767. this.Adapter.DeleteCommand.Parameters[22].Value = global::System.DBNull.Value;
  6768. }
  6769. else {
  6770. this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(0));
  6771. this.Adapter.DeleteCommand.Parameters[22].Value = ((string)(Original_Rating));
  6772. }
  6773. if ((Original_idRegion.HasValue == true)) {
  6774. this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(0));
  6775. this.Adapter.DeleteCommand.Parameters[24].Value = ((int)(Original_idRegion.Value));
  6776. }
  6777. else {
  6778. this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(1));
  6779. this.Adapter.DeleteCommand.Parameters[24].Value = global::System.DBNull.Value;
  6780. }
  6781. if ((Original_idTypePartner.HasValue == true)) {
  6782. this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(0));
  6783. this.Adapter.DeleteCommand.Parameters[26].Value = ((int)(Original_idTypePartner.Value));
  6784. }
  6785. else {
  6786. this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(1));
  6787. this.Adapter.DeleteCommand.Parameters[26].Value = global::System.DBNull.Value;
  6788. }
  6789. if ((Original_NamePartner == null)) {
  6790. this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(1));
  6791. this.Adapter.DeleteCommand.Parameters[28].Value = global::System.DBNull.Value;
  6792. }
  6793. else {
  6794. this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(0));
  6795. this.Adapter.DeleteCommand.Parameters[28].Value = ((string)(Original_NamePartner));
  6796. }
  6797. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6798. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6799. != global::System.Data.ConnectionState.Open)) {
  6800. this.Adapter.DeleteCommand.Connection.Open();
  6801. }
  6802. try {
  6803. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6804. return returnValue;
  6805. }
  6806. finally {
  6807. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6808. this.Adapter.DeleteCommand.Connection.Close();
  6809. }
  6810. }
  6811. }
  6812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6814. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6815. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6816. public virtual int Insert(string Surname, string Name, string Patronymic, string Email, string Phone, global::System.Nullable<int> idIndex, global::System.Nullable<int> idCity, global::System.Nullable<int> idStreet, global::System.Nullable<int> House, string INN, string Rating, global::System.Nullable<int> idRegion, global::System.Nullable<int> idTypePartner, string NamePartner) {
  6817. if ((Surname == null)) {
  6818. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6819. }
  6820. else {
  6821. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Surname));
  6822. }
  6823. if ((Name == null)) {
  6824. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  6825. }
  6826. else {
  6827. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Name));
  6828. }
  6829. if ((Patronymic == null)) {
  6830. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6831. }
  6832. else {
  6833. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Patronymic));
  6834. }
  6835. if ((Email == null)) {
  6836. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  6837. }
  6838. else {
  6839. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Email));
  6840. }
  6841. if ((Phone == null)) {
  6842. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  6843. }
  6844. else {
  6845. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Phone));
  6846. }
  6847. if ((idIndex.HasValue == true)) {
  6848. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(idIndex.Value));
  6849. }
  6850. else {
  6851. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  6852. }
  6853. if ((idCity.HasValue == true)) {
  6854. this.Adapter.InsertCommand.Parameters[6].Value = ((int)(idCity.Value));
  6855. }
  6856. else {
  6857. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  6858. }
  6859. if ((idStreet.HasValue == true)) {
  6860. this.Adapter.InsertCommand.Parameters[7].Value = ((int)(idStreet.Value));
  6861. }
  6862. else {
  6863. this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
  6864. }
  6865. if ((House.HasValue == true)) {
  6866. this.Adapter.InsertCommand.Parameters[8].Value = ((int)(House.Value));
  6867. }
  6868. else {
  6869. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  6870. }
  6871. if ((INN == null)) {
  6872. this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value;
  6873. }
  6874. else {
  6875. this.Adapter.InsertCommand.Parameters[9].Value = ((string)(INN));
  6876. }
  6877. if ((Rating == null)) {
  6878. this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value;
  6879. }
  6880. else {
  6881. this.Adapter.InsertCommand.Parameters[10].Value = ((string)(Rating));
  6882. }
  6883. if ((idRegion.HasValue == true)) {
  6884. this.Adapter.InsertCommand.Parameters[11].Value = ((int)(idRegion.Value));
  6885. }
  6886. else {
  6887. this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value;
  6888. }
  6889. if ((idTypePartner.HasValue == true)) {
  6890. this.Adapter.InsertCommand.Parameters[12].Value = ((int)(idTypePartner.Value));
  6891. }
  6892. else {
  6893. this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value;
  6894. }
  6895. if ((NamePartner == null)) {
  6896. this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value;
  6897. }
  6898. else {
  6899. this.Adapter.InsertCommand.Parameters[13].Value = ((string)(NamePartner));
  6900. }
  6901. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6902. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6903. != global::System.Data.ConnectionState.Open)) {
  6904. this.Adapter.InsertCommand.Connection.Open();
  6905. }
  6906. try {
  6907. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6908. return returnValue;
  6909. }
  6910. finally {
  6911. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6912. this.Adapter.InsertCommand.Connection.Close();
  6913. }
  6914. }
  6915. }
  6916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6918. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6919. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6920. public virtual int Update(
  6921. string Surname,
  6922. string Name,
  6923. string Patronymic,
  6924. string Email,
  6925. string Phone,
  6926. global::System.Nullable<int> idIndex,
  6927. global::System.Nullable<int> idCity,
  6928. global::System.Nullable<int> idStreet,
  6929. global::System.Nullable<int> House,
  6930. string INN,
  6931. string Rating,
  6932. global::System.Nullable<int> idRegion,
  6933. global::System.Nullable<int> idTypePartner,
  6934. string NamePartner,
  6935. int Original_idPartner,
  6936. string Original_Surname,
  6937. string Original_Name,
  6938. string Original_Patronymic,
  6939. string Original_Email,
  6940. string Original_Phone,
  6941. global::System.Nullable<int> Original_idIndex,
  6942. global::System.Nullable<int> Original_idCity,
  6943. global::System.Nullable<int> Original_idStreet,
  6944. global::System.Nullable<int> Original_House,
  6945. string Original_INN,
  6946. string Original_Rating,
  6947. global::System.Nullable<int> Original_idRegion,
  6948. global::System.Nullable<int> Original_idTypePartner,
  6949. string Original_NamePartner,
  6950. int idPartner) {
  6951. if ((Surname == null)) {
  6952. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6953. }
  6954. else {
  6955. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Surname));
  6956. }
  6957. if ((Name == null)) {
  6958. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  6959. }
  6960. else {
  6961. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Name));
  6962. }
  6963. if ((Patronymic == null)) {
  6964. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  6965. }
  6966. else {
  6967. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Patronymic));
  6968. }
  6969. if ((Email == null)) {
  6970. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6971. }
  6972. else {
  6973. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Email));
  6974. }
  6975. if ((Phone == null)) {
  6976. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  6977. }
  6978. else {
  6979. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Phone));
  6980. }
  6981. if ((idIndex.HasValue == true)) {
  6982. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(idIndex.Value));
  6983. }
  6984. else {
  6985. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  6986. }
  6987. if ((idCity.HasValue == true)) {
  6988. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(idCity.Value));
  6989. }
  6990. else {
  6991. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  6992. }
  6993. if ((idStreet.HasValue == true)) {
  6994. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(idStreet.Value));
  6995. }
  6996. else {
  6997. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  6998. }
  6999. if ((House.HasValue == true)) {
  7000. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(House.Value));
  7001. }
  7002. else {
  7003. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  7004. }
  7005. if ((INN == null)) {
  7006. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  7007. }
  7008. else {
  7009. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(INN));
  7010. }
  7011. if ((Rating == null)) {
  7012. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  7013. }
  7014. else {
  7015. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Rating));
  7016. }
  7017. if ((idRegion.HasValue == true)) {
  7018. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(idRegion.Value));
  7019. }
  7020. else {
  7021. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  7022. }
  7023. if ((idTypePartner.HasValue == true)) {
  7024. this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(idTypePartner.Value));
  7025. }
  7026. else {
  7027. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  7028. }
  7029. if ((NamePartner == null)) {
  7030. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  7031. }
  7032. else {
  7033. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(NamePartner));
  7034. }
  7035. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(Original_idPartner));
  7036. if ((Original_Surname == null)) {
  7037. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  7038. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  7039. }
  7040. else {
  7041. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  7042. this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_Surname));
  7043. }
  7044. if ((Original_Name == null)) {
  7045. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
  7046. this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
  7047. }
  7048. else {
  7049. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
  7050. this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_Name));
  7051. }
  7052. if ((Original_Patronymic == null)) {
  7053. this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(1));
  7054. this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value;
  7055. }
  7056. else {
  7057. this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(0));
  7058. this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(Original_Patronymic));
  7059. }
  7060. if ((Original_Email == null)) {
  7061. this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(1));
  7062. this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value;
  7063. }
  7064. else {
  7065. this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(0));
  7066. this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(Original_Email));
  7067. }
  7068. if ((Original_Phone == null)) {
  7069. this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(1));
  7070. this.Adapter.UpdateCommand.Parameters[24].Value = global::System.DBNull.Value;
  7071. }
  7072. else {
  7073. this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(0));
  7074. this.Adapter.UpdateCommand.Parameters[24].Value = ((string)(Original_Phone));
  7075. }
  7076. if ((Original_idIndex.HasValue == true)) {
  7077. this.Adapter.UpdateCommand.Parameters[25].Value = ((object)(0));
  7078. this.Adapter.UpdateCommand.Parameters[26].Value = ((int)(Original_idIndex.Value));
  7079. }
  7080. else {
  7081. this.Adapter.UpdateCommand.Parameters[25].Value = ((object)(1));
  7082. this.Adapter.UpdateCommand.Parameters[26].Value = global::System.DBNull.Value;
  7083. }
  7084. if ((Original_idCity.HasValue == true)) {
  7085. this.Adapter.UpdateCommand.Parameters[27].Value = ((object)(0));
  7086. this.Adapter.UpdateCommand.Parameters[28].Value = ((int)(Original_idCity.Value));
  7087. }
  7088. else {
  7089. this.Adapter.UpdateCommand.Parameters[27].Value = ((object)(1));
  7090. this.Adapter.UpdateCommand.Parameters[28].Value = global::System.DBNull.Value;
  7091. }
  7092. if ((Original_idStreet.HasValue == true)) {
  7093. this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(0));
  7094. this.Adapter.UpdateCommand.Parameters[30].Value = ((int)(Original_idStreet.Value));
  7095. }
  7096. else {
  7097. this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(1));
  7098. this.Adapter.UpdateCommand.Parameters[30].Value = global::System.DBNull.Value;
  7099. }
  7100. if ((Original_House.HasValue == true)) {
  7101. this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(0));
  7102. this.Adapter.UpdateCommand.Parameters[32].Value = ((int)(Original_House.Value));
  7103. }
  7104. else {
  7105. this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(1));
  7106. this.Adapter.UpdateCommand.Parameters[32].Value = global::System.DBNull.Value;
  7107. }
  7108. if ((Original_INN == null)) {
  7109. this.Adapter.UpdateCommand.Parameters[33].Value = ((object)(1));
  7110. this.Adapter.UpdateCommand.Parameters[34].Value = global::System.DBNull.Value;
  7111. }
  7112. else {
  7113. this.Adapter.UpdateCommand.Parameters[33].Value = ((object)(0));
  7114. this.Adapter.UpdateCommand.Parameters[34].Value = ((string)(Original_INN));
  7115. }
  7116. if ((Original_Rating == null)) {
  7117. this.Adapter.UpdateCommand.Parameters[35].Value = ((object)(1));
  7118. this.Adapter.UpdateCommand.Parameters[36].Value = global::System.DBNull.Value;
  7119. }
  7120. else {
  7121. this.Adapter.UpdateCommand.Parameters[35].Value = ((object)(0));
  7122. this.Adapter.UpdateCommand.Parameters[36].Value = ((string)(Original_Rating));
  7123. }
  7124. if ((Original_idRegion.HasValue == true)) {
  7125. this.Adapter.UpdateCommand.Parameters[37].Value = ((object)(0));
  7126. this.Adapter.UpdateCommand.Parameters[38].Value = ((int)(Original_idRegion.Value));
  7127. }
  7128. else {
  7129. this.Adapter.UpdateCommand.Parameters[37].Value = ((object)(1));
  7130. this.Adapter.UpdateCommand.Parameters[38].Value = global::System.DBNull.Value;
  7131. }
  7132. if ((Original_idTypePartner.HasValue == true)) {
  7133. this.Adapter.UpdateCommand.Parameters[39].Value = ((object)(0));
  7134. this.Adapter.UpdateCommand.Parameters[40].Value = ((int)(Original_idTypePartner.Value));
  7135. }
  7136. else {
  7137. this.Adapter.UpdateCommand.Parameters[39].Value = ((object)(1));
  7138. this.Adapter.UpdateCommand.Parameters[40].Value = global::System.DBNull.Value;
  7139. }
  7140. if ((Original_NamePartner == null)) {
  7141. this.Adapter.UpdateCommand.Parameters[41].Value = ((object)(1));
  7142. this.Adapter.UpdateCommand.Parameters[42].Value = global::System.DBNull.Value;
  7143. }
  7144. else {
  7145. this.Adapter.UpdateCommand.Parameters[41].Value = ((object)(0));
  7146. this.Adapter.UpdateCommand.Parameters[42].Value = ((string)(Original_NamePartner));
  7147. }
  7148. this.Adapter.UpdateCommand.Parameters[43].Value = ((int)(idPartner));
  7149. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7150. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7151. != global::System.Data.ConnectionState.Open)) {
  7152. this.Adapter.UpdateCommand.Connection.Open();
  7153. }
  7154. try {
  7155. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7156. return returnValue;
  7157. }
  7158. finally {
  7159. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7160. this.Adapter.UpdateCommand.Connection.Close();
  7161. }
  7162. }
  7163. }
  7164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7166. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7167. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7168. public virtual int Update(
  7169. string Surname,
  7170. string Name,
  7171. string Patronymic,
  7172. string Email,
  7173. string Phone,
  7174. global::System.Nullable<int> idIndex,
  7175. global::System.Nullable<int> idCity,
  7176. global::System.Nullable<int> idStreet,
  7177. global::System.Nullable<int> House,
  7178. string INN,
  7179. string Rating,
  7180. global::System.Nullable<int> idRegion,
  7181. global::System.Nullable<int> idTypePartner,
  7182. string NamePartner,
  7183. int Original_idPartner,
  7184. string Original_Surname,
  7185. string Original_Name,
  7186. string Original_Patronymic,
  7187. string Original_Email,
  7188. string Original_Phone,
  7189. global::System.Nullable<int> Original_idIndex,
  7190. global::System.Nullable<int> Original_idCity,
  7191. global::System.Nullable<int> Original_idStreet,
  7192. global::System.Nullable<int> Original_House,
  7193. string Original_INN,
  7194. string Original_Rating,
  7195. global::System.Nullable<int> Original_idRegion,
  7196. global::System.Nullable<int> Original_idTypePartner,
  7197. string Original_NamePartner) {
  7198. return this.Update(Surname, Name, Patronymic, Email, Phone, idIndex, idCity, idStreet, House, INN, Rating, idRegion, idTypePartner, NamePartner, Original_idPartner, Original_Surname, Original_Name, Original_Patronymic, Original_Email, Original_Phone, Original_idIndex, Original_idCity, Original_idStreet, Original_House, Original_INN, Original_Rating, Original_idRegion, Original_idTypePartner, Original_NamePartner, Original_idPartner);
  7199. }
  7200. }
  7201. /// <summary>
  7202. ///Represents the connection and commands used to retrieve and save data.
  7203. ///</summary>
  7204. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7205. [global::System.ComponentModel.ToolboxItem(true)]
  7206. [global::System.ComponentModel.DataObjectAttribute(true)]
  7207. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7208. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7209. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7210. public partial class ProductPartnerTableAdapter : global::System.ComponentModel.Component {
  7211. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7212. private global::System.Data.SqlClient.SqlConnection _connection;
  7213. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7214. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7215. private bool _clearBeforeFill;
  7216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7218. public ProductPartnerTableAdapter() {
  7219. this.ClearBeforeFill = true;
  7220. }
  7221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7223. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7224. get {
  7225. if ((this._adapter == null)) {
  7226. this.InitAdapter();
  7227. }
  7228. return this._adapter;
  7229. }
  7230. }
  7231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7233. internal global::System.Data.SqlClient.SqlConnection Connection {
  7234. get {
  7235. if ((this._connection == null)) {
  7236. this.InitConnection();
  7237. }
  7238. return this._connection;
  7239. }
  7240. set {
  7241. this._connection = value;
  7242. if ((this.Adapter.InsertCommand != null)) {
  7243. this.Adapter.InsertCommand.Connection = value;
  7244. }
  7245. if ((this.Adapter.DeleteCommand != null)) {
  7246. this.Adapter.DeleteCommand.Connection = value;
  7247. }
  7248. if ((this.Adapter.UpdateCommand != null)) {
  7249. this.Adapter.UpdateCommand.Connection = value;
  7250. }
  7251. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7252. if ((this.CommandCollection[i] != null)) {
  7253. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7254. }
  7255. }
  7256. }
  7257. }
  7258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7260. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7261. get {
  7262. return this._transaction;
  7263. }
  7264. set {
  7265. this._transaction = value;
  7266. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7267. this.CommandCollection[i].Transaction = this._transaction;
  7268. }
  7269. if (((this.Adapter != null)
  7270. && (this.Adapter.DeleteCommand != null))) {
  7271. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7272. }
  7273. if (((this.Adapter != null)
  7274. && (this.Adapter.InsertCommand != null))) {
  7275. this.Adapter.InsertCommand.Transaction = this._transaction;
  7276. }
  7277. if (((this.Adapter != null)
  7278. && (this.Adapter.UpdateCommand != null))) {
  7279. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7280. }
  7281. }
  7282. }
  7283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7285. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7286. get {
  7287. if ((this._commandCollection == null)) {
  7288. this.InitCommandCollection();
  7289. }
  7290. return this._commandCollection;
  7291. }
  7292. }
  7293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7295. public bool ClearBeforeFill {
  7296. get {
  7297. return this._clearBeforeFill;
  7298. }
  7299. set {
  7300. this._clearBeforeFill = value;
  7301. }
  7302. }
  7303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7304. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7305. private void InitAdapter() {
  7306. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7307. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7308. tableMapping.SourceTable = "Table";
  7309. tableMapping.DataSetTable = "ProductPartner";
  7310. tableMapping.ColumnMappings.Add("idPartnerProduct", "idPartnerProduct");
  7311. tableMapping.ColumnMappings.Add("idProduct", "idProduct");
  7312. tableMapping.ColumnMappings.Add("idPartner", "idPartner");
  7313. tableMapping.ColumnMappings.Add("CountProduct", "CountProduct");
  7314. tableMapping.ColumnMappings.Add("DateSale", "DateSale");
  7315. this._adapter.TableMappings.Add(tableMapping);
  7316. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7317. this._adapter.DeleteCommand.Connection = this.Connection;
  7318. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[ProductPartner] WHERE (([idPartnerProduct] = @Original_idPartnerProduct) AND ((@IsNull_idProduct = 1 AND [idProduct] IS NULL) OR ([idProduct] = @Original_idProduct)) AND ((@IsNull_idPartner = 1 AND [idPartner] IS NULL) OR ([idPartner] = @Original_idPartner)) AND ((@IsNull_CountProduct = 1 AND [CountProduct] IS NULL) OR ([CountProduct] = @Original_CountProduct)) AND ((@IsNull_DateSale = 1 AND [DateSale] IS NULL) OR ([DateSale] = @Original_DateSale)))";
  7319. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7320. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idPartnerProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idPartnerProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7321. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_idProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idProduct", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7322. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7323. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_idPartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idPartner", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7324. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idPartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idPartner", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7325. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CountProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountProduct", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7326. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CountProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7327. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DateSale", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DateSale", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7328. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DateSale", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DateSale", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7329. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7330. this._adapter.InsertCommand.Connection = this.Connection;
  7331. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[ProductPartner] ([idProduct], [idPartner], [CountProduct], [DateSale]) VALUES (@idProduct, @idPartner, @CountProduct, @DateSale);
  7332. SELECT idPartnerProduct, idProduct, idPartner, CountProduct, DateSale FROM ProductPartner WHERE (idPartnerProduct = SCOPE_IDENTITY())";
  7333. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7334. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7335. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idPartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idPartner", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7336. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CountProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7337. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DateSale", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DateSale", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7338. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7339. this._adapter.UpdateCommand.Connection = this.Connection;
  7340. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ProductPartner] SET [idProduct] = @idProduct, [idPartner] = @idPartner, [CountProduct] = @CountProduct, [DateSale] = @DateSale WHERE (([idPartnerProduct] = @Original_idPartnerProduct) AND ((@IsNull_idProduct = 1 AND [idProduct] IS NULL) OR ([idProduct] = @Original_idProduct)) AND ((@IsNull_idPartner = 1 AND [idPartner] IS NULL) OR ([idPartner] = @Original_idPartner)) AND ((@IsNull_CountProduct = 1 AND [CountProduct] IS NULL) OR ([CountProduct] = @Original_CountProduct)) AND ((@IsNull_DateSale = 1 AND [DateSale] IS NULL) OR ([DateSale] = @Original_DateSale)));
  7341. SELECT idPartnerProduct, idProduct, idPartner, CountProduct, DateSale FROM ProductPartner WHERE (idPartnerProduct = @idPartnerProduct)";
  7342. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7343. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7344. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idPartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idPartner", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7345. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CountProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7346. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DateSale", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DateSale", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7347. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idPartnerProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idPartnerProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7348. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_idProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idProduct", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7349. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7350. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_idPartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idPartner", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7351. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idPartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idPartner", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7352. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CountProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountProduct", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7353. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CountProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7354. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DateSale", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DateSale", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7355. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DateSale", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DateSale", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7356. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idPartnerProduct", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idPartnerProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7357. }
  7358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7359. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7360. private void InitConnection() {
  7361. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7362. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.dbAlphapolAGConnectionString;
  7363. }
  7364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7366. private void InitCommandCollection() {
  7367. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7368. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7369. this._commandCollection[0].Connection = this.Connection;
  7370. this._commandCollection[0].CommandText = "SELECT idPartnerProduct, idProduct, idPartner, CountProduct, DateSale FROM dbo.Pr" +
  7371. "oductPartner";
  7372. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7373. }
  7374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7376. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7377. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7378. public virtual int Fill(dbAlphapolAGDataSet.ProductPartnerDataTable dataTable) {
  7379. this.Adapter.SelectCommand = this.CommandCollection[0];
  7380. if ((this.ClearBeforeFill == true)) {
  7381. dataTable.Clear();
  7382. }
  7383. int returnValue = this.Adapter.Fill(dataTable);
  7384. return returnValue;
  7385. }
  7386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7388. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7389. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7390. public virtual dbAlphapolAGDataSet.ProductPartnerDataTable GetData() {
  7391. this.Adapter.SelectCommand = this.CommandCollection[0];
  7392. dbAlphapolAGDataSet.ProductPartnerDataTable dataTable = new dbAlphapolAGDataSet.ProductPartnerDataTable();
  7393. this.Adapter.Fill(dataTable);
  7394. return dataTable;
  7395. }
  7396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7398. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7399. public virtual int Update(dbAlphapolAGDataSet.ProductPartnerDataTable dataTable) {
  7400. return this.Adapter.Update(dataTable);
  7401. }
  7402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7403. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7404. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7405. public virtual int Update(dbAlphapolAGDataSet dataSet) {
  7406. return this.Adapter.Update(dataSet, "ProductPartner");
  7407. }
  7408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7410. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7411. public virtual int Update(global::System.Data.DataRow dataRow) {
  7412. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7413. dataRow});
  7414. }
  7415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7416. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7417. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7418. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7419. return this.Adapter.Update(dataRows);
  7420. }
  7421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7423. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7424. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7425. public virtual int Delete(int Original_idPartnerProduct, global::System.Nullable<int> Original_idProduct, global::System.Nullable<int> Original_idPartner, global::System.Nullable<int> Original_CountProduct, global::System.Nullable<global::System.DateTime> Original_DateSale) {
  7426. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idPartnerProduct));
  7427. if ((Original_idProduct.HasValue == true)) {
  7428. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7429. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_idProduct.Value));
  7430. }
  7431. else {
  7432. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7433. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7434. }
  7435. if ((Original_idPartner.HasValue == true)) {
  7436. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  7437. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_idPartner.Value));
  7438. }
  7439. else {
  7440. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  7441. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  7442. }
  7443. if ((Original_CountProduct.HasValue == true)) {
  7444. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  7445. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_CountProduct.Value));
  7446. }
  7447. else {
  7448. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  7449. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  7450. }
  7451. if ((Original_DateSale.HasValue == true)) {
  7452. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  7453. this.Adapter.DeleteCommand.Parameters[8].Value = ((System.DateTime)(Original_DateSale.Value));
  7454. }
  7455. else {
  7456. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  7457. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  7458. }
  7459. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7460. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7461. != global::System.Data.ConnectionState.Open)) {
  7462. this.Adapter.DeleteCommand.Connection.Open();
  7463. }
  7464. try {
  7465. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7466. return returnValue;
  7467. }
  7468. finally {
  7469. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7470. this.Adapter.DeleteCommand.Connection.Close();
  7471. }
  7472. }
  7473. }
  7474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7476. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7477. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7478. public virtual int Insert(global::System.Nullable<int> idProduct, global::System.Nullable<int> idPartner, global::System.Nullable<int> CountProduct, global::System.Nullable<global::System.DateTime> DateSale) {
  7479. if ((idProduct.HasValue == true)) {
  7480. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(idProduct.Value));
  7481. }
  7482. else {
  7483. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  7484. }
  7485. if ((idPartner.HasValue == true)) {
  7486. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(idPartner.Value));
  7487. }
  7488. else {
  7489. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7490. }
  7491. if ((CountProduct.HasValue == true)) {
  7492. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(CountProduct.Value));
  7493. }
  7494. else {
  7495. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  7496. }
  7497. if ((DateSale.HasValue == true)) {
  7498. this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(DateSale.Value));
  7499. }
  7500. else {
  7501. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  7502. }
  7503. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7504. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7505. != global::System.Data.ConnectionState.Open)) {
  7506. this.Adapter.InsertCommand.Connection.Open();
  7507. }
  7508. try {
  7509. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7510. return returnValue;
  7511. }
  7512. finally {
  7513. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7514. this.Adapter.InsertCommand.Connection.Close();
  7515. }
  7516. }
  7517. }
  7518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7520. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7521. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7522. public virtual int Update(global::System.Nullable<int> idProduct, global::System.Nullable<int> idPartner, global::System.Nullable<int> CountProduct, global::System.Nullable<global::System.DateTime> DateSale, int Original_idPartnerProduct, global::System.Nullable<int> Original_idProduct, global::System.Nullable<int> Original_idPartner, global::System.Nullable<int> Original_CountProduct, global::System.Nullable<global::System.DateTime> Original_DateSale, int idPartnerProduct) {
  7523. if ((idProduct.HasValue == true)) {
  7524. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(idProduct.Value));
  7525. }
  7526. else {
  7527. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  7528. }
  7529. if ((idPartner.HasValue == true)) {
  7530. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(idPartner.Value));
  7531. }
  7532. else {
  7533. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7534. }
  7535. if ((CountProduct.HasValue == true)) {
  7536. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(CountProduct.Value));
  7537. }
  7538. else {
  7539. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  7540. }
  7541. if ((DateSale.HasValue == true)) {
  7542. this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(DateSale.Value));
  7543. }
  7544. else {
  7545. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  7546. }
  7547. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_idPartnerProduct));
  7548. if ((Original_idProduct.HasValue == true)) {
  7549. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  7550. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_idProduct.Value));
  7551. }
  7552. else {
  7553. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  7554. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  7555. }
  7556. if ((Original_idPartner.HasValue == true)) {
  7557. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  7558. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_idPartner.Value));
  7559. }
  7560. else {
  7561. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  7562. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  7563. }
  7564. if ((Original_CountProduct.HasValue == true)) {
  7565. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  7566. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_CountProduct.Value));
  7567. }
  7568. else {
  7569. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  7570. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  7571. }
  7572. if ((Original_DateSale.HasValue == true)) {
  7573. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  7574. this.Adapter.UpdateCommand.Parameters[12].Value = ((System.DateTime)(Original_DateSale.Value));
  7575. }
  7576. else {
  7577. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  7578. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  7579. }
  7580. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(idPartnerProduct));
  7581. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7582. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7583. != global::System.Data.ConnectionState.Open)) {
  7584. this.Adapter.UpdateCommand.Connection.Open();
  7585. }
  7586. try {
  7587. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7588. return returnValue;
  7589. }
  7590. finally {
  7591. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7592. this.Adapter.UpdateCommand.Connection.Close();
  7593. }
  7594. }
  7595. }
  7596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7598. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7599. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7600. public virtual int Update(global::System.Nullable<int> idProduct, global::System.Nullable<int> idPartner, global::System.Nullable<int> CountProduct, global::System.Nullable<global::System.DateTime> DateSale, int Original_idPartnerProduct, global::System.Nullable<int> Original_idProduct, global::System.Nullable<int> Original_idPartner, global::System.Nullable<int> Original_CountProduct, global::System.Nullable<global::System.DateTime> Original_DateSale) {
  7601. return this.Update(idProduct, idPartner, CountProduct, DateSale, Original_idPartnerProduct, Original_idProduct, Original_idPartner, Original_CountProduct, Original_DateSale, Original_idPartnerProduct);
  7602. }
  7603. }
  7604. /// <summary>
  7605. ///Represents the connection and commands used to retrieve and save data.
  7606. ///</summary>
  7607. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7608. [global::System.ComponentModel.ToolboxItem(true)]
  7609. [global::System.ComponentModel.DataObjectAttribute(true)]
  7610. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7611. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7612. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7613. public partial class ProductsTableAdapter : global::System.ComponentModel.Component {
  7614. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7615. private global::System.Data.SqlClient.SqlConnection _connection;
  7616. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7617. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7618. private bool _clearBeforeFill;
  7619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7621. public ProductsTableAdapter() {
  7622. this.ClearBeforeFill = true;
  7623. }
  7624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7626. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7627. get {
  7628. if ((this._adapter == null)) {
  7629. this.InitAdapter();
  7630. }
  7631. return this._adapter;
  7632. }
  7633. }
  7634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7636. internal global::System.Data.SqlClient.SqlConnection Connection {
  7637. get {
  7638. if ((this._connection == null)) {
  7639. this.InitConnection();
  7640. }
  7641. return this._connection;
  7642. }
  7643. set {
  7644. this._connection = value;
  7645. if ((this.Adapter.InsertCommand != null)) {
  7646. this.Adapter.InsertCommand.Connection = value;
  7647. }
  7648. if ((this.Adapter.DeleteCommand != null)) {
  7649. this.Adapter.DeleteCommand.Connection = value;
  7650. }
  7651. if ((this.Adapter.UpdateCommand != null)) {
  7652. this.Adapter.UpdateCommand.Connection = value;
  7653. }
  7654. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7655. if ((this.CommandCollection[i] != null)) {
  7656. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7657. }
  7658. }
  7659. }
  7660. }
  7661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7663. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7664. get {
  7665. return this._transaction;
  7666. }
  7667. set {
  7668. this._transaction = value;
  7669. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7670. this.CommandCollection[i].Transaction = this._transaction;
  7671. }
  7672. if (((this.Adapter != null)
  7673. && (this.Adapter.DeleteCommand != null))) {
  7674. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7675. }
  7676. if (((this.Adapter != null)
  7677. && (this.Adapter.InsertCommand != null))) {
  7678. this.Adapter.InsertCommand.Transaction = this._transaction;
  7679. }
  7680. if (((this.Adapter != null)
  7681. && (this.Adapter.UpdateCommand != null))) {
  7682. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7683. }
  7684. }
  7685. }
  7686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7688. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7689. get {
  7690. if ((this._commandCollection == null)) {
  7691. this.InitCommandCollection();
  7692. }
  7693. return this._commandCollection;
  7694. }
  7695. }
  7696. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7698. public bool ClearBeforeFill {
  7699. get {
  7700. return this._clearBeforeFill;
  7701. }
  7702. set {
  7703. this._clearBeforeFill = value;
  7704. }
  7705. }
  7706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7708. private void InitAdapter() {
  7709. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7710. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7711. tableMapping.SourceTable = "Table";
  7712. tableMapping.DataSetTable = "Products";
  7713. tableMapping.ColumnMappings.Add("idProduct", "idProduct");
  7714. tableMapping.ColumnMappings.Add("idTypeProduct", "idTypeProduct");
  7715. tableMapping.ColumnMappings.Add("NameProduct", "NameProduct");
  7716. tableMapping.ColumnMappings.Add("Article", "Article");
  7717. tableMapping.ColumnMappings.Add("MinCost", "MinCost");
  7718. this._adapter.TableMappings.Add(tableMapping);
  7719. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7720. this._adapter.DeleteCommand.Connection = this.Connection;
  7721. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Products] WHERE (([idProduct] = @Original_idProduct) AND ((@IsNull_idTypeProduct = 1 AND [idTypeProduct] IS NULL) OR ([idTypeProduct] = @Original_idTypeProduct)) AND ((@IsNull_Article = 1 AND [Article] IS NULL) OR ([Article] = @Original_Article)) AND ((@IsNull_MinCost = 1 AND [MinCost] IS NULL) OR ([MinCost] = @Original_MinCost)))";
  7722. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7723. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7724. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_idTypeProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idTypeProduct", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7725. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idTypeProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idTypeProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7726. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Article", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Article", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7727. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Article", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Article", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7728. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MinCost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MinCost", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7729. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MinCost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MinCost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7730. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7731. this._adapter.InsertCommand.Connection = this.Connection;
  7732. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Products] ([idTypeProduct], [NameProduct], [Article], [MinCost]) VALUES (@idTypeProduct, @NameProduct, @Article, @MinCost);
  7733. SELECT idProduct, idTypeProduct, NameProduct, Article, MinCost FROM Products WHERE (idProduct = SCOPE_IDENTITY())";
  7734. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7735. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idTypeProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idTypeProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7736. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NameProduct", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NameProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7737. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Article", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Article", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7738. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MinCost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MinCost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7739. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7740. this._adapter.UpdateCommand.Connection = this.Connection;
  7741. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Products] SET [idTypeProduct] = @idTypeProduct, [NameProduct] = @NameProduct, [Article] = @Article, [MinCost] = @MinCost WHERE (([idProduct] = @Original_idProduct) AND ((@IsNull_idTypeProduct = 1 AND [idTypeProduct] IS NULL) OR ([idTypeProduct] = @Original_idTypeProduct)) AND ((@IsNull_Article = 1 AND [Article] IS NULL) OR ([Article] = @Original_Article)) AND ((@IsNull_MinCost = 1 AND [MinCost] IS NULL) OR ([MinCost] = @Original_MinCost)));
  7742. SELECT idProduct, idTypeProduct, NameProduct, Article, MinCost FROM Products WHERE (idProduct = @idProduct)";
  7743. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7744. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idTypeProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idTypeProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7745. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NameProduct", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NameProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7746. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Article", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Article", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7747. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MinCost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MinCost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7748. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7749. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_idTypeProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idTypeProduct", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7750. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idTypeProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idTypeProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7751. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Article", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Article", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7752. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Article", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Article", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7753. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MinCost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MinCost", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7754. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MinCost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MinCost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7755. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idProduct", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7756. }
  7757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7759. private void InitConnection() {
  7760. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7761. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.dbAlphapolAGConnectionString;
  7762. }
  7763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7765. private void InitCommandCollection() {
  7766. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7767. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7768. this._commandCollection[0].Connection = this.Connection;
  7769. this._commandCollection[0].CommandText = "SELECT idProduct, idTypeProduct, NameProduct, Article, MinCost FROM dbo.Products";
  7770. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7771. }
  7772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7774. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7775. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7776. public virtual int Fill(dbAlphapolAGDataSet.ProductsDataTable dataTable) {
  7777. this.Adapter.SelectCommand = this.CommandCollection[0];
  7778. if ((this.ClearBeforeFill == true)) {
  7779. dataTable.Clear();
  7780. }
  7781. int returnValue = this.Adapter.Fill(dataTable);
  7782. return returnValue;
  7783. }
  7784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7786. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7787. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7788. public virtual dbAlphapolAGDataSet.ProductsDataTable GetData() {
  7789. this.Adapter.SelectCommand = this.CommandCollection[0];
  7790. dbAlphapolAGDataSet.ProductsDataTable dataTable = new dbAlphapolAGDataSet.ProductsDataTable();
  7791. this.Adapter.Fill(dataTable);
  7792. return dataTable;
  7793. }
  7794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7796. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7797. public virtual int Update(dbAlphapolAGDataSet.ProductsDataTable dataTable) {
  7798. return this.Adapter.Update(dataTable);
  7799. }
  7800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7802. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7803. public virtual int Update(dbAlphapolAGDataSet dataSet) {
  7804. return this.Adapter.Update(dataSet, "Products");
  7805. }
  7806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7808. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7809. public virtual int Update(global::System.Data.DataRow dataRow) {
  7810. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7811. dataRow});
  7812. }
  7813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7814. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7815. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7816. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7817. return this.Adapter.Update(dataRows);
  7818. }
  7819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7821. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7822. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7823. public virtual int Delete(int Original_idProduct, global::System.Nullable<int> Original_idTypeProduct, global::System.Nullable<int> Original_Article, global::System.Nullable<decimal> Original_MinCost) {
  7824. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idProduct));
  7825. if ((Original_idTypeProduct.HasValue == true)) {
  7826. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7827. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_idTypeProduct.Value));
  7828. }
  7829. else {
  7830. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7831. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7832. }
  7833. if ((Original_Article.HasValue == true)) {
  7834. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  7835. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_Article.Value));
  7836. }
  7837. else {
  7838. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  7839. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  7840. }
  7841. if ((Original_MinCost.HasValue == true)) {
  7842. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  7843. this.Adapter.DeleteCommand.Parameters[6].Value = ((decimal)(Original_MinCost.Value));
  7844. }
  7845. else {
  7846. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  7847. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  7848. }
  7849. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7850. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7851. != global::System.Data.ConnectionState.Open)) {
  7852. this.Adapter.DeleteCommand.Connection.Open();
  7853. }
  7854. try {
  7855. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7856. return returnValue;
  7857. }
  7858. finally {
  7859. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7860. this.Adapter.DeleteCommand.Connection.Close();
  7861. }
  7862. }
  7863. }
  7864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7866. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7867. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7868. public virtual int Insert(global::System.Nullable<int> idTypeProduct, string NameProduct, global::System.Nullable<int> Article, global::System.Nullable<decimal> MinCost) {
  7869. if ((idTypeProduct.HasValue == true)) {
  7870. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(idTypeProduct.Value));
  7871. }
  7872. else {
  7873. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  7874. }
  7875. if ((NameProduct == null)) {
  7876. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7877. }
  7878. else {
  7879. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(NameProduct));
  7880. }
  7881. if ((Article.HasValue == true)) {
  7882. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Article.Value));
  7883. }
  7884. else {
  7885. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  7886. }
  7887. if ((MinCost.HasValue == true)) {
  7888. this.Adapter.InsertCommand.Parameters[3].Value = ((decimal)(MinCost.Value));
  7889. }
  7890. else {
  7891. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  7892. }
  7893. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7894. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7895. != global::System.Data.ConnectionState.Open)) {
  7896. this.Adapter.InsertCommand.Connection.Open();
  7897. }
  7898. try {
  7899. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7900. return returnValue;
  7901. }
  7902. finally {
  7903. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7904. this.Adapter.InsertCommand.Connection.Close();
  7905. }
  7906. }
  7907. }
  7908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7910. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7911. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7912. public virtual int Update(global::System.Nullable<int> idTypeProduct, string NameProduct, global::System.Nullable<int> Article, global::System.Nullable<decimal> MinCost, int Original_idProduct, global::System.Nullable<int> Original_idTypeProduct, global::System.Nullable<int> Original_Article, global::System.Nullable<decimal> Original_MinCost, int idProduct) {
  7913. if ((idTypeProduct.HasValue == true)) {
  7914. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(idTypeProduct.Value));
  7915. }
  7916. else {
  7917. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  7918. }
  7919. if ((NameProduct == null)) {
  7920. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7921. }
  7922. else {
  7923. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(NameProduct));
  7924. }
  7925. if ((Article.HasValue == true)) {
  7926. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Article.Value));
  7927. }
  7928. else {
  7929. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  7930. }
  7931. if ((MinCost.HasValue == true)) {
  7932. this.Adapter.UpdateCommand.Parameters[3].Value = ((decimal)(MinCost.Value));
  7933. }
  7934. else {
  7935. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  7936. }
  7937. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_idProduct));
  7938. if ((Original_idTypeProduct.HasValue == true)) {
  7939. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  7940. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_idTypeProduct.Value));
  7941. }
  7942. else {
  7943. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  7944. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  7945. }
  7946. if ((Original_Article.HasValue == true)) {
  7947. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  7948. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_Article.Value));
  7949. }
  7950. else {
  7951. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  7952. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  7953. }
  7954. if ((Original_MinCost.HasValue == true)) {
  7955. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  7956. this.Adapter.UpdateCommand.Parameters[10].Value = ((decimal)(Original_MinCost.Value));
  7957. }
  7958. else {
  7959. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  7960. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  7961. }
  7962. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(idProduct));
  7963. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7964. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7965. != global::System.Data.ConnectionState.Open)) {
  7966. this.Adapter.UpdateCommand.Connection.Open();
  7967. }
  7968. try {
  7969. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7970. return returnValue;
  7971. }
  7972. finally {
  7973. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7974. this.Adapter.UpdateCommand.Connection.Close();
  7975. }
  7976. }
  7977. }
  7978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7980. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7981. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7982. public virtual int Update(global::System.Nullable<int> idTypeProduct, string NameProduct, global::System.Nullable<int> Article, global::System.Nullable<decimal> MinCost, int Original_idProduct, global::System.Nullable<int> Original_idTypeProduct, global::System.Nullable<int> Original_Article, global::System.Nullable<decimal> Original_MinCost) {
  7983. return this.Update(idTypeProduct, NameProduct, Article, MinCost, Original_idProduct, Original_idTypeProduct, Original_Article, Original_MinCost, Original_idProduct);
  7984. }
  7985. }
  7986. /// <summary>
  7987. ///Represents the connection and commands used to retrieve and save data.
  7988. ///</summary>
  7989. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7990. [global::System.ComponentModel.ToolboxItem(true)]
  7991. [global::System.ComponentModel.DataObjectAttribute(true)]
  7992. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7993. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7994. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7995. public partial class RegionTableAdapter : global::System.ComponentModel.Component {
  7996. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7997. private global::System.Data.SqlClient.SqlConnection _connection;
  7998. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7999. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8000. private bool _clearBeforeFill;
  8001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8003. public RegionTableAdapter() {
  8004. this.ClearBeforeFill = true;
  8005. }
  8006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8008. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8009. get {
  8010. if ((this._adapter == null)) {
  8011. this.InitAdapter();
  8012. }
  8013. return this._adapter;
  8014. }
  8015. }
  8016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8018. internal global::System.Data.SqlClient.SqlConnection Connection {
  8019. get {
  8020. if ((this._connection == null)) {
  8021. this.InitConnection();
  8022. }
  8023. return this._connection;
  8024. }
  8025. set {
  8026. this._connection = value;
  8027. if ((this.Adapter.InsertCommand != null)) {
  8028. this.Adapter.InsertCommand.Connection = value;
  8029. }
  8030. if ((this.Adapter.DeleteCommand != null)) {
  8031. this.Adapter.DeleteCommand.Connection = value;
  8032. }
  8033. if ((this.Adapter.UpdateCommand != null)) {
  8034. this.Adapter.UpdateCommand.Connection = value;
  8035. }
  8036. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8037. if ((this.CommandCollection[i] != null)) {
  8038. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8039. }
  8040. }
  8041. }
  8042. }
  8043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8045. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8046. get {
  8047. return this._transaction;
  8048. }
  8049. set {
  8050. this._transaction = value;
  8051. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8052. this.CommandCollection[i].Transaction = this._transaction;
  8053. }
  8054. if (((this.Adapter != null)
  8055. && (this.Adapter.DeleteCommand != null))) {
  8056. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8057. }
  8058. if (((this.Adapter != null)
  8059. && (this.Adapter.InsertCommand != null))) {
  8060. this.Adapter.InsertCommand.Transaction = this._transaction;
  8061. }
  8062. if (((this.Adapter != null)
  8063. && (this.Adapter.UpdateCommand != null))) {
  8064. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8065. }
  8066. }
  8067. }
  8068. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8069. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8070. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8071. get {
  8072. if ((this._commandCollection == null)) {
  8073. this.InitCommandCollection();
  8074. }
  8075. return this._commandCollection;
  8076. }
  8077. }
  8078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8080. public bool ClearBeforeFill {
  8081. get {
  8082. return this._clearBeforeFill;
  8083. }
  8084. set {
  8085. this._clearBeforeFill = value;
  8086. }
  8087. }
  8088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8090. private void InitAdapter() {
  8091. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8092. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8093. tableMapping.SourceTable = "Table";
  8094. tableMapping.DataSetTable = "Region";
  8095. tableMapping.ColumnMappings.Add("idRegion", "idRegion");
  8096. tableMapping.ColumnMappings.Add("Region", "Region");
  8097. this._adapter.TableMappings.Add(tableMapping);
  8098. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8099. this._adapter.DeleteCommand.Connection = this.Connection;
  8100. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Region] WHERE (([idRegion] = @Original_idRegion) AND ((@IsNull" +
  8101. "_Region = 1 AND [Region] IS NULL) OR ([Region] = @Original_Region)))";
  8102. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8103. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idRegion", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idRegion", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8104. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Region", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Region", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8105. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Region", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Region", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8106. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8107. this._adapter.InsertCommand.Connection = this.Connection;
  8108. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Region] ([Region]) VALUES (@Region);\r\nSELECT idRegion, Region " +
  8109. "FROM Region WHERE (idRegion = SCOPE_IDENTITY())";
  8110. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8111. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Region", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Region", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8112. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8113. this._adapter.UpdateCommand.Connection = this.Connection;
  8114. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Region] SET [Region] = @Region WHERE (([idRegion] = @Original_idReg" +
  8115. "ion) AND ((@IsNull_Region = 1 AND [Region] IS NULL) OR ([Region] = @Original_Reg" +
  8116. "ion)));\r\nSELECT idRegion, Region FROM Region WHERE (idRegion = @idRegion)";
  8117. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8118. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Region", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Region", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8119. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idRegion", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idRegion", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8120. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Region", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Region", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8121. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Region", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Region", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8122. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idRegion", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idRegion", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8123. }
  8124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8126. private void InitConnection() {
  8127. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8128. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.dbAlphapolAGConnectionString;
  8129. }
  8130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8132. private void InitCommandCollection() {
  8133. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8134. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8135. this._commandCollection[0].Connection = this.Connection;
  8136. this._commandCollection[0].CommandText = "SELECT idRegion, Region FROM dbo.Region";
  8137. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8138. }
  8139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8141. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8142. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8143. public virtual int Fill(dbAlphapolAGDataSet.RegionDataTable dataTable) {
  8144. this.Adapter.SelectCommand = this.CommandCollection[0];
  8145. if ((this.ClearBeforeFill == true)) {
  8146. dataTable.Clear();
  8147. }
  8148. int returnValue = this.Adapter.Fill(dataTable);
  8149. return returnValue;
  8150. }
  8151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8153. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8154. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8155. public virtual dbAlphapolAGDataSet.RegionDataTable GetData() {
  8156. this.Adapter.SelectCommand = this.CommandCollection[0];
  8157. dbAlphapolAGDataSet.RegionDataTable dataTable = new dbAlphapolAGDataSet.RegionDataTable();
  8158. this.Adapter.Fill(dataTable);
  8159. return dataTable;
  8160. }
  8161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8162. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8163. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8164. public virtual int Update(dbAlphapolAGDataSet.RegionDataTable dataTable) {
  8165. return this.Adapter.Update(dataTable);
  8166. }
  8167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8169. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8170. public virtual int Update(dbAlphapolAGDataSet dataSet) {
  8171. return this.Adapter.Update(dataSet, "Region");
  8172. }
  8173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8175. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8176. public virtual int Update(global::System.Data.DataRow dataRow) {
  8177. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8178. dataRow});
  8179. }
  8180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8182. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8183. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8184. return this.Adapter.Update(dataRows);
  8185. }
  8186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8188. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8189. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8190. public virtual int Delete(int Original_idRegion, string Original_Region) {
  8191. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idRegion));
  8192. if ((Original_Region == null)) {
  8193. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  8194. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  8195. }
  8196. else {
  8197. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  8198. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Region));
  8199. }
  8200. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8201. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8202. != global::System.Data.ConnectionState.Open)) {
  8203. this.Adapter.DeleteCommand.Connection.Open();
  8204. }
  8205. try {
  8206. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8207. return returnValue;
  8208. }
  8209. finally {
  8210. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8211. this.Adapter.DeleteCommand.Connection.Close();
  8212. }
  8213. }
  8214. }
  8215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8217. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8218. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8219. public virtual int Insert(string Region) {
  8220. if ((Region == null)) {
  8221. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  8222. }
  8223. else {
  8224. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Region));
  8225. }
  8226. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8227. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8228. != global::System.Data.ConnectionState.Open)) {
  8229. this.Adapter.InsertCommand.Connection.Open();
  8230. }
  8231. try {
  8232. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8233. return returnValue;
  8234. }
  8235. finally {
  8236. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8237. this.Adapter.InsertCommand.Connection.Close();
  8238. }
  8239. }
  8240. }
  8241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8243. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8244. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8245. public virtual int Update(string Region, int Original_idRegion, string Original_Region, int idRegion) {
  8246. if ((Region == null)) {
  8247. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  8248. }
  8249. else {
  8250. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Region));
  8251. }
  8252. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_idRegion));
  8253. if ((Original_Region == null)) {
  8254. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  8255. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8256. }
  8257. else {
  8258. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  8259. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Region));
  8260. }
  8261. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(idRegion));
  8262. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8263. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8264. != global::System.Data.ConnectionState.Open)) {
  8265. this.Adapter.UpdateCommand.Connection.Open();
  8266. }
  8267. try {
  8268. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8269. return returnValue;
  8270. }
  8271. finally {
  8272. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8273. this.Adapter.UpdateCommand.Connection.Close();
  8274. }
  8275. }
  8276. }
  8277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8279. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8280. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8281. public virtual int Update(string Region, int Original_idRegion, string Original_Region) {
  8282. return this.Update(Region, Original_idRegion, Original_Region, Original_idRegion);
  8283. }
  8284. }
  8285. /// <summary>
  8286. ///Represents the connection and commands used to retrieve and save data.
  8287. ///</summary>
  8288. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8289. [global::System.ComponentModel.ToolboxItem(true)]
  8290. [global::System.ComponentModel.DataObjectAttribute(true)]
  8291. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8292. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8293. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8294. public partial class StreetTableAdapter : global::System.ComponentModel.Component {
  8295. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8296. private global::System.Data.SqlClient.SqlConnection _connection;
  8297. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8298. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8299. private bool _clearBeforeFill;
  8300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8302. public StreetTableAdapter() {
  8303. this.ClearBeforeFill = true;
  8304. }
  8305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8306. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8307. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8308. get {
  8309. if ((this._adapter == null)) {
  8310. this.InitAdapter();
  8311. }
  8312. return this._adapter;
  8313. }
  8314. }
  8315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8317. internal global::System.Data.SqlClient.SqlConnection Connection {
  8318. get {
  8319. if ((this._connection == null)) {
  8320. this.InitConnection();
  8321. }
  8322. return this._connection;
  8323. }
  8324. set {
  8325. this._connection = value;
  8326. if ((this.Adapter.InsertCommand != null)) {
  8327. this.Adapter.InsertCommand.Connection = value;
  8328. }
  8329. if ((this.Adapter.DeleteCommand != null)) {
  8330. this.Adapter.DeleteCommand.Connection = value;
  8331. }
  8332. if ((this.Adapter.UpdateCommand != null)) {
  8333. this.Adapter.UpdateCommand.Connection = value;
  8334. }
  8335. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8336. if ((this.CommandCollection[i] != null)) {
  8337. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8338. }
  8339. }
  8340. }
  8341. }
  8342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8344. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8345. get {
  8346. return this._transaction;
  8347. }
  8348. set {
  8349. this._transaction = value;
  8350. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8351. this.CommandCollection[i].Transaction = this._transaction;
  8352. }
  8353. if (((this.Adapter != null)
  8354. && (this.Adapter.DeleteCommand != null))) {
  8355. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8356. }
  8357. if (((this.Adapter != null)
  8358. && (this.Adapter.InsertCommand != null))) {
  8359. this.Adapter.InsertCommand.Transaction = this._transaction;
  8360. }
  8361. if (((this.Adapter != null)
  8362. && (this.Adapter.UpdateCommand != null))) {
  8363. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8364. }
  8365. }
  8366. }
  8367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8369. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8370. get {
  8371. if ((this._commandCollection == null)) {
  8372. this.InitCommandCollection();
  8373. }
  8374. return this._commandCollection;
  8375. }
  8376. }
  8377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8378. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8379. public bool ClearBeforeFill {
  8380. get {
  8381. return this._clearBeforeFill;
  8382. }
  8383. set {
  8384. this._clearBeforeFill = value;
  8385. }
  8386. }
  8387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8389. private void InitAdapter() {
  8390. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8391. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8392. tableMapping.SourceTable = "Table";
  8393. tableMapping.DataSetTable = "Street";
  8394. tableMapping.ColumnMappings.Add("idStreet", "idStreet");
  8395. tableMapping.ColumnMappings.Add("Street", "Street");
  8396. this._adapter.TableMappings.Add(tableMapping);
  8397. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8398. this._adapter.DeleteCommand.Connection = this.Connection;
  8399. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Street] WHERE (([idStreet] = @Original_idStreet) AND ((@IsNull" +
  8400. "_Street = 1 AND [Street] IS NULL) OR ([Street] = @Original_Street)))";
  8401. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8402. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idStreet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idStreet", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8403. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Street", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Street", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8404. 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, "", "", ""));
  8405. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8406. this._adapter.InsertCommand.Connection = this.Connection;
  8407. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Street] ([Street]) VALUES (@Street);\r\nSELECT idStreet, Street " +
  8408. "FROM Street WHERE (idStreet = SCOPE_IDENTITY())";
  8409. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8410. 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, "", "", ""));
  8411. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8412. this._adapter.UpdateCommand.Connection = this.Connection;
  8413. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Street] SET [Street] = @Street WHERE (([idStreet] = @Original_idStr" +
  8414. "eet) AND ((@IsNull_Street = 1 AND [Street] IS NULL) OR ([Street] = @Original_Str" +
  8415. "eet)));\r\nSELECT idStreet, Street FROM Street WHERE (idStreet = @idStreet)";
  8416. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8417. 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, "", "", ""));
  8418. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idStreet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idStreet", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8419. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Street", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Street", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8420. 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, "", "", ""));
  8421. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idStreet", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idStreet", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8422. }
  8423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8425. private void InitConnection() {
  8426. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8427. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.dbAlphapolAGConnectionString;
  8428. }
  8429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8431. private void InitCommandCollection() {
  8432. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8433. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8434. this._commandCollection[0].Connection = this.Connection;
  8435. this._commandCollection[0].CommandText = "SELECT idStreet, Street FROM dbo.Street";
  8436. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8437. }
  8438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8440. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8441. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8442. public virtual int Fill(dbAlphapolAGDataSet.StreetDataTable dataTable) {
  8443. this.Adapter.SelectCommand = this.CommandCollection[0];
  8444. if ((this.ClearBeforeFill == true)) {
  8445. dataTable.Clear();
  8446. }
  8447. int returnValue = this.Adapter.Fill(dataTable);
  8448. return returnValue;
  8449. }
  8450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8452. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8453. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8454. public virtual dbAlphapolAGDataSet.StreetDataTable GetData() {
  8455. this.Adapter.SelectCommand = this.CommandCollection[0];
  8456. dbAlphapolAGDataSet.StreetDataTable dataTable = new dbAlphapolAGDataSet.StreetDataTable();
  8457. this.Adapter.Fill(dataTable);
  8458. return dataTable;
  8459. }
  8460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8462. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8463. public virtual int Update(dbAlphapolAGDataSet.StreetDataTable dataTable) {
  8464. return this.Adapter.Update(dataTable);
  8465. }
  8466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8468. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8469. public virtual int Update(dbAlphapolAGDataSet dataSet) {
  8470. return this.Adapter.Update(dataSet, "Street");
  8471. }
  8472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8474. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8475. public virtual int Update(global::System.Data.DataRow dataRow) {
  8476. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8477. dataRow});
  8478. }
  8479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8480. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8481. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8482. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8483. return this.Adapter.Update(dataRows);
  8484. }
  8485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8487. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8488. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8489. public virtual int Delete(int Original_idStreet, string Original_Street) {
  8490. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idStreet));
  8491. if ((Original_Street == null)) {
  8492. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  8493. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  8494. }
  8495. else {
  8496. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  8497. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Street));
  8498. }
  8499. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8500. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8501. != global::System.Data.ConnectionState.Open)) {
  8502. this.Adapter.DeleteCommand.Connection.Open();
  8503. }
  8504. try {
  8505. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8506. return returnValue;
  8507. }
  8508. finally {
  8509. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8510. this.Adapter.DeleteCommand.Connection.Close();
  8511. }
  8512. }
  8513. }
  8514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8516. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8517. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8518. public virtual int Insert(string Street) {
  8519. if ((Street == null)) {
  8520. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  8521. }
  8522. else {
  8523. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Street));
  8524. }
  8525. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8526. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8527. != global::System.Data.ConnectionState.Open)) {
  8528. this.Adapter.InsertCommand.Connection.Open();
  8529. }
  8530. try {
  8531. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8532. return returnValue;
  8533. }
  8534. finally {
  8535. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8536. this.Adapter.InsertCommand.Connection.Close();
  8537. }
  8538. }
  8539. }
  8540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8542. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8543. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8544. public virtual int Update(string Street, int Original_idStreet, string Original_Street, int idStreet) {
  8545. if ((Street == null)) {
  8546. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  8547. }
  8548. else {
  8549. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Street));
  8550. }
  8551. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_idStreet));
  8552. if ((Original_Street == null)) {
  8553. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  8554. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8555. }
  8556. else {
  8557. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  8558. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Street));
  8559. }
  8560. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(idStreet));
  8561. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8562. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8563. != global::System.Data.ConnectionState.Open)) {
  8564. this.Adapter.UpdateCommand.Connection.Open();
  8565. }
  8566. try {
  8567. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8568. return returnValue;
  8569. }
  8570. finally {
  8571. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8572. this.Adapter.UpdateCommand.Connection.Close();
  8573. }
  8574. }
  8575. }
  8576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8578. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8579. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8580. public virtual int Update(string Street, int Original_idStreet, string Original_Street) {
  8581. return this.Update(Street, Original_idStreet, Original_Street, Original_idStreet);
  8582. }
  8583. }
  8584. /// <summary>
  8585. ///Represents the connection and commands used to retrieve and save data.
  8586. ///</summary>
  8587. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8588. [global::System.ComponentModel.ToolboxItem(true)]
  8589. [global::System.ComponentModel.DataObjectAttribute(true)]
  8590. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8591. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8592. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8593. public partial class TypeMaterialTableAdapter : global::System.ComponentModel.Component {
  8594. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8595. private global::System.Data.SqlClient.SqlConnection _connection;
  8596. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8597. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8598. private bool _clearBeforeFill;
  8599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8600. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8601. public TypeMaterialTableAdapter() {
  8602. this.ClearBeforeFill = true;
  8603. }
  8604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8606. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8607. get {
  8608. if ((this._adapter == null)) {
  8609. this.InitAdapter();
  8610. }
  8611. return this._adapter;
  8612. }
  8613. }
  8614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8616. internal global::System.Data.SqlClient.SqlConnection Connection {
  8617. get {
  8618. if ((this._connection == null)) {
  8619. this.InitConnection();
  8620. }
  8621. return this._connection;
  8622. }
  8623. set {
  8624. this._connection = value;
  8625. if ((this.Adapter.InsertCommand != null)) {
  8626. this.Adapter.InsertCommand.Connection = value;
  8627. }
  8628. if ((this.Adapter.DeleteCommand != null)) {
  8629. this.Adapter.DeleteCommand.Connection = value;
  8630. }
  8631. if ((this.Adapter.UpdateCommand != null)) {
  8632. this.Adapter.UpdateCommand.Connection = value;
  8633. }
  8634. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8635. if ((this.CommandCollection[i] != null)) {
  8636. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8637. }
  8638. }
  8639. }
  8640. }
  8641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8642. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8643. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8644. get {
  8645. return this._transaction;
  8646. }
  8647. set {
  8648. this._transaction = value;
  8649. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8650. this.CommandCollection[i].Transaction = this._transaction;
  8651. }
  8652. if (((this.Adapter != null)
  8653. && (this.Adapter.DeleteCommand != null))) {
  8654. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8655. }
  8656. if (((this.Adapter != null)
  8657. && (this.Adapter.InsertCommand != null))) {
  8658. this.Adapter.InsertCommand.Transaction = this._transaction;
  8659. }
  8660. if (((this.Adapter != null)
  8661. && (this.Adapter.UpdateCommand != null))) {
  8662. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8663. }
  8664. }
  8665. }
  8666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8668. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8669. get {
  8670. if ((this._commandCollection == null)) {
  8671. this.InitCommandCollection();
  8672. }
  8673. return this._commandCollection;
  8674. }
  8675. }
  8676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8678. public bool ClearBeforeFill {
  8679. get {
  8680. return this._clearBeforeFill;
  8681. }
  8682. set {
  8683. this._clearBeforeFill = value;
  8684. }
  8685. }
  8686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8688. private void InitAdapter() {
  8689. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8690. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8691. tableMapping.SourceTable = "Table";
  8692. tableMapping.DataSetTable = "TypeMaterial";
  8693. tableMapping.ColumnMappings.Add("idTypeMaterial", "idTypeMaterial");
  8694. tableMapping.ColumnMappings.Add("TypeMaterial", "TypeMaterial");
  8695. tableMapping.ColumnMappings.Add("PercentDefect", "PercentDefect");
  8696. this._adapter.TableMappings.Add(tableMapping);
  8697. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8698. this._adapter.DeleteCommand.Connection = this.Connection;
  8699. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[TypeMaterial] WHERE (([idTypeMaterial] = @Original_idTypeMaterial) AND ((@IsNull_TypeMaterial = 1 AND [TypeMaterial] IS NULL) OR ([TypeMaterial] = @Original_TypeMaterial)) AND ((@IsNull_PercentDefect = 1 AND [PercentDefect] IS NULL) OR ([PercentDefect] = @Original_PercentDefect)))";
  8700. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8701. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idTypeMaterial", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idTypeMaterial", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8702. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TypeMaterial", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypeMaterial", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8703. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TypeMaterial", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypeMaterial", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8704. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PercentDefect", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PercentDefect", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8705. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PercentDefect", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "PercentDefect", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8706. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8707. this._adapter.InsertCommand.Connection = this.Connection;
  8708. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[TypeMaterial] ([TypeMaterial], [PercentDefect]) VALUES (@TypeM" +
  8709. "aterial, @PercentDefect);\r\nSELECT idTypeMaterial, TypeMaterial, PercentDefect FR" +
  8710. "OM TypeMaterial WHERE (idTypeMaterial = SCOPE_IDENTITY())";
  8711. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8712. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TypeMaterial", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypeMaterial", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8713. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PercentDefect", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "PercentDefect", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8714. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8715. this._adapter.UpdateCommand.Connection = this.Connection;
  8716. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[TypeMaterial] SET [TypeMaterial] = @TypeMaterial, [PercentDefect] = @PercentDefect WHERE (([idTypeMaterial] = @Original_idTypeMaterial) AND ((@IsNull_TypeMaterial = 1 AND [TypeMaterial] IS NULL) OR ([TypeMaterial] = @Original_TypeMaterial)) AND ((@IsNull_PercentDefect = 1 AND [PercentDefect] IS NULL) OR ([PercentDefect] = @Original_PercentDefect)));
  8717. SELECT idTypeMaterial, TypeMaterial, PercentDefect FROM TypeMaterial WHERE (idTypeMaterial = @idTypeMaterial)";
  8718. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8719. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TypeMaterial", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypeMaterial", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8720. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PercentDefect", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "PercentDefect", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8721. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idTypeMaterial", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idTypeMaterial", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8722. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TypeMaterial", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypeMaterial", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8723. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TypeMaterial", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypeMaterial", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8724. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PercentDefect", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PercentDefect", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8725. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PercentDefect", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "PercentDefect", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8726. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idTypeMaterial", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idTypeMaterial", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8727. }
  8728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8730. private void InitConnection() {
  8731. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8732. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.dbAlphapolAGConnectionString;
  8733. }
  8734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8736. private void InitCommandCollection() {
  8737. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8738. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8739. this._commandCollection[0].Connection = this.Connection;
  8740. this._commandCollection[0].CommandText = "SELECT idTypeMaterial, TypeMaterial, PercentDefect FROM dbo.TypeMaterial";
  8741. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8742. }
  8743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8745. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8746. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8747. public virtual int Fill(dbAlphapolAGDataSet.TypeMaterialDataTable dataTable) {
  8748. this.Adapter.SelectCommand = this.CommandCollection[0];
  8749. if ((this.ClearBeforeFill == true)) {
  8750. dataTable.Clear();
  8751. }
  8752. int returnValue = this.Adapter.Fill(dataTable);
  8753. return returnValue;
  8754. }
  8755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8757. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8758. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8759. public virtual dbAlphapolAGDataSet.TypeMaterialDataTable GetData() {
  8760. this.Adapter.SelectCommand = this.CommandCollection[0];
  8761. dbAlphapolAGDataSet.TypeMaterialDataTable dataTable = new dbAlphapolAGDataSet.TypeMaterialDataTable();
  8762. this.Adapter.Fill(dataTable);
  8763. return dataTable;
  8764. }
  8765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8767. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8768. public virtual int Update(dbAlphapolAGDataSet.TypeMaterialDataTable dataTable) {
  8769. return this.Adapter.Update(dataTable);
  8770. }
  8771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8773. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8774. public virtual int Update(dbAlphapolAGDataSet dataSet) {
  8775. return this.Adapter.Update(dataSet, "TypeMaterial");
  8776. }
  8777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8779. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8780. public virtual int Update(global::System.Data.DataRow dataRow) {
  8781. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8782. dataRow});
  8783. }
  8784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8786. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8787. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8788. return this.Adapter.Update(dataRows);
  8789. }
  8790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8792. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8793. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8794. public virtual int Delete(int Original_idTypeMaterial, string Original_TypeMaterial, global::System.Nullable<decimal> Original_PercentDefect) {
  8795. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idTypeMaterial));
  8796. if ((Original_TypeMaterial == null)) {
  8797. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  8798. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  8799. }
  8800. else {
  8801. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  8802. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_TypeMaterial));
  8803. }
  8804. if ((Original_PercentDefect.HasValue == true)) {
  8805. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  8806. this.Adapter.DeleteCommand.Parameters[4].Value = ((decimal)(Original_PercentDefect.Value));
  8807. }
  8808. else {
  8809. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  8810. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  8811. }
  8812. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8813. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8814. != global::System.Data.ConnectionState.Open)) {
  8815. this.Adapter.DeleteCommand.Connection.Open();
  8816. }
  8817. try {
  8818. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8819. return returnValue;
  8820. }
  8821. finally {
  8822. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8823. this.Adapter.DeleteCommand.Connection.Close();
  8824. }
  8825. }
  8826. }
  8827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8829. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8830. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8831. public virtual int Insert(string TypeMaterial, global::System.Nullable<decimal> PercentDefect) {
  8832. if ((TypeMaterial == null)) {
  8833. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  8834. }
  8835. else {
  8836. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(TypeMaterial));
  8837. }
  8838. if ((PercentDefect.HasValue == true)) {
  8839. this.Adapter.InsertCommand.Parameters[1].Value = ((decimal)(PercentDefect.Value));
  8840. }
  8841. else {
  8842. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  8843. }
  8844. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8845. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8846. != global::System.Data.ConnectionState.Open)) {
  8847. this.Adapter.InsertCommand.Connection.Open();
  8848. }
  8849. try {
  8850. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8851. return returnValue;
  8852. }
  8853. finally {
  8854. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8855. this.Adapter.InsertCommand.Connection.Close();
  8856. }
  8857. }
  8858. }
  8859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8861. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8862. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8863. public virtual int Update(string TypeMaterial, global::System.Nullable<decimal> PercentDefect, int Original_idTypeMaterial, string Original_TypeMaterial, global::System.Nullable<decimal> Original_PercentDefect, int idTypeMaterial) {
  8864. if ((TypeMaterial == null)) {
  8865. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  8866. }
  8867. else {
  8868. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(TypeMaterial));
  8869. }
  8870. if ((PercentDefect.HasValue == true)) {
  8871. this.Adapter.UpdateCommand.Parameters[1].Value = ((decimal)(PercentDefect.Value));
  8872. }
  8873. else {
  8874. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  8875. }
  8876. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_idTypeMaterial));
  8877. if ((Original_TypeMaterial == null)) {
  8878. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  8879. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  8880. }
  8881. else {
  8882. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  8883. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_TypeMaterial));
  8884. }
  8885. if ((Original_PercentDefect.HasValue == true)) {
  8886. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  8887. this.Adapter.UpdateCommand.Parameters[6].Value = ((decimal)(Original_PercentDefect.Value));
  8888. }
  8889. else {
  8890. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  8891. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  8892. }
  8893. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(idTypeMaterial));
  8894. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8895. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8896. != global::System.Data.ConnectionState.Open)) {
  8897. this.Adapter.UpdateCommand.Connection.Open();
  8898. }
  8899. try {
  8900. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8901. return returnValue;
  8902. }
  8903. finally {
  8904. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8905. this.Adapter.UpdateCommand.Connection.Close();
  8906. }
  8907. }
  8908. }
  8909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8910. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8911. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8912. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8913. public virtual int Update(string TypeMaterial, global::System.Nullable<decimal> PercentDefect, int Original_idTypeMaterial, string Original_TypeMaterial, global::System.Nullable<decimal> Original_PercentDefect) {
  8914. return this.Update(TypeMaterial, PercentDefect, Original_idTypeMaterial, Original_TypeMaterial, Original_PercentDefect, Original_idTypeMaterial);
  8915. }
  8916. }
  8917. /// <summary>
  8918. ///Represents the connection and commands used to retrieve and save data.
  8919. ///</summary>
  8920. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8921. [global::System.ComponentModel.ToolboxItem(true)]
  8922. [global::System.ComponentModel.DataObjectAttribute(true)]
  8923. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8924. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8925. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8926. public partial class TypePartnerTableAdapter : global::System.ComponentModel.Component {
  8927. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8928. private global::System.Data.SqlClient.SqlConnection _connection;
  8929. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8930. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8931. private bool _clearBeforeFill;
  8932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8934. public TypePartnerTableAdapter() {
  8935. this.ClearBeforeFill = true;
  8936. }
  8937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8939. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8940. get {
  8941. if ((this._adapter == null)) {
  8942. this.InitAdapter();
  8943. }
  8944. return this._adapter;
  8945. }
  8946. }
  8947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8949. internal global::System.Data.SqlClient.SqlConnection Connection {
  8950. get {
  8951. if ((this._connection == null)) {
  8952. this.InitConnection();
  8953. }
  8954. return this._connection;
  8955. }
  8956. set {
  8957. this._connection = value;
  8958. if ((this.Adapter.InsertCommand != null)) {
  8959. this.Adapter.InsertCommand.Connection = value;
  8960. }
  8961. if ((this.Adapter.DeleteCommand != null)) {
  8962. this.Adapter.DeleteCommand.Connection = value;
  8963. }
  8964. if ((this.Adapter.UpdateCommand != null)) {
  8965. this.Adapter.UpdateCommand.Connection = value;
  8966. }
  8967. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8968. if ((this.CommandCollection[i] != null)) {
  8969. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8970. }
  8971. }
  8972. }
  8973. }
  8974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8976. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8977. get {
  8978. return this._transaction;
  8979. }
  8980. set {
  8981. this._transaction = value;
  8982. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8983. this.CommandCollection[i].Transaction = this._transaction;
  8984. }
  8985. if (((this.Adapter != null)
  8986. && (this.Adapter.DeleteCommand != null))) {
  8987. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8988. }
  8989. if (((this.Adapter != null)
  8990. && (this.Adapter.InsertCommand != null))) {
  8991. this.Adapter.InsertCommand.Transaction = this._transaction;
  8992. }
  8993. if (((this.Adapter != null)
  8994. && (this.Adapter.UpdateCommand != null))) {
  8995. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8996. }
  8997. }
  8998. }
  8999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9001. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9002. get {
  9003. if ((this._commandCollection == null)) {
  9004. this.InitCommandCollection();
  9005. }
  9006. return this._commandCollection;
  9007. }
  9008. }
  9009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9011. public bool ClearBeforeFill {
  9012. get {
  9013. return this._clearBeforeFill;
  9014. }
  9015. set {
  9016. this._clearBeforeFill = value;
  9017. }
  9018. }
  9019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9021. private void InitAdapter() {
  9022. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9023. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9024. tableMapping.SourceTable = "Table";
  9025. tableMapping.DataSetTable = "TypePartner";
  9026. tableMapping.ColumnMappings.Add("idTypePartner", "idTypePartner");
  9027. tableMapping.ColumnMappings.Add("Type", "Type");
  9028. this._adapter.TableMappings.Add(tableMapping);
  9029. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9030. this._adapter.DeleteCommand.Connection = this.Connection;
  9031. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[TypePartner] WHERE (([idTypePartner] = @Original_idTypePartner" +
  9032. ") AND ((@IsNull_Type = 1 AND [Type] IS NULL) OR ([Type] = @Original_Type)))";
  9033. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9034. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idTypePartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idTypePartner", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9035. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Type", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Type", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9036. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Type", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Type", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9037. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9038. this._adapter.InsertCommand.Connection = this.Connection;
  9039. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[TypePartner] ([Type]) VALUES (@Type);\r\nSELECT idTypePartner, T" +
  9040. "ype FROM TypePartner WHERE (idTypePartner = SCOPE_IDENTITY())";
  9041. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9042. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Type", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Type", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9043. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9044. this._adapter.UpdateCommand.Connection = this.Connection;
  9045. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[TypePartner] SET [Type] = @Type WHERE (([idTypePartner] = @Original" +
  9046. "_idTypePartner) AND ((@IsNull_Type = 1 AND [Type] IS NULL) OR ([Type] = @Origina" +
  9047. "l_Type)));\r\nSELECT idTypePartner, Type FROM TypePartner WHERE (idTypePartner = @" +
  9048. "idTypePartner)";
  9049. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9050. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Type", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Type", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9051. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idTypePartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idTypePartner", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9052. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Type", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Type", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9053. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Type", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Type", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9054. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idTypePartner", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idTypePartner", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9055. }
  9056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9057. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9058. private void InitConnection() {
  9059. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9060. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.dbAlphapolAGConnectionString;
  9061. }
  9062. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9063. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9064. private void InitCommandCollection() {
  9065. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9066. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9067. this._commandCollection[0].Connection = this.Connection;
  9068. this._commandCollection[0].CommandText = "SELECT idTypePartner, Type FROM dbo.TypePartner";
  9069. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9070. }
  9071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9073. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9074. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9075. public virtual int Fill(dbAlphapolAGDataSet.TypePartnerDataTable dataTable) {
  9076. this.Adapter.SelectCommand = this.CommandCollection[0];
  9077. if ((this.ClearBeforeFill == true)) {
  9078. dataTable.Clear();
  9079. }
  9080. int returnValue = this.Adapter.Fill(dataTable);
  9081. return returnValue;
  9082. }
  9083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9085. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9086. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9087. public virtual dbAlphapolAGDataSet.TypePartnerDataTable GetData() {
  9088. this.Adapter.SelectCommand = this.CommandCollection[0];
  9089. dbAlphapolAGDataSet.TypePartnerDataTable dataTable = new dbAlphapolAGDataSet.TypePartnerDataTable();
  9090. this.Adapter.Fill(dataTable);
  9091. return dataTable;
  9092. }
  9093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9095. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9096. public virtual int Update(dbAlphapolAGDataSet.TypePartnerDataTable dataTable) {
  9097. return this.Adapter.Update(dataTable);
  9098. }
  9099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9101. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9102. public virtual int Update(dbAlphapolAGDataSet dataSet) {
  9103. return this.Adapter.Update(dataSet, "TypePartner");
  9104. }
  9105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9106. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9107. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9108. public virtual int Update(global::System.Data.DataRow dataRow) {
  9109. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9110. dataRow});
  9111. }
  9112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9113. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9114. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9115. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9116. return this.Adapter.Update(dataRows);
  9117. }
  9118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9120. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9121. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9122. public virtual int Delete(int Original_idTypePartner, string Original_Type) {
  9123. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idTypePartner));
  9124. if ((Original_Type == null)) {
  9125. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  9126. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  9127. }
  9128. else {
  9129. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  9130. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Type));
  9131. }
  9132. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9133. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9134. != global::System.Data.ConnectionState.Open)) {
  9135. this.Adapter.DeleteCommand.Connection.Open();
  9136. }
  9137. try {
  9138. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9139. return returnValue;
  9140. }
  9141. finally {
  9142. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9143. this.Adapter.DeleteCommand.Connection.Close();
  9144. }
  9145. }
  9146. }
  9147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9149. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9150. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9151. public virtual int Insert(string Type) {
  9152. if ((Type == null)) {
  9153. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  9154. }
  9155. else {
  9156. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Type));
  9157. }
  9158. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9159. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9160. != global::System.Data.ConnectionState.Open)) {
  9161. this.Adapter.InsertCommand.Connection.Open();
  9162. }
  9163. try {
  9164. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9165. return returnValue;
  9166. }
  9167. finally {
  9168. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9169. this.Adapter.InsertCommand.Connection.Close();
  9170. }
  9171. }
  9172. }
  9173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9175. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9176. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9177. public virtual int Update(string Type, int Original_idTypePartner, string Original_Type, int idTypePartner) {
  9178. if ((Type == null)) {
  9179. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  9180. }
  9181. else {
  9182. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Type));
  9183. }
  9184. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_idTypePartner));
  9185. if ((Original_Type == null)) {
  9186. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  9187. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  9188. }
  9189. else {
  9190. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  9191. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Type));
  9192. }
  9193. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(idTypePartner));
  9194. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9195. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9196. != global::System.Data.ConnectionState.Open)) {
  9197. this.Adapter.UpdateCommand.Connection.Open();
  9198. }
  9199. try {
  9200. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9201. return returnValue;
  9202. }
  9203. finally {
  9204. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9205. this.Adapter.UpdateCommand.Connection.Close();
  9206. }
  9207. }
  9208. }
  9209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9211. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9212. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9213. public virtual int Update(string Type, int Original_idTypePartner, string Original_Type) {
  9214. return this.Update(Type, Original_idTypePartner, Original_Type, Original_idTypePartner);
  9215. }
  9216. }
  9217. /// <summary>
  9218. ///Represents the connection and commands used to retrieve and save data.
  9219. ///</summary>
  9220. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9221. [global::System.ComponentModel.ToolboxItem(true)]
  9222. [global::System.ComponentModel.DataObjectAttribute(true)]
  9223. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9224. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9225. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9226. public partial class TypeProductTableAdapter : global::System.ComponentModel.Component {
  9227. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9228. private global::System.Data.SqlClient.SqlConnection _connection;
  9229. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9230. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9231. private bool _clearBeforeFill;
  9232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9234. public TypeProductTableAdapter() {
  9235. this.ClearBeforeFill = true;
  9236. }
  9237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9239. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9240. get {
  9241. if ((this._adapter == null)) {
  9242. this.InitAdapter();
  9243. }
  9244. return this._adapter;
  9245. }
  9246. }
  9247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9249. internal global::System.Data.SqlClient.SqlConnection Connection {
  9250. get {
  9251. if ((this._connection == null)) {
  9252. this.InitConnection();
  9253. }
  9254. return this._connection;
  9255. }
  9256. set {
  9257. this._connection = value;
  9258. if ((this.Adapter.InsertCommand != null)) {
  9259. this.Adapter.InsertCommand.Connection = value;
  9260. }
  9261. if ((this.Adapter.DeleteCommand != null)) {
  9262. this.Adapter.DeleteCommand.Connection = value;
  9263. }
  9264. if ((this.Adapter.UpdateCommand != null)) {
  9265. this.Adapter.UpdateCommand.Connection = value;
  9266. }
  9267. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9268. if ((this.CommandCollection[i] != null)) {
  9269. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9270. }
  9271. }
  9272. }
  9273. }
  9274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9276. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9277. get {
  9278. return this._transaction;
  9279. }
  9280. set {
  9281. this._transaction = value;
  9282. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9283. this.CommandCollection[i].Transaction = this._transaction;
  9284. }
  9285. if (((this.Adapter != null)
  9286. && (this.Adapter.DeleteCommand != null))) {
  9287. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9288. }
  9289. if (((this.Adapter != null)
  9290. && (this.Adapter.InsertCommand != null))) {
  9291. this.Adapter.InsertCommand.Transaction = this._transaction;
  9292. }
  9293. if (((this.Adapter != null)
  9294. && (this.Adapter.UpdateCommand != null))) {
  9295. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9296. }
  9297. }
  9298. }
  9299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9301. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9302. get {
  9303. if ((this._commandCollection == null)) {
  9304. this.InitCommandCollection();
  9305. }
  9306. return this._commandCollection;
  9307. }
  9308. }
  9309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9311. public bool ClearBeforeFill {
  9312. get {
  9313. return this._clearBeforeFill;
  9314. }
  9315. set {
  9316. this._clearBeforeFill = value;
  9317. }
  9318. }
  9319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9321. private void InitAdapter() {
  9322. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9323. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9324. tableMapping.SourceTable = "Table";
  9325. tableMapping.DataSetTable = "TypeProduct";
  9326. tableMapping.ColumnMappings.Add("idTypeProduct", "idTypeProduct");
  9327. tableMapping.ColumnMappings.Add("TypeProduct", "TypeProduct");
  9328. tableMapping.ColumnMappings.Add("Coefficient", "Coefficient");
  9329. this._adapter.TableMappings.Add(tableMapping);
  9330. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9331. this._adapter.DeleteCommand.Connection = this.Connection;
  9332. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[TypeProduct] WHERE (([idTypeProduct] = @Original_idTypeProduct) AND ((@IsNull_TypeProduct = 1 AND [TypeProduct] IS NULL) OR ([TypeProduct] = @Original_TypeProduct)) AND ((@IsNull_Coefficient = 1 AND [Coefficient] IS NULL) OR ([Coefficient] = @Original_Coefficient)))";
  9333. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9334. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idTypeProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idTypeProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9335. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TypeProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypeProduct", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9336. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TypeProduct", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypeProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9337. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Coefficient", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Coefficient", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9338. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Coefficient", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Coefficient", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9339. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9340. this._adapter.InsertCommand.Connection = this.Connection;
  9341. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[TypeProduct] ([TypeProduct], [Coefficient]) VALUES (@TypeProdu" +
  9342. "ct, @Coefficient);\r\nSELECT idTypeProduct, TypeProduct, Coefficient FROM TypeProd" +
  9343. "uct WHERE (idTypeProduct = SCOPE_IDENTITY())";
  9344. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9345. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TypeProduct", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypeProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9346. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Coefficient", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Coefficient", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9347. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9348. this._adapter.UpdateCommand.Connection = this.Connection;
  9349. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[TypeProduct] SET [TypeProduct] = @TypeProduct, [Coefficient] = @Coefficient WHERE (([idTypeProduct] = @Original_idTypeProduct) AND ((@IsNull_TypeProduct = 1 AND [TypeProduct] IS NULL) OR ([TypeProduct] = @Original_TypeProduct)) AND ((@IsNull_Coefficient = 1 AND [Coefficient] IS NULL) OR ([Coefficient] = @Original_Coefficient)));
  9350. SELECT idTypeProduct, TypeProduct, Coefficient FROM TypeProduct WHERE (idTypeProduct = @idTypeProduct)";
  9351. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9352. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TypeProduct", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypeProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9353. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Coefficient", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Coefficient", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9354. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idTypeProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idTypeProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9355. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TypeProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypeProduct", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9356. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TypeProduct", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypeProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9357. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Coefficient", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Coefficient", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9358. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Coefficient", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Coefficient", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9359. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idTypeProduct", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idTypeProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9360. }
  9361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9363. private void InitConnection() {
  9364. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9365. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.dbAlphapolAGConnectionString;
  9366. }
  9367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9369. private void InitCommandCollection() {
  9370. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9371. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9372. this._commandCollection[0].Connection = this.Connection;
  9373. this._commandCollection[0].CommandText = "SELECT idTypeProduct, TypeProduct, Coefficient FROM dbo.TypeProduct";
  9374. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9375. }
  9376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9378. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9379. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9380. public virtual int Fill(dbAlphapolAGDataSet.TypeProductDataTable dataTable) {
  9381. this.Adapter.SelectCommand = this.CommandCollection[0];
  9382. if ((this.ClearBeforeFill == true)) {
  9383. dataTable.Clear();
  9384. }
  9385. int returnValue = this.Adapter.Fill(dataTable);
  9386. return returnValue;
  9387. }
  9388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9390. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9391. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9392. public virtual dbAlphapolAGDataSet.TypeProductDataTable GetData() {
  9393. this.Adapter.SelectCommand = this.CommandCollection[0];
  9394. dbAlphapolAGDataSet.TypeProductDataTable dataTable = new dbAlphapolAGDataSet.TypeProductDataTable();
  9395. this.Adapter.Fill(dataTable);
  9396. return dataTable;
  9397. }
  9398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9400. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9401. public virtual int Update(dbAlphapolAGDataSet.TypeProductDataTable dataTable) {
  9402. return this.Adapter.Update(dataTable);
  9403. }
  9404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9406. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9407. public virtual int Update(dbAlphapolAGDataSet dataSet) {
  9408. return this.Adapter.Update(dataSet, "TypeProduct");
  9409. }
  9410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9412. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9413. public virtual int Update(global::System.Data.DataRow dataRow) {
  9414. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9415. dataRow});
  9416. }
  9417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9419. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9420. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9421. return this.Adapter.Update(dataRows);
  9422. }
  9423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9425. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9426. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9427. public virtual int Delete(int Original_idTypeProduct, string Original_TypeProduct, global::System.Nullable<double> Original_Coefficient) {
  9428. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idTypeProduct));
  9429. if ((Original_TypeProduct == null)) {
  9430. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  9431. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  9432. }
  9433. else {
  9434. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  9435. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_TypeProduct));
  9436. }
  9437. if ((Original_Coefficient.HasValue == true)) {
  9438. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  9439. this.Adapter.DeleteCommand.Parameters[4].Value = ((double)(Original_Coefficient.Value));
  9440. }
  9441. else {
  9442. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  9443. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  9444. }
  9445. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9446. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9447. != global::System.Data.ConnectionState.Open)) {
  9448. this.Adapter.DeleteCommand.Connection.Open();
  9449. }
  9450. try {
  9451. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9452. return returnValue;
  9453. }
  9454. finally {
  9455. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9456. this.Adapter.DeleteCommand.Connection.Close();
  9457. }
  9458. }
  9459. }
  9460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9462. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9463. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9464. public virtual int Insert(string TypeProduct, global::System.Nullable<double> Coefficient) {
  9465. if ((TypeProduct == null)) {
  9466. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  9467. }
  9468. else {
  9469. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(TypeProduct));
  9470. }
  9471. if ((Coefficient.HasValue == true)) {
  9472. this.Adapter.InsertCommand.Parameters[1].Value = ((double)(Coefficient.Value));
  9473. }
  9474. else {
  9475. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  9476. }
  9477. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9478. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9479. != global::System.Data.ConnectionState.Open)) {
  9480. this.Adapter.InsertCommand.Connection.Open();
  9481. }
  9482. try {
  9483. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9484. return returnValue;
  9485. }
  9486. finally {
  9487. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9488. this.Adapter.InsertCommand.Connection.Close();
  9489. }
  9490. }
  9491. }
  9492. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9493. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9494. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9495. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9496. public virtual int Update(string TypeProduct, global::System.Nullable<double> Coefficient, int Original_idTypeProduct, string Original_TypeProduct, global::System.Nullable<double> Original_Coefficient, int idTypeProduct) {
  9497. if ((TypeProduct == null)) {
  9498. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  9499. }
  9500. else {
  9501. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(TypeProduct));
  9502. }
  9503. if ((Coefficient.HasValue == true)) {
  9504. this.Adapter.UpdateCommand.Parameters[1].Value = ((double)(Coefficient.Value));
  9505. }
  9506. else {
  9507. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  9508. }
  9509. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_idTypeProduct));
  9510. if ((Original_TypeProduct == null)) {
  9511. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  9512. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  9513. }
  9514. else {
  9515. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  9516. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_TypeProduct));
  9517. }
  9518. if ((Original_Coefficient.HasValue == true)) {
  9519. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  9520. this.Adapter.UpdateCommand.Parameters[6].Value = ((double)(Original_Coefficient.Value));
  9521. }
  9522. else {
  9523. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  9524. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  9525. }
  9526. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(idTypeProduct));
  9527. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9528. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9529. != global::System.Data.ConnectionState.Open)) {
  9530. this.Adapter.UpdateCommand.Connection.Open();
  9531. }
  9532. try {
  9533. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9534. return returnValue;
  9535. }
  9536. finally {
  9537. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9538. this.Adapter.UpdateCommand.Connection.Close();
  9539. }
  9540. }
  9541. }
  9542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9544. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9545. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9546. public virtual int Update(string TypeProduct, global::System.Nullable<double> Coefficient, int Original_idTypeProduct, string Original_TypeProduct, global::System.Nullable<double> Original_Coefficient) {
  9547. return this.Update(TypeProduct, Coefficient, Original_idTypeProduct, Original_TypeProduct, Original_Coefficient, Original_idTypeProduct);
  9548. }
  9549. }
  9550. /// <summary>
  9551. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  9552. ///</summary>
  9553. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9554. [global::System.ComponentModel.ToolboxItem(true)]
  9555. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  9556. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9557. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  9558. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  9559. private UpdateOrderOption _updateOrder;
  9560. private CityTableAdapter _cityTableAdapter;
  9561. private IndexPartnerTableAdapter _indexPartnerTableAdapter;
  9562. private ManagerTableAdapter _managerTableAdapter;
  9563. private PartnerTableAdapter _partnerTableAdapter;
  9564. private ProductPartnerTableAdapter _productPartnerTableAdapter;
  9565. private ProductsTableAdapter _productsTableAdapter;
  9566. private RegionTableAdapter _regionTableAdapter;
  9567. private StreetTableAdapter _streetTableAdapter;
  9568. private TypeMaterialTableAdapter _typeMaterialTableAdapter;
  9569. private TypePartnerTableAdapter _typePartnerTableAdapter;
  9570. private TypeProductTableAdapter _typeProductTableAdapter;
  9571. private bool _backupDataSetBeforeUpdate;
  9572. private global::System.Data.IDbConnection _connection;
  9573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9575. public UpdateOrderOption UpdateOrder {
  9576. get {
  9577. return this._updateOrder;
  9578. }
  9579. set {
  9580. this._updateOrder = value;
  9581. }
  9582. }
  9583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9585. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9586. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9587. "a", "System.Drawing.Design.UITypeEditor")]
  9588. public CityTableAdapter CityTableAdapter {
  9589. get {
  9590. return this._cityTableAdapter;
  9591. }
  9592. set {
  9593. this._cityTableAdapter = value;
  9594. }
  9595. }
  9596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9598. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9599. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9600. "a", "System.Drawing.Design.UITypeEditor")]
  9601. public IndexPartnerTableAdapter IndexPartnerTableAdapter {
  9602. get {
  9603. return this._indexPartnerTableAdapter;
  9604. }
  9605. set {
  9606. this._indexPartnerTableAdapter = value;
  9607. }
  9608. }
  9609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9611. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9612. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9613. "a", "System.Drawing.Design.UITypeEditor")]
  9614. public ManagerTableAdapter ManagerTableAdapter {
  9615. get {
  9616. return this._managerTableAdapter;
  9617. }
  9618. set {
  9619. this._managerTableAdapter = value;
  9620. }
  9621. }
  9622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9624. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9625. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9626. "a", "System.Drawing.Design.UITypeEditor")]
  9627. public PartnerTableAdapter PartnerTableAdapter {
  9628. get {
  9629. return this._partnerTableAdapter;
  9630. }
  9631. set {
  9632. this._partnerTableAdapter = value;
  9633. }
  9634. }
  9635. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9636. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9637. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9638. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9639. "a", "System.Drawing.Design.UITypeEditor")]
  9640. public ProductPartnerTableAdapter ProductPartnerTableAdapter {
  9641. get {
  9642. return this._productPartnerTableAdapter;
  9643. }
  9644. set {
  9645. this._productPartnerTableAdapter = value;
  9646. }
  9647. }
  9648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9649. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9650. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9651. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9652. "a", "System.Drawing.Design.UITypeEditor")]
  9653. public ProductsTableAdapter ProductsTableAdapter {
  9654. get {
  9655. return this._productsTableAdapter;
  9656. }
  9657. set {
  9658. this._productsTableAdapter = value;
  9659. }
  9660. }
  9661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9663. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9664. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9665. "a", "System.Drawing.Design.UITypeEditor")]
  9666. public RegionTableAdapter RegionTableAdapter {
  9667. get {
  9668. return this._regionTableAdapter;
  9669. }
  9670. set {
  9671. this._regionTableAdapter = value;
  9672. }
  9673. }
  9674. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9676. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9677. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9678. "a", "System.Drawing.Design.UITypeEditor")]
  9679. public StreetTableAdapter StreetTableAdapter {
  9680. get {
  9681. return this._streetTableAdapter;
  9682. }
  9683. set {
  9684. this._streetTableAdapter = value;
  9685. }
  9686. }
  9687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9689. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9690. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9691. "a", "System.Drawing.Design.UITypeEditor")]
  9692. public TypeMaterialTableAdapter TypeMaterialTableAdapter {
  9693. get {
  9694. return this._typeMaterialTableAdapter;
  9695. }
  9696. set {
  9697. this._typeMaterialTableAdapter = value;
  9698. }
  9699. }
  9700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9702. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9703. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9704. "a", "System.Drawing.Design.UITypeEditor")]
  9705. public TypePartnerTableAdapter TypePartnerTableAdapter {
  9706. get {
  9707. return this._typePartnerTableAdapter;
  9708. }
  9709. set {
  9710. this._typePartnerTableAdapter = value;
  9711. }
  9712. }
  9713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9715. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9716. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9717. "a", "System.Drawing.Design.UITypeEditor")]
  9718. public TypeProductTableAdapter TypeProductTableAdapter {
  9719. get {
  9720. return this._typeProductTableAdapter;
  9721. }
  9722. set {
  9723. this._typeProductTableAdapter = value;
  9724. }
  9725. }
  9726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9728. public bool BackupDataSetBeforeUpdate {
  9729. get {
  9730. return this._backupDataSetBeforeUpdate;
  9731. }
  9732. set {
  9733. this._backupDataSetBeforeUpdate = value;
  9734. }
  9735. }
  9736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9738. [global::System.ComponentModel.Browsable(false)]
  9739. public global::System.Data.IDbConnection Connection {
  9740. get {
  9741. if ((this._connection != null)) {
  9742. return this._connection;
  9743. }
  9744. if (((this._cityTableAdapter != null)
  9745. && (this._cityTableAdapter.Connection != null))) {
  9746. return this._cityTableAdapter.Connection;
  9747. }
  9748. if (((this._indexPartnerTableAdapter != null)
  9749. && (this._indexPartnerTableAdapter.Connection != null))) {
  9750. return this._indexPartnerTableAdapter.Connection;
  9751. }
  9752. if (((this._managerTableAdapter != null)
  9753. && (this._managerTableAdapter.Connection != null))) {
  9754. return this._managerTableAdapter.Connection;
  9755. }
  9756. if (((this._partnerTableAdapter != null)
  9757. && (this._partnerTableAdapter.Connection != null))) {
  9758. return this._partnerTableAdapter.Connection;
  9759. }
  9760. if (((this._productPartnerTableAdapter != null)
  9761. && (this._productPartnerTableAdapter.Connection != null))) {
  9762. return this._productPartnerTableAdapter.Connection;
  9763. }
  9764. if (((this._productsTableAdapter != null)
  9765. && (this._productsTableAdapter.Connection != null))) {
  9766. return this._productsTableAdapter.Connection;
  9767. }
  9768. if (((this._regionTableAdapter != null)
  9769. && (this._regionTableAdapter.Connection != null))) {
  9770. return this._regionTableAdapter.Connection;
  9771. }
  9772. if (((this._streetTableAdapter != null)
  9773. && (this._streetTableAdapter.Connection != null))) {
  9774. return this._streetTableAdapter.Connection;
  9775. }
  9776. if (((this._typeMaterialTableAdapter != null)
  9777. && (this._typeMaterialTableAdapter.Connection != null))) {
  9778. return this._typeMaterialTableAdapter.Connection;
  9779. }
  9780. if (((this._typePartnerTableAdapter != null)
  9781. && (this._typePartnerTableAdapter.Connection != null))) {
  9782. return this._typePartnerTableAdapter.Connection;
  9783. }
  9784. if (((this._typeProductTableAdapter != null)
  9785. && (this._typeProductTableAdapter.Connection != null))) {
  9786. return this._typeProductTableAdapter.Connection;
  9787. }
  9788. return null;
  9789. }
  9790. set {
  9791. this._connection = value;
  9792. }
  9793. }
  9794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9796. [global::System.ComponentModel.Browsable(false)]
  9797. public int TableAdapterInstanceCount {
  9798. get {
  9799. int count = 0;
  9800. if ((this._cityTableAdapter != null)) {
  9801. count = (count + 1);
  9802. }
  9803. if ((this._indexPartnerTableAdapter != null)) {
  9804. count = (count + 1);
  9805. }
  9806. if ((this._managerTableAdapter != null)) {
  9807. count = (count + 1);
  9808. }
  9809. if ((this._partnerTableAdapter != null)) {
  9810. count = (count + 1);
  9811. }
  9812. if ((this._productPartnerTableAdapter != null)) {
  9813. count = (count + 1);
  9814. }
  9815. if ((this._productsTableAdapter != null)) {
  9816. count = (count + 1);
  9817. }
  9818. if ((this._regionTableAdapter != null)) {
  9819. count = (count + 1);
  9820. }
  9821. if ((this._streetTableAdapter != null)) {
  9822. count = (count + 1);
  9823. }
  9824. if ((this._typeMaterialTableAdapter != null)) {
  9825. count = (count + 1);
  9826. }
  9827. if ((this._typePartnerTableAdapter != null)) {
  9828. count = (count + 1);
  9829. }
  9830. if ((this._typeProductTableAdapter != null)) {
  9831. count = (count + 1);
  9832. }
  9833. return count;
  9834. }
  9835. }
  9836. /// <summary>
  9837. ///Update rows in top-down order.
  9838. ///</summary>
  9839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9841. private int UpdateUpdatedRows(dbAlphapolAGDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  9842. int result = 0;
  9843. if ((this._cityTableAdapter != null)) {
  9844. global::System.Data.DataRow[] updatedRows = dataSet.City.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9845. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9846. if (((updatedRows != null)
  9847. && (0 < updatedRows.Length))) {
  9848. result = (result + this._cityTableAdapter.Update(updatedRows));
  9849. allChangedRows.AddRange(updatedRows);
  9850. }
  9851. }
  9852. if ((this._indexPartnerTableAdapter != null)) {
  9853. global::System.Data.DataRow[] updatedRows = dataSet.IndexPartner.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9854. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9855. if (((updatedRows != null)
  9856. && (0 < updatedRows.Length))) {
  9857. result = (result + this._indexPartnerTableAdapter.Update(updatedRows));
  9858. allChangedRows.AddRange(updatedRows);
  9859. }
  9860. }
  9861. if ((this._regionTableAdapter != null)) {
  9862. global::System.Data.DataRow[] updatedRows = dataSet.Region.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9863. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9864. if (((updatedRows != null)
  9865. && (0 < updatedRows.Length))) {
  9866. result = (result + this._regionTableAdapter.Update(updatedRows));
  9867. allChangedRows.AddRange(updatedRows);
  9868. }
  9869. }
  9870. if ((this._streetTableAdapter != null)) {
  9871. global::System.Data.DataRow[] updatedRows = dataSet.Street.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9872. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9873. if (((updatedRows != null)
  9874. && (0 < updatedRows.Length))) {
  9875. result = (result + this._streetTableAdapter.Update(updatedRows));
  9876. allChangedRows.AddRange(updatedRows);
  9877. }
  9878. }
  9879. if ((this._typePartnerTableAdapter != null)) {
  9880. global::System.Data.DataRow[] updatedRows = dataSet.TypePartner.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9881. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9882. if (((updatedRows != null)
  9883. && (0 < updatedRows.Length))) {
  9884. result = (result + this._typePartnerTableAdapter.Update(updatedRows));
  9885. allChangedRows.AddRange(updatedRows);
  9886. }
  9887. }
  9888. if ((this._typeProductTableAdapter != null)) {
  9889. global::System.Data.DataRow[] updatedRows = dataSet.TypeProduct.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9890. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9891. if (((updatedRows != null)
  9892. && (0 < updatedRows.Length))) {
  9893. result = (result + this._typeProductTableAdapter.Update(updatedRows));
  9894. allChangedRows.AddRange(updatedRows);
  9895. }
  9896. }
  9897. if ((this._partnerTableAdapter != null)) {
  9898. global::System.Data.DataRow[] updatedRows = dataSet.Partner.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9899. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9900. if (((updatedRows != null)
  9901. && (0 < updatedRows.Length))) {
  9902. result = (result + this._partnerTableAdapter.Update(updatedRows));
  9903. allChangedRows.AddRange(updatedRows);
  9904. }
  9905. }
  9906. if ((this._productsTableAdapter != null)) {
  9907. global::System.Data.DataRow[] updatedRows = dataSet.Products.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9908. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9909. if (((updatedRows != null)
  9910. && (0 < updatedRows.Length))) {
  9911. result = (result + this._productsTableAdapter.Update(updatedRows));
  9912. allChangedRows.AddRange(updatedRows);
  9913. }
  9914. }
  9915. if ((this._managerTableAdapter != null)) {
  9916. global::System.Data.DataRow[] updatedRows = dataSet.Manager.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9917. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9918. if (((updatedRows != null)
  9919. && (0 < updatedRows.Length))) {
  9920. result = (result + this._managerTableAdapter.Update(updatedRows));
  9921. allChangedRows.AddRange(updatedRows);
  9922. }
  9923. }
  9924. if ((this._productPartnerTableAdapter != null)) {
  9925. global::System.Data.DataRow[] updatedRows = dataSet.ProductPartner.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9926. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9927. if (((updatedRows != null)
  9928. && (0 < updatedRows.Length))) {
  9929. result = (result + this._productPartnerTableAdapter.Update(updatedRows));
  9930. allChangedRows.AddRange(updatedRows);
  9931. }
  9932. }
  9933. if ((this._typeMaterialTableAdapter != null)) {
  9934. global::System.Data.DataRow[] updatedRows = dataSet.TypeMaterial.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9935. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9936. if (((updatedRows != null)
  9937. && (0 < updatedRows.Length))) {
  9938. result = (result + this._typeMaterialTableAdapter.Update(updatedRows));
  9939. allChangedRows.AddRange(updatedRows);
  9940. }
  9941. }
  9942. return result;
  9943. }
  9944. /// <summary>
  9945. ///Insert rows in top-down order.
  9946. ///</summary>
  9947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9949. private int UpdateInsertedRows(dbAlphapolAGDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  9950. int result = 0;
  9951. if ((this._cityTableAdapter != null)) {
  9952. global::System.Data.DataRow[] addedRows = dataSet.City.Select(null, null, global::System.Data.DataViewRowState.Added);
  9953. if (((addedRows != null)
  9954. && (0 < addedRows.Length))) {
  9955. result = (result + this._cityTableAdapter.Update(addedRows));
  9956. allAddedRows.AddRange(addedRows);
  9957. }
  9958. }
  9959. if ((this._indexPartnerTableAdapter != null)) {
  9960. global::System.Data.DataRow[] addedRows = dataSet.IndexPartner.Select(null, null, global::System.Data.DataViewRowState.Added);
  9961. if (((addedRows != null)
  9962. && (0 < addedRows.Length))) {
  9963. result = (result + this._indexPartnerTableAdapter.Update(addedRows));
  9964. allAddedRows.AddRange(addedRows);
  9965. }
  9966. }
  9967. if ((this._regionTableAdapter != null)) {
  9968. global::System.Data.DataRow[] addedRows = dataSet.Region.Select(null, null, global::System.Data.DataViewRowState.Added);
  9969. if (((addedRows != null)
  9970. && (0 < addedRows.Length))) {
  9971. result = (result + this._regionTableAdapter.Update(addedRows));
  9972. allAddedRows.AddRange(addedRows);
  9973. }
  9974. }
  9975. if ((this._streetTableAdapter != null)) {
  9976. global::System.Data.DataRow[] addedRows = dataSet.Street.Select(null, null, global::System.Data.DataViewRowState.Added);
  9977. if (((addedRows != null)
  9978. && (0 < addedRows.Length))) {
  9979. result = (result + this._streetTableAdapter.Update(addedRows));
  9980. allAddedRows.AddRange(addedRows);
  9981. }
  9982. }
  9983. if ((this._typePartnerTableAdapter != null)) {
  9984. global::System.Data.DataRow[] addedRows = dataSet.TypePartner.Select(null, null, global::System.Data.DataViewRowState.Added);
  9985. if (((addedRows != null)
  9986. && (0 < addedRows.Length))) {
  9987. result = (result + this._typePartnerTableAdapter.Update(addedRows));
  9988. allAddedRows.AddRange(addedRows);
  9989. }
  9990. }
  9991. if ((this._typeProductTableAdapter != null)) {
  9992. global::System.Data.DataRow[] addedRows = dataSet.TypeProduct.Select(null, null, global::System.Data.DataViewRowState.Added);
  9993. if (((addedRows != null)
  9994. && (0 < addedRows.Length))) {
  9995. result = (result + this._typeProductTableAdapter.Update(addedRows));
  9996. allAddedRows.AddRange(addedRows);
  9997. }
  9998. }
  9999. if ((this._partnerTableAdapter != null)) {
  10000. global::System.Data.DataRow[] addedRows = dataSet.Partner.Select(null, null, global::System.Data.DataViewRowState.Added);
  10001. if (((addedRows != null)
  10002. && (0 < addedRows.Length))) {
  10003. result = (result + this._partnerTableAdapter.Update(addedRows));
  10004. allAddedRows.AddRange(addedRows);
  10005. }
  10006. }
  10007. if ((this._productsTableAdapter != null)) {
  10008. global::System.Data.DataRow[] addedRows = dataSet.Products.Select(null, null, global::System.Data.DataViewRowState.Added);
  10009. if (((addedRows != null)
  10010. && (0 < addedRows.Length))) {
  10011. result = (result + this._productsTableAdapter.Update(addedRows));
  10012. allAddedRows.AddRange(addedRows);
  10013. }
  10014. }
  10015. if ((this._managerTableAdapter != null)) {
  10016. global::System.Data.DataRow[] addedRows = dataSet.Manager.Select(null, null, global::System.Data.DataViewRowState.Added);
  10017. if (((addedRows != null)
  10018. && (0 < addedRows.Length))) {
  10019. result = (result + this._managerTableAdapter.Update(addedRows));
  10020. allAddedRows.AddRange(addedRows);
  10021. }
  10022. }
  10023. if ((this._productPartnerTableAdapter != null)) {
  10024. global::System.Data.DataRow[] addedRows = dataSet.ProductPartner.Select(null, null, global::System.Data.DataViewRowState.Added);
  10025. if (((addedRows != null)
  10026. && (0 < addedRows.Length))) {
  10027. result = (result + this._productPartnerTableAdapter.Update(addedRows));
  10028. allAddedRows.AddRange(addedRows);
  10029. }
  10030. }
  10031. if ((this._typeMaterialTableAdapter != null)) {
  10032. global::System.Data.DataRow[] addedRows = dataSet.TypeMaterial.Select(null, null, global::System.Data.DataViewRowState.Added);
  10033. if (((addedRows != null)
  10034. && (0 < addedRows.Length))) {
  10035. result = (result + this._typeMaterialTableAdapter.Update(addedRows));
  10036. allAddedRows.AddRange(addedRows);
  10037. }
  10038. }
  10039. return result;
  10040. }
  10041. /// <summary>
  10042. ///Delete rows in bottom-up order.
  10043. ///</summary>
  10044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10046. private int UpdateDeletedRows(dbAlphapolAGDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  10047. int result = 0;
  10048. if ((this._typeMaterialTableAdapter != null)) {
  10049. global::System.Data.DataRow[] deletedRows = dataSet.TypeMaterial.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10050. if (((deletedRows != null)
  10051. && (0 < deletedRows.Length))) {
  10052. result = (result + this._typeMaterialTableAdapter.Update(deletedRows));
  10053. allChangedRows.AddRange(deletedRows);
  10054. }
  10055. }
  10056. if ((this._productPartnerTableAdapter != null)) {
  10057. global::System.Data.DataRow[] deletedRows = dataSet.ProductPartner.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10058. if (((deletedRows != null)
  10059. && (0 < deletedRows.Length))) {
  10060. result = (result + this._productPartnerTableAdapter.Update(deletedRows));
  10061. allChangedRows.AddRange(deletedRows);
  10062. }
  10063. }
  10064. if ((this._managerTableAdapter != null)) {
  10065. global::System.Data.DataRow[] deletedRows = dataSet.Manager.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10066. if (((deletedRows != null)
  10067. && (0 < deletedRows.Length))) {
  10068. result = (result + this._managerTableAdapter.Update(deletedRows));
  10069. allChangedRows.AddRange(deletedRows);
  10070. }
  10071. }
  10072. if ((this._productsTableAdapter != null)) {
  10073. global::System.Data.DataRow[] deletedRows = dataSet.Products.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10074. if (((deletedRows != null)
  10075. && (0 < deletedRows.Length))) {
  10076. result = (result + this._productsTableAdapter.Update(deletedRows));
  10077. allChangedRows.AddRange(deletedRows);
  10078. }
  10079. }
  10080. if ((this._partnerTableAdapter != null)) {
  10081. global::System.Data.DataRow[] deletedRows = dataSet.Partner.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10082. if (((deletedRows != null)
  10083. && (0 < deletedRows.Length))) {
  10084. result = (result + this._partnerTableAdapter.Update(deletedRows));
  10085. allChangedRows.AddRange(deletedRows);
  10086. }
  10087. }
  10088. if ((this._typeProductTableAdapter != null)) {
  10089. global::System.Data.DataRow[] deletedRows = dataSet.TypeProduct.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10090. if (((deletedRows != null)
  10091. && (0 < deletedRows.Length))) {
  10092. result = (result + this._typeProductTableAdapter.Update(deletedRows));
  10093. allChangedRows.AddRange(deletedRows);
  10094. }
  10095. }
  10096. if ((this._typePartnerTableAdapter != null)) {
  10097. global::System.Data.DataRow[] deletedRows = dataSet.TypePartner.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10098. if (((deletedRows != null)
  10099. && (0 < deletedRows.Length))) {
  10100. result = (result + this._typePartnerTableAdapter.Update(deletedRows));
  10101. allChangedRows.AddRange(deletedRows);
  10102. }
  10103. }
  10104. if ((this._streetTableAdapter != null)) {
  10105. global::System.Data.DataRow[] deletedRows = dataSet.Street.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10106. if (((deletedRows != null)
  10107. && (0 < deletedRows.Length))) {
  10108. result = (result + this._streetTableAdapter.Update(deletedRows));
  10109. allChangedRows.AddRange(deletedRows);
  10110. }
  10111. }
  10112. if ((this._regionTableAdapter != null)) {
  10113. global::System.Data.DataRow[] deletedRows = dataSet.Region.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10114. if (((deletedRows != null)
  10115. && (0 < deletedRows.Length))) {
  10116. result = (result + this._regionTableAdapter.Update(deletedRows));
  10117. allChangedRows.AddRange(deletedRows);
  10118. }
  10119. }
  10120. if ((this._indexPartnerTableAdapter != null)) {
  10121. global::System.Data.DataRow[] deletedRows = dataSet.IndexPartner.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10122. if (((deletedRows != null)
  10123. && (0 < deletedRows.Length))) {
  10124. result = (result + this._indexPartnerTableAdapter.Update(deletedRows));
  10125. allChangedRows.AddRange(deletedRows);
  10126. }
  10127. }
  10128. if ((this._cityTableAdapter != null)) {
  10129. global::System.Data.DataRow[] deletedRows = dataSet.City.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10130. if (((deletedRows != null)
  10131. && (0 < deletedRows.Length))) {
  10132. result = (result + this._cityTableAdapter.Update(deletedRows));
  10133. allChangedRows.AddRange(deletedRows);
  10134. }
  10135. }
  10136. return result;
  10137. }
  10138. /// <summary>
  10139. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  10140. ///</summary>
  10141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10143. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  10144. if (((updatedRows == null)
  10145. || (updatedRows.Length < 1))) {
  10146. return updatedRows;
  10147. }
  10148. if (((allAddedRows == null)
  10149. || (allAddedRows.Count < 1))) {
  10150. return updatedRows;
  10151. }
  10152. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  10153. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  10154. global::System.Data.DataRow row = updatedRows[i];
  10155. if ((allAddedRows.Contains(row) == false)) {
  10156. realUpdatedRows.Add(row);
  10157. }
  10158. }
  10159. return realUpdatedRows.ToArray();
  10160. }
  10161. /// <summary>
  10162. ///Update all changes to the dataset.
  10163. ///</summary>
  10164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10166. public virtual int UpdateAll(dbAlphapolAGDataSet dataSet) {
  10167. if ((dataSet == null)) {
  10168. throw new global::System.ArgumentNullException("dataSet");
  10169. }
  10170. if ((dataSet.HasChanges() == false)) {
  10171. return 0;
  10172. }
  10173. if (((this._cityTableAdapter != null)
  10174. && (this.MatchTableAdapterConnection(this._cityTableAdapter.Connection) == false))) {
  10175. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10176. "tring.");
  10177. }
  10178. if (((this._indexPartnerTableAdapter != null)
  10179. && (this.MatchTableAdapterConnection(this._indexPartnerTableAdapter.Connection) == false))) {
  10180. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10181. "tring.");
  10182. }
  10183. if (((this._managerTableAdapter != null)
  10184. && (this.MatchTableAdapterConnection(this._managerTableAdapter.Connection) == false))) {
  10185. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10186. "tring.");
  10187. }
  10188. if (((this._partnerTableAdapter != null)
  10189. && (this.MatchTableAdapterConnection(this._partnerTableAdapter.Connection) == false))) {
  10190. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10191. "tring.");
  10192. }
  10193. if (((this._productPartnerTableAdapter != null)
  10194. && (this.MatchTableAdapterConnection(this._productPartnerTableAdapter.Connection) == false))) {
  10195. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10196. "tring.");
  10197. }
  10198. if (((this._productsTableAdapter != null)
  10199. && (this.MatchTableAdapterConnection(this._productsTableAdapter.Connection) == false))) {
  10200. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10201. "tring.");
  10202. }
  10203. if (((this._regionTableAdapter != null)
  10204. && (this.MatchTableAdapterConnection(this._regionTableAdapter.Connection) == false))) {
  10205. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10206. "tring.");
  10207. }
  10208. if (((this._streetTableAdapter != null)
  10209. && (this.MatchTableAdapterConnection(this._streetTableAdapter.Connection) == false))) {
  10210. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10211. "tring.");
  10212. }
  10213. if (((this._typeMaterialTableAdapter != null)
  10214. && (this.MatchTableAdapterConnection(this._typeMaterialTableAdapter.Connection) == false))) {
  10215. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10216. "tring.");
  10217. }
  10218. if (((this._typePartnerTableAdapter != null)
  10219. && (this.MatchTableAdapterConnection(this._typePartnerTableAdapter.Connection) == false))) {
  10220. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10221. "tring.");
  10222. }
  10223. if (((this._typeProductTableAdapter != null)
  10224. && (this.MatchTableAdapterConnection(this._typeProductTableAdapter.Connection) == false))) {
  10225. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10226. "tring.");
  10227. }
  10228. global::System.Data.IDbConnection workConnection = this.Connection;
  10229. if ((workConnection == null)) {
  10230. throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" +
  10231. "ger TableAdapter property to a valid TableAdapter instance.");
  10232. }
  10233. bool workConnOpened = false;
  10234. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  10235. == global::System.Data.ConnectionState.Broken)) {
  10236. workConnection.Close();
  10237. }
  10238. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  10239. workConnection.Open();
  10240. workConnOpened = true;
  10241. }
  10242. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  10243. if ((workTransaction == null)) {
  10244. throw new global::System.ApplicationException("The transaction cannot begin. The current data connection does not support transa" +
  10245. "ctions or the current state is not allowing the transaction to begin.");
  10246. }
  10247. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  10248. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  10249. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  10250. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  10251. int result = 0;
  10252. global::System.Data.DataSet backupDataSet = null;
  10253. if (this.BackupDataSetBeforeUpdate) {
  10254. backupDataSet = new global::System.Data.DataSet();
  10255. backupDataSet.Merge(dataSet);
  10256. }
  10257. try {
  10258. // ---- Prepare for update -----------
  10259. //
  10260. if ((this._cityTableAdapter != null)) {
  10261. revertConnections.Add(this._cityTableAdapter, this._cityTableAdapter.Connection);
  10262. this._cityTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10263. this._cityTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10264. if (this._cityTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10265. this._cityTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10266. adaptersWithAcceptChangesDuringUpdate.Add(this._cityTableAdapter.Adapter);
  10267. }
  10268. }
  10269. if ((this._indexPartnerTableAdapter != null)) {
  10270. revertConnections.Add(this._indexPartnerTableAdapter, this._indexPartnerTableAdapter.Connection);
  10271. this._indexPartnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10272. this._indexPartnerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10273. if (this._indexPartnerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10274. this._indexPartnerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10275. adaptersWithAcceptChangesDuringUpdate.Add(this._indexPartnerTableAdapter.Adapter);
  10276. }
  10277. }
  10278. if ((this._managerTableAdapter != null)) {
  10279. revertConnections.Add(this._managerTableAdapter, this._managerTableAdapter.Connection);
  10280. this._managerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10281. this._managerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10282. if (this._managerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10283. this._managerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10284. adaptersWithAcceptChangesDuringUpdate.Add(this._managerTableAdapter.Adapter);
  10285. }
  10286. }
  10287. if ((this._partnerTableAdapter != null)) {
  10288. revertConnections.Add(this._partnerTableAdapter, this._partnerTableAdapter.Connection);
  10289. this._partnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10290. this._partnerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10291. if (this._partnerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10292. this._partnerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10293. adaptersWithAcceptChangesDuringUpdate.Add(this._partnerTableAdapter.Adapter);
  10294. }
  10295. }
  10296. if ((this._productPartnerTableAdapter != null)) {
  10297. revertConnections.Add(this._productPartnerTableAdapter, this._productPartnerTableAdapter.Connection);
  10298. this._productPartnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10299. this._productPartnerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10300. if (this._productPartnerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10301. this._productPartnerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10302. adaptersWithAcceptChangesDuringUpdate.Add(this._productPartnerTableAdapter.Adapter);
  10303. }
  10304. }
  10305. if ((this._productsTableAdapter != null)) {
  10306. revertConnections.Add(this._productsTableAdapter, this._productsTableAdapter.Connection);
  10307. this._productsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10308. this._productsTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10309. if (this._productsTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10310. this._productsTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10311. adaptersWithAcceptChangesDuringUpdate.Add(this._productsTableAdapter.Adapter);
  10312. }
  10313. }
  10314. if ((this._regionTableAdapter != null)) {
  10315. revertConnections.Add(this._regionTableAdapter, this._regionTableAdapter.Connection);
  10316. this._regionTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10317. this._regionTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10318. if (this._regionTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10319. this._regionTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10320. adaptersWithAcceptChangesDuringUpdate.Add(this._regionTableAdapter.Adapter);
  10321. }
  10322. }
  10323. if ((this._streetTableAdapter != null)) {
  10324. revertConnections.Add(this._streetTableAdapter, this._streetTableAdapter.Connection);
  10325. this._streetTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10326. this._streetTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10327. if (this._streetTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10328. this._streetTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10329. adaptersWithAcceptChangesDuringUpdate.Add(this._streetTableAdapter.Adapter);
  10330. }
  10331. }
  10332. if ((this._typeMaterialTableAdapter != null)) {
  10333. revertConnections.Add(this._typeMaterialTableAdapter, this._typeMaterialTableAdapter.Connection);
  10334. this._typeMaterialTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10335. this._typeMaterialTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10336. if (this._typeMaterialTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10337. this._typeMaterialTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10338. adaptersWithAcceptChangesDuringUpdate.Add(this._typeMaterialTableAdapter.Adapter);
  10339. }
  10340. }
  10341. if ((this._typePartnerTableAdapter != null)) {
  10342. revertConnections.Add(this._typePartnerTableAdapter, this._typePartnerTableAdapter.Connection);
  10343. this._typePartnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10344. this._typePartnerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10345. if (this._typePartnerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10346. this._typePartnerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10347. adaptersWithAcceptChangesDuringUpdate.Add(this._typePartnerTableAdapter.Adapter);
  10348. }
  10349. }
  10350. if ((this._typeProductTableAdapter != null)) {
  10351. revertConnections.Add(this._typeProductTableAdapter, this._typeProductTableAdapter.Connection);
  10352. this._typeProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10353. this._typeProductTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10354. if (this._typeProductTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10355. this._typeProductTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10356. adaptersWithAcceptChangesDuringUpdate.Add(this._typeProductTableAdapter.Adapter);
  10357. }
  10358. }
  10359. //
  10360. //---- Perform updates -----------
  10361. //
  10362. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  10363. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  10364. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  10365. }
  10366. else {
  10367. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  10368. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  10369. }
  10370. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  10371. //
  10372. //---- Commit updates -----------
  10373. //
  10374. workTransaction.Commit();
  10375. if ((0 < allAddedRows.Count)) {
  10376. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  10377. allAddedRows.CopyTo(rows);
  10378. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  10379. global::System.Data.DataRow row = rows[i];
  10380. row.AcceptChanges();
  10381. }
  10382. }
  10383. if ((0 < allChangedRows.Count)) {
  10384. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  10385. allChangedRows.CopyTo(rows);
  10386. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  10387. global::System.Data.DataRow row = rows[i];
  10388. row.AcceptChanges();
  10389. }
  10390. }
  10391. }
  10392. catch (global::System.Exception ex) {
  10393. workTransaction.Rollback();
  10394. // ---- Restore the dataset -----------
  10395. if (this.BackupDataSetBeforeUpdate) {
  10396. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  10397. dataSet.Clear();
  10398. dataSet.Merge(backupDataSet);
  10399. }
  10400. else {
  10401. if ((0 < allAddedRows.Count)) {
  10402. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  10403. allAddedRows.CopyTo(rows);
  10404. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  10405. global::System.Data.DataRow row = rows[i];
  10406. row.AcceptChanges();
  10407. row.SetAdded();
  10408. }
  10409. }
  10410. }
  10411. throw ex;
  10412. }
  10413. finally {
  10414. if (workConnOpened) {
  10415. workConnection.Close();
  10416. }
  10417. if ((this._cityTableAdapter != null)) {
  10418. this._cityTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._cityTableAdapter]));
  10419. this._cityTableAdapter.Transaction = null;
  10420. }
  10421. if ((this._indexPartnerTableAdapter != null)) {
  10422. this._indexPartnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._indexPartnerTableAdapter]));
  10423. this._indexPartnerTableAdapter.Transaction = null;
  10424. }
  10425. if ((this._managerTableAdapter != null)) {
  10426. this._managerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._managerTableAdapter]));
  10427. this._managerTableAdapter.Transaction = null;
  10428. }
  10429. if ((this._partnerTableAdapter != null)) {
  10430. this._partnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._partnerTableAdapter]));
  10431. this._partnerTableAdapter.Transaction = null;
  10432. }
  10433. if ((this._productPartnerTableAdapter != null)) {
  10434. this._productPartnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productPartnerTableAdapter]));
  10435. this._productPartnerTableAdapter.Transaction = null;
  10436. }
  10437. if ((this._productsTableAdapter != null)) {
  10438. this._productsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productsTableAdapter]));
  10439. this._productsTableAdapter.Transaction = null;
  10440. }
  10441. if ((this._regionTableAdapter != null)) {
  10442. this._regionTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._regionTableAdapter]));
  10443. this._regionTableAdapter.Transaction = null;
  10444. }
  10445. if ((this._streetTableAdapter != null)) {
  10446. this._streetTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._streetTableAdapter]));
  10447. this._streetTableAdapter.Transaction = null;
  10448. }
  10449. if ((this._typeMaterialTableAdapter != null)) {
  10450. this._typeMaterialTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._typeMaterialTableAdapter]));
  10451. this._typeMaterialTableAdapter.Transaction = null;
  10452. }
  10453. if ((this._typePartnerTableAdapter != null)) {
  10454. this._typePartnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._typePartnerTableAdapter]));
  10455. this._typePartnerTableAdapter.Transaction = null;
  10456. }
  10457. if ((this._typeProductTableAdapter != null)) {
  10458. this._typeProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._typeProductTableAdapter]));
  10459. this._typeProductTableAdapter.Transaction = null;
  10460. }
  10461. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  10462. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  10463. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  10464. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  10465. global::System.Data.Common.DataAdapter adapter = adapters[i];
  10466. adapter.AcceptChangesDuringUpdate = true;
  10467. }
  10468. }
  10469. }
  10470. return result;
  10471. }
  10472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10474. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  10475. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  10476. }
  10477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10479. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  10480. if ((this._connection != null)) {
  10481. return true;
  10482. }
  10483. if (((this.Connection == null)
  10484. || (inputConnection == null))) {
  10485. return true;
  10486. }
  10487. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  10488. return true;
  10489. }
  10490. return false;
  10491. }
  10492. /// <summary>
  10493. ///Update Order Option
  10494. ///</summary>
  10495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10496. public enum UpdateOrderOption {
  10497. InsertUpdateDelete = 0,
  10498. UpdateInsertDelete = 1,
  10499. }
  10500. /// <summary>
  10501. ///Used to sort self-referenced table's rows
  10502. ///</summary>
  10503. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10504. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  10505. private global::System.Data.DataRelation _relation;
  10506. private int _childFirst;
  10507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10509. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  10510. this._relation = relation;
  10511. if (childFirst) {
  10512. this._childFirst = -1;
  10513. }
  10514. else {
  10515. this._childFirst = 1;
  10516. }
  10517. }
  10518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10520. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  10521. global::System.Diagnostics.Debug.Assert((row != null));
  10522. global::System.Data.DataRow root = row;
  10523. distance = 0;
  10524. 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>();
  10525. traversedRows[row] = row;
  10526. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  10527. for (
  10528. ; ((parent != null)
  10529. && (traversedRows.ContainsKey(parent) == false));
  10530. ) {
  10531. distance = (distance + 1);
  10532. root = parent;
  10533. traversedRows[parent] = parent;
  10534. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  10535. }
  10536. if ((distance == 0)) {
  10537. traversedRows.Clear();
  10538. traversedRows[row] = row;
  10539. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  10540. for (
  10541. ; ((parent != null)
  10542. && (traversedRows.ContainsKey(parent) == false));
  10543. ) {
  10544. distance = (distance + 1);
  10545. root = parent;
  10546. traversedRows[parent] = parent;
  10547. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  10548. }
  10549. }
  10550. return root;
  10551. }
  10552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10554. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  10555. if (object.ReferenceEquals(row1, row2)) {
  10556. return 0;
  10557. }
  10558. if ((row1 == null)) {
  10559. return -1;
  10560. }
  10561. if ((row2 == null)) {
  10562. return 1;
  10563. }
  10564. int distance1 = 0;
  10565. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  10566. int distance2 = 0;
  10567. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  10568. if (object.ReferenceEquals(root1, root2)) {
  10569. return (this._childFirst * distance1.CompareTo(distance2));
  10570. }
  10571. else {
  10572. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  10573. && (root2.Table != null)));
  10574. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  10575. return -1;
  10576. }
  10577. else {
  10578. return 1;
  10579. }
  10580. }
  10581. }
  10582. }
  10583. }
  10584. }
  10585. #pragma warning restore 1591