AlfafloorGDVDataSet.Designer.cs 702 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598
  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("AlfafloorGDVDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class AlfafloorGDVDataSet : global::System.Data.DataSet {
  22. private CityDataTable tableCity;
  23. private ManagerDataTable tableManager;
  24. private PartnerDataTable tablePartner;
  25. private PartnerProductsDataTable tablePartnerProducts;
  26. private PostCodeDataTable tablePostCode;
  27. private ProductDataTable tableProduct;
  28. private ProductTypeDataTable tableProductType;
  29. private RegionDataTable tableRegion;
  30. private StreetDataTable tableStreet;
  31. private TypeMaterialDataTable tableTypeMaterial;
  32. private TypePartnerDataTable tableTypePartner;
  33. private global::System.Data.DataRelation relationFK_Partner_City;
  34. private global::System.Data.DataRelation relationFK_Partner_PostCode;
  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_PartnerProducts_Partner;
  39. private global::System.Data.DataRelation relationFK_PartnerProducts_Product;
  40. private global::System.Data.DataRelation relationFK_Product_ProductType;
  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 AlfafloorGDVDataSet() {
  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 AlfafloorGDVDataSet(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["Manager"] != null)) {
  71. base.Tables.Add(new ManagerDataTable(ds.Tables["Manager"]));
  72. }
  73. if ((ds.Tables["Partner"] != null)) {
  74. base.Tables.Add(new PartnerDataTable(ds.Tables["Partner"]));
  75. }
  76. if ((ds.Tables["PartnerProducts"] != null)) {
  77. base.Tables.Add(new PartnerProductsDataTable(ds.Tables["PartnerProducts"]));
  78. }
  79. if ((ds.Tables["PostCode"] != null)) {
  80. base.Tables.Add(new PostCodeDataTable(ds.Tables["PostCode"]));
  81. }
  82. if ((ds.Tables["Product"] != null)) {
  83. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  84. }
  85. if ((ds.Tables["ProductType"] != null)) {
  86. base.Tables.Add(new ProductTypeDataTable(ds.Tables["ProductType"]));
  87. }
  88. if ((ds.Tables["Region"] != null)) {
  89. base.Tables.Add(new RegionDataTable(ds.Tables["Region"]));
  90. }
  91. if ((ds.Tables["Street"] != null)) {
  92. base.Tables.Add(new StreetDataTable(ds.Tables["Street"]));
  93. }
  94. if ((ds.Tables["TypeMaterial"] != null)) {
  95. base.Tables.Add(new TypeMaterialDataTable(ds.Tables["TypeMaterial"]));
  96. }
  97. if ((ds.Tables["TypePartner"] != null)) {
  98. base.Tables.Add(new TypePartnerDataTable(ds.Tables["TypePartner"]));
  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 ManagerDataTable Manager {
  131. get {
  132. return this.tableManager;
  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 PartnerDataTable Partner {
  140. get {
  141. return this.tablePartner;
  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 PartnerProductsDataTable PartnerProducts {
  149. get {
  150. return this.tablePartnerProducts;
  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 PostCodeDataTable PostCode {
  158. get {
  159. return this.tablePostCode;
  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 ProductDataTable Product {
  167. get {
  168. return this.tableProduct;
  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 ProductTypeDataTable ProductType {
  176. get {
  177. return this.tableProductType;
  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 RegionDataTable Region {
  185. get {
  186. return this.tableRegion;
  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 StreetDataTable Street {
  194. get {
  195. return this.tableStreet;
  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 TypeMaterialDataTable TypeMaterial {
  203. get {
  204. return this.tableTypeMaterial;
  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 TypePartnerDataTable TypePartner {
  212. get {
  213. return this.tableTypePartner;
  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. AlfafloorGDVDataSet cln = ((AlfafloorGDVDataSet)(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["Manager"] != null)) {
  280. base.Tables.Add(new ManagerDataTable(ds.Tables["Manager"]));
  281. }
  282. if ((ds.Tables["Partner"] != null)) {
  283. base.Tables.Add(new PartnerDataTable(ds.Tables["Partner"]));
  284. }
  285. if ((ds.Tables["PartnerProducts"] != null)) {
  286. base.Tables.Add(new PartnerProductsDataTable(ds.Tables["PartnerProducts"]));
  287. }
  288. if ((ds.Tables["PostCode"] != null)) {
  289. base.Tables.Add(new PostCodeDataTable(ds.Tables["PostCode"]));
  290. }
  291. if ((ds.Tables["Product"] != null)) {
  292. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  293. }
  294. if ((ds.Tables["ProductType"] != null)) {
  295. base.Tables.Add(new ProductTypeDataTable(ds.Tables["ProductType"]));
  296. }
  297. if ((ds.Tables["Region"] != null)) {
  298. base.Tables.Add(new RegionDataTable(ds.Tables["Region"]));
  299. }
  300. if ((ds.Tables["Street"] != null)) {
  301. base.Tables.Add(new StreetDataTable(ds.Tables["Street"]));
  302. }
  303. if ((ds.Tables["TypeMaterial"] != null)) {
  304. base.Tables.Add(new TypeMaterialDataTable(ds.Tables["TypeMaterial"]));
  305. }
  306. if ((ds.Tables["TypePartner"] != null)) {
  307. base.Tables.Add(new TypePartnerDataTable(ds.Tables["TypePartner"]));
  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.tableManager = ((ManagerDataTable)(base.Tables["Manager"]));
  346. if ((initTable == true)) {
  347. if ((this.tableManager != null)) {
  348. this.tableManager.InitVars();
  349. }
  350. }
  351. this.tablePartner = ((PartnerDataTable)(base.Tables["Partner"]));
  352. if ((initTable == true)) {
  353. if ((this.tablePartner != null)) {
  354. this.tablePartner.InitVars();
  355. }
  356. }
  357. this.tablePartnerProducts = ((PartnerProductsDataTable)(base.Tables["PartnerProducts"]));
  358. if ((initTable == true)) {
  359. if ((this.tablePartnerProducts != null)) {
  360. this.tablePartnerProducts.InitVars();
  361. }
  362. }
  363. this.tablePostCode = ((PostCodeDataTable)(base.Tables["PostCode"]));
  364. if ((initTable == true)) {
  365. if ((this.tablePostCode != null)) {
  366. this.tablePostCode.InitVars();
  367. }
  368. }
  369. this.tableProduct = ((ProductDataTable)(base.Tables["Product"]));
  370. if ((initTable == true)) {
  371. if ((this.tableProduct != null)) {
  372. this.tableProduct.InitVars();
  373. }
  374. }
  375. this.tableProductType = ((ProductTypeDataTable)(base.Tables["ProductType"]));
  376. if ((initTable == true)) {
  377. if ((this.tableProductType != null)) {
  378. this.tableProductType.InitVars();
  379. }
  380. }
  381. this.tableRegion = ((RegionDataTable)(base.Tables["Region"]));
  382. if ((initTable == true)) {
  383. if ((this.tableRegion != null)) {
  384. this.tableRegion.InitVars();
  385. }
  386. }
  387. this.tableStreet = ((StreetDataTable)(base.Tables["Street"]));
  388. if ((initTable == true)) {
  389. if ((this.tableStreet != null)) {
  390. this.tableStreet.InitVars();
  391. }
  392. }
  393. this.tableTypeMaterial = ((TypeMaterialDataTable)(base.Tables["TypeMaterial"]));
  394. if ((initTable == true)) {
  395. if ((this.tableTypeMaterial != null)) {
  396. this.tableTypeMaterial.InitVars();
  397. }
  398. }
  399. this.tableTypePartner = ((TypePartnerDataTable)(base.Tables["TypePartner"]));
  400. if ((initTable == true)) {
  401. if ((this.tableTypePartner != null)) {
  402. this.tableTypePartner.InitVars();
  403. }
  404. }
  405. this.relationFK_Partner_City = this.Relations["FK_Partner_City"];
  406. this.relationFK_Partner_PostCode = this.Relations["FK_Partner_PostCode"];
  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_PartnerProducts_Partner = this.Relations["FK_PartnerProducts_Partner"];
  411. this.relationFK_PartnerProducts_Product = this.Relations["FK_PartnerProducts_Product"];
  412. this.relationFK_Product_ProductType = this.Relations["FK_Product_ProductType"];
  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 = "AlfafloorGDVDataSet";
  418. this.Prefix = "";
  419. this.Namespace = "http://tempuri.org/AlfafloorGDVDataSet.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.tableManager = new ManagerDataTable();
  425. base.Tables.Add(this.tableManager);
  426. this.tablePartner = new PartnerDataTable();
  427. base.Tables.Add(this.tablePartner);
  428. this.tablePartnerProducts = new PartnerProductsDataTable();
  429. base.Tables.Add(this.tablePartnerProducts);
  430. this.tablePostCode = new PostCodeDataTable();
  431. base.Tables.Add(this.tablePostCode);
  432. this.tableProduct = new ProductDataTable();
  433. base.Tables.Add(this.tableProduct);
  434. this.tableProductType = new ProductTypeDataTable();
  435. base.Tables.Add(this.tableProductType);
  436. this.tableRegion = new RegionDataTable();
  437. base.Tables.Add(this.tableRegion);
  438. this.tableStreet = new StreetDataTable();
  439. base.Tables.Add(this.tableStreet);
  440. this.tableTypeMaterial = new TypeMaterialDataTable();
  441. base.Tables.Add(this.tableTypeMaterial);
  442. this.tableTypePartner = new TypePartnerDataTable();
  443. base.Tables.Add(this.tableTypePartner);
  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_PostCode = new global::System.Data.DataRelation("FK_Partner_PostCode", new global::System.Data.DataColumn[] {
  449. this.tablePostCode.IDPostCodeColumn}, new global::System.Data.DataColumn[] {
  450. this.tablePartner.IDPostCodeColumn}, false);
  451. this.Relations.Add(this.relationFK_Partner_PostCode);
  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_PartnerProducts_Partner = new global::System.Data.DataRelation("FK_PartnerProducts_Partner", new global::System.Data.DataColumn[] {
  465. this.tablePartner.IDPartnerColumn}, new global::System.Data.DataColumn[] {
  466. this.tablePartnerProducts.IDPartnerColumn}, false);
  467. this.Relations.Add(this.relationFK_PartnerProducts_Partner);
  468. this.relationFK_PartnerProducts_Product = new global::System.Data.DataRelation("FK_PartnerProducts_Product", new global::System.Data.DataColumn[] {
  469. this.tableProduct.IDProductColumn}, new global::System.Data.DataColumn[] {
  470. this.tablePartnerProducts.IDProductColumn}, false);
  471. this.Relations.Add(this.relationFK_PartnerProducts_Product);
  472. this.relationFK_Product_ProductType = new global::System.Data.DataRelation("FK_Product_ProductType", new global::System.Data.DataColumn[] {
  473. this.tableProductType.IDProductTypeColumn}, new global::System.Data.DataColumn[] {
  474. this.tableProduct.IDProductTypeColumn}, false);
  475. this.Relations.Add(this.relationFK_Product_ProductType);
  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 ShouldSerializeManager() {
  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 ShouldSerializePartner() {
  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 ShouldSerializePartnerProducts() {
  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 ShouldSerializePostCode() {
  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 ShouldSerializeProduct() {
  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 ShouldSerializeProductType() {
  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 ShouldSerializeRegion() {
  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 ShouldSerializeStreet() {
  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 ShouldSerializeTypeMaterial() {
  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 ShouldSerializeTypePartner() {
  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. AlfafloorGDVDataSet ds = new AlfafloorGDVDataSet();
  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 ManagerRowChangeEventHandler(object sender, ManagerRowChangeEvent e);
  589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  590. public delegate void PartnerRowChangeEventHandler(object sender, PartnerRowChangeEvent e);
  591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  592. public delegate void PartnerProductsRowChangeEventHandler(object sender, PartnerProductsRowChangeEvent e);
  593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  594. public delegate void PostCodeRowChangeEventHandler(object sender, PostCodeRowChangeEvent e);
  595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  596. public delegate void ProductRowChangeEventHandler(object sender, ProductRowChangeEvent e);
  597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  598. public delegate void ProductTypeRowChangeEventHandler(object sender, ProductTypeRowChangeEvent e);
  599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  600. public delegate void RegionRowChangeEventHandler(object sender, RegionRowChangeEvent e);
  601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  602. public delegate void StreetRowChangeEventHandler(object sender, StreetRowChangeEvent e);
  603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  604. public delegate void TypeMaterialRowChangeEventHandler(object sender, TypeMaterialRowChangeEvent e);
  605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  606. public delegate void TypePartnerRowChangeEventHandler(object sender, TypePartnerRowChangeEvent 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.AutoIncrementStep = -1;
  734. this.columnIDCity.AllowDBNull = false;
  735. this.columnIDCity.ReadOnly = true;
  736. this.columnIDCity.Unique = true;
  737. this.columnCity.MaxLength = 50;
  738. }
  739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  741. public CityRow NewCityRow() {
  742. return ((CityRow)(this.NewRow()));
  743. }
  744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  746. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  747. return new CityRow(builder);
  748. }
  749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  751. protected override global::System.Type GetRowType() {
  752. return typeof(CityRow);
  753. }
  754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  756. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  757. base.OnRowChanged(e);
  758. if ((this.CityRowChanged != null)) {
  759. this.CityRowChanged(this, new CityRowChangeEvent(((CityRow)(e.Row)), e.Action));
  760. }
  761. }
  762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  764. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  765. base.OnRowChanging(e);
  766. if ((this.CityRowChanging != null)) {
  767. this.CityRowChanging(this, new CityRowChangeEvent(((CityRow)(e.Row)), e.Action));
  768. }
  769. }
  770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  772. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  773. base.OnRowDeleted(e);
  774. if ((this.CityRowDeleted != null)) {
  775. this.CityRowDeleted(this, new CityRowChangeEvent(((CityRow)(e.Row)), e.Action));
  776. }
  777. }
  778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  780. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  781. base.OnRowDeleting(e);
  782. if ((this.CityRowDeleting != null)) {
  783. this.CityRowDeleting(this, new CityRowChangeEvent(((CityRow)(e.Row)), e.Action));
  784. }
  785. }
  786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  788. public void RemoveCityRow(CityRow row) {
  789. this.Rows.Remove(row);
  790. }
  791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  793. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  794. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  795. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  796. AlfafloorGDVDataSet ds = new AlfafloorGDVDataSet();
  797. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  798. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  799. any1.MinOccurs = new decimal(0);
  800. any1.MaxOccurs = decimal.MaxValue;
  801. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  802. sequence.Items.Add(any1);
  803. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  804. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  805. any2.MinOccurs = new decimal(1);
  806. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  807. sequence.Items.Add(any2);
  808. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  809. attribute1.Name = "namespace";
  810. attribute1.FixedValue = ds.Namespace;
  811. type.Attributes.Add(attribute1);
  812. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  813. attribute2.Name = "tableTypeName";
  814. attribute2.FixedValue = "CityDataTable";
  815. type.Attributes.Add(attribute2);
  816. type.Particle = sequence;
  817. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  818. if (xs.Contains(dsSchema.TargetNamespace)) {
  819. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  820. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  821. try {
  822. global::System.Xml.Schema.XmlSchema schema = null;
  823. dsSchema.Write(s1);
  824. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  825. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  826. s2.SetLength(0);
  827. schema.Write(s2);
  828. if ((s1.Length == s2.Length)) {
  829. s1.Position = 0;
  830. s2.Position = 0;
  831. for (; ((s1.Position != s1.Length)
  832. && (s1.ReadByte() == s2.ReadByte())); ) {
  833. ;
  834. }
  835. if ((s1.Position == s1.Length)) {
  836. return type;
  837. }
  838. }
  839. }
  840. }
  841. finally {
  842. if ((s1 != null)) {
  843. s1.Close();
  844. }
  845. if ((s2 != null)) {
  846. s2.Close();
  847. }
  848. }
  849. }
  850. xs.Add(dsSchema);
  851. return type;
  852. }
  853. }
  854. /// <summary>
  855. ///Represents the strongly named DataTable class.
  856. ///</summary>
  857. [global::System.Serializable()]
  858. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  859. public partial class ManagerDataTable : global::System.Data.TypedTableBase<ManagerRow> {
  860. private global::System.Data.DataColumn columnIDManager;
  861. private global::System.Data.DataColumn columnSurname;
  862. private global::System.Data.DataColumn columnName;
  863. private global::System.Data.DataColumn columnPatronomyc;
  864. private global::System.Data.DataColumn columnLogin;
  865. private global::System.Data.DataColumn columnPassword;
  866. private global::System.Data.DataColumn columnPhoto;
  867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  868. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  869. public ManagerDataTable() {
  870. this.TableName = "Manager";
  871. this.BeginInit();
  872. this.InitClass();
  873. this.EndInit();
  874. }
  875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  877. internal ManagerDataTable(global::System.Data.DataTable table) {
  878. this.TableName = table.TableName;
  879. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  880. this.CaseSensitive = table.CaseSensitive;
  881. }
  882. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  883. this.Locale = table.Locale;
  884. }
  885. if ((table.Namespace != table.DataSet.Namespace)) {
  886. this.Namespace = table.Namespace;
  887. }
  888. this.Prefix = table.Prefix;
  889. this.MinimumCapacity = table.MinimumCapacity;
  890. }
  891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  893. protected ManagerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  894. base(info, context) {
  895. this.InitVars();
  896. }
  897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  899. public global::System.Data.DataColumn IDManagerColumn {
  900. get {
  901. return this.columnIDManager;
  902. }
  903. }
  904. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  905. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  906. public global::System.Data.DataColumn SurnameColumn {
  907. get {
  908. return this.columnSurname;
  909. }
  910. }
  911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  913. public global::System.Data.DataColumn NameColumn {
  914. get {
  915. return this.columnName;
  916. }
  917. }
  918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  920. public global::System.Data.DataColumn PatronomycColumn {
  921. get {
  922. return this.columnPatronomyc;
  923. }
  924. }
  925. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  926. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  927. public global::System.Data.DataColumn LoginColumn {
  928. get {
  929. return this.columnLogin;
  930. }
  931. }
  932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  934. public global::System.Data.DataColumn PasswordColumn {
  935. get {
  936. return this.columnPassword;
  937. }
  938. }
  939. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  940. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  941. public global::System.Data.DataColumn PhotoColumn {
  942. get {
  943. return this.columnPhoto;
  944. }
  945. }
  946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  947. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  948. [global::System.ComponentModel.Browsable(false)]
  949. public int Count {
  950. get {
  951. return this.Rows.Count;
  952. }
  953. }
  954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  955. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  956. public ManagerRow this[int index] {
  957. get {
  958. return ((ManagerRow)(this.Rows[index]));
  959. }
  960. }
  961. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  962. public event ManagerRowChangeEventHandler ManagerRowChanging;
  963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  964. public event ManagerRowChangeEventHandler ManagerRowChanged;
  965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  966. public event ManagerRowChangeEventHandler ManagerRowDeleting;
  967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  968. public event ManagerRowChangeEventHandler ManagerRowDeleted;
  969. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  970. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  971. public void AddManagerRow(ManagerRow row) {
  972. this.Rows.Add(row);
  973. }
  974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  976. public ManagerRow AddManagerRow(string Surname, string Name, string Patronomyc, string Login, string Password, string Photo) {
  977. ManagerRow rowManagerRow = ((ManagerRow)(this.NewRow()));
  978. object[] columnValuesArray = new object[] {
  979. null,
  980. Surname,
  981. Name,
  982. Patronomyc,
  983. Login,
  984. Password,
  985. Photo};
  986. rowManagerRow.ItemArray = columnValuesArray;
  987. this.Rows.Add(rowManagerRow);
  988. return rowManagerRow;
  989. }
  990. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  991. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  992. public ManagerRow FindByIDManager(int IDManager) {
  993. return ((ManagerRow)(this.Rows.Find(new object[] {
  994. IDManager})));
  995. }
  996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  998. public override global::System.Data.DataTable Clone() {
  999. ManagerDataTable cln = ((ManagerDataTable)(base.Clone()));
  1000. cln.InitVars();
  1001. return cln;
  1002. }
  1003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1005. protected override global::System.Data.DataTable CreateInstance() {
  1006. return new ManagerDataTable();
  1007. }
  1008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1010. internal void InitVars() {
  1011. this.columnIDManager = base.Columns["IDManager"];
  1012. this.columnSurname = base.Columns["Surname"];
  1013. this.columnName = base.Columns["Name"];
  1014. this.columnPatronomyc = base.Columns["Patronomyc"];
  1015. this.columnLogin = base.Columns["Login"];
  1016. this.columnPassword = base.Columns["Password"];
  1017. this.columnPhoto = base.Columns["Photo"];
  1018. }
  1019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1021. private void InitClass() {
  1022. this.columnIDManager = new global::System.Data.DataColumn("IDManager", typeof(int), null, global::System.Data.MappingType.Element);
  1023. base.Columns.Add(this.columnIDManager);
  1024. this.columnSurname = new global::System.Data.DataColumn("Surname", typeof(string), null, global::System.Data.MappingType.Element);
  1025. base.Columns.Add(this.columnSurname);
  1026. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  1027. base.Columns.Add(this.columnName);
  1028. this.columnPatronomyc = new global::System.Data.DataColumn("Patronomyc", typeof(string), null, global::System.Data.MappingType.Element);
  1029. base.Columns.Add(this.columnPatronomyc);
  1030. this.columnLogin = new global::System.Data.DataColumn("Login", typeof(string), null, global::System.Data.MappingType.Element);
  1031. base.Columns.Add(this.columnLogin);
  1032. this.columnPassword = new global::System.Data.DataColumn("Password", typeof(string), null, global::System.Data.MappingType.Element);
  1033. base.Columns.Add(this.columnPassword);
  1034. this.columnPhoto = new global::System.Data.DataColumn("Photo", typeof(string), null, global::System.Data.MappingType.Element);
  1035. base.Columns.Add(this.columnPhoto);
  1036. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1037. this.columnIDManager}, true));
  1038. this.columnIDManager.AutoIncrement = true;
  1039. this.columnIDManager.AutoIncrementSeed = -1;
  1040. this.columnIDManager.AutoIncrementStep = -1;
  1041. this.columnIDManager.AllowDBNull = false;
  1042. this.columnIDManager.ReadOnly = true;
  1043. this.columnIDManager.Unique = true;
  1044. this.columnSurname.MaxLength = 50;
  1045. this.columnName.MaxLength = 50;
  1046. this.columnPatronomyc.MaxLength = 50;
  1047. this.columnLogin.MaxLength = 50;
  1048. this.columnPassword.MaxLength = 50;
  1049. this.columnPhoto.MaxLength = 255;
  1050. }
  1051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1053. public ManagerRow NewManagerRow() {
  1054. return ((ManagerRow)(this.NewRow()));
  1055. }
  1056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1057. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1058. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1059. return new ManagerRow(builder);
  1060. }
  1061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1063. protected override global::System.Type GetRowType() {
  1064. return typeof(ManagerRow);
  1065. }
  1066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1068. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1069. base.OnRowChanged(e);
  1070. if ((this.ManagerRowChanged != null)) {
  1071. this.ManagerRowChanged(this, new ManagerRowChangeEvent(((ManagerRow)(e.Row)), e.Action));
  1072. }
  1073. }
  1074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1076. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1077. base.OnRowChanging(e);
  1078. if ((this.ManagerRowChanging != null)) {
  1079. this.ManagerRowChanging(this, new ManagerRowChangeEvent(((ManagerRow)(e.Row)), e.Action));
  1080. }
  1081. }
  1082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1084. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1085. base.OnRowDeleted(e);
  1086. if ((this.ManagerRowDeleted != null)) {
  1087. this.ManagerRowDeleted(this, new ManagerRowChangeEvent(((ManagerRow)(e.Row)), e.Action));
  1088. }
  1089. }
  1090. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1091. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1092. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1093. base.OnRowDeleting(e);
  1094. if ((this.ManagerRowDeleting != null)) {
  1095. this.ManagerRowDeleting(this, new ManagerRowChangeEvent(((ManagerRow)(e.Row)), e.Action));
  1096. }
  1097. }
  1098. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1099. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1100. public void RemoveManagerRow(ManagerRow row) {
  1101. this.Rows.Remove(row);
  1102. }
  1103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1105. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1106. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1107. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1108. AlfafloorGDVDataSet ds = new AlfafloorGDVDataSet();
  1109. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1110. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1111. any1.MinOccurs = new decimal(0);
  1112. any1.MaxOccurs = decimal.MaxValue;
  1113. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1114. sequence.Items.Add(any1);
  1115. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1116. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1117. any2.MinOccurs = new decimal(1);
  1118. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1119. sequence.Items.Add(any2);
  1120. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1121. attribute1.Name = "namespace";
  1122. attribute1.FixedValue = ds.Namespace;
  1123. type.Attributes.Add(attribute1);
  1124. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1125. attribute2.Name = "tableTypeName";
  1126. attribute2.FixedValue = "ManagerDataTable";
  1127. type.Attributes.Add(attribute2);
  1128. type.Particle = sequence;
  1129. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1130. if (xs.Contains(dsSchema.TargetNamespace)) {
  1131. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1132. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1133. try {
  1134. global::System.Xml.Schema.XmlSchema schema = null;
  1135. dsSchema.Write(s1);
  1136. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1137. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1138. s2.SetLength(0);
  1139. schema.Write(s2);
  1140. if ((s1.Length == s2.Length)) {
  1141. s1.Position = 0;
  1142. s2.Position = 0;
  1143. for (; ((s1.Position != s1.Length)
  1144. && (s1.ReadByte() == s2.ReadByte())); ) {
  1145. ;
  1146. }
  1147. if ((s1.Position == s1.Length)) {
  1148. return type;
  1149. }
  1150. }
  1151. }
  1152. }
  1153. finally {
  1154. if ((s1 != null)) {
  1155. s1.Close();
  1156. }
  1157. if ((s2 != null)) {
  1158. s2.Close();
  1159. }
  1160. }
  1161. }
  1162. xs.Add(dsSchema);
  1163. return type;
  1164. }
  1165. }
  1166. /// <summary>
  1167. ///Represents the strongly named DataTable class.
  1168. ///</summary>
  1169. [global::System.Serializable()]
  1170. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1171. public partial class PartnerDataTable : global::System.Data.TypedTableBase<PartnerRow> {
  1172. private global::System.Data.DataColumn columnIDPartner;
  1173. private global::System.Data.DataColumn columnIDTypePartner;
  1174. private global::System.Data.DataColumn columnNamepartner;
  1175. private global::System.Data.DataColumn columnSurname;
  1176. private global::System.Data.DataColumn columnName;
  1177. private global::System.Data.DataColumn columnPatronomyc;
  1178. private global::System.Data.DataColumn columnEmail;
  1179. private global::System.Data.DataColumn columnPhone;
  1180. private global::System.Data.DataColumn columnIDPostCode;
  1181. private global::System.Data.DataColumn columnIDRegion;
  1182. private global::System.Data.DataColumn columnIDCity;
  1183. private global::System.Data.DataColumn columnIDStreet;
  1184. private global::System.Data.DataColumn columnHouse;
  1185. private global::System.Data.DataColumn columnINN;
  1186. private global::System.Data.DataColumn columnRating;
  1187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1189. public PartnerDataTable() {
  1190. this.TableName = "Partner";
  1191. this.BeginInit();
  1192. this.InitClass();
  1193. this.EndInit();
  1194. }
  1195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1197. internal PartnerDataTable(global::System.Data.DataTable table) {
  1198. this.TableName = table.TableName;
  1199. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1200. this.CaseSensitive = table.CaseSensitive;
  1201. }
  1202. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1203. this.Locale = table.Locale;
  1204. }
  1205. if ((table.Namespace != table.DataSet.Namespace)) {
  1206. this.Namespace = table.Namespace;
  1207. }
  1208. this.Prefix = table.Prefix;
  1209. this.MinimumCapacity = table.MinimumCapacity;
  1210. }
  1211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1213. protected PartnerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1214. base(info, context) {
  1215. this.InitVars();
  1216. }
  1217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1219. public global::System.Data.DataColumn IDPartnerColumn {
  1220. get {
  1221. return this.columnIDPartner;
  1222. }
  1223. }
  1224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1226. public global::System.Data.DataColumn IDTypePartnerColumn {
  1227. get {
  1228. return this.columnIDTypePartner;
  1229. }
  1230. }
  1231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1233. public global::System.Data.DataColumn NamepartnerColumn {
  1234. get {
  1235. return this.columnNamepartner;
  1236. }
  1237. }
  1238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1240. public global::System.Data.DataColumn SurnameColumn {
  1241. get {
  1242. return this.columnSurname;
  1243. }
  1244. }
  1245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1247. public global::System.Data.DataColumn NameColumn {
  1248. get {
  1249. return this.columnName;
  1250. }
  1251. }
  1252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1254. public global::System.Data.DataColumn PatronomycColumn {
  1255. get {
  1256. return this.columnPatronomyc;
  1257. }
  1258. }
  1259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1261. public global::System.Data.DataColumn EmailColumn {
  1262. get {
  1263. return this.columnEmail;
  1264. }
  1265. }
  1266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1268. public global::System.Data.DataColumn PhoneColumn {
  1269. get {
  1270. return this.columnPhone;
  1271. }
  1272. }
  1273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1275. public global::System.Data.DataColumn IDPostCodeColumn {
  1276. get {
  1277. return this.columnIDPostCode;
  1278. }
  1279. }
  1280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1282. public global::System.Data.DataColumn IDRegionColumn {
  1283. get {
  1284. return this.columnIDRegion;
  1285. }
  1286. }
  1287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1289. public global::System.Data.DataColumn IDCityColumn {
  1290. get {
  1291. return this.columnIDCity;
  1292. }
  1293. }
  1294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1296. public global::System.Data.DataColumn IDStreetColumn {
  1297. get {
  1298. return this.columnIDStreet;
  1299. }
  1300. }
  1301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1303. public global::System.Data.DataColumn HouseColumn {
  1304. get {
  1305. return this.columnHouse;
  1306. }
  1307. }
  1308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1310. public global::System.Data.DataColumn INNColumn {
  1311. get {
  1312. return this.columnINN;
  1313. }
  1314. }
  1315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1317. public global::System.Data.DataColumn RatingColumn {
  1318. get {
  1319. return this.columnRating;
  1320. }
  1321. }
  1322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1324. [global::System.ComponentModel.Browsable(false)]
  1325. public int Count {
  1326. get {
  1327. return this.Rows.Count;
  1328. }
  1329. }
  1330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1332. public PartnerRow this[int index] {
  1333. get {
  1334. return ((PartnerRow)(this.Rows[index]));
  1335. }
  1336. }
  1337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1338. public event PartnerRowChangeEventHandler PartnerRowChanging;
  1339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1340. public event PartnerRowChangeEventHandler PartnerRowChanged;
  1341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1342. public event PartnerRowChangeEventHandler PartnerRowDeleting;
  1343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1344. public event PartnerRowChangeEventHandler PartnerRowDeleted;
  1345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1347. public void AddPartnerRow(PartnerRow row) {
  1348. this.Rows.Add(row);
  1349. }
  1350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1352. public PartnerRow AddPartnerRow(TypePartnerRow parentTypePartnerRowByFK_Partner_TypePartner, string Namepartner, string Surname, string Name, string Patronomyc, string Email, string Phone, PostCodeRow parentPostCodeRowByFK_Partner_PostCode, RegionRow parentRegionRowByFK_Partner_Region, CityRow parentCityRowByFK_Partner_City, StreetRow parentStreetRowByFK_Partner_Street, int House, string INN, int Rating) {
  1353. PartnerRow rowPartnerRow = ((PartnerRow)(this.NewRow()));
  1354. object[] columnValuesArray = new object[] {
  1355. null,
  1356. null,
  1357. Namepartner,
  1358. Surname,
  1359. Name,
  1360. Patronomyc,
  1361. Email,
  1362. Phone,
  1363. null,
  1364. null,
  1365. null,
  1366. null,
  1367. House,
  1368. INN,
  1369. Rating};
  1370. if ((parentTypePartnerRowByFK_Partner_TypePartner != null)) {
  1371. columnValuesArray[1] = parentTypePartnerRowByFK_Partner_TypePartner[0];
  1372. }
  1373. if ((parentPostCodeRowByFK_Partner_PostCode != null)) {
  1374. columnValuesArray[8] = parentPostCodeRowByFK_Partner_PostCode[0];
  1375. }
  1376. if ((parentRegionRowByFK_Partner_Region != null)) {
  1377. columnValuesArray[9] = parentRegionRowByFK_Partner_Region[0];
  1378. }
  1379. if ((parentCityRowByFK_Partner_City != null)) {
  1380. columnValuesArray[10] = parentCityRowByFK_Partner_City[0];
  1381. }
  1382. if ((parentStreetRowByFK_Partner_Street != null)) {
  1383. columnValuesArray[11] = parentStreetRowByFK_Partner_Street[0];
  1384. }
  1385. rowPartnerRow.ItemArray = columnValuesArray;
  1386. this.Rows.Add(rowPartnerRow);
  1387. return rowPartnerRow;
  1388. }
  1389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1391. public PartnerRow FindByIDPartner(int IDPartner) {
  1392. return ((PartnerRow)(this.Rows.Find(new object[] {
  1393. IDPartner})));
  1394. }
  1395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1397. public override global::System.Data.DataTable Clone() {
  1398. PartnerDataTable cln = ((PartnerDataTable)(base.Clone()));
  1399. cln.InitVars();
  1400. return cln;
  1401. }
  1402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1403. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1404. protected override global::System.Data.DataTable CreateInstance() {
  1405. return new PartnerDataTable();
  1406. }
  1407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1408. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1409. internal void InitVars() {
  1410. this.columnIDPartner = base.Columns["IDPartner"];
  1411. this.columnIDTypePartner = base.Columns["IDTypePartner"];
  1412. this.columnNamepartner = base.Columns["Namepartner"];
  1413. this.columnSurname = base.Columns["Surname"];
  1414. this.columnName = base.Columns["Name"];
  1415. this.columnPatronomyc = base.Columns["Patronomyc"];
  1416. this.columnEmail = base.Columns["Email"];
  1417. this.columnPhone = base.Columns["Phone"];
  1418. this.columnIDPostCode = base.Columns["IDPostCode"];
  1419. this.columnIDRegion = base.Columns["IDRegion"];
  1420. this.columnIDCity = base.Columns["IDCity"];
  1421. this.columnIDStreet = base.Columns["IDStreet"];
  1422. this.columnHouse = base.Columns["House"];
  1423. this.columnINN = base.Columns["INN"];
  1424. this.columnRating = base.Columns["Rating"];
  1425. }
  1426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1428. private void InitClass() {
  1429. this.columnIDPartner = new global::System.Data.DataColumn("IDPartner", typeof(int), null, global::System.Data.MappingType.Element);
  1430. base.Columns.Add(this.columnIDPartner);
  1431. this.columnIDTypePartner = new global::System.Data.DataColumn("IDTypePartner", typeof(int), null, global::System.Data.MappingType.Element);
  1432. base.Columns.Add(this.columnIDTypePartner);
  1433. this.columnNamepartner = new global::System.Data.DataColumn("Namepartner", typeof(string), null, global::System.Data.MappingType.Element);
  1434. base.Columns.Add(this.columnNamepartner);
  1435. this.columnSurname = new global::System.Data.DataColumn("Surname", typeof(string), null, global::System.Data.MappingType.Element);
  1436. base.Columns.Add(this.columnSurname);
  1437. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  1438. base.Columns.Add(this.columnName);
  1439. this.columnPatronomyc = new global::System.Data.DataColumn("Patronomyc", typeof(string), null, global::System.Data.MappingType.Element);
  1440. base.Columns.Add(this.columnPatronomyc);
  1441. this.columnEmail = new global::System.Data.DataColumn("Email", typeof(string), null, global::System.Data.MappingType.Element);
  1442. base.Columns.Add(this.columnEmail);
  1443. this.columnPhone = new global::System.Data.DataColumn("Phone", typeof(string), null, global::System.Data.MappingType.Element);
  1444. base.Columns.Add(this.columnPhone);
  1445. this.columnIDPostCode = new global::System.Data.DataColumn("IDPostCode", typeof(int), null, global::System.Data.MappingType.Element);
  1446. base.Columns.Add(this.columnIDPostCode);
  1447. this.columnIDRegion = new global::System.Data.DataColumn("IDRegion", typeof(int), null, global::System.Data.MappingType.Element);
  1448. base.Columns.Add(this.columnIDRegion);
  1449. this.columnIDCity = new global::System.Data.DataColumn("IDCity", typeof(int), null, global::System.Data.MappingType.Element);
  1450. base.Columns.Add(this.columnIDCity);
  1451. this.columnIDStreet = new global::System.Data.DataColumn("IDStreet", typeof(int), null, global::System.Data.MappingType.Element);
  1452. base.Columns.Add(this.columnIDStreet);
  1453. this.columnHouse = new global::System.Data.DataColumn("House", typeof(int), null, global::System.Data.MappingType.Element);
  1454. base.Columns.Add(this.columnHouse);
  1455. this.columnINN = new global::System.Data.DataColumn("INN", typeof(string), null, global::System.Data.MappingType.Element);
  1456. base.Columns.Add(this.columnINN);
  1457. this.columnRating = new global::System.Data.DataColumn("Rating", typeof(int), null, global::System.Data.MappingType.Element);
  1458. base.Columns.Add(this.columnRating);
  1459. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1460. this.columnIDPartner}, true));
  1461. this.columnIDPartner.AutoIncrement = true;
  1462. this.columnIDPartner.AutoIncrementSeed = -1;
  1463. this.columnIDPartner.AutoIncrementStep = -1;
  1464. this.columnIDPartner.AllowDBNull = false;
  1465. this.columnIDPartner.ReadOnly = true;
  1466. this.columnIDPartner.Unique = true;
  1467. this.columnIDTypePartner.AllowDBNull = false;
  1468. this.columnNamepartner.MaxLength = 150;
  1469. this.columnSurname.MaxLength = 50;
  1470. this.columnName.MaxLength = 50;
  1471. this.columnPatronomyc.MaxLength = 50;
  1472. this.columnEmail.MaxLength = 50;
  1473. this.columnPhone.MaxLength = 50;
  1474. this.columnINN.MaxLength = 50;
  1475. }
  1476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1477. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1478. public PartnerRow NewPartnerRow() {
  1479. return ((PartnerRow)(this.NewRow()));
  1480. }
  1481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1483. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1484. return new PartnerRow(builder);
  1485. }
  1486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1488. protected override global::System.Type GetRowType() {
  1489. return typeof(PartnerRow);
  1490. }
  1491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1493. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1494. base.OnRowChanged(e);
  1495. if ((this.PartnerRowChanged != null)) {
  1496. this.PartnerRowChanged(this, new PartnerRowChangeEvent(((PartnerRow)(e.Row)), e.Action));
  1497. }
  1498. }
  1499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1500. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1501. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1502. base.OnRowChanging(e);
  1503. if ((this.PartnerRowChanging != null)) {
  1504. this.PartnerRowChanging(this, new PartnerRowChangeEvent(((PartnerRow)(e.Row)), e.Action));
  1505. }
  1506. }
  1507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1509. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1510. base.OnRowDeleted(e);
  1511. if ((this.PartnerRowDeleted != null)) {
  1512. this.PartnerRowDeleted(this, new PartnerRowChangeEvent(((PartnerRow)(e.Row)), e.Action));
  1513. }
  1514. }
  1515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1516. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1517. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1518. base.OnRowDeleting(e);
  1519. if ((this.PartnerRowDeleting != null)) {
  1520. this.PartnerRowDeleting(this, new PartnerRowChangeEvent(((PartnerRow)(e.Row)), e.Action));
  1521. }
  1522. }
  1523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1525. public void RemovePartnerRow(PartnerRow row) {
  1526. this.Rows.Remove(row);
  1527. }
  1528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1530. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1531. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1532. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1533. AlfafloorGDVDataSet ds = new AlfafloorGDVDataSet();
  1534. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1535. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1536. any1.MinOccurs = new decimal(0);
  1537. any1.MaxOccurs = decimal.MaxValue;
  1538. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1539. sequence.Items.Add(any1);
  1540. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1541. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1542. any2.MinOccurs = new decimal(1);
  1543. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1544. sequence.Items.Add(any2);
  1545. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1546. attribute1.Name = "namespace";
  1547. attribute1.FixedValue = ds.Namespace;
  1548. type.Attributes.Add(attribute1);
  1549. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1550. attribute2.Name = "tableTypeName";
  1551. attribute2.FixedValue = "PartnerDataTable";
  1552. type.Attributes.Add(attribute2);
  1553. type.Particle = sequence;
  1554. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1555. if (xs.Contains(dsSchema.TargetNamespace)) {
  1556. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1557. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1558. try {
  1559. global::System.Xml.Schema.XmlSchema schema = null;
  1560. dsSchema.Write(s1);
  1561. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1562. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1563. s2.SetLength(0);
  1564. schema.Write(s2);
  1565. if ((s1.Length == s2.Length)) {
  1566. s1.Position = 0;
  1567. s2.Position = 0;
  1568. for (; ((s1.Position != s1.Length)
  1569. && (s1.ReadByte() == s2.ReadByte())); ) {
  1570. ;
  1571. }
  1572. if ((s1.Position == s1.Length)) {
  1573. return type;
  1574. }
  1575. }
  1576. }
  1577. }
  1578. finally {
  1579. if ((s1 != null)) {
  1580. s1.Close();
  1581. }
  1582. if ((s2 != null)) {
  1583. s2.Close();
  1584. }
  1585. }
  1586. }
  1587. xs.Add(dsSchema);
  1588. return type;
  1589. }
  1590. }
  1591. /// <summary>
  1592. ///Represents the strongly named DataTable class.
  1593. ///</summary>
  1594. [global::System.Serializable()]
  1595. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1596. public partial class PartnerProductsDataTable : global::System.Data.TypedTableBase<PartnerProductsRow> {
  1597. private global::System.Data.DataColumn columnIDPartnerProduct;
  1598. private global::System.Data.DataColumn columnIDProduct;
  1599. private global::System.Data.DataColumn columnIDPartner;
  1600. private global::System.Data.DataColumn columnCountProduct;
  1601. private global::System.Data.DataColumn columnDateSale;
  1602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1604. public PartnerProductsDataTable() {
  1605. this.TableName = "PartnerProducts";
  1606. this.BeginInit();
  1607. this.InitClass();
  1608. this.EndInit();
  1609. }
  1610. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1611. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1612. internal PartnerProductsDataTable(global::System.Data.DataTable table) {
  1613. this.TableName = table.TableName;
  1614. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1615. this.CaseSensitive = table.CaseSensitive;
  1616. }
  1617. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1618. this.Locale = table.Locale;
  1619. }
  1620. if ((table.Namespace != table.DataSet.Namespace)) {
  1621. this.Namespace = table.Namespace;
  1622. }
  1623. this.Prefix = table.Prefix;
  1624. this.MinimumCapacity = table.MinimumCapacity;
  1625. }
  1626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1628. protected PartnerProductsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1629. base(info, context) {
  1630. this.InitVars();
  1631. }
  1632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1634. public global::System.Data.DataColumn IDPartnerProductColumn {
  1635. get {
  1636. return this.columnIDPartnerProduct;
  1637. }
  1638. }
  1639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1641. public global::System.Data.DataColumn IDProductColumn {
  1642. get {
  1643. return this.columnIDProduct;
  1644. }
  1645. }
  1646. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1648. public global::System.Data.DataColumn IDPartnerColumn {
  1649. get {
  1650. return this.columnIDPartner;
  1651. }
  1652. }
  1653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1655. public global::System.Data.DataColumn CountProductColumn {
  1656. get {
  1657. return this.columnCountProduct;
  1658. }
  1659. }
  1660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1662. public global::System.Data.DataColumn DateSaleColumn {
  1663. get {
  1664. return this.columnDateSale;
  1665. }
  1666. }
  1667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1668. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1669. [global::System.ComponentModel.Browsable(false)]
  1670. public int Count {
  1671. get {
  1672. return this.Rows.Count;
  1673. }
  1674. }
  1675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1676. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1677. public PartnerProductsRow this[int index] {
  1678. get {
  1679. return ((PartnerProductsRow)(this.Rows[index]));
  1680. }
  1681. }
  1682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1683. public event PartnerProductsRowChangeEventHandler PartnerProductsRowChanging;
  1684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1685. public event PartnerProductsRowChangeEventHandler PartnerProductsRowChanged;
  1686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1687. public event PartnerProductsRowChangeEventHandler PartnerProductsRowDeleting;
  1688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1689. public event PartnerProductsRowChangeEventHandler PartnerProductsRowDeleted;
  1690. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1692. public void AddPartnerProductsRow(PartnerProductsRow row) {
  1693. this.Rows.Add(row);
  1694. }
  1695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1697. public PartnerProductsRow AddPartnerProductsRow(ProductRow parentProductRowByFK_PartnerProducts_Product, PartnerRow parentPartnerRowByFK_PartnerProducts_Partner, int CountProduct, System.DateTime DateSale) {
  1698. PartnerProductsRow rowPartnerProductsRow = ((PartnerProductsRow)(this.NewRow()));
  1699. object[] columnValuesArray = new object[] {
  1700. null,
  1701. null,
  1702. null,
  1703. CountProduct,
  1704. DateSale};
  1705. if ((parentProductRowByFK_PartnerProducts_Product != null)) {
  1706. columnValuesArray[1] = parentProductRowByFK_PartnerProducts_Product[0];
  1707. }
  1708. if ((parentPartnerRowByFK_PartnerProducts_Partner != null)) {
  1709. columnValuesArray[2] = parentPartnerRowByFK_PartnerProducts_Partner[0];
  1710. }
  1711. rowPartnerProductsRow.ItemArray = columnValuesArray;
  1712. this.Rows.Add(rowPartnerProductsRow);
  1713. return rowPartnerProductsRow;
  1714. }
  1715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1717. public PartnerProductsRow FindByIDPartnerProduct(int IDPartnerProduct) {
  1718. return ((PartnerProductsRow)(this.Rows.Find(new object[] {
  1719. IDPartnerProduct})));
  1720. }
  1721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1723. public override global::System.Data.DataTable Clone() {
  1724. PartnerProductsDataTable cln = ((PartnerProductsDataTable)(base.Clone()));
  1725. cln.InitVars();
  1726. return cln;
  1727. }
  1728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1730. protected override global::System.Data.DataTable CreateInstance() {
  1731. return new PartnerProductsDataTable();
  1732. }
  1733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1735. internal void InitVars() {
  1736. this.columnIDPartnerProduct = base.Columns["IDPartnerProduct"];
  1737. this.columnIDProduct = base.Columns["IDProduct"];
  1738. this.columnIDPartner = base.Columns["IDPartner"];
  1739. this.columnCountProduct = base.Columns["CountProduct"];
  1740. this.columnDateSale = base.Columns["DateSale"];
  1741. }
  1742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1744. private void InitClass() {
  1745. this.columnIDPartnerProduct = new global::System.Data.DataColumn("IDPartnerProduct", typeof(int), null, global::System.Data.MappingType.Element);
  1746. base.Columns.Add(this.columnIDPartnerProduct);
  1747. this.columnIDProduct = new global::System.Data.DataColumn("IDProduct", typeof(int), null, global::System.Data.MappingType.Element);
  1748. base.Columns.Add(this.columnIDProduct);
  1749. this.columnIDPartner = new global::System.Data.DataColumn("IDPartner", typeof(int), null, global::System.Data.MappingType.Element);
  1750. base.Columns.Add(this.columnIDPartner);
  1751. this.columnCountProduct = new global::System.Data.DataColumn("CountProduct", typeof(int), null, global::System.Data.MappingType.Element);
  1752. base.Columns.Add(this.columnCountProduct);
  1753. this.columnDateSale = new global::System.Data.DataColumn("DateSale", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1754. base.Columns.Add(this.columnDateSale);
  1755. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1756. this.columnIDPartnerProduct}, true));
  1757. this.columnIDPartnerProduct.AutoIncrement = true;
  1758. this.columnIDPartnerProduct.AutoIncrementSeed = -1;
  1759. this.columnIDPartnerProduct.AutoIncrementStep = -1;
  1760. this.columnIDPartnerProduct.AllowDBNull = false;
  1761. this.columnIDPartnerProduct.ReadOnly = true;
  1762. this.columnIDPartnerProduct.Unique = true;
  1763. }
  1764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1766. public PartnerProductsRow NewPartnerProductsRow() {
  1767. return ((PartnerProductsRow)(this.NewRow()));
  1768. }
  1769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1771. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1772. return new PartnerProductsRow(builder);
  1773. }
  1774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1776. protected override global::System.Type GetRowType() {
  1777. return typeof(PartnerProductsRow);
  1778. }
  1779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1781. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1782. base.OnRowChanged(e);
  1783. if ((this.PartnerProductsRowChanged != null)) {
  1784. this.PartnerProductsRowChanged(this, new PartnerProductsRowChangeEvent(((PartnerProductsRow)(e.Row)), e.Action));
  1785. }
  1786. }
  1787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1788. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1789. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1790. base.OnRowChanging(e);
  1791. if ((this.PartnerProductsRowChanging != null)) {
  1792. this.PartnerProductsRowChanging(this, new PartnerProductsRowChangeEvent(((PartnerProductsRow)(e.Row)), e.Action));
  1793. }
  1794. }
  1795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1797. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1798. base.OnRowDeleted(e);
  1799. if ((this.PartnerProductsRowDeleted != null)) {
  1800. this.PartnerProductsRowDeleted(this, new PartnerProductsRowChangeEvent(((PartnerProductsRow)(e.Row)), e.Action));
  1801. }
  1802. }
  1803. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1804. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1805. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1806. base.OnRowDeleting(e);
  1807. if ((this.PartnerProductsRowDeleting != null)) {
  1808. this.PartnerProductsRowDeleting(this, new PartnerProductsRowChangeEvent(((PartnerProductsRow)(e.Row)), e.Action));
  1809. }
  1810. }
  1811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1813. public void RemovePartnerProductsRow(PartnerProductsRow row) {
  1814. this.Rows.Remove(row);
  1815. }
  1816. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1817. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1818. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1819. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1820. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1821. AlfafloorGDVDataSet ds = new AlfafloorGDVDataSet();
  1822. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1823. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1824. any1.MinOccurs = new decimal(0);
  1825. any1.MaxOccurs = decimal.MaxValue;
  1826. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1827. sequence.Items.Add(any1);
  1828. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1829. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1830. any2.MinOccurs = new decimal(1);
  1831. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1832. sequence.Items.Add(any2);
  1833. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1834. attribute1.Name = "namespace";
  1835. attribute1.FixedValue = ds.Namespace;
  1836. type.Attributes.Add(attribute1);
  1837. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1838. attribute2.Name = "tableTypeName";
  1839. attribute2.FixedValue = "PartnerProductsDataTable";
  1840. type.Attributes.Add(attribute2);
  1841. type.Particle = sequence;
  1842. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1843. if (xs.Contains(dsSchema.TargetNamespace)) {
  1844. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1845. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1846. try {
  1847. global::System.Xml.Schema.XmlSchema schema = null;
  1848. dsSchema.Write(s1);
  1849. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1850. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1851. s2.SetLength(0);
  1852. schema.Write(s2);
  1853. if ((s1.Length == s2.Length)) {
  1854. s1.Position = 0;
  1855. s2.Position = 0;
  1856. for (; ((s1.Position != s1.Length)
  1857. && (s1.ReadByte() == s2.ReadByte())); ) {
  1858. ;
  1859. }
  1860. if ((s1.Position == s1.Length)) {
  1861. return type;
  1862. }
  1863. }
  1864. }
  1865. }
  1866. finally {
  1867. if ((s1 != null)) {
  1868. s1.Close();
  1869. }
  1870. if ((s2 != null)) {
  1871. s2.Close();
  1872. }
  1873. }
  1874. }
  1875. xs.Add(dsSchema);
  1876. return type;
  1877. }
  1878. }
  1879. /// <summary>
  1880. ///Represents the strongly named DataTable class.
  1881. ///</summary>
  1882. [global::System.Serializable()]
  1883. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1884. public partial class PostCodeDataTable : global::System.Data.TypedTableBase<PostCodeRow> {
  1885. private global::System.Data.DataColumn columnIDPostCode;
  1886. private global::System.Data.DataColumn columnPostCode;
  1887. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1888. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1889. public PostCodeDataTable() {
  1890. this.TableName = "PostCode";
  1891. this.BeginInit();
  1892. this.InitClass();
  1893. this.EndInit();
  1894. }
  1895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1897. internal PostCodeDataTable(global::System.Data.DataTable table) {
  1898. this.TableName = table.TableName;
  1899. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1900. this.CaseSensitive = table.CaseSensitive;
  1901. }
  1902. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1903. this.Locale = table.Locale;
  1904. }
  1905. if ((table.Namespace != table.DataSet.Namespace)) {
  1906. this.Namespace = table.Namespace;
  1907. }
  1908. this.Prefix = table.Prefix;
  1909. this.MinimumCapacity = table.MinimumCapacity;
  1910. }
  1911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1913. protected PostCodeDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1914. base(info, context) {
  1915. this.InitVars();
  1916. }
  1917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1919. public global::System.Data.DataColumn IDPostCodeColumn {
  1920. get {
  1921. return this.columnIDPostCode;
  1922. }
  1923. }
  1924. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1925. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1926. public global::System.Data.DataColumn PostCodeColumn {
  1927. get {
  1928. return this.columnPostCode;
  1929. }
  1930. }
  1931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1933. [global::System.ComponentModel.Browsable(false)]
  1934. public int Count {
  1935. get {
  1936. return this.Rows.Count;
  1937. }
  1938. }
  1939. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1940. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1941. public PostCodeRow this[int index] {
  1942. get {
  1943. return ((PostCodeRow)(this.Rows[index]));
  1944. }
  1945. }
  1946. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1947. public event PostCodeRowChangeEventHandler PostCodeRowChanging;
  1948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1949. public event PostCodeRowChangeEventHandler PostCodeRowChanged;
  1950. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1951. public event PostCodeRowChangeEventHandler PostCodeRowDeleting;
  1952. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1953. public event PostCodeRowChangeEventHandler PostCodeRowDeleted;
  1954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1955. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1956. public void AddPostCodeRow(PostCodeRow row) {
  1957. this.Rows.Add(row);
  1958. }
  1959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1961. public PostCodeRow AddPostCodeRow(int PostCode) {
  1962. PostCodeRow rowPostCodeRow = ((PostCodeRow)(this.NewRow()));
  1963. object[] columnValuesArray = new object[] {
  1964. null,
  1965. PostCode};
  1966. rowPostCodeRow.ItemArray = columnValuesArray;
  1967. this.Rows.Add(rowPostCodeRow);
  1968. return rowPostCodeRow;
  1969. }
  1970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1972. public PostCodeRow FindByIDPostCode(int IDPostCode) {
  1973. return ((PostCodeRow)(this.Rows.Find(new object[] {
  1974. IDPostCode})));
  1975. }
  1976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1978. public override global::System.Data.DataTable Clone() {
  1979. PostCodeDataTable cln = ((PostCodeDataTable)(base.Clone()));
  1980. cln.InitVars();
  1981. return cln;
  1982. }
  1983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1984. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1985. protected override global::System.Data.DataTable CreateInstance() {
  1986. return new PostCodeDataTable();
  1987. }
  1988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1989. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1990. internal void InitVars() {
  1991. this.columnIDPostCode = base.Columns["IDPostCode"];
  1992. this.columnPostCode = base.Columns["PostCode"];
  1993. }
  1994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1996. private void InitClass() {
  1997. this.columnIDPostCode = new global::System.Data.DataColumn("IDPostCode", typeof(int), null, global::System.Data.MappingType.Element);
  1998. base.Columns.Add(this.columnIDPostCode);
  1999. this.columnPostCode = new global::System.Data.DataColumn("PostCode", typeof(int), null, global::System.Data.MappingType.Element);
  2000. base.Columns.Add(this.columnPostCode);
  2001. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2002. this.columnIDPostCode}, true));
  2003. this.columnIDPostCode.AutoIncrement = true;
  2004. this.columnIDPostCode.AutoIncrementSeed = -1;
  2005. this.columnIDPostCode.AutoIncrementStep = -1;
  2006. this.columnIDPostCode.AllowDBNull = false;
  2007. this.columnIDPostCode.ReadOnly = true;
  2008. this.columnIDPostCode.Unique = true;
  2009. }
  2010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2011. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2012. public PostCodeRow NewPostCodeRow() {
  2013. return ((PostCodeRow)(this.NewRow()));
  2014. }
  2015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2017. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2018. return new PostCodeRow(builder);
  2019. }
  2020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2022. protected override global::System.Type GetRowType() {
  2023. return typeof(PostCodeRow);
  2024. }
  2025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2027. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2028. base.OnRowChanged(e);
  2029. if ((this.PostCodeRowChanged != null)) {
  2030. this.PostCodeRowChanged(this, new PostCodeRowChangeEvent(((PostCodeRow)(e.Row)), e.Action));
  2031. }
  2032. }
  2033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2034. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2035. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2036. base.OnRowChanging(e);
  2037. if ((this.PostCodeRowChanging != null)) {
  2038. this.PostCodeRowChanging(this, new PostCodeRowChangeEvent(((PostCodeRow)(e.Row)), e.Action));
  2039. }
  2040. }
  2041. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2042. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2043. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2044. base.OnRowDeleted(e);
  2045. if ((this.PostCodeRowDeleted != null)) {
  2046. this.PostCodeRowDeleted(this, new PostCodeRowChangeEvent(((PostCodeRow)(e.Row)), e.Action));
  2047. }
  2048. }
  2049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2051. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2052. base.OnRowDeleting(e);
  2053. if ((this.PostCodeRowDeleting != null)) {
  2054. this.PostCodeRowDeleting(this, new PostCodeRowChangeEvent(((PostCodeRow)(e.Row)), e.Action));
  2055. }
  2056. }
  2057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2059. public void RemovePostCodeRow(PostCodeRow row) {
  2060. this.Rows.Remove(row);
  2061. }
  2062. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2063. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2064. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2065. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2066. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2067. AlfafloorGDVDataSet ds = new AlfafloorGDVDataSet();
  2068. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2069. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2070. any1.MinOccurs = new decimal(0);
  2071. any1.MaxOccurs = decimal.MaxValue;
  2072. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2073. sequence.Items.Add(any1);
  2074. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2075. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2076. any2.MinOccurs = new decimal(1);
  2077. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2078. sequence.Items.Add(any2);
  2079. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2080. attribute1.Name = "namespace";
  2081. attribute1.FixedValue = ds.Namespace;
  2082. type.Attributes.Add(attribute1);
  2083. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2084. attribute2.Name = "tableTypeName";
  2085. attribute2.FixedValue = "PostCodeDataTable";
  2086. type.Attributes.Add(attribute2);
  2087. type.Particle = sequence;
  2088. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2089. if (xs.Contains(dsSchema.TargetNamespace)) {
  2090. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2091. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2092. try {
  2093. global::System.Xml.Schema.XmlSchema schema = null;
  2094. dsSchema.Write(s1);
  2095. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2096. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2097. s2.SetLength(0);
  2098. schema.Write(s2);
  2099. if ((s1.Length == s2.Length)) {
  2100. s1.Position = 0;
  2101. s2.Position = 0;
  2102. for (; ((s1.Position != s1.Length)
  2103. && (s1.ReadByte() == s2.ReadByte())); ) {
  2104. ;
  2105. }
  2106. if ((s1.Position == s1.Length)) {
  2107. return type;
  2108. }
  2109. }
  2110. }
  2111. }
  2112. finally {
  2113. if ((s1 != null)) {
  2114. s1.Close();
  2115. }
  2116. if ((s2 != null)) {
  2117. s2.Close();
  2118. }
  2119. }
  2120. }
  2121. xs.Add(dsSchema);
  2122. return type;
  2123. }
  2124. }
  2125. /// <summary>
  2126. ///Represents the strongly named DataTable class.
  2127. ///</summary>
  2128. [global::System.Serializable()]
  2129. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2130. public partial class ProductDataTable : global::System.Data.TypedTableBase<ProductRow> {
  2131. private global::System.Data.DataColumn columnIDProduct;
  2132. private global::System.Data.DataColumn columnIDProductType;
  2133. private global::System.Data.DataColumn columnProductName;
  2134. private global::System.Data.DataColumn columnArticle;
  2135. private global::System.Data.DataColumn columnCost;
  2136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2138. public ProductDataTable() {
  2139. this.TableName = "Product";
  2140. this.BeginInit();
  2141. this.InitClass();
  2142. this.EndInit();
  2143. }
  2144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2146. internal ProductDataTable(global::System.Data.DataTable table) {
  2147. this.TableName = table.TableName;
  2148. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2149. this.CaseSensitive = table.CaseSensitive;
  2150. }
  2151. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2152. this.Locale = table.Locale;
  2153. }
  2154. if ((table.Namespace != table.DataSet.Namespace)) {
  2155. this.Namespace = table.Namespace;
  2156. }
  2157. this.Prefix = table.Prefix;
  2158. this.MinimumCapacity = table.MinimumCapacity;
  2159. }
  2160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2162. protected ProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2163. base(info, context) {
  2164. this.InitVars();
  2165. }
  2166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2168. public global::System.Data.DataColumn IDProductColumn {
  2169. get {
  2170. return this.columnIDProduct;
  2171. }
  2172. }
  2173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2175. public global::System.Data.DataColumn IDProductTypeColumn {
  2176. get {
  2177. return this.columnIDProductType;
  2178. }
  2179. }
  2180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2182. public global::System.Data.DataColumn ProductNameColumn {
  2183. get {
  2184. return this.columnProductName;
  2185. }
  2186. }
  2187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2189. public global::System.Data.DataColumn ArticleColumn {
  2190. get {
  2191. return this.columnArticle;
  2192. }
  2193. }
  2194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2196. public global::System.Data.DataColumn CostColumn {
  2197. get {
  2198. return this.columnCost;
  2199. }
  2200. }
  2201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2203. [global::System.ComponentModel.Browsable(false)]
  2204. public int Count {
  2205. get {
  2206. return this.Rows.Count;
  2207. }
  2208. }
  2209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2211. public ProductRow this[int index] {
  2212. get {
  2213. return ((ProductRow)(this.Rows[index]));
  2214. }
  2215. }
  2216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2217. public event ProductRowChangeEventHandler ProductRowChanging;
  2218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2219. public event ProductRowChangeEventHandler ProductRowChanged;
  2220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2221. public event ProductRowChangeEventHandler ProductRowDeleting;
  2222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2223. public event ProductRowChangeEventHandler ProductRowDeleted;
  2224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2226. public void AddProductRow(ProductRow row) {
  2227. this.Rows.Add(row);
  2228. }
  2229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2231. public ProductRow AddProductRow(ProductTypeRow parentProductTypeRowByFK_Product_ProductType, string ProductName, string Article, decimal Cost) {
  2232. ProductRow rowProductRow = ((ProductRow)(this.NewRow()));
  2233. object[] columnValuesArray = new object[] {
  2234. null,
  2235. null,
  2236. ProductName,
  2237. Article,
  2238. Cost};
  2239. if ((parentProductTypeRowByFK_Product_ProductType != null)) {
  2240. columnValuesArray[1] = parentProductTypeRowByFK_Product_ProductType[0];
  2241. }
  2242. rowProductRow.ItemArray = columnValuesArray;
  2243. this.Rows.Add(rowProductRow);
  2244. return rowProductRow;
  2245. }
  2246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2248. public ProductRow FindByIDProduct(int IDProduct) {
  2249. return ((ProductRow)(this.Rows.Find(new object[] {
  2250. IDProduct})));
  2251. }
  2252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2254. public override global::System.Data.DataTable Clone() {
  2255. ProductDataTable cln = ((ProductDataTable)(base.Clone()));
  2256. cln.InitVars();
  2257. return cln;
  2258. }
  2259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2261. protected override global::System.Data.DataTable CreateInstance() {
  2262. return new ProductDataTable();
  2263. }
  2264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2265. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2266. internal void InitVars() {
  2267. this.columnIDProduct = base.Columns["IDProduct"];
  2268. this.columnIDProductType = base.Columns["IDProductType"];
  2269. this.columnProductName = base.Columns["ProductName"];
  2270. this.columnArticle = base.Columns["Article"];
  2271. this.columnCost = base.Columns["Cost"];
  2272. }
  2273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2275. private void InitClass() {
  2276. this.columnIDProduct = new global::System.Data.DataColumn("IDProduct", typeof(int), null, global::System.Data.MappingType.Element);
  2277. base.Columns.Add(this.columnIDProduct);
  2278. this.columnIDProductType = new global::System.Data.DataColumn("IDProductType", typeof(int), null, global::System.Data.MappingType.Element);
  2279. base.Columns.Add(this.columnIDProductType);
  2280. this.columnProductName = new global::System.Data.DataColumn("ProductName", typeof(string), null, global::System.Data.MappingType.Element);
  2281. base.Columns.Add(this.columnProductName);
  2282. this.columnArticle = new global::System.Data.DataColumn("Article", typeof(string), null, global::System.Data.MappingType.Element);
  2283. base.Columns.Add(this.columnArticle);
  2284. this.columnCost = new global::System.Data.DataColumn("Cost", typeof(decimal), null, global::System.Data.MappingType.Element);
  2285. base.Columns.Add(this.columnCost);
  2286. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2287. this.columnIDProduct}, true));
  2288. this.columnIDProduct.AutoIncrement = true;
  2289. this.columnIDProduct.AutoIncrementSeed = -1;
  2290. this.columnIDProduct.AutoIncrementStep = -1;
  2291. this.columnIDProduct.AllowDBNull = false;
  2292. this.columnIDProduct.ReadOnly = true;
  2293. this.columnIDProduct.Unique = true;
  2294. this.columnProductName.MaxLength = 150;
  2295. this.columnArticle.MaxLength = 50;
  2296. }
  2297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2299. public ProductRow NewProductRow() {
  2300. return ((ProductRow)(this.NewRow()));
  2301. }
  2302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2304. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2305. return new ProductRow(builder);
  2306. }
  2307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2309. protected override global::System.Type GetRowType() {
  2310. return typeof(ProductRow);
  2311. }
  2312. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2313. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2314. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2315. base.OnRowChanged(e);
  2316. if ((this.ProductRowChanged != null)) {
  2317. this.ProductRowChanged(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2318. }
  2319. }
  2320. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2321. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2322. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2323. base.OnRowChanging(e);
  2324. if ((this.ProductRowChanging != null)) {
  2325. this.ProductRowChanging(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2326. }
  2327. }
  2328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2330. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2331. base.OnRowDeleted(e);
  2332. if ((this.ProductRowDeleted != null)) {
  2333. this.ProductRowDeleted(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2334. }
  2335. }
  2336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2338. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2339. base.OnRowDeleting(e);
  2340. if ((this.ProductRowDeleting != null)) {
  2341. this.ProductRowDeleting(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2342. }
  2343. }
  2344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2346. public void RemoveProductRow(ProductRow row) {
  2347. this.Rows.Remove(row);
  2348. }
  2349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2351. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2352. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2353. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2354. AlfafloorGDVDataSet ds = new AlfafloorGDVDataSet();
  2355. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2356. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2357. any1.MinOccurs = new decimal(0);
  2358. any1.MaxOccurs = decimal.MaxValue;
  2359. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2360. sequence.Items.Add(any1);
  2361. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2362. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2363. any2.MinOccurs = new decimal(1);
  2364. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2365. sequence.Items.Add(any2);
  2366. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2367. attribute1.Name = "namespace";
  2368. attribute1.FixedValue = ds.Namespace;
  2369. type.Attributes.Add(attribute1);
  2370. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2371. attribute2.Name = "tableTypeName";
  2372. attribute2.FixedValue = "ProductDataTable";
  2373. type.Attributes.Add(attribute2);
  2374. type.Particle = sequence;
  2375. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2376. if (xs.Contains(dsSchema.TargetNamespace)) {
  2377. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2378. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2379. try {
  2380. global::System.Xml.Schema.XmlSchema schema = null;
  2381. dsSchema.Write(s1);
  2382. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2383. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2384. s2.SetLength(0);
  2385. schema.Write(s2);
  2386. if ((s1.Length == s2.Length)) {
  2387. s1.Position = 0;
  2388. s2.Position = 0;
  2389. for (; ((s1.Position != s1.Length)
  2390. && (s1.ReadByte() == s2.ReadByte())); ) {
  2391. ;
  2392. }
  2393. if ((s1.Position == s1.Length)) {
  2394. return type;
  2395. }
  2396. }
  2397. }
  2398. }
  2399. finally {
  2400. if ((s1 != null)) {
  2401. s1.Close();
  2402. }
  2403. if ((s2 != null)) {
  2404. s2.Close();
  2405. }
  2406. }
  2407. }
  2408. xs.Add(dsSchema);
  2409. return type;
  2410. }
  2411. }
  2412. /// <summary>
  2413. ///Represents the strongly named DataTable class.
  2414. ///</summary>
  2415. [global::System.Serializable()]
  2416. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2417. public partial class ProductTypeDataTable : global::System.Data.TypedTableBase<ProductTypeRow> {
  2418. private global::System.Data.DataColumn columnIDProductType;
  2419. private global::System.Data.DataColumn columnProductType;
  2420. private global::System.Data.DataColumn columnСoefficient;
  2421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2423. public ProductTypeDataTable() {
  2424. this.TableName = "ProductType";
  2425. this.BeginInit();
  2426. this.InitClass();
  2427. this.EndInit();
  2428. }
  2429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2431. internal ProductTypeDataTable(global::System.Data.DataTable table) {
  2432. this.TableName = table.TableName;
  2433. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2434. this.CaseSensitive = table.CaseSensitive;
  2435. }
  2436. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2437. this.Locale = table.Locale;
  2438. }
  2439. if ((table.Namespace != table.DataSet.Namespace)) {
  2440. this.Namespace = table.Namespace;
  2441. }
  2442. this.Prefix = table.Prefix;
  2443. this.MinimumCapacity = table.MinimumCapacity;
  2444. }
  2445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2446. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2447. protected ProductTypeDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2448. base(info, context) {
  2449. this.InitVars();
  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 IDProductTypeColumn {
  2454. get {
  2455. return this.columnIDProductType;
  2456. }
  2457. }
  2458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2459. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2460. public global::System.Data.DataColumn ProductTypeColumn {
  2461. get {
  2462. return this.columnProductType;
  2463. }
  2464. }
  2465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2467. public global::System.Data.DataColumn СoefficientColumn {
  2468. get {
  2469. return this.columnСoefficient;
  2470. }
  2471. }
  2472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2474. [global::System.ComponentModel.Browsable(false)]
  2475. public int Count {
  2476. get {
  2477. return this.Rows.Count;
  2478. }
  2479. }
  2480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2482. public ProductTypeRow this[int index] {
  2483. get {
  2484. return ((ProductTypeRow)(this.Rows[index]));
  2485. }
  2486. }
  2487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2488. public event ProductTypeRowChangeEventHandler ProductTypeRowChanging;
  2489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2490. public event ProductTypeRowChangeEventHandler ProductTypeRowChanged;
  2491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2492. public event ProductTypeRowChangeEventHandler ProductTypeRowDeleting;
  2493. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2494. public event ProductTypeRowChangeEventHandler ProductTypeRowDeleted;
  2495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2497. public void AddProductTypeRow(ProductTypeRow row) {
  2498. this.Rows.Add(row);
  2499. }
  2500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2502. public ProductTypeRow AddProductTypeRow(string ProductType, double Сoefficient) {
  2503. ProductTypeRow rowProductTypeRow = ((ProductTypeRow)(this.NewRow()));
  2504. object[] columnValuesArray = new object[] {
  2505. null,
  2506. ProductType,
  2507. Сoefficient};
  2508. rowProductTypeRow.ItemArray = columnValuesArray;
  2509. this.Rows.Add(rowProductTypeRow);
  2510. return rowProductTypeRow;
  2511. }
  2512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2514. public ProductTypeRow FindByIDProductType(int IDProductType) {
  2515. return ((ProductTypeRow)(this.Rows.Find(new object[] {
  2516. IDProductType})));
  2517. }
  2518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2520. public override global::System.Data.DataTable Clone() {
  2521. ProductTypeDataTable cln = ((ProductTypeDataTable)(base.Clone()));
  2522. cln.InitVars();
  2523. return cln;
  2524. }
  2525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2526. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2527. protected override global::System.Data.DataTable CreateInstance() {
  2528. return new ProductTypeDataTable();
  2529. }
  2530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2532. internal void InitVars() {
  2533. this.columnIDProductType = base.Columns["IDProductType"];
  2534. this.columnProductType = base.Columns["ProductType"];
  2535. this.columnСoefficient = base.Columns["Сoefficient"];
  2536. }
  2537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2539. private void InitClass() {
  2540. this.columnIDProductType = new global::System.Data.DataColumn("IDProductType", typeof(int), null, global::System.Data.MappingType.Element);
  2541. base.Columns.Add(this.columnIDProductType);
  2542. this.columnProductType = new global::System.Data.DataColumn("ProductType", typeof(string), null, global::System.Data.MappingType.Element);
  2543. base.Columns.Add(this.columnProductType);
  2544. this.columnСoefficient = new global::System.Data.DataColumn("Сoefficient", typeof(double), null, global::System.Data.MappingType.Element);
  2545. base.Columns.Add(this.columnСoefficient);
  2546. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2547. this.columnIDProductType}, true));
  2548. this.columnIDProductType.AutoIncrement = true;
  2549. this.columnIDProductType.AutoIncrementSeed = -1;
  2550. this.columnIDProductType.AutoIncrementStep = -1;
  2551. this.columnIDProductType.AllowDBNull = false;
  2552. this.columnIDProductType.ReadOnly = true;
  2553. this.columnIDProductType.Unique = true;
  2554. this.columnProductType.MaxLength = 50;
  2555. }
  2556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2558. public ProductTypeRow NewProductTypeRow() {
  2559. return ((ProductTypeRow)(this.NewRow()));
  2560. }
  2561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2563. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2564. return new ProductTypeRow(builder);
  2565. }
  2566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2568. protected override global::System.Type GetRowType() {
  2569. return typeof(ProductTypeRow);
  2570. }
  2571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2573. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2574. base.OnRowChanged(e);
  2575. if ((this.ProductTypeRowChanged != null)) {
  2576. this.ProductTypeRowChanged(this, new ProductTypeRowChangeEvent(((ProductTypeRow)(e.Row)), e.Action));
  2577. }
  2578. }
  2579. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2580. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2581. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2582. base.OnRowChanging(e);
  2583. if ((this.ProductTypeRowChanging != null)) {
  2584. this.ProductTypeRowChanging(this, new ProductTypeRowChangeEvent(((ProductTypeRow)(e.Row)), e.Action));
  2585. }
  2586. }
  2587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2589. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2590. base.OnRowDeleted(e);
  2591. if ((this.ProductTypeRowDeleted != null)) {
  2592. this.ProductTypeRowDeleted(this, new ProductTypeRowChangeEvent(((ProductTypeRow)(e.Row)), e.Action));
  2593. }
  2594. }
  2595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2597. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2598. base.OnRowDeleting(e);
  2599. if ((this.ProductTypeRowDeleting != null)) {
  2600. this.ProductTypeRowDeleting(this, new ProductTypeRowChangeEvent(((ProductTypeRow)(e.Row)), e.Action));
  2601. }
  2602. }
  2603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2605. public void RemoveProductTypeRow(ProductTypeRow row) {
  2606. this.Rows.Remove(row);
  2607. }
  2608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2610. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2611. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2612. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2613. AlfafloorGDVDataSet ds = new AlfafloorGDVDataSet();
  2614. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2615. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2616. any1.MinOccurs = new decimal(0);
  2617. any1.MaxOccurs = decimal.MaxValue;
  2618. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2619. sequence.Items.Add(any1);
  2620. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2621. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2622. any2.MinOccurs = new decimal(1);
  2623. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2624. sequence.Items.Add(any2);
  2625. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2626. attribute1.Name = "namespace";
  2627. attribute1.FixedValue = ds.Namespace;
  2628. type.Attributes.Add(attribute1);
  2629. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2630. attribute2.Name = "tableTypeName";
  2631. attribute2.FixedValue = "ProductTypeDataTable";
  2632. type.Attributes.Add(attribute2);
  2633. type.Particle = sequence;
  2634. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2635. if (xs.Contains(dsSchema.TargetNamespace)) {
  2636. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2637. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2638. try {
  2639. global::System.Xml.Schema.XmlSchema schema = null;
  2640. dsSchema.Write(s1);
  2641. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2642. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2643. s2.SetLength(0);
  2644. schema.Write(s2);
  2645. if ((s1.Length == s2.Length)) {
  2646. s1.Position = 0;
  2647. s2.Position = 0;
  2648. for (; ((s1.Position != s1.Length)
  2649. && (s1.ReadByte() == s2.ReadByte())); ) {
  2650. ;
  2651. }
  2652. if ((s1.Position == s1.Length)) {
  2653. return type;
  2654. }
  2655. }
  2656. }
  2657. }
  2658. finally {
  2659. if ((s1 != null)) {
  2660. s1.Close();
  2661. }
  2662. if ((s2 != null)) {
  2663. s2.Close();
  2664. }
  2665. }
  2666. }
  2667. xs.Add(dsSchema);
  2668. return type;
  2669. }
  2670. }
  2671. /// <summary>
  2672. ///Represents the strongly named DataTable class.
  2673. ///</summary>
  2674. [global::System.Serializable()]
  2675. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2676. public partial class RegionDataTable : global::System.Data.TypedTableBase<RegionRow> {
  2677. private global::System.Data.DataColumn columnIDRegion;
  2678. private global::System.Data.DataColumn columnRegion;
  2679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2681. public RegionDataTable() {
  2682. this.TableName = "Region";
  2683. this.BeginInit();
  2684. this.InitClass();
  2685. this.EndInit();
  2686. }
  2687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2689. internal RegionDataTable(global::System.Data.DataTable table) {
  2690. this.TableName = table.TableName;
  2691. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2692. this.CaseSensitive = table.CaseSensitive;
  2693. }
  2694. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2695. this.Locale = table.Locale;
  2696. }
  2697. if ((table.Namespace != table.DataSet.Namespace)) {
  2698. this.Namespace = table.Namespace;
  2699. }
  2700. this.Prefix = table.Prefix;
  2701. this.MinimumCapacity = table.MinimumCapacity;
  2702. }
  2703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2705. protected RegionDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2706. base(info, context) {
  2707. this.InitVars();
  2708. }
  2709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2711. public global::System.Data.DataColumn IDRegionColumn {
  2712. get {
  2713. return this.columnIDRegion;
  2714. }
  2715. }
  2716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2718. public global::System.Data.DataColumn RegionColumn {
  2719. get {
  2720. return this.columnRegion;
  2721. }
  2722. }
  2723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2725. [global::System.ComponentModel.Browsable(false)]
  2726. public int Count {
  2727. get {
  2728. return this.Rows.Count;
  2729. }
  2730. }
  2731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2733. public RegionRow this[int index] {
  2734. get {
  2735. return ((RegionRow)(this.Rows[index]));
  2736. }
  2737. }
  2738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2739. public event RegionRowChangeEventHandler RegionRowChanging;
  2740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2741. public event RegionRowChangeEventHandler RegionRowChanged;
  2742. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2743. public event RegionRowChangeEventHandler RegionRowDeleting;
  2744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2745. public event RegionRowChangeEventHandler RegionRowDeleted;
  2746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2748. public void AddRegionRow(RegionRow row) {
  2749. this.Rows.Add(row);
  2750. }
  2751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2753. public RegionRow AddRegionRow(string Region) {
  2754. RegionRow rowRegionRow = ((RegionRow)(this.NewRow()));
  2755. object[] columnValuesArray = new object[] {
  2756. null,
  2757. Region};
  2758. rowRegionRow.ItemArray = columnValuesArray;
  2759. this.Rows.Add(rowRegionRow);
  2760. return rowRegionRow;
  2761. }
  2762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2764. public RegionRow FindByIDRegion(int IDRegion) {
  2765. return ((RegionRow)(this.Rows.Find(new object[] {
  2766. IDRegion})));
  2767. }
  2768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2770. public override global::System.Data.DataTable Clone() {
  2771. RegionDataTable cln = ((RegionDataTable)(base.Clone()));
  2772. cln.InitVars();
  2773. return cln;
  2774. }
  2775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2776. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2777. protected override global::System.Data.DataTable CreateInstance() {
  2778. return new RegionDataTable();
  2779. }
  2780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2782. internal void InitVars() {
  2783. this.columnIDRegion = base.Columns["IDRegion"];
  2784. this.columnRegion = base.Columns["Region"];
  2785. }
  2786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2788. private void InitClass() {
  2789. this.columnIDRegion = new global::System.Data.DataColumn("IDRegion", typeof(int), null, global::System.Data.MappingType.Element);
  2790. base.Columns.Add(this.columnIDRegion);
  2791. this.columnRegion = new global::System.Data.DataColumn("Region", typeof(string), null, global::System.Data.MappingType.Element);
  2792. base.Columns.Add(this.columnRegion);
  2793. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2794. this.columnIDRegion}, true));
  2795. this.columnIDRegion.AutoIncrement = true;
  2796. this.columnIDRegion.AutoIncrementSeed = -1;
  2797. this.columnIDRegion.AutoIncrementStep = -1;
  2798. this.columnIDRegion.AllowDBNull = false;
  2799. this.columnIDRegion.ReadOnly = true;
  2800. this.columnIDRegion.Unique = true;
  2801. this.columnRegion.MaxLength = 50;
  2802. }
  2803. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2804. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2805. public RegionRow NewRegionRow() {
  2806. return ((RegionRow)(this.NewRow()));
  2807. }
  2808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2810. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2811. return new RegionRow(builder);
  2812. }
  2813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2814. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2815. protected override global::System.Type GetRowType() {
  2816. return typeof(RegionRow);
  2817. }
  2818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2820. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2821. base.OnRowChanged(e);
  2822. if ((this.RegionRowChanged != null)) {
  2823. this.RegionRowChanged(this, new RegionRowChangeEvent(((RegionRow)(e.Row)), e.Action));
  2824. }
  2825. }
  2826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2828. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2829. base.OnRowChanging(e);
  2830. if ((this.RegionRowChanging != null)) {
  2831. this.RegionRowChanging(this, new RegionRowChangeEvent(((RegionRow)(e.Row)), e.Action));
  2832. }
  2833. }
  2834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2836. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2837. base.OnRowDeleted(e);
  2838. if ((this.RegionRowDeleted != null)) {
  2839. this.RegionRowDeleted(this, new RegionRowChangeEvent(((RegionRow)(e.Row)), e.Action));
  2840. }
  2841. }
  2842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2844. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2845. base.OnRowDeleting(e);
  2846. if ((this.RegionRowDeleting != null)) {
  2847. this.RegionRowDeleting(this, new RegionRowChangeEvent(((RegionRow)(e.Row)), e.Action));
  2848. }
  2849. }
  2850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2852. public void RemoveRegionRow(RegionRow row) {
  2853. this.Rows.Remove(row);
  2854. }
  2855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2857. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2858. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2859. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2860. AlfafloorGDVDataSet ds = new AlfafloorGDVDataSet();
  2861. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2862. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2863. any1.MinOccurs = new decimal(0);
  2864. any1.MaxOccurs = decimal.MaxValue;
  2865. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2866. sequence.Items.Add(any1);
  2867. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2868. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2869. any2.MinOccurs = new decimal(1);
  2870. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2871. sequence.Items.Add(any2);
  2872. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2873. attribute1.Name = "namespace";
  2874. attribute1.FixedValue = ds.Namespace;
  2875. type.Attributes.Add(attribute1);
  2876. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2877. attribute2.Name = "tableTypeName";
  2878. attribute2.FixedValue = "RegionDataTable";
  2879. type.Attributes.Add(attribute2);
  2880. type.Particle = sequence;
  2881. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2882. if (xs.Contains(dsSchema.TargetNamespace)) {
  2883. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2884. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2885. try {
  2886. global::System.Xml.Schema.XmlSchema schema = null;
  2887. dsSchema.Write(s1);
  2888. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2889. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2890. s2.SetLength(0);
  2891. schema.Write(s2);
  2892. if ((s1.Length == s2.Length)) {
  2893. s1.Position = 0;
  2894. s2.Position = 0;
  2895. for (; ((s1.Position != s1.Length)
  2896. && (s1.ReadByte() == s2.ReadByte())); ) {
  2897. ;
  2898. }
  2899. if ((s1.Position == s1.Length)) {
  2900. return type;
  2901. }
  2902. }
  2903. }
  2904. }
  2905. finally {
  2906. if ((s1 != null)) {
  2907. s1.Close();
  2908. }
  2909. if ((s2 != null)) {
  2910. s2.Close();
  2911. }
  2912. }
  2913. }
  2914. xs.Add(dsSchema);
  2915. return type;
  2916. }
  2917. }
  2918. /// <summary>
  2919. ///Represents the strongly named DataTable class.
  2920. ///</summary>
  2921. [global::System.Serializable()]
  2922. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2923. public partial class StreetDataTable : global::System.Data.TypedTableBase<StreetRow> {
  2924. private global::System.Data.DataColumn columnIDStreet;
  2925. private global::System.Data.DataColumn columnStreet;
  2926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2928. public StreetDataTable() {
  2929. this.TableName = "Street";
  2930. this.BeginInit();
  2931. this.InitClass();
  2932. this.EndInit();
  2933. }
  2934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2935. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2936. internal StreetDataTable(global::System.Data.DataTable table) {
  2937. this.TableName = table.TableName;
  2938. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2939. this.CaseSensitive = table.CaseSensitive;
  2940. }
  2941. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2942. this.Locale = table.Locale;
  2943. }
  2944. if ((table.Namespace != table.DataSet.Namespace)) {
  2945. this.Namespace = table.Namespace;
  2946. }
  2947. this.Prefix = table.Prefix;
  2948. this.MinimumCapacity = table.MinimumCapacity;
  2949. }
  2950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2952. protected StreetDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2953. base(info, context) {
  2954. this.InitVars();
  2955. }
  2956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2958. public global::System.Data.DataColumn IDStreetColumn {
  2959. get {
  2960. return this.columnIDStreet;
  2961. }
  2962. }
  2963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2965. public global::System.Data.DataColumn StreetColumn {
  2966. get {
  2967. return this.columnStreet;
  2968. }
  2969. }
  2970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2972. [global::System.ComponentModel.Browsable(false)]
  2973. public int Count {
  2974. get {
  2975. return this.Rows.Count;
  2976. }
  2977. }
  2978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2980. public StreetRow this[int index] {
  2981. get {
  2982. return ((StreetRow)(this.Rows[index]));
  2983. }
  2984. }
  2985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2986. public event StreetRowChangeEventHandler StreetRowChanging;
  2987. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2988. public event StreetRowChangeEventHandler StreetRowChanged;
  2989. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2990. public event StreetRowChangeEventHandler StreetRowDeleting;
  2991. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2992. public event StreetRowChangeEventHandler StreetRowDeleted;
  2993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2995. public void AddStreetRow(StreetRow row) {
  2996. this.Rows.Add(row);
  2997. }
  2998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3000. public StreetRow AddStreetRow(string Street) {
  3001. StreetRow rowStreetRow = ((StreetRow)(this.NewRow()));
  3002. object[] columnValuesArray = new object[] {
  3003. null,
  3004. Street};
  3005. rowStreetRow.ItemArray = columnValuesArray;
  3006. this.Rows.Add(rowStreetRow);
  3007. return rowStreetRow;
  3008. }
  3009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3011. public StreetRow FindByIDStreet(int IDStreet) {
  3012. return ((StreetRow)(this.Rows.Find(new object[] {
  3013. IDStreet})));
  3014. }
  3015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3017. public override global::System.Data.DataTable Clone() {
  3018. StreetDataTable cln = ((StreetDataTable)(base.Clone()));
  3019. cln.InitVars();
  3020. return cln;
  3021. }
  3022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3024. protected override global::System.Data.DataTable CreateInstance() {
  3025. return new StreetDataTable();
  3026. }
  3027. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3028. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3029. internal void InitVars() {
  3030. this.columnIDStreet = base.Columns["IDStreet"];
  3031. this.columnStreet = base.Columns["Street"];
  3032. }
  3033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3034. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3035. private void InitClass() {
  3036. this.columnIDStreet = new global::System.Data.DataColumn("IDStreet", typeof(int), null, global::System.Data.MappingType.Element);
  3037. base.Columns.Add(this.columnIDStreet);
  3038. this.columnStreet = new global::System.Data.DataColumn("Street", typeof(string), null, global::System.Data.MappingType.Element);
  3039. base.Columns.Add(this.columnStreet);
  3040. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3041. this.columnIDStreet}, true));
  3042. this.columnIDStreet.AutoIncrement = true;
  3043. this.columnIDStreet.AutoIncrementSeed = -1;
  3044. this.columnIDStreet.AutoIncrementStep = -1;
  3045. this.columnIDStreet.AllowDBNull = false;
  3046. this.columnIDStreet.ReadOnly = true;
  3047. this.columnIDStreet.Unique = true;
  3048. this.columnStreet.MaxLength = 50;
  3049. }
  3050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3052. public StreetRow NewStreetRow() {
  3053. return ((StreetRow)(this.NewRow()));
  3054. }
  3055. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3056. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3057. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3058. return new StreetRow(builder);
  3059. }
  3060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3062. protected override global::System.Type GetRowType() {
  3063. return typeof(StreetRow);
  3064. }
  3065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3067. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3068. base.OnRowChanged(e);
  3069. if ((this.StreetRowChanged != null)) {
  3070. this.StreetRowChanged(this, new StreetRowChangeEvent(((StreetRow)(e.Row)), e.Action));
  3071. }
  3072. }
  3073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3075. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3076. base.OnRowChanging(e);
  3077. if ((this.StreetRowChanging != null)) {
  3078. this.StreetRowChanging(this, new StreetRowChangeEvent(((StreetRow)(e.Row)), e.Action));
  3079. }
  3080. }
  3081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3083. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3084. base.OnRowDeleted(e);
  3085. if ((this.StreetRowDeleted != null)) {
  3086. this.StreetRowDeleted(this, new StreetRowChangeEvent(((StreetRow)(e.Row)), e.Action));
  3087. }
  3088. }
  3089. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3090. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3091. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3092. base.OnRowDeleting(e);
  3093. if ((this.StreetRowDeleting != null)) {
  3094. this.StreetRowDeleting(this, new StreetRowChangeEvent(((StreetRow)(e.Row)), e.Action));
  3095. }
  3096. }
  3097. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3098. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3099. public void RemoveStreetRow(StreetRow row) {
  3100. this.Rows.Remove(row);
  3101. }
  3102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3103. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3104. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3105. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3106. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3107. AlfafloorGDVDataSet ds = new AlfafloorGDVDataSet();
  3108. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3109. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3110. any1.MinOccurs = new decimal(0);
  3111. any1.MaxOccurs = decimal.MaxValue;
  3112. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3113. sequence.Items.Add(any1);
  3114. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3115. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3116. any2.MinOccurs = new decimal(1);
  3117. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3118. sequence.Items.Add(any2);
  3119. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3120. attribute1.Name = "namespace";
  3121. attribute1.FixedValue = ds.Namespace;
  3122. type.Attributes.Add(attribute1);
  3123. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3124. attribute2.Name = "tableTypeName";
  3125. attribute2.FixedValue = "StreetDataTable";
  3126. type.Attributes.Add(attribute2);
  3127. type.Particle = sequence;
  3128. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3129. if (xs.Contains(dsSchema.TargetNamespace)) {
  3130. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3131. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3132. try {
  3133. global::System.Xml.Schema.XmlSchema schema = null;
  3134. dsSchema.Write(s1);
  3135. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3136. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3137. s2.SetLength(0);
  3138. schema.Write(s2);
  3139. if ((s1.Length == s2.Length)) {
  3140. s1.Position = 0;
  3141. s2.Position = 0;
  3142. for (; ((s1.Position != s1.Length)
  3143. && (s1.ReadByte() == s2.ReadByte())); ) {
  3144. ;
  3145. }
  3146. if ((s1.Position == s1.Length)) {
  3147. return type;
  3148. }
  3149. }
  3150. }
  3151. }
  3152. finally {
  3153. if ((s1 != null)) {
  3154. s1.Close();
  3155. }
  3156. if ((s2 != null)) {
  3157. s2.Close();
  3158. }
  3159. }
  3160. }
  3161. xs.Add(dsSchema);
  3162. return type;
  3163. }
  3164. }
  3165. /// <summary>
  3166. ///Represents the strongly named DataTable class.
  3167. ///</summary>
  3168. [global::System.Serializable()]
  3169. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3170. public partial class TypeMaterialDataTable : global::System.Data.TypedTableBase<TypeMaterialRow> {
  3171. private global::System.Data.DataColumn columnIDTypeMaterial;
  3172. private global::System.Data.DataColumn columnTypeMaterial;
  3173. private global::System.Data.DataColumn columnDefectPercent;
  3174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3176. public TypeMaterialDataTable() {
  3177. this.TableName = "TypeMaterial";
  3178. this.BeginInit();
  3179. this.InitClass();
  3180. this.EndInit();
  3181. }
  3182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3184. internal TypeMaterialDataTable(global::System.Data.DataTable table) {
  3185. this.TableName = table.TableName;
  3186. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3187. this.CaseSensitive = table.CaseSensitive;
  3188. }
  3189. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3190. this.Locale = table.Locale;
  3191. }
  3192. if ((table.Namespace != table.DataSet.Namespace)) {
  3193. this.Namespace = table.Namespace;
  3194. }
  3195. this.Prefix = table.Prefix;
  3196. this.MinimumCapacity = table.MinimumCapacity;
  3197. }
  3198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3200. protected TypeMaterialDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3201. base(info, context) {
  3202. this.InitVars();
  3203. }
  3204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3206. public global::System.Data.DataColumn IDTypeMaterialColumn {
  3207. get {
  3208. return this.columnIDTypeMaterial;
  3209. }
  3210. }
  3211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3213. public global::System.Data.DataColumn TypeMaterialColumn {
  3214. get {
  3215. return this.columnTypeMaterial;
  3216. }
  3217. }
  3218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3220. public global::System.Data.DataColumn DefectPercentColumn {
  3221. get {
  3222. return this.columnDefectPercent;
  3223. }
  3224. }
  3225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3227. [global::System.ComponentModel.Browsable(false)]
  3228. public int Count {
  3229. get {
  3230. return this.Rows.Count;
  3231. }
  3232. }
  3233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3235. public TypeMaterialRow this[int index] {
  3236. get {
  3237. return ((TypeMaterialRow)(this.Rows[index]));
  3238. }
  3239. }
  3240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3241. public event TypeMaterialRowChangeEventHandler TypeMaterialRowChanging;
  3242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3243. public event TypeMaterialRowChangeEventHandler TypeMaterialRowChanged;
  3244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3245. public event TypeMaterialRowChangeEventHandler TypeMaterialRowDeleting;
  3246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3247. public event TypeMaterialRowChangeEventHandler TypeMaterialRowDeleted;
  3248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3250. public void AddTypeMaterialRow(TypeMaterialRow row) {
  3251. this.Rows.Add(row);
  3252. }
  3253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3255. public TypeMaterialRow AddTypeMaterialRow(string TypeMaterial, double DefectPercent) {
  3256. TypeMaterialRow rowTypeMaterialRow = ((TypeMaterialRow)(this.NewRow()));
  3257. object[] columnValuesArray = new object[] {
  3258. null,
  3259. TypeMaterial,
  3260. DefectPercent};
  3261. rowTypeMaterialRow.ItemArray = columnValuesArray;
  3262. this.Rows.Add(rowTypeMaterialRow);
  3263. return rowTypeMaterialRow;
  3264. }
  3265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3267. public TypeMaterialRow FindByIDTypeMaterial(int IDTypeMaterial) {
  3268. return ((TypeMaterialRow)(this.Rows.Find(new object[] {
  3269. IDTypeMaterial})));
  3270. }
  3271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3272. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3273. public override global::System.Data.DataTable Clone() {
  3274. TypeMaterialDataTable cln = ((TypeMaterialDataTable)(base.Clone()));
  3275. cln.InitVars();
  3276. return cln;
  3277. }
  3278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3280. protected override global::System.Data.DataTable CreateInstance() {
  3281. return new TypeMaterialDataTable();
  3282. }
  3283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3285. internal void InitVars() {
  3286. this.columnIDTypeMaterial = base.Columns["IDTypeMaterial"];
  3287. this.columnTypeMaterial = base.Columns["TypeMaterial"];
  3288. this.columnDefectPercent = base.Columns["DefectPercent"];
  3289. }
  3290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3291. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3292. private void InitClass() {
  3293. this.columnIDTypeMaterial = new global::System.Data.DataColumn("IDTypeMaterial", typeof(int), null, global::System.Data.MappingType.Element);
  3294. base.Columns.Add(this.columnIDTypeMaterial);
  3295. this.columnTypeMaterial = new global::System.Data.DataColumn("TypeMaterial", typeof(string), null, global::System.Data.MappingType.Element);
  3296. base.Columns.Add(this.columnTypeMaterial);
  3297. this.columnDefectPercent = new global::System.Data.DataColumn("DefectPercent", typeof(double), null, global::System.Data.MappingType.Element);
  3298. base.Columns.Add(this.columnDefectPercent);
  3299. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3300. this.columnIDTypeMaterial}, true));
  3301. this.columnIDTypeMaterial.AutoIncrement = true;
  3302. this.columnIDTypeMaterial.AutoIncrementSeed = -1;
  3303. this.columnIDTypeMaterial.AutoIncrementStep = -1;
  3304. this.columnIDTypeMaterial.AllowDBNull = false;
  3305. this.columnIDTypeMaterial.ReadOnly = true;
  3306. this.columnIDTypeMaterial.Unique = true;
  3307. this.columnTypeMaterial.MaxLength = 50;
  3308. }
  3309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3311. public TypeMaterialRow NewTypeMaterialRow() {
  3312. return ((TypeMaterialRow)(this.NewRow()));
  3313. }
  3314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3316. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3317. return new TypeMaterialRow(builder);
  3318. }
  3319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3321. protected override global::System.Type GetRowType() {
  3322. return typeof(TypeMaterialRow);
  3323. }
  3324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3326. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3327. base.OnRowChanged(e);
  3328. if ((this.TypeMaterialRowChanged != null)) {
  3329. this.TypeMaterialRowChanged(this, new TypeMaterialRowChangeEvent(((TypeMaterialRow)(e.Row)), e.Action));
  3330. }
  3331. }
  3332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3334. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3335. base.OnRowChanging(e);
  3336. if ((this.TypeMaterialRowChanging != null)) {
  3337. this.TypeMaterialRowChanging(this, new TypeMaterialRowChangeEvent(((TypeMaterialRow)(e.Row)), e.Action));
  3338. }
  3339. }
  3340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3342. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3343. base.OnRowDeleted(e);
  3344. if ((this.TypeMaterialRowDeleted != null)) {
  3345. this.TypeMaterialRowDeleted(this, new TypeMaterialRowChangeEvent(((TypeMaterialRow)(e.Row)), e.Action));
  3346. }
  3347. }
  3348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3349. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3350. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3351. base.OnRowDeleting(e);
  3352. if ((this.TypeMaterialRowDeleting != null)) {
  3353. this.TypeMaterialRowDeleting(this, new TypeMaterialRowChangeEvent(((TypeMaterialRow)(e.Row)), e.Action));
  3354. }
  3355. }
  3356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3358. public void RemoveTypeMaterialRow(TypeMaterialRow row) {
  3359. this.Rows.Remove(row);
  3360. }
  3361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3363. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3364. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3365. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3366. AlfafloorGDVDataSet ds = new AlfafloorGDVDataSet();
  3367. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3368. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3369. any1.MinOccurs = new decimal(0);
  3370. any1.MaxOccurs = decimal.MaxValue;
  3371. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3372. sequence.Items.Add(any1);
  3373. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3374. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3375. any2.MinOccurs = new decimal(1);
  3376. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3377. sequence.Items.Add(any2);
  3378. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3379. attribute1.Name = "namespace";
  3380. attribute1.FixedValue = ds.Namespace;
  3381. type.Attributes.Add(attribute1);
  3382. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3383. attribute2.Name = "tableTypeName";
  3384. attribute2.FixedValue = "TypeMaterialDataTable";
  3385. type.Attributes.Add(attribute2);
  3386. type.Particle = sequence;
  3387. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3388. if (xs.Contains(dsSchema.TargetNamespace)) {
  3389. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3390. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3391. try {
  3392. global::System.Xml.Schema.XmlSchema schema = null;
  3393. dsSchema.Write(s1);
  3394. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3395. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3396. s2.SetLength(0);
  3397. schema.Write(s2);
  3398. if ((s1.Length == s2.Length)) {
  3399. s1.Position = 0;
  3400. s2.Position = 0;
  3401. for (; ((s1.Position != s1.Length)
  3402. && (s1.ReadByte() == s2.ReadByte())); ) {
  3403. ;
  3404. }
  3405. if ((s1.Position == s1.Length)) {
  3406. return type;
  3407. }
  3408. }
  3409. }
  3410. }
  3411. finally {
  3412. if ((s1 != null)) {
  3413. s1.Close();
  3414. }
  3415. if ((s2 != null)) {
  3416. s2.Close();
  3417. }
  3418. }
  3419. }
  3420. xs.Add(dsSchema);
  3421. return type;
  3422. }
  3423. }
  3424. /// <summary>
  3425. ///Represents the strongly named DataTable class.
  3426. ///</summary>
  3427. [global::System.Serializable()]
  3428. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3429. public partial class TypePartnerDataTable : global::System.Data.TypedTableBase<TypePartnerRow> {
  3430. private global::System.Data.DataColumn columnIDTypePartner;
  3431. private global::System.Data.DataColumn columnTypePartner;
  3432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3433. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3434. public TypePartnerDataTable() {
  3435. this.TableName = "TypePartner";
  3436. this.BeginInit();
  3437. this.InitClass();
  3438. this.EndInit();
  3439. }
  3440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3442. internal TypePartnerDataTable(global::System.Data.DataTable table) {
  3443. this.TableName = table.TableName;
  3444. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3445. this.CaseSensitive = table.CaseSensitive;
  3446. }
  3447. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3448. this.Locale = table.Locale;
  3449. }
  3450. if ((table.Namespace != table.DataSet.Namespace)) {
  3451. this.Namespace = table.Namespace;
  3452. }
  3453. this.Prefix = table.Prefix;
  3454. this.MinimumCapacity = table.MinimumCapacity;
  3455. }
  3456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3458. protected TypePartnerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3459. base(info, context) {
  3460. this.InitVars();
  3461. }
  3462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3464. public global::System.Data.DataColumn IDTypePartnerColumn {
  3465. get {
  3466. return this.columnIDTypePartner;
  3467. }
  3468. }
  3469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3471. public global::System.Data.DataColumn TypePartnerColumn {
  3472. get {
  3473. return this.columnTypePartner;
  3474. }
  3475. }
  3476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3477. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3478. [global::System.ComponentModel.Browsable(false)]
  3479. public int Count {
  3480. get {
  3481. return this.Rows.Count;
  3482. }
  3483. }
  3484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3486. public TypePartnerRow this[int index] {
  3487. get {
  3488. return ((TypePartnerRow)(this.Rows[index]));
  3489. }
  3490. }
  3491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3492. public event TypePartnerRowChangeEventHandler TypePartnerRowChanging;
  3493. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3494. public event TypePartnerRowChangeEventHandler TypePartnerRowChanged;
  3495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3496. public event TypePartnerRowChangeEventHandler TypePartnerRowDeleting;
  3497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3498. public event TypePartnerRowChangeEventHandler TypePartnerRowDeleted;
  3499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3500. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3501. public void AddTypePartnerRow(TypePartnerRow row) {
  3502. this.Rows.Add(row);
  3503. }
  3504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3506. public TypePartnerRow AddTypePartnerRow(string TypePartner) {
  3507. TypePartnerRow rowTypePartnerRow = ((TypePartnerRow)(this.NewRow()));
  3508. object[] columnValuesArray = new object[] {
  3509. null,
  3510. TypePartner};
  3511. rowTypePartnerRow.ItemArray = columnValuesArray;
  3512. this.Rows.Add(rowTypePartnerRow);
  3513. return rowTypePartnerRow;
  3514. }
  3515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3516. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3517. public TypePartnerRow FindByIDTypePartner(int IDTypePartner) {
  3518. return ((TypePartnerRow)(this.Rows.Find(new object[] {
  3519. IDTypePartner})));
  3520. }
  3521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3523. public override global::System.Data.DataTable Clone() {
  3524. TypePartnerDataTable cln = ((TypePartnerDataTable)(base.Clone()));
  3525. cln.InitVars();
  3526. return cln;
  3527. }
  3528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3530. protected override global::System.Data.DataTable CreateInstance() {
  3531. return new TypePartnerDataTable();
  3532. }
  3533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3535. internal void InitVars() {
  3536. this.columnIDTypePartner = base.Columns["IDTypePartner"];
  3537. this.columnTypePartner = base.Columns["TypePartner"];
  3538. }
  3539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3541. private void InitClass() {
  3542. this.columnIDTypePartner = new global::System.Data.DataColumn("IDTypePartner", typeof(int), null, global::System.Data.MappingType.Element);
  3543. base.Columns.Add(this.columnIDTypePartner);
  3544. this.columnTypePartner = new global::System.Data.DataColumn("TypePartner", typeof(string), null, global::System.Data.MappingType.Element);
  3545. base.Columns.Add(this.columnTypePartner);
  3546. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3547. this.columnIDTypePartner}, true));
  3548. this.columnIDTypePartner.AutoIncrement = true;
  3549. this.columnIDTypePartner.AutoIncrementSeed = -1;
  3550. this.columnIDTypePartner.AutoIncrementStep = -1;
  3551. this.columnIDTypePartner.AllowDBNull = false;
  3552. this.columnIDTypePartner.ReadOnly = true;
  3553. this.columnIDTypePartner.Unique = true;
  3554. this.columnTypePartner.MaxLength = 50;
  3555. }
  3556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3558. public TypePartnerRow NewTypePartnerRow() {
  3559. return ((TypePartnerRow)(this.NewRow()));
  3560. }
  3561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3563. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3564. return new TypePartnerRow(builder);
  3565. }
  3566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3568. protected override global::System.Type GetRowType() {
  3569. return typeof(TypePartnerRow);
  3570. }
  3571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3573. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3574. base.OnRowChanged(e);
  3575. if ((this.TypePartnerRowChanged != null)) {
  3576. this.TypePartnerRowChanged(this, new TypePartnerRowChangeEvent(((TypePartnerRow)(e.Row)), e.Action));
  3577. }
  3578. }
  3579. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3580. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3581. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3582. base.OnRowChanging(e);
  3583. if ((this.TypePartnerRowChanging != null)) {
  3584. this.TypePartnerRowChanging(this, new TypePartnerRowChangeEvent(((TypePartnerRow)(e.Row)), e.Action));
  3585. }
  3586. }
  3587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3589. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3590. base.OnRowDeleted(e);
  3591. if ((this.TypePartnerRowDeleted != null)) {
  3592. this.TypePartnerRowDeleted(this, new TypePartnerRowChangeEvent(((TypePartnerRow)(e.Row)), e.Action));
  3593. }
  3594. }
  3595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3597. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3598. base.OnRowDeleting(e);
  3599. if ((this.TypePartnerRowDeleting != null)) {
  3600. this.TypePartnerRowDeleting(this, new TypePartnerRowChangeEvent(((TypePartnerRow)(e.Row)), e.Action));
  3601. }
  3602. }
  3603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3605. public void RemoveTypePartnerRow(TypePartnerRow row) {
  3606. this.Rows.Remove(row);
  3607. }
  3608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3610. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3611. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3612. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3613. AlfafloorGDVDataSet ds = new AlfafloorGDVDataSet();
  3614. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3615. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3616. any1.MinOccurs = new decimal(0);
  3617. any1.MaxOccurs = decimal.MaxValue;
  3618. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3619. sequence.Items.Add(any1);
  3620. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3621. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3622. any2.MinOccurs = new decimal(1);
  3623. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3624. sequence.Items.Add(any2);
  3625. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3626. attribute1.Name = "namespace";
  3627. attribute1.FixedValue = ds.Namespace;
  3628. type.Attributes.Add(attribute1);
  3629. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3630. attribute2.Name = "tableTypeName";
  3631. attribute2.FixedValue = "TypePartnerDataTable";
  3632. type.Attributes.Add(attribute2);
  3633. type.Particle = sequence;
  3634. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3635. if (xs.Contains(dsSchema.TargetNamespace)) {
  3636. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3637. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3638. try {
  3639. global::System.Xml.Schema.XmlSchema schema = null;
  3640. dsSchema.Write(s1);
  3641. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3642. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3643. s2.SetLength(0);
  3644. schema.Write(s2);
  3645. if ((s1.Length == s2.Length)) {
  3646. s1.Position = 0;
  3647. s2.Position = 0;
  3648. for (; ((s1.Position != s1.Length)
  3649. && (s1.ReadByte() == s2.ReadByte())); ) {
  3650. ;
  3651. }
  3652. if ((s1.Position == s1.Length)) {
  3653. return type;
  3654. }
  3655. }
  3656. }
  3657. }
  3658. finally {
  3659. if ((s1 != null)) {
  3660. s1.Close();
  3661. }
  3662. if ((s2 != null)) {
  3663. s2.Close();
  3664. }
  3665. }
  3666. }
  3667. xs.Add(dsSchema);
  3668. return type;
  3669. }
  3670. }
  3671. /// <summary>
  3672. ///Represents strongly named DataRow class.
  3673. ///</summary>
  3674. public partial class CityRow : global::System.Data.DataRow {
  3675. private CityDataTable tableCity;
  3676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3678. internal CityRow(global::System.Data.DataRowBuilder rb) :
  3679. base(rb) {
  3680. this.tableCity = ((CityDataTable)(this.Table));
  3681. }
  3682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3684. public int IDCity {
  3685. get {
  3686. return ((int)(this[this.tableCity.IDCityColumn]));
  3687. }
  3688. set {
  3689. this[this.tableCity.IDCityColumn] = value;
  3690. }
  3691. }
  3692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3694. public string City {
  3695. get {
  3696. try {
  3697. return ((string)(this[this.tableCity.CityColumn]));
  3698. }
  3699. catch (global::System.InvalidCastException e) {
  3700. throw new global::System.Data.StrongTypingException("The value for column \'City\' in table \'City\' is DBNull.", e);
  3701. }
  3702. }
  3703. set {
  3704. this[this.tableCity.CityColumn] = value;
  3705. }
  3706. }
  3707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3709. public bool IsCityNull() {
  3710. return this.IsNull(this.tableCity.CityColumn);
  3711. }
  3712. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3713. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3714. public void SetCityNull() {
  3715. this[this.tableCity.CityColumn] = global::System.Convert.DBNull;
  3716. }
  3717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3719. public PartnerRow[] GetPartnerRows() {
  3720. if ((this.Table.ChildRelations["FK_Partner_City"] == null)) {
  3721. return new PartnerRow[0];
  3722. }
  3723. else {
  3724. return ((PartnerRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Partner_City"])));
  3725. }
  3726. }
  3727. }
  3728. /// <summary>
  3729. ///Represents strongly named DataRow class.
  3730. ///</summary>
  3731. public partial class ManagerRow : global::System.Data.DataRow {
  3732. private ManagerDataTable tableManager;
  3733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3735. internal ManagerRow(global::System.Data.DataRowBuilder rb) :
  3736. base(rb) {
  3737. this.tableManager = ((ManagerDataTable)(this.Table));
  3738. }
  3739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3741. public int IDManager {
  3742. get {
  3743. return ((int)(this[this.tableManager.IDManagerColumn]));
  3744. }
  3745. set {
  3746. this[this.tableManager.IDManagerColumn] = value;
  3747. }
  3748. }
  3749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3751. public string Surname {
  3752. get {
  3753. try {
  3754. return ((string)(this[this.tableManager.SurnameColumn]));
  3755. }
  3756. catch (global::System.InvalidCastException e) {
  3757. throw new global::System.Data.StrongTypingException("The value for column \'Surname\' in table \'Manager\' is DBNull.", e);
  3758. }
  3759. }
  3760. set {
  3761. this[this.tableManager.SurnameColumn] = value;
  3762. }
  3763. }
  3764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3766. public string Name {
  3767. get {
  3768. try {
  3769. return ((string)(this[this.tableManager.NameColumn]));
  3770. }
  3771. catch (global::System.InvalidCastException e) {
  3772. throw new global::System.Data.StrongTypingException("The value for column \'Name\' in table \'Manager\' is DBNull.", e);
  3773. }
  3774. }
  3775. set {
  3776. this[this.tableManager.NameColumn] = value;
  3777. }
  3778. }
  3779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3781. public string Patronomyc {
  3782. get {
  3783. try {
  3784. return ((string)(this[this.tableManager.PatronomycColumn]));
  3785. }
  3786. catch (global::System.InvalidCastException e) {
  3787. throw new global::System.Data.StrongTypingException("The value for column \'Patronomyc\' in table \'Manager\' is DBNull.", e);
  3788. }
  3789. }
  3790. set {
  3791. this[this.tableManager.PatronomycColumn] = value;
  3792. }
  3793. }
  3794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3796. public string Login {
  3797. get {
  3798. try {
  3799. return ((string)(this[this.tableManager.LoginColumn]));
  3800. }
  3801. catch (global::System.InvalidCastException e) {
  3802. throw new global::System.Data.StrongTypingException("The value for column \'Login\' in table \'Manager\' is DBNull.", e);
  3803. }
  3804. }
  3805. set {
  3806. this[this.tableManager.LoginColumn] = value;
  3807. }
  3808. }
  3809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3811. public string Password {
  3812. get {
  3813. try {
  3814. return ((string)(this[this.tableManager.PasswordColumn]));
  3815. }
  3816. catch (global::System.InvalidCastException e) {
  3817. throw new global::System.Data.StrongTypingException("The value for column \'Password\' in table \'Manager\' is DBNull.", e);
  3818. }
  3819. }
  3820. set {
  3821. this[this.tableManager.PasswordColumn] = value;
  3822. }
  3823. }
  3824. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3825. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3826. public string Photo {
  3827. get {
  3828. try {
  3829. return ((string)(this[this.tableManager.PhotoColumn]));
  3830. }
  3831. catch (global::System.InvalidCastException e) {
  3832. throw new global::System.Data.StrongTypingException("The value for column \'Photo\' in table \'Manager\' is DBNull.", e);
  3833. }
  3834. }
  3835. set {
  3836. this[this.tableManager.PhotoColumn] = value;
  3837. }
  3838. }
  3839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3841. public bool IsSurnameNull() {
  3842. return this.IsNull(this.tableManager.SurnameColumn);
  3843. }
  3844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3846. public void SetSurnameNull() {
  3847. this[this.tableManager.SurnameColumn] = global::System.Convert.DBNull;
  3848. }
  3849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3851. public bool IsNameNull() {
  3852. return this.IsNull(this.tableManager.NameColumn);
  3853. }
  3854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3856. public void SetNameNull() {
  3857. this[this.tableManager.NameColumn] = global::System.Convert.DBNull;
  3858. }
  3859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3861. public bool IsPatronomycNull() {
  3862. return this.IsNull(this.tableManager.PatronomycColumn);
  3863. }
  3864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3866. public void SetPatronomycNull() {
  3867. this[this.tableManager.PatronomycColumn] = global::System.Convert.DBNull;
  3868. }
  3869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3871. public bool IsLoginNull() {
  3872. return this.IsNull(this.tableManager.LoginColumn);
  3873. }
  3874. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3875. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3876. public void SetLoginNull() {
  3877. this[this.tableManager.LoginColumn] = global::System.Convert.DBNull;
  3878. }
  3879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3881. public bool IsPasswordNull() {
  3882. return this.IsNull(this.tableManager.PasswordColumn);
  3883. }
  3884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3886. public void SetPasswordNull() {
  3887. this[this.tableManager.PasswordColumn] = global::System.Convert.DBNull;
  3888. }
  3889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3891. public bool IsPhotoNull() {
  3892. return this.IsNull(this.tableManager.PhotoColumn);
  3893. }
  3894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3896. public void SetPhotoNull() {
  3897. this[this.tableManager.PhotoColumn] = global::System.Convert.DBNull;
  3898. }
  3899. }
  3900. /// <summary>
  3901. ///Represents strongly named DataRow class.
  3902. ///</summary>
  3903. public partial class PartnerRow : global::System.Data.DataRow {
  3904. private PartnerDataTable tablePartner;
  3905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3907. internal PartnerRow(global::System.Data.DataRowBuilder rb) :
  3908. base(rb) {
  3909. this.tablePartner = ((PartnerDataTable)(this.Table));
  3910. }
  3911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3913. public int IDPartner {
  3914. get {
  3915. return ((int)(this[this.tablePartner.IDPartnerColumn]));
  3916. }
  3917. set {
  3918. this[this.tablePartner.IDPartnerColumn] = value;
  3919. }
  3920. }
  3921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3923. public int IDTypePartner {
  3924. get {
  3925. return ((int)(this[this.tablePartner.IDTypePartnerColumn]));
  3926. }
  3927. set {
  3928. this[this.tablePartner.IDTypePartnerColumn] = value;
  3929. }
  3930. }
  3931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3933. public string Namepartner {
  3934. get {
  3935. try {
  3936. return ((string)(this[this.tablePartner.NamepartnerColumn]));
  3937. }
  3938. catch (global::System.InvalidCastException e) {
  3939. throw new global::System.Data.StrongTypingException("The value for column \'Namepartner\' in table \'Partner\' is DBNull.", e);
  3940. }
  3941. }
  3942. set {
  3943. this[this.tablePartner.NamepartnerColumn] = value;
  3944. }
  3945. }
  3946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3947. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3948. public string Surname {
  3949. get {
  3950. try {
  3951. return ((string)(this[this.tablePartner.SurnameColumn]));
  3952. }
  3953. catch (global::System.InvalidCastException e) {
  3954. throw new global::System.Data.StrongTypingException("The value for column \'Surname\' in table \'Partner\' is DBNull.", e);
  3955. }
  3956. }
  3957. set {
  3958. this[this.tablePartner.SurnameColumn] = value;
  3959. }
  3960. }
  3961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3963. public string Name {
  3964. get {
  3965. try {
  3966. return ((string)(this[this.tablePartner.NameColumn]));
  3967. }
  3968. catch (global::System.InvalidCastException e) {
  3969. throw new global::System.Data.StrongTypingException("The value for column \'Name\' in table \'Partner\' is DBNull.", e);
  3970. }
  3971. }
  3972. set {
  3973. this[this.tablePartner.NameColumn] = value;
  3974. }
  3975. }
  3976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3978. public string Patronomyc {
  3979. get {
  3980. try {
  3981. return ((string)(this[this.tablePartner.PatronomycColumn]));
  3982. }
  3983. catch (global::System.InvalidCastException e) {
  3984. throw new global::System.Data.StrongTypingException("The value for column \'Patronomyc\' in table \'Partner\' is DBNull.", e);
  3985. }
  3986. }
  3987. set {
  3988. this[this.tablePartner.PatronomycColumn] = value;
  3989. }
  3990. }
  3991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3993. public string Email {
  3994. get {
  3995. try {
  3996. return ((string)(this[this.tablePartner.EmailColumn]));
  3997. }
  3998. catch (global::System.InvalidCastException e) {
  3999. throw new global::System.Data.StrongTypingException("The value for column \'Email\' in table \'Partner\' is DBNull.", e);
  4000. }
  4001. }
  4002. set {
  4003. this[this.tablePartner.EmailColumn] = value;
  4004. }
  4005. }
  4006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4008. public string Phone {
  4009. get {
  4010. try {
  4011. return ((string)(this[this.tablePartner.PhoneColumn]));
  4012. }
  4013. catch (global::System.InvalidCastException e) {
  4014. throw new global::System.Data.StrongTypingException("The value for column \'Phone\' in table \'Partner\' is DBNull.", e);
  4015. }
  4016. }
  4017. set {
  4018. this[this.tablePartner.PhoneColumn] = value;
  4019. }
  4020. }
  4021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4023. public int IDPostCode {
  4024. get {
  4025. try {
  4026. return ((int)(this[this.tablePartner.IDPostCodeColumn]));
  4027. }
  4028. catch (global::System.InvalidCastException e) {
  4029. throw new global::System.Data.StrongTypingException("The value for column \'IDPostCode\' in table \'Partner\' is DBNull.", e);
  4030. }
  4031. }
  4032. set {
  4033. this[this.tablePartner.IDPostCodeColumn] = value;
  4034. }
  4035. }
  4036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4038. public int IDRegion {
  4039. get {
  4040. try {
  4041. return ((int)(this[this.tablePartner.IDRegionColumn]));
  4042. }
  4043. catch (global::System.InvalidCastException e) {
  4044. throw new global::System.Data.StrongTypingException("The value for column \'IDRegion\' in table \'Partner\' is DBNull.", e);
  4045. }
  4046. }
  4047. set {
  4048. this[this.tablePartner.IDRegionColumn] = value;
  4049. }
  4050. }
  4051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4053. public int IDCity {
  4054. get {
  4055. try {
  4056. return ((int)(this[this.tablePartner.IDCityColumn]));
  4057. }
  4058. catch (global::System.InvalidCastException e) {
  4059. throw new global::System.Data.StrongTypingException("The value for column \'IDCity\' in table \'Partner\' is DBNull.", e);
  4060. }
  4061. }
  4062. set {
  4063. this[this.tablePartner.IDCityColumn] = value;
  4064. }
  4065. }
  4066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4068. public int IDStreet {
  4069. get {
  4070. try {
  4071. return ((int)(this[this.tablePartner.IDStreetColumn]));
  4072. }
  4073. catch (global::System.InvalidCastException e) {
  4074. throw new global::System.Data.StrongTypingException("The value for column \'IDStreet\' in table \'Partner\' is DBNull.", e);
  4075. }
  4076. }
  4077. set {
  4078. this[this.tablePartner.IDStreetColumn] = value;
  4079. }
  4080. }
  4081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4083. public int House {
  4084. get {
  4085. try {
  4086. return ((int)(this[this.tablePartner.HouseColumn]));
  4087. }
  4088. catch (global::System.InvalidCastException e) {
  4089. throw new global::System.Data.StrongTypingException("The value for column \'House\' in table \'Partner\' is DBNull.", e);
  4090. }
  4091. }
  4092. set {
  4093. this[this.tablePartner.HouseColumn] = value;
  4094. }
  4095. }
  4096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4098. public string INN {
  4099. get {
  4100. try {
  4101. return ((string)(this[this.tablePartner.INNColumn]));
  4102. }
  4103. catch (global::System.InvalidCastException e) {
  4104. throw new global::System.Data.StrongTypingException("The value for column \'INN\' in table \'Partner\' is DBNull.", e);
  4105. }
  4106. }
  4107. set {
  4108. this[this.tablePartner.INNColumn] = value;
  4109. }
  4110. }
  4111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4113. public int Rating {
  4114. get {
  4115. try {
  4116. return ((int)(this[this.tablePartner.RatingColumn]));
  4117. }
  4118. catch (global::System.InvalidCastException e) {
  4119. throw new global::System.Data.StrongTypingException("The value for column \'Rating\' in table \'Partner\' is DBNull.", e);
  4120. }
  4121. }
  4122. set {
  4123. this[this.tablePartner.RatingColumn] = value;
  4124. }
  4125. }
  4126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4128. public CityRow CityRow {
  4129. get {
  4130. return ((CityRow)(this.GetParentRow(this.Table.ParentRelations["FK_Partner_City"])));
  4131. }
  4132. set {
  4133. this.SetParentRow(value, this.Table.ParentRelations["FK_Partner_City"]);
  4134. }
  4135. }
  4136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4138. public PostCodeRow PostCodeRow {
  4139. get {
  4140. return ((PostCodeRow)(this.GetParentRow(this.Table.ParentRelations["FK_Partner_PostCode"])));
  4141. }
  4142. set {
  4143. this.SetParentRow(value, this.Table.ParentRelations["FK_Partner_PostCode"]);
  4144. }
  4145. }
  4146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4147. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4148. public RegionRow RegionRow {
  4149. get {
  4150. return ((RegionRow)(this.GetParentRow(this.Table.ParentRelations["FK_Partner_Region"])));
  4151. }
  4152. set {
  4153. this.SetParentRow(value, this.Table.ParentRelations["FK_Partner_Region"]);
  4154. }
  4155. }
  4156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4158. public StreetRow StreetRow {
  4159. get {
  4160. return ((StreetRow)(this.GetParentRow(this.Table.ParentRelations["FK_Partner_Street"])));
  4161. }
  4162. set {
  4163. this.SetParentRow(value, this.Table.ParentRelations["FK_Partner_Street"]);
  4164. }
  4165. }
  4166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4168. public TypePartnerRow TypePartnerRow {
  4169. get {
  4170. return ((TypePartnerRow)(this.GetParentRow(this.Table.ParentRelations["FK_Partner_TypePartner"])));
  4171. }
  4172. set {
  4173. this.SetParentRow(value, this.Table.ParentRelations["FK_Partner_TypePartner"]);
  4174. }
  4175. }
  4176. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4177. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4178. public bool IsNamepartnerNull() {
  4179. return this.IsNull(this.tablePartner.NamepartnerColumn);
  4180. }
  4181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4183. public void SetNamepartnerNull() {
  4184. this[this.tablePartner.NamepartnerColumn] = global::System.Convert.DBNull;
  4185. }
  4186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4188. public bool IsSurnameNull() {
  4189. return this.IsNull(this.tablePartner.SurnameColumn);
  4190. }
  4191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4193. public void SetSurnameNull() {
  4194. this[this.tablePartner.SurnameColumn] = global::System.Convert.DBNull;
  4195. }
  4196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4198. public bool IsNameNull() {
  4199. return this.IsNull(this.tablePartner.NameColumn);
  4200. }
  4201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4203. public void SetNameNull() {
  4204. this[this.tablePartner.NameColumn] = global::System.Convert.DBNull;
  4205. }
  4206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4208. public bool IsPatronomycNull() {
  4209. return this.IsNull(this.tablePartner.PatronomycColumn);
  4210. }
  4211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4213. public void SetPatronomycNull() {
  4214. this[this.tablePartner.PatronomycColumn] = global::System.Convert.DBNull;
  4215. }
  4216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4218. public bool IsEmailNull() {
  4219. return this.IsNull(this.tablePartner.EmailColumn);
  4220. }
  4221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4223. public void SetEmailNull() {
  4224. this[this.tablePartner.EmailColumn] = global::System.Convert.DBNull;
  4225. }
  4226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4228. public bool IsPhoneNull() {
  4229. return this.IsNull(this.tablePartner.PhoneColumn);
  4230. }
  4231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4233. public void SetPhoneNull() {
  4234. this[this.tablePartner.PhoneColumn] = global::System.Convert.DBNull;
  4235. }
  4236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4238. public bool IsIDPostCodeNull() {
  4239. return this.IsNull(this.tablePartner.IDPostCodeColumn);
  4240. }
  4241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4243. public void SetIDPostCodeNull() {
  4244. this[this.tablePartner.IDPostCodeColumn] = global::System.Convert.DBNull;
  4245. }
  4246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4248. public bool IsIDRegionNull() {
  4249. return this.IsNull(this.tablePartner.IDRegionColumn);
  4250. }
  4251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4253. public void SetIDRegionNull() {
  4254. this[this.tablePartner.IDRegionColumn] = global::System.Convert.DBNull;
  4255. }
  4256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4258. public bool IsIDCityNull() {
  4259. return this.IsNull(this.tablePartner.IDCityColumn);
  4260. }
  4261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4263. public void SetIDCityNull() {
  4264. this[this.tablePartner.IDCityColumn] = global::System.Convert.DBNull;
  4265. }
  4266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4268. public bool IsIDStreetNull() {
  4269. return this.IsNull(this.tablePartner.IDStreetColumn);
  4270. }
  4271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4272. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4273. public void SetIDStreetNull() {
  4274. this[this.tablePartner.IDStreetColumn] = global::System.Convert.DBNull;
  4275. }
  4276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4278. public bool IsHouseNull() {
  4279. return this.IsNull(this.tablePartner.HouseColumn);
  4280. }
  4281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4282. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4283. public void SetHouseNull() {
  4284. this[this.tablePartner.HouseColumn] = global::System.Convert.DBNull;
  4285. }
  4286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4287. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4288. public bool IsINNNull() {
  4289. return this.IsNull(this.tablePartner.INNColumn);
  4290. }
  4291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4293. public void SetINNNull() {
  4294. this[this.tablePartner.INNColumn] = global::System.Convert.DBNull;
  4295. }
  4296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4297. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4298. public bool IsRatingNull() {
  4299. return this.IsNull(this.tablePartner.RatingColumn);
  4300. }
  4301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4303. public void SetRatingNull() {
  4304. this[this.tablePartner.RatingColumn] = global::System.Convert.DBNull;
  4305. }
  4306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4308. public PartnerProductsRow[] GetPartnerProductsRows() {
  4309. if ((this.Table.ChildRelations["FK_PartnerProducts_Partner"] == null)) {
  4310. return new PartnerProductsRow[0];
  4311. }
  4312. else {
  4313. return ((PartnerProductsRow[])(base.GetChildRows(this.Table.ChildRelations["FK_PartnerProducts_Partner"])));
  4314. }
  4315. }
  4316. }
  4317. /// <summary>
  4318. ///Represents strongly named DataRow class.
  4319. ///</summary>
  4320. public partial class PartnerProductsRow : global::System.Data.DataRow {
  4321. private PartnerProductsDataTable tablePartnerProducts;
  4322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4324. internal PartnerProductsRow(global::System.Data.DataRowBuilder rb) :
  4325. base(rb) {
  4326. this.tablePartnerProducts = ((PartnerProductsDataTable)(this.Table));
  4327. }
  4328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4330. public int IDPartnerProduct {
  4331. get {
  4332. return ((int)(this[this.tablePartnerProducts.IDPartnerProductColumn]));
  4333. }
  4334. set {
  4335. this[this.tablePartnerProducts.IDPartnerProductColumn] = value;
  4336. }
  4337. }
  4338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4340. public int IDProduct {
  4341. get {
  4342. try {
  4343. return ((int)(this[this.tablePartnerProducts.IDProductColumn]));
  4344. }
  4345. catch (global::System.InvalidCastException e) {
  4346. throw new global::System.Data.StrongTypingException("The value for column \'IDProduct\' in table \'PartnerProducts\' is DBNull.", e);
  4347. }
  4348. }
  4349. set {
  4350. this[this.tablePartnerProducts.IDProductColumn] = value;
  4351. }
  4352. }
  4353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4354. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4355. public int IDPartner {
  4356. get {
  4357. try {
  4358. return ((int)(this[this.tablePartnerProducts.IDPartnerColumn]));
  4359. }
  4360. catch (global::System.InvalidCastException e) {
  4361. throw new global::System.Data.StrongTypingException("The value for column \'IDPartner\' in table \'PartnerProducts\' is DBNull.", e);
  4362. }
  4363. }
  4364. set {
  4365. this[this.tablePartnerProducts.IDPartnerColumn] = value;
  4366. }
  4367. }
  4368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4370. public int CountProduct {
  4371. get {
  4372. try {
  4373. return ((int)(this[this.tablePartnerProducts.CountProductColumn]));
  4374. }
  4375. catch (global::System.InvalidCastException e) {
  4376. throw new global::System.Data.StrongTypingException("The value for column \'CountProduct\' in table \'PartnerProducts\' is DBNull.", e);
  4377. }
  4378. }
  4379. set {
  4380. this[this.tablePartnerProducts.CountProductColumn] = value;
  4381. }
  4382. }
  4383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4385. public System.DateTime DateSale {
  4386. get {
  4387. try {
  4388. return ((global::System.DateTime)(this[this.tablePartnerProducts.DateSaleColumn]));
  4389. }
  4390. catch (global::System.InvalidCastException e) {
  4391. throw new global::System.Data.StrongTypingException("The value for column \'DateSale\' in table \'PartnerProducts\' is DBNull.", e);
  4392. }
  4393. }
  4394. set {
  4395. this[this.tablePartnerProducts.DateSaleColumn] = value;
  4396. }
  4397. }
  4398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4400. public PartnerRow PartnerRow {
  4401. get {
  4402. return ((PartnerRow)(this.GetParentRow(this.Table.ParentRelations["FK_PartnerProducts_Partner"])));
  4403. }
  4404. set {
  4405. this.SetParentRow(value, this.Table.ParentRelations["FK_PartnerProducts_Partner"]);
  4406. }
  4407. }
  4408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4410. public ProductRow ProductRow {
  4411. get {
  4412. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_PartnerProducts_Product"])));
  4413. }
  4414. set {
  4415. this.SetParentRow(value, this.Table.ParentRelations["FK_PartnerProducts_Product"]);
  4416. }
  4417. }
  4418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4420. public bool IsIDProductNull() {
  4421. return this.IsNull(this.tablePartnerProducts.IDProductColumn);
  4422. }
  4423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4425. public void SetIDProductNull() {
  4426. this[this.tablePartnerProducts.IDProductColumn] = global::System.Convert.DBNull;
  4427. }
  4428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4429. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4430. public bool IsIDPartnerNull() {
  4431. return this.IsNull(this.tablePartnerProducts.IDPartnerColumn);
  4432. }
  4433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4434. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4435. public void SetIDPartnerNull() {
  4436. this[this.tablePartnerProducts.IDPartnerColumn] = global::System.Convert.DBNull;
  4437. }
  4438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4440. public bool IsCountProductNull() {
  4441. return this.IsNull(this.tablePartnerProducts.CountProductColumn);
  4442. }
  4443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4444. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4445. public void SetCountProductNull() {
  4446. this[this.tablePartnerProducts.CountProductColumn] = global::System.Convert.DBNull;
  4447. }
  4448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4450. public bool IsDateSaleNull() {
  4451. return this.IsNull(this.tablePartnerProducts.DateSaleColumn);
  4452. }
  4453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4454. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4455. public void SetDateSaleNull() {
  4456. this[this.tablePartnerProducts.DateSaleColumn] = global::System.Convert.DBNull;
  4457. }
  4458. }
  4459. /// <summary>
  4460. ///Represents strongly named DataRow class.
  4461. ///</summary>
  4462. public partial class PostCodeRow : global::System.Data.DataRow {
  4463. private PostCodeDataTable tablePostCode;
  4464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4466. internal PostCodeRow(global::System.Data.DataRowBuilder rb) :
  4467. base(rb) {
  4468. this.tablePostCode = ((PostCodeDataTable)(this.Table));
  4469. }
  4470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4471. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4472. public int IDPostCode {
  4473. get {
  4474. return ((int)(this[this.tablePostCode.IDPostCodeColumn]));
  4475. }
  4476. set {
  4477. this[this.tablePostCode.IDPostCodeColumn] = value;
  4478. }
  4479. }
  4480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4482. public int PostCode {
  4483. get {
  4484. try {
  4485. return ((int)(this[this.tablePostCode.PostCodeColumn]));
  4486. }
  4487. catch (global::System.InvalidCastException e) {
  4488. throw new global::System.Data.StrongTypingException("The value for column \'PostCode\' in table \'PostCode\' is DBNull.", e);
  4489. }
  4490. }
  4491. set {
  4492. this[this.tablePostCode.PostCodeColumn] = value;
  4493. }
  4494. }
  4495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4497. public bool IsPostCodeNull() {
  4498. return this.IsNull(this.tablePostCode.PostCodeColumn);
  4499. }
  4500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4502. public void SetPostCodeNull() {
  4503. this[this.tablePostCode.PostCodeColumn] = global::System.Convert.DBNull;
  4504. }
  4505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4507. public PartnerRow[] GetPartnerRows() {
  4508. if ((this.Table.ChildRelations["FK_Partner_PostCode"] == null)) {
  4509. return new PartnerRow[0];
  4510. }
  4511. else {
  4512. return ((PartnerRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Partner_PostCode"])));
  4513. }
  4514. }
  4515. }
  4516. /// <summary>
  4517. ///Represents strongly named DataRow class.
  4518. ///</summary>
  4519. public partial class ProductRow : global::System.Data.DataRow {
  4520. private ProductDataTable tableProduct;
  4521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4523. internal ProductRow(global::System.Data.DataRowBuilder rb) :
  4524. base(rb) {
  4525. this.tableProduct = ((ProductDataTable)(this.Table));
  4526. }
  4527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4529. public int IDProduct {
  4530. get {
  4531. return ((int)(this[this.tableProduct.IDProductColumn]));
  4532. }
  4533. set {
  4534. this[this.tableProduct.IDProductColumn] = value;
  4535. }
  4536. }
  4537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4539. public int IDProductType {
  4540. get {
  4541. try {
  4542. return ((int)(this[this.tableProduct.IDProductTypeColumn]));
  4543. }
  4544. catch (global::System.InvalidCastException e) {
  4545. throw new global::System.Data.StrongTypingException("The value for column \'IDProductType\' in table \'Product\' is DBNull.", e);
  4546. }
  4547. }
  4548. set {
  4549. this[this.tableProduct.IDProductTypeColumn] = value;
  4550. }
  4551. }
  4552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4554. public string ProductName {
  4555. get {
  4556. try {
  4557. return ((string)(this[this.tableProduct.ProductNameColumn]));
  4558. }
  4559. catch (global::System.InvalidCastException e) {
  4560. throw new global::System.Data.StrongTypingException("The value for column \'ProductName\' in table \'Product\' is DBNull.", e);
  4561. }
  4562. }
  4563. set {
  4564. this[this.tableProduct.ProductNameColumn] = value;
  4565. }
  4566. }
  4567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4569. public string Article {
  4570. get {
  4571. try {
  4572. return ((string)(this[this.tableProduct.ArticleColumn]));
  4573. }
  4574. catch (global::System.InvalidCastException e) {
  4575. throw new global::System.Data.StrongTypingException("The value for column \'Article\' in table \'Product\' is DBNull.", e);
  4576. }
  4577. }
  4578. set {
  4579. this[this.tableProduct.ArticleColumn] = value;
  4580. }
  4581. }
  4582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4584. public decimal Cost {
  4585. get {
  4586. try {
  4587. return ((decimal)(this[this.tableProduct.CostColumn]));
  4588. }
  4589. catch (global::System.InvalidCastException e) {
  4590. throw new global::System.Data.StrongTypingException("The value for column \'Cost\' in table \'Product\' is DBNull.", e);
  4591. }
  4592. }
  4593. set {
  4594. this[this.tableProduct.CostColumn] = value;
  4595. }
  4596. }
  4597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4599. public ProductTypeRow ProductTypeRow {
  4600. get {
  4601. return ((ProductTypeRow)(this.GetParentRow(this.Table.ParentRelations["FK_Product_ProductType"])));
  4602. }
  4603. set {
  4604. this.SetParentRow(value, this.Table.ParentRelations["FK_Product_ProductType"]);
  4605. }
  4606. }
  4607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4609. public bool IsIDProductTypeNull() {
  4610. return this.IsNull(this.tableProduct.IDProductTypeColumn);
  4611. }
  4612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4614. public void SetIDProductTypeNull() {
  4615. this[this.tableProduct.IDProductTypeColumn] = global::System.Convert.DBNull;
  4616. }
  4617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4619. public bool IsProductNameNull() {
  4620. return this.IsNull(this.tableProduct.ProductNameColumn);
  4621. }
  4622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4624. public void SetProductNameNull() {
  4625. this[this.tableProduct.ProductNameColumn] = global::System.Convert.DBNull;
  4626. }
  4627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4629. public bool IsArticleNull() {
  4630. return this.IsNull(this.tableProduct.ArticleColumn);
  4631. }
  4632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4634. public void SetArticleNull() {
  4635. this[this.tableProduct.ArticleColumn] = global::System.Convert.DBNull;
  4636. }
  4637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4639. public bool IsCostNull() {
  4640. return this.IsNull(this.tableProduct.CostColumn);
  4641. }
  4642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4644. public void SetCostNull() {
  4645. this[this.tableProduct.CostColumn] = global::System.Convert.DBNull;
  4646. }
  4647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4649. public PartnerProductsRow[] GetPartnerProductsRows() {
  4650. if ((this.Table.ChildRelations["FK_PartnerProducts_Product"] == null)) {
  4651. return new PartnerProductsRow[0];
  4652. }
  4653. else {
  4654. return ((PartnerProductsRow[])(base.GetChildRows(this.Table.ChildRelations["FK_PartnerProducts_Product"])));
  4655. }
  4656. }
  4657. }
  4658. /// <summary>
  4659. ///Represents strongly named DataRow class.
  4660. ///</summary>
  4661. public partial class ProductTypeRow : global::System.Data.DataRow {
  4662. private ProductTypeDataTable tableProductType;
  4663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4665. internal ProductTypeRow(global::System.Data.DataRowBuilder rb) :
  4666. base(rb) {
  4667. this.tableProductType = ((ProductTypeDataTable)(this.Table));
  4668. }
  4669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4671. public int IDProductType {
  4672. get {
  4673. return ((int)(this[this.tableProductType.IDProductTypeColumn]));
  4674. }
  4675. set {
  4676. this[this.tableProductType.IDProductTypeColumn] = value;
  4677. }
  4678. }
  4679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4681. public string ProductType {
  4682. get {
  4683. try {
  4684. return ((string)(this[this.tableProductType.ProductTypeColumn]));
  4685. }
  4686. catch (global::System.InvalidCastException e) {
  4687. throw new global::System.Data.StrongTypingException("The value for column \'ProductType\' in table \'ProductType\' is DBNull.", e);
  4688. }
  4689. }
  4690. set {
  4691. this[this.tableProductType.ProductTypeColumn] = value;
  4692. }
  4693. }
  4694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4696. public double Сoefficient {
  4697. get {
  4698. try {
  4699. return ((double)(this[this.tableProductType.СoefficientColumn]));
  4700. }
  4701. catch (global::System.InvalidCastException e) {
  4702. throw new global::System.Data.StrongTypingException("The value for column \'Сoefficient\' in table \'ProductType\' is DBNull.", e);
  4703. }
  4704. }
  4705. set {
  4706. this[this.tableProductType.СoefficientColumn] = value;
  4707. }
  4708. }
  4709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4711. public bool IsProductTypeNull() {
  4712. return this.IsNull(this.tableProductType.ProductTypeColumn);
  4713. }
  4714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4716. public void SetProductTypeNull() {
  4717. this[this.tableProductType.ProductTypeColumn] = global::System.Convert.DBNull;
  4718. }
  4719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4721. public bool IsСoefficientNull() {
  4722. return this.IsNull(this.tableProductType.СoefficientColumn);
  4723. }
  4724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4725. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4726. public void SetСoefficientNull() {
  4727. this[this.tableProductType.СoefficientColumn] = global::System.Convert.DBNull;
  4728. }
  4729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4731. public ProductRow[] GetProductRows() {
  4732. if ((this.Table.ChildRelations["FK_Product_ProductType"] == null)) {
  4733. return new ProductRow[0];
  4734. }
  4735. else {
  4736. return ((ProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Product_ProductType"])));
  4737. }
  4738. }
  4739. }
  4740. /// <summary>
  4741. ///Represents strongly named DataRow class.
  4742. ///</summary>
  4743. public partial class RegionRow : global::System.Data.DataRow {
  4744. private RegionDataTable tableRegion;
  4745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4747. internal RegionRow(global::System.Data.DataRowBuilder rb) :
  4748. base(rb) {
  4749. this.tableRegion = ((RegionDataTable)(this.Table));
  4750. }
  4751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4753. public int IDRegion {
  4754. get {
  4755. return ((int)(this[this.tableRegion.IDRegionColumn]));
  4756. }
  4757. set {
  4758. this[this.tableRegion.IDRegionColumn] = value;
  4759. }
  4760. }
  4761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4763. public string Region {
  4764. get {
  4765. try {
  4766. return ((string)(this[this.tableRegion.RegionColumn]));
  4767. }
  4768. catch (global::System.InvalidCastException e) {
  4769. throw new global::System.Data.StrongTypingException("The value for column \'Region\' in table \'Region\' is DBNull.", e);
  4770. }
  4771. }
  4772. set {
  4773. this[this.tableRegion.RegionColumn] = value;
  4774. }
  4775. }
  4776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4778. public bool IsRegionNull() {
  4779. return this.IsNull(this.tableRegion.RegionColumn);
  4780. }
  4781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4783. public void SetRegionNull() {
  4784. this[this.tableRegion.RegionColumn] = global::System.Convert.DBNull;
  4785. }
  4786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4788. public PartnerRow[] GetPartnerRows() {
  4789. if ((this.Table.ChildRelations["FK_Partner_Region"] == null)) {
  4790. return new PartnerRow[0];
  4791. }
  4792. else {
  4793. return ((PartnerRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Partner_Region"])));
  4794. }
  4795. }
  4796. }
  4797. /// <summary>
  4798. ///Represents strongly named DataRow class.
  4799. ///</summary>
  4800. public partial class StreetRow : global::System.Data.DataRow {
  4801. private StreetDataTable tableStreet;
  4802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4804. internal StreetRow(global::System.Data.DataRowBuilder rb) :
  4805. base(rb) {
  4806. this.tableStreet = ((StreetDataTable)(this.Table));
  4807. }
  4808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4810. public int IDStreet {
  4811. get {
  4812. return ((int)(this[this.tableStreet.IDStreetColumn]));
  4813. }
  4814. set {
  4815. this[this.tableStreet.IDStreetColumn] = value;
  4816. }
  4817. }
  4818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4820. public string Street {
  4821. get {
  4822. try {
  4823. return ((string)(this[this.tableStreet.StreetColumn]));
  4824. }
  4825. catch (global::System.InvalidCastException e) {
  4826. throw new global::System.Data.StrongTypingException("The value for column \'Street\' in table \'Street\' is DBNull.", e);
  4827. }
  4828. }
  4829. set {
  4830. this[this.tableStreet.StreetColumn] = value;
  4831. }
  4832. }
  4833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4835. public bool IsStreetNull() {
  4836. return this.IsNull(this.tableStreet.StreetColumn);
  4837. }
  4838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4840. public void SetStreetNull() {
  4841. this[this.tableStreet.StreetColumn] = global::System.Convert.DBNull;
  4842. }
  4843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4845. public PartnerRow[] GetPartnerRows() {
  4846. if ((this.Table.ChildRelations["FK_Partner_Street"] == null)) {
  4847. return new PartnerRow[0];
  4848. }
  4849. else {
  4850. return ((PartnerRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Partner_Street"])));
  4851. }
  4852. }
  4853. }
  4854. /// <summary>
  4855. ///Represents strongly named DataRow class.
  4856. ///</summary>
  4857. public partial class TypeMaterialRow : global::System.Data.DataRow {
  4858. private TypeMaterialDataTable tableTypeMaterial;
  4859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4861. internal TypeMaterialRow(global::System.Data.DataRowBuilder rb) :
  4862. base(rb) {
  4863. this.tableTypeMaterial = ((TypeMaterialDataTable)(this.Table));
  4864. }
  4865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4867. public int IDTypeMaterial {
  4868. get {
  4869. return ((int)(this[this.tableTypeMaterial.IDTypeMaterialColumn]));
  4870. }
  4871. set {
  4872. this[this.tableTypeMaterial.IDTypeMaterialColumn] = value;
  4873. }
  4874. }
  4875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4877. public string TypeMaterial {
  4878. get {
  4879. try {
  4880. return ((string)(this[this.tableTypeMaterial.TypeMaterialColumn]));
  4881. }
  4882. catch (global::System.InvalidCastException e) {
  4883. throw new global::System.Data.StrongTypingException("The value for column \'TypeMaterial\' in table \'TypeMaterial\' is DBNull.", e);
  4884. }
  4885. }
  4886. set {
  4887. this[this.tableTypeMaterial.TypeMaterialColumn] = value;
  4888. }
  4889. }
  4890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4892. public double DefectPercent {
  4893. get {
  4894. try {
  4895. return ((double)(this[this.tableTypeMaterial.DefectPercentColumn]));
  4896. }
  4897. catch (global::System.InvalidCastException e) {
  4898. throw new global::System.Data.StrongTypingException("The value for column \'DefectPercent\' in table \'TypeMaterial\' is DBNull.", e);
  4899. }
  4900. }
  4901. set {
  4902. this[this.tableTypeMaterial.DefectPercentColumn] = value;
  4903. }
  4904. }
  4905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4907. public bool IsTypeMaterialNull() {
  4908. return this.IsNull(this.tableTypeMaterial.TypeMaterialColumn);
  4909. }
  4910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4911. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4912. public void SetTypeMaterialNull() {
  4913. this[this.tableTypeMaterial.TypeMaterialColumn] = global::System.Convert.DBNull;
  4914. }
  4915. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4916. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4917. public bool IsDefectPercentNull() {
  4918. return this.IsNull(this.tableTypeMaterial.DefectPercentColumn);
  4919. }
  4920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4921. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4922. public void SetDefectPercentNull() {
  4923. this[this.tableTypeMaterial.DefectPercentColumn] = global::System.Convert.DBNull;
  4924. }
  4925. }
  4926. /// <summary>
  4927. ///Represents strongly named DataRow class.
  4928. ///</summary>
  4929. public partial class TypePartnerRow : global::System.Data.DataRow {
  4930. private TypePartnerDataTable tableTypePartner;
  4931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4933. internal TypePartnerRow(global::System.Data.DataRowBuilder rb) :
  4934. base(rb) {
  4935. this.tableTypePartner = ((TypePartnerDataTable)(this.Table));
  4936. }
  4937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4939. public int IDTypePartner {
  4940. get {
  4941. return ((int)(this[this.tableTypePartner.IDTypePartnerColumn]));
  4942. }
  4943. set {
  4944. this[this.tableTypePartner.IDTypePartnerColumn] = value;
  4945. }
  4946. }
  4947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4949. public string TypePartner {
  4950. get {
  4951. try {
  4952. return ((string)(this[this.tableTypePartner.TypePartnerColumn]));
  4953. }
  4954. catch (global::System.InvalidCastException e) {
  4955. throw new global::System.Data.StrongTypingException("The value for column \'TypePartner\' in table \'TypePartner\' is DBNull.", e);
  4956. }
  4957. }
  4958. set {
  4959. this[this.tableTypePartner.TypePartnerColumn] = value;
  4960. }
  4961. }
  4962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4964. public bool IsTypePartnerNull() {
  4965. return this.IsNull(this.tableTypePartner.TypePartnerColumn);
  4966. }
  4967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4969. public void SetTypePartnerNull() {
  4970. this[this.tableTypePartner.TypePartnerColumn] = global::System.Convert.DBNull;
  4971. }
  4972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4974. public PartnerRow[] GetPartnerRows() {
  4975. if ((this.Table.ChildRelations["FK_Partner_TypePartner"] == null)) {
  4976. return new PartnerRow[0];
  4977. }
  4978. else {
  4979. return ((PartnerRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Partner_TypePartner"])));
  4980. }
  4981. }
  4982. }
  4983. /// <summary>
  4984. ///Row event argument class
  4985. ///</summary>
  4986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4987. public class CityRowChangeEvent : global::System.EventArgs {
  4988. private CityRow eventRow;
  4989. private global::System.Data.DataRowAction eventAction;
  4990. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4991. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4992. public CityRowChangeEvent(CityRow row, global::System.Data.DataRowAction action) {
  4993. this.eventRow = row;
  4994. this.eventAction = action;
  4995. }
  4996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4998. public CityRow Row {
  4999. get {
  5000. return this.eventRow;
  5001. }
  5002. }
  5003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5005. public global::System.Data.DataRowAction Action {
  5006. get {
  5007. return this.eventAction;
  5008. }
  5009. }
  5010. }
  5011. /// <summary>
  5012. ///Row event argument class
  5013. ///</summary>
  5014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5015. public class ManagerRowChangeEvent : global::System.EventArgs {
  5016. private ManagerRow eventRow;
  5017. private global::System.Data.DataRowAction eventAction;
  5018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5020. public ManagerRowChangeEvent(ManagerRow row, global::System.Data.DataRowAction action) {
  5021. this.eventRow = row;
  5022. this.eventAction = action;
  5023. }
  5024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5026. public ManagerRow Row {
  5027. get {
  5028. return this.eventRow;
  5029. }
  5030. }
  5031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5032. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5033. public global::System.Data.DataRowAction Action {
  5034. get {
  5035. return this.eventAction;
  5036. }
  5037. }
  5038. }
  5039. /// <summary>
  5040. ///Row event argument class
  5041. ///</summary>
  5042. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5043. public class PartnerRowChangeEvent : global::System.EventArgs {
  5044. private PartnerRow eventRow;
  5045. private global::System.Data.DataRowAction eventAction;
  5046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5048. public PartnerRowChangeEvent(PartnerRow row, global::System.Data.DataRowAction action) {
  5049. this.eventRow = row;
  5050. this.eventAction = action;
  5051. }
  5052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5054. public PartnerRow Row {
  5055. get {
  5056. return this.eventRow;
  5057. }
  5058. }
  5059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5061. public global::System.Data.DataRowAction Action {
  5062. get {
  5063. return this.eventAction;
  5064. }
  5065. }
  5066. }
  5067. /// <summary>
  5068. ///Row event argument class
  5069. ///</summary>
  5070. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5071. public class PartnerProductsRowChangeEvent : global::System.EventArgs {
  5072. private PartnerProductsRow eventRow;
  5073. private global::System.Data.DataRowAction eventAction;
  5074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5076. public PartnerProductsRowChangeEvent(PartnerProductsRow row, global::System.Data.DataRowAction action) {
  5077. this.eventRow = row;
  5078. this.eventAction = action;
  5079. }
  5080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5082. public PartnerProductsRow Row {
  5083. get {
  5084. return this.eventRow;
  5085. }
  5086. }
  5087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5089. public global::System.Data.DataRowAction Action {
  5090. get {
  5091. return this.eventAction;
  5092. }
  5093. }
  5094. }
  5095. /// <summary>
  5096. ///Row event argument class
  5097. ///</summary>
  5098. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5099. public class PostCodeRowChangeEvent : global::System.EventArgs {
  5100. private PostCodeRow eventRow;
  5101. private global::System.Data.DataRowAction eventAction;
  5102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5103. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5104. public PostCodeRowChangeEvent(PostCodeRow row, global::System.Data.DataRowAction action) {
  5105. this.eventRow = row;
  5106. this.eventAction = action;
  5107. }
  5108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5110. public PostCodeRow Row {
  5111. get {
  5112. return this.eventRow;
  5113. }
  5114. }
  5115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5117. public global::System.Data.DataRowAction Action {
  5118. get {
  5119. return this.eventAction;
  5120. }
  5121. }
  5122. }
  5123. /// <summary>
  5124. ///Row event argument class
  5125. ///</summary>
  5126. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5127. public class ProductRowChangeEvent : global::System.EventArgs {
  5128. private ProductRow eventRow;
  5129. private global::System.Data.DataRowAction eventAction;
  5130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5132. public ProductRowChangeEvent(ProductRow row, global::System.Data.DataRowAction action) {
  5133. this.eventRow = row;
  5134. this.eventAction = action;
  5135. }
  5136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5138. public ProductRow Row {
  5139. get {
  5140. return this.eventRow;
  5141. }
  5142. }
  5143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5145. public global::System.Data.DataRowAction Action {
  5146. get {
  5147. return this.eventAction;
  5148. }
  5149. }
  5150. }
  5151. /// <summary>
  5152. ///Row event argument class
  5153. ///</summary>
  5154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5155. public class ProductTypeRowChangeEvent : global::System.EventArgs {
  5156. private ProductTypeRow eventRow;
  5157. private global::System.Data.DataRowAction eventAction;
  5158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5160. public ProductTypeRowChangeEvent(ProductTypeRow row, global::System.Data.DataRowAction action) {
  5161. this.eventRow = row;
  5162. this.eventAction = action;
  5163. }
  5164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5166. public ProductTypeRow Row {
  5167. get {
  5168. return this.eventRow;
  5169. }
  5170. }
  5171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5173. public global::System.Data.DataRowAction Action {
  5174. get {
  5175. return this.eventAction;
  5176. }
  5177. }
  5178. }
  5179. /// <summary>
  5180. ///Row event argument class
  5181. ///</summary>
  5182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5183. public class RegionRowChangeEvent : global::System.EventArgs {
  5184. private RegionRow eventRow;
  5185. private global::System.Data.DataRowAction eventAction;
  5186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5188. public RegionRowChangeEvent(RegionRow row, global::System.Data.DataRowAction action) {
  5189. this.eventRow = row;
  5190. this.eventAction = action;
  5191. }
  5192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5194. public RegionRow Row {
  5195. get {
  5196. return this.eventRow;
  5197. }
  5198. }
  5199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5200. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5201. public global::System.Data.DataRowAction Action {
  5202. get {
  5203. return this.eventAction;
  5204. }
  5205. }
  5206. }
  5207. /// <summary>
  5208. ///Row event argument class
  5209. ///</summary>
  5210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5211. public class StreetRowChangeEvent : global::System.EventArgs {
  5212. private StreetRow eventRow;
  5213. private global::System.Data.DataRowAction eventAction;
  5214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5216. public StreetRowChangeEvent(StreetRow row, global::System.Data.DataRowAction action) {
  5217. this.eventRow = row;
  5218. this.eventAction = action;
  5219. }
  5220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5222. public StreetRow Row {
  5223. get {
  5224. return this.eventRow;
  5225. }
  5226. }
  5227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5229. public global::System.Data.DataRowAction Action {
  5230. get {
  5231. return this.eventAction;
  5232. }
  5233. }
  5234. }
  5235. /// <summary>
  5236. ///Row event argument class
  5237. ///</summary>
  5238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5239. public class TypeMaterialRowChangeEvent : global::System.EventArgs {
  5240. private TypeMaterialRow eventRow;
  5241. private global::System.Data.DataRowAction eventAction;
  5242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5244. public TypeMaterialRowChangeEvent(TypeMaterialRow row, global::System.Data.DataRowAction action) {
  5245. this.eventRow = row;
  5246. this.eventAction = action;
  5247. }
  5248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5250. public TypeMaterialRow Row {
  5251. get {
  5252. return this.eventRow;
  5253. }
  5254. }
  5255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5257. public global::System.Data.DataRowAction Action {
  5258. get {
  5259. return this.eventAction;
  5260. }
  5261. }
  5262. }
  5263. /// <summary>
  5264. ///Row event argument class
  5265. ///</summary>
  5266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5267. public class TypePartnerRowChangeEvent : global::System.EventArgs {
  5268. private TypePartnerRow eventRow;
  5269. private global::System.Data.DataRowAction eventAction;
  5270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5271. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5272. public TypePartnerRowChangeEvent(TypePartnerRow row, global::System.Data.DataRowAction action) {
  5273. this.eventRow = row;
  5274. this.eventAction = action;
  5275. }
  5276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5278. public TypePartnerRow Row {
  5279. get {
  5280. return this.eventRow;
  5281. }
  5282. }
  5283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5285. public global::System.Data.DataRowAction Action {
  5286. get {
  5287. return this.eventAction;
  5288. }
  5289. }
  5290. }
  5291. }
  5292. }
  5293. namespace СУБД_Альфапол.AlfafloorGDVDataSetTableAdapters {
  5294. /// <summary>
  5295. ///Represents the connection and commands used to retrieve and save data.
  5296. ///</summary>
  5297. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5298. [global::System.ComponentModel.ToolboxItem(true)]
  5299. [global::System.ComponentModel.DataObjectAttribute(true)]
  5300. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5301. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5302. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5303. public partial class CityTableAdapter : global::System.ComponentModel.Component {
  5304. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5305. private global::System.Data.SqlClient.SqlConnection _connection;
  5306. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5307. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5308. private bool _clearBeforeFill;
  5309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5311. public CityTableAdapter() {
  5312. this.ClearBeforeFill = true;
  5313. }
  5314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5316. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5317. get {
  5318. if ((this._adapter == null)) {
  5319. this.InitAdapter();
  5320. }
  5321. return this._adapter;
  5322. }
  5323. }
  5324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5326. internal global::System.Data.SqlClient.SqlConnection Connection {
  5327. get {
  5328. if ((this._connection == null)) {
  5329. this.InitConnection();
  5330. }
  5331. return this._connection;
  5332. }
  5333. set {
  5334. this._connection = value;
  5335. if ((this.Adapter.InsertCommand != null)) {
  5336. this.Adapter.InsertCommand.Connection = value;
  5337. }
  5338. if ((this.Adapter.DeleteCommand != null)) {
  5339. this.Adapter.DeleteCommand.Connection = value;
  5340. }
  5341. if ((this.Adapter.UpdateCommand != null)) {
  5342. this.Adapter.UpdateCommand.Connection = value;
  5343. }
  5344. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5345. if ((this.CommandCollection[i] != null)) {
  5346. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5347. }
  5348. }
  5349. }
  5350. }
  5351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5352. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5353. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5354. get {
  5355. return this._transaction;
  5356. }
  5357. set {
  5358. this._transaction = value;
  5359. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5360. this.CommandCollection[i].Transaction = this._transaction;
  5361. }
  5362. if (((this.Adapter != null)
  5363. && (this.Adapter.DeleteCommand != null))) {
  5364. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5365. }
  5366. if (((this.Adapter != null)
  5367. && (this.Adapter.InsertCommand != null))) {
  5368. this.Adapter.InsertCommand.Transaction = this._transaction;
  5369. }
  5370. if (((this.Adapter != null)
  5371. && (this.Adapter.UpdateCommand != null))) {
  5372. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5373. }
  5374. }
  5375. }
  5376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5378. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5379. get {
  5380. if ((this._commandCollection == null)) {
  5381. this.InitCommandCollection();
  5382. }
  5383. return this._commandCollection;
  5384. }
  5385. }
  5386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5388. public bool ClearBeforeFill {
  5389. get {
  5390. return this._clearBeforeFill;
  5391. }
  5392. set {
  5393. this._clearBeforeFill = value;
  5394. }
  5395. }
  5396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5398. private void InitAdapter() {
  5399. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5400. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5401. tableMapping.SourceTable = "Table";
  5402. tableMapping.DataSetTable = "City";
  5403. tableMapping.ColumnMappings.Add("IDCity", "IDCity");
  5404. tableMapping.ColumnMappings.Add("City", "City");
  5405. this._adapter.TableMappings.Add(tableMapping);
  5406. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5407. this._adapter.DeleteCommand.Connection = this.Connection;
  5408. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[City] WHERE (([IDCity] = @Original_IDCity) AND ((@IsNull_City " +
  5409. "= 1 AND [City] IS NULL) OR ([City] = @Original_City)))";
  5410. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5411. 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, "", "", ""));
  5412. 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, "", "", ""));
  5413. 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, "", "", ""));
  5414. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5415. this._adapter.InsertCommand.Connection = this.Connection;
  5416. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[City] ([City]) VALUES (@City);\r\nSELECT IDCity, City FROM City " +
  5417. "WHERE (IDCity = SCOPE_IDENTITY())";
  5418. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5419. 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, "", "", ""));
  5420. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5421. this._adapter.UpdateCommand.Connection = this.Connection;
  5422. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[City] SET [City] = @City WHERE (([IDCity] = @Original_IDCity) AND (" +
  5423. "(@IsNull_City = 1 AND [City] IS NULL) OR ([City] = @Original_City)));\r\nSELECT ID" +
  5424. "City, City FROM City WHERE (IDCity = @IDCity)";
  5425. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5426. 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, "", "", ""));
  5427. 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, "", "", ""));
  5428. 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, "", "", ""));
  5429. 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, "", "", ""));
  5430. 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, "", "", ""));
  5431. }
  5432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5433. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5434. private void InitConnection() {
  5435. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5436. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.AlfafloorGDVConnectionString;
  5437. }
  5438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5440. private void InitCommandCollection() {
  5441. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5442. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5443. this._commandCollection[0].Connection = this.Connection;
  5444. this._commandCollection[0].CommandText = "SELECT IDCity, City FROM dbo.City";
  5445. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5446. }
  5447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5448. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5449. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5450. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5451. public virtual int Fill(AlfafloorGDVDataSet.CityDataTable dataTable) {
  5452. this.Adapter.SelectCommand = this.CommandCollection[0];
  5453. if ((this.ClearBeforeFill == true)) {
  5454. dataTable.Clear();
  5455. }
  5456. int returnValue = this.Adapter.Fill(dataTable);
  5457. return returnValue;
  5458. }
  5459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5461. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5462. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5463. public virtual AlfafloorGDVDataSet.CityDataTable GetData() {
  5464. this.Adapter.SelectCommand = this.CommandCollection[0];
  5465. AlfafloorGDVDataSet.CityDataTable dataTable = new AlfafloorGDVDataSet.CityDataTable();
  5466. this.Adapter.Fill(dataTable);
  5467. return dataTable;
  5468. }
  5469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5471. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5472. public virtual int Update(AlfafloorGDVDataSet.CityDataTable dataTable) {
  5473. return this.Adapter.Update(dataTable);
  5474. }
  5475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5477. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5478. public virtual int Update(AlfafloorGDVDataSet dataSet) {
  5479. return this.Adapter.Update(dataSet, "City");
  5480. }
  5481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5483. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5484. public virtual int Update(global::System.Data.DataRow dataRow) {
  5485. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5486. dataRow});
  5487. }
  5488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5490. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5491. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5492. return this.Adapter.Update(dataRows);
  5493. }
  5494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5496. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5497. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5498. public virtual int Delete(int Original_IDCity, string Original_City) {
  5499. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IDCity));
  5500. if ((Original_City == null)) {
  5501. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  5502. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  5503. }
  5504. else {
  5505. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  5506. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_City));
  5507. }
  5508. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5509. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5510. != global::System.Data.ConnectionState.Open)) {
  5511. this.Adapter.DeleteCommand.Connection.Open();
  5512. }
  5513. try {
  5514. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5515. return returnValue;
  5516. }
  5517. finally {
  5518. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5519. this.Adapter.DeleteCommand.Connection.Close();
  5520. }
  5521. }
  5522. }
  5523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5525. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5526. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5527. public virtual int Insert(string City) {
  5528. if ((City == null)) {
  5529. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  5530. }
  5531. else {
  5532. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(City));
  5533. }
  5534. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5535. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5536. != global::System.Data.ConnectionState.Open)) {
  5537. this.Adapter.InsertCommand.Connection.Open();
  5538. }
  5539. try {
  5540. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5541. return returnValue;
  5542. }
  5543. finally {
  5544. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5545. this.Adapter.InsertCommand.Connection.Close();
  5546. }
  5547. }
  5548. }
  5549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5551. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5552. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5553. public virtual int Update(string City, int Original_IDCity, string Original_City, int IDCity) {
  5554. if ((City == null)) {
  5555. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  5556. }
  5557. else {
  5558. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(City));
  5559. }
  5560. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_IDCity));
  5561. if ((Original_City == null)) {
  5562. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  5563. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  5564. }
  5565. else {
  5566. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  5567. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_City));
  5568. }
  5569. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(IDCity));
  5570. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5571. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5572. != global::System.Data.ConnectionState.Open)) {
  5573. this.Adapter.UpdateCommand.Connection.Open();
  5574. }
  5575. try {
  5576. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5577. return returnValue;
  5578. }
  5579. finally {
  5580. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5581. this.Adapter.UpdateCommand.Connection.Close();
  5582. }
  5583. }
  5584. }
  5585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5587. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5588. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5589. public virtual int Update(string City, int Original_IDCity, string Original_City) {
  5590. return this.Update(City, Original_IDCity, Original_City, Original_IDCity);
  5591. }
  5592. }
  5593. /// <summary>
  5594. ///Represents the connection and commands used to retrieve and save data.
  5595. ///</summary>
  5596. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5597. [global::System.ComponentModel.ToolboxItem(true)]
  5598. [global::System.ComponentModel.DataObjectAttribute(true)]
  5599. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5600. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5601. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5602. public partial class ManagerTableAdapter : global::System.ComponentModel.Component {
  5603. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5604. private global::System.Data.SqlClient.SqlConnection _connection;
  5605. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5606. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5607. private bool _clearBeforeFill;
  5608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5610. public ManagerTableAdapter() {
  5611. this.ClearBeforeFill = true;
  5612. }
  5613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5615. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5616. get {
  5617. if ((this._adapter == null)) {
  5618. this.InitAdapter();
  5619. }
  5620. return this._adapter;
  5621. }
  5622. }
  5623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5625. internal global::System.Data.SqlClient.SqlConnection Connection {
  5626. get {
  5627. if ((this._connection == null)) {
  5628. this.InitConnection();
  5629. }
  5630. return this._connection;
  5631. }
  5632. set {
  5633. this._connection = value;
  5634. if ((this.Adapter.InsertCommand != null)) {
  5635. this.Adapter.InsertCommand.Connection = value;
  5636. }
  5637. if ((this.Adapter.DeleteCommand != null)) {
  5638. this.Adapter.DeleteCommand.Connection = value;
  5639. }
  5640. if ((this.Adapter.UpdateCommand != null)) {
  5641. this.Adapter.UpdateCommand.Connection = value;
  5642. }
  5643. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5644. if ((this.CommandCollection[i] != null)) {
  5645. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5646. }
  5647. }
  5648. }
  5649. }
  5650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5652. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5653. get {
  5654. return this._transaction;
  5655. }
  5656. set {
  5657. this._transaction = value;
  5658. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5659. this.CommandCollection[i].Transaction = this._transaction;
  5660. }
  5661. if (((this.Adapter != null)
  5662. && (this.Adapter.DeleteCommand != null))) {
  5663. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5664. }
  5665. if (((this.Adapter != null)
  5666. && (this.Adapter.InsertCommand != null))) {
  5667. this.Adapter.InsertCommand.Transaction = this._transaction;
  5668. }
  5669. if (((this.Adapter != null)
  5670. && (this.Adapter.UpdateCommand != null))) {
  5671. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5672. }
  5673. }
  5674. }
  5675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5676. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5677. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5678. get {
  5679. if ((this._commandCollection == null)) {
  5680. this.InitCommandCollection();
  5681. }
  5682. return this._commandCollection;
  5683. }
  5684. }
  5685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5687. public bool ClearBeforeFill {
  5688. get {
  5689. return this._clearBeforeFill;
  5690. }
  5691. set {
  5692. this._clearBeforeFill = value;
  5693. }
  5694. }
  5695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5697. private void InitAdapter() {
  5698. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5699. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5700. tableMapping.SourceTable = "Table";
  5701. tableMapping.DataSetTable = "Manager";
  5702. tableMapping.ColumnMappings.Add("IDManager", "IDManager");
  5703. tableMapping.ColumnMappings.Add("Surname", "Surname");
  5704. tableMapping.ColumnMappings.Add("Name", "Name");
  5705. tableMapping.ColumnMappings.Add("Patronomyc", "Patronomyc");
  5706. tableMapping.ColumnMappings.Add("Login", "Login");
  5707. tableMapping.ColumnMappings.Add("Password", "Password");
  5708. tableMapping.ColumnMappings.Add("Photo", "Photo");
  5709. this._adapter.TableMappings.Add(tableMapping);
  5710. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5711. this._adapter.DeleteCommand.Connection = this.Connection;
  5712. 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_Patronomyc = 1 AND [Patronomyc] IS NULL) OR ([Patronomyc] = @Original_Patronomyc)) 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)))";
  5713. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5714. 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, "", "", ""));
  5715. 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, "", "", ""));
  5716. 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, "", "", ""));
  5717. 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, "", "", ""));
  5718. 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, "", "", ""));
  5719. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Patronomyc", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronomyc", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5720. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Patronomyc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronomyc", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5721. 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, "", "", ""));
  5722. 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, "", "", ""));
  5723. 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, "", "", ""));
  5724. 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, "", "", ""));
  5725. 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, "", "", ""));
  5726. 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, "", "", ""));
  5727. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5728. this._adapter.InsertCommand.Connection = this.Connection;
  5729. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Manager] ([Surname], [Name], [Patronomyc], [Login], [Password], [Photo]) VALUES (@Surname, @Name, @Patronomyc, @Login, @Password, @Photo);
  5730. SELECT IDManager, Surname, Name, Patronomyc, Login, Password, Photo FROM Manager WHERE (IDManager = SCOPE_IDENTITY())";
  5731. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5732. 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, "", "", ""));
  5733. 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, "", "", ""));
  5734. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Patronomyc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronomyc", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5735. 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, "", "", ""));
  5736. 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, "", "", ""));
  5737. 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, "", "", ""));
  5738. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5739. this._adapter.UpdateCommand.Connection = this.Connection;
  5740. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Manager] SET [Surname] = @Surname, [Name] = @Name, [Patronomyc] = @Patronomyc, [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_Patronomyc = 1 AND [Patronomyc] IS NULL) OR ([Patronomyc] = @Original_Patronomyc)) 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)));
  5741. SELECT IDManager, Surname, Name, Patronomyc, Login, Password, Photo FROM Manager WHERE (IDManager = @IDManager)";
  5742. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5743. 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, "", "", ""));
  5744. 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, "", "", ""));
  5745. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Patronomyc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronomyc", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5746. 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, "", "", ""));
  5747. 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, "", "", ""));
  5748. 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, "", "", ""));
  5749. 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, "", "", ""));
  5750. 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, "", "", ""));
  5751. 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, "", "", ""));
  5752. 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, "", "", ""));
  5753. 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, "", "", ""));
  5754. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Patronomyc", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronomyc", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5755. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Patronomyc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronomyc", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5756. 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, "", "", ""));
  5757. 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, "", "", ""));
  5758. 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, "", "", ""));
  5759. 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, "", "", ""));
  5760. 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, "", "", ""));
  5761. 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, "", "", ""));
  5762. 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, "", "", ""));
  5763. }
  5764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5766. private void InitConnection() {
  5767. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5768. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.AlfafloorGDVConnectionString;
  5769. }
  5770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5772. private void InitCommandCollection() {
  5773. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5774. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5775. this._commandCollection[0].Connection = this.Connection;
  5776. this._commandCollection[0].CommandText = "SELECT IDManager, Surname, Name, Patronomyc, Login, Password, Photo FROM dbo.Mana" +
  5777. "ger";
  5778. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5779. }
  5780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5782. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5783. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5784. public virtual int Fill(AlfafloorGDVDataSet.ManagerDataTable dataTable) {
  5785. this.Adapter.SelectCommand = this.CommandCollection[0];
  5786. if ((this.ClearBeforeFill == true)) {
  5787. dataTable.Clear();
  5788. }
  5789. int returnValue = this.Adapter.Fill(dataTable);
  5790. return returnValue;
  5791. }
  5792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5794. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5795. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5796. public virtual AlfafloorGDVDataSet.ManagerDataTable GetData() {
  5797. this.Adapter.SelectCommand = this.CommandCollection[0];
  5798. AlfafloorGDVDataSet.ManagerDataTable dataTable = new AlfafloorGDVDataSet.ManagerDataTable();
  5799. this.Adapter.Fill(dataTable);
  5800. return dataTable;
  5801. }
  5802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5804. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5805. public virtual int Update(AlfafloorGDVDataSet.ManagerDataTable dataTable) {
  5806. return this.Adapter.Update(dataTable);
  5807. }
  5808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5810. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5811. public virtual int Update(AlfafloorGDVDataSet dataSet) {
  5812. return this.Adapter.Update(dataSet, "Manager");
  5813. }
  5814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5816. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5817. public virtual int Update(global::System.Data.DataRow dataRow) {
  5818. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5819. dataRow});
  5820. }
  5821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5823. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5824. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5825. return this.Adapter.Update(dataRows);
  5826. }
  5827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5829. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5830. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5831. public virtual int Delete(int Original_IDManager, string Original_Surname, string Original_Name, string Original_Patronomyc, string Original_Login, string Original_Password, string Original_Photo) {
  5832. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IDManager));
  5833. if ((Original_Surname == null)) {
  5834. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  5835. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  5836. }
  5837. else {
  5838. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  5839. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Surname));
  5840. }
  5841. if ((Original_Name == null)) {
  5842. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  5843. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  5844. }
  5845. else {
  5846. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  5847. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Name));
  5848. }
  5849. if ((Original_Patronomyc == null)) {
  5850. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  5851. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  5852. }
  5853. else {
  5854. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  5855. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Patronomyc));
  5856. }
  5857. if ((Original_Login == null)) {
  5858. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  5859. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  5860. }
  5861. else {
  5862. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  5863. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Login));
  5864. }
  5865. if ((Original_Password == null)) {
  5866. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  5867. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  5868. }
  5869. else {
  5870. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  5871. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Password));
  5872. }
  5873. if ((Original_Photo == null)) {
  5874. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  5875. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  5876. }
  5877. else {
  5878. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  5879. this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_Photo));
  5880. }
  5881. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5882. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5883. != global::System.Data.ConnectionState.Open)) {
  5884. this.Adapter.DeleteCommand.Connection.Open();
  5885. }
  5886. try {
  5887. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5888. return returnValue;
  5889. }
  5890. finally {
  5891. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5892. this.Adapter.DeleteCommand.Connection.Close();
  5893. }
  5894. }
  5895. }
  5896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5898. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5899. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5900. public virtual int Insert(string Surname, string Name, string Patronomyc, string Login, string Password, string Photo) {
  5901. if ((Surname == null)) {
  5902. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  5903. }
  5904. else {
  5905. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Surname));
  5906. }
  5907. if ((Name == null)) {
  5908. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  5909. }
  5910. else {
  5911. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Name));
  5912. }
  5913. if ((Patronomyc == null)) {
  5914. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  5915. }
  5916. else {
  5917. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Patronomyc));
  5918. }
  5919. if ((Login == null)) {
  5920. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  5921. }
  5922. else {
  5923. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Login));
  5924. }
  5925. if ((Password == null)) {
  5926. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  5927. }
  5928. else {
  5929. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Password));
  5930. }
  5931. if ((Photo == null)) {
  5932. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  5933. }
  5934. else {
  5935. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Photo));
  5936. }
  5937. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5938. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5939. != global::System.Data.ConnectionState.Open)) {
  5940. this.Adapter.InsertCommand.Connection.Open();
  5941. }
  5942. try {
  5943. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5944. return returnValue;
  5945. }
  5946. finally {
  5947. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5948. this.Adapter.InsertCommand.Connection.Close();
  5949. }
  5950. }
  5951. }
  5952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5953. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5954. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5955. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5956. public virtual int Update(string Surname, string Name, string Patronomyc, string Login, string Password, string Photo, int Original_IDManager, string Original_Surname, string Original_Name, string Original_Patronomyc, string Original_Login, string Original_Password, string Original_Photo, int IDManager) {
  5957. if ((Surname == null)) {
  5958. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  5959. }
  5960. else {
  5961. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Surname));
  5962. }
  5963. if ((Name == null)) {
  5964. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  5965. }
  5966. else {
  5967. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Name));
  5968. }
  5969. if ((Patronomyc == null)) {
  5970. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  5971. }
  5972. else {
  5973. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Patronomyc));
  5974. }
  5975. if ((Login == null)) {
  5976. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  5977. }
  5978. else {
  5979. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Login));
  5980. }
  5981. if ((Password == null)) {
  5982. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  5983. }
  5984. else {
  5985. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Password));
  5986. }
  5987. if ((Photo == null)) {
  5988. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  5989. }
  5990. else {
  5991. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Photo));
  5992. }
  5993. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_IDManager));
  5994. if ((Original_Surname == null)) {
  5995. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  5996. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  5997. }
  5998. else {
  5999. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  6000. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Surname));
  6001. }
  6002. if ((Original_Name == null)) {
  6003. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  6004. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  6005. }
  6006. else {
  6007. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  6008. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Name));
  6009. }
  6010. if ((Original_Patronomyc == null)) {
  6011. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  6012. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  6013. }
  6014. else {
  6015. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  6016. this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_Patronomyc));
  6017. }
  6018. if ((Original_Login == null)) {
  6019. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  6020. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  6021. }
  6022. else {
  6023. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  6024. this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_Login));
  6025. }
  6026. if ((Original_Password == null)) {
  6027. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  6028. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  6029. }
  6030. else {
  6031. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  6032. this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_Password));
  6033. }
  6034. if ((Original_Photo == null)) {
  6035. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
  6036. this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
  6037. }
  6038. else {
  6039. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
  6040. this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_Photo));
  6041. }
  6042. this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(IDManager));
  6043. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6044. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6045. != global::System.Data.ConnectionState.Open)) {
  6046. this.Adapter.UpdateCommand.Connection.Open();
  6047. }
  6048. try {
  6049. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6050. return returnValue;
  6051. }
  6052. finally {
  6053. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6054. this.Adapter.UpdateCommand.Connection.Close();
  6055. }
  6056. }
  6057. }
  6058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6060. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6061. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6062. public virtual int Update(string Surname, string Name, string Patronomyc, string Login, string Password, string Photo, int Original_IDManager, string Original_Surname, string Original_Name, string Original_Patronomyc, string Original_Login, string Original_Password, string Original_Photo) {
  6063. return this.Update(Surname, Name, Patronomyc, Login, Password, Photo, Original_IDManager, Original_Surname, Original_Name, Original_Patronomyc, Original_Login, Original_Password, Original_Photo, Original_IDManager);
  6064. }
  6065. }
  6066. /// <summary>
  6067. ///Represents the connection and commands used to retrieve and save data.
  6068. ///</summary>
  6069. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6070. [global::System.ComponentModel.ToolboxItem(true)]
  6071. [global::System.ComponentModel.DataObjectAttribute(true)]
  6072. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6073. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6074. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6075. public partial class PartnerTableAdapter : global::System.ComponentModel.Component {
  6076. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6077. private global::System.Data.SqlClient.SqlConnection _connection;
  6078. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6079. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6080. private bool _clearBeforeFill;
  6081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6083. public PartnerTableAdapter() {
  6084. this.ClearBeforeFill = true;
  6085. }
  6086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6088. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6089. get {
  6090. if ((this._adapter == null)) {
  6091. this.InitAdapter();
  6092. }
  6093. return this._adapter;
  6094. }
  6095. }
  6096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6098. internal global::System.Data.SqlClient.SqlConnection Connection {
  6099. get {
  6100. if ((this._connection == null)) {
  6101. this.InitConnection();
  6102. }
  6103. return this._connection;
  6104. }
  6105. set {
  6106. this._connection = value;
  6107. if ((this.Adapter.InsertCommand != null)) {
  6108. this.Adapter.InsertCommand.Connection = value;
  6109. }
  6110. if ((this.Adapter.DeleteCommand != null)) {
  6111. this.Adapter.DeleteCommand.Connection = value;
  6112. }
  6113. if ((this.Adapter.UpdateCommand != null)) {
  6114. this.Adapter.UpdateCommand.Connection = value;
  6115. }
  6116. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6117. if ((this.CommandCollection[i] != null)) {
  6118. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6119. }
  6120. }
  6121. }
  6122. }
  6123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6125. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6126. get {
  6127. return this._transaction;
  6128. }
  6129. set {
  6130. this._transaction = value;
  6131. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6132. this.CommandCollection[i].Transaction = this._transaction;
  6133. }
  6134. if (((this.Adapter != null)
  6135. && (this.Adapter.DeleteCommand != null))) {
  6136. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6137. }
  6138. if (((this.Adapter != null)
  6139. && (this.Adapter.InsertCommand != null))) {
  6140. this.Adapter.InsertCommand.Transaction = this._transaction;
  6141. }
  6142. if (((this.Adapter != null)
  6143. && (this.Adapter.UpdateCommand != null))) {
  6144. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6145. }
  6146. }
  6147. }
  6148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6150. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6151. get {
  6152. if ((this._commandCollection == null)) {
  6153. this.InitCommandCollection();
  6154. }
  6155. return this._commandCollection;
  6156. }
  6157. }
  6158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6160. public bool ClearBeforeFill {
  6161. get {
  6162. return this._clearBeforeFill;
  6163. }
  6164. set {
  6165. this._clearBeforeFill = value;
  6166. }
  6167. }
  6168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6170. private void InitAdapter() {
  6171. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6172. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6173. tableMapping.SourceTable = "Table";
  6174. tableMapping.DataSetTable = "Partner";
  6175. tableMapping.ColumnMappings.Add("IDPartner", "IDPartner");
  6176. tableMapping.ColumnMappings.Add("IDTypePartner", "IDTypePartner");
  6177. tableMapping.ColumnMappings.Add("Namepartner", "Namepartner");
  6178. tableMapping.ColumnMappings.Add("Surname", "Surname");
  6179. tableMapping.ColumnMappings.Add("Name", "Name");
  6180. tableMapping.ColumnMappings.Add("Patronomyc", "Patronomyc");
  6181. tableMapping.ColumnMappings.Add("Email", "Email");
  6182. tableMapping.ColumnMappings.Add("Phone", "Phone");
  6183. tableMapping.ColumnMappings.Add("IDPostCode", "IDPostCode");
  6184. tableMapping.ColumnMappings.Add("IDRegion", "IDRegion");
  6185. tableMapping.ColumnMappings.Add("IDCity", "IDCity");
  6186. tableMapping.ColumnMappings.Add("IDStreet", "IDStreet");
  6187. tableMapping.ColumnMappings.Add("House", "House");
  6188. tableMapping.ColumnMappings.Add("INN", "INN");
  6189. tableMapping.ColumnMappings.Add("Rating", "Rating");
  6190. this._adapter.TableMappings.Add(tableMapping);
  6191. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6192. this._adapter.DeleteCommand.Connection = this.Connection;
  6193. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Partner] WHERE (([IDPartner] = @Original_IDPartner) AND ([IDTypePartner] = @Original_IDTypePartner) AND ((@IsNull_Namepartner = 1 AND [Namepartner] IS NULL) OR ([Namepartner] = @Original_Namepartner)) 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_Patronomyc = 1 AND [Patronomyc] IS NULL) OR ([Patronomyc] = @Original_Patronomyc)) 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_IDPostCode = 1 AND [IDPostCode] IS NULL) OR ([IDPostCode] = @Original_IDPostCode)) AND ((@IsNull_IDRegion = 1 AND [IDRegion] IS NULL) OR ([IDRegion] = @Original_IDRegion)) 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)))";
  6194. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6195. 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, "", "", ""));
  6196. 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, "", "", ""));
  6197. 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, "", "", ""));
  6198. 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, "", "", ""));
  6199. 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, "", "", ""));
  6200. 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, "", "", ""));
  6201. 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, "", "", ""));
  6202. 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, "", "", ""));
  6203. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Patronomyc", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronomyc", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6204. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Patronomyc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronomyc", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6205. 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, "", "", ""));
  6206. 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, "", "", ""));
  6207. 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, "", "", ""));
  6208. 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, "", "", ""));
  6209. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IDPostCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDPostCode", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6210. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDPostCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDPostCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6211. 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, "", "", ""));
  6212. 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, "", "", ""));
  6213. 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, "", "", ""));
  6214. 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, "", "", ""));
  6215. 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, "", "", ""));
  6216. 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, "", "", ""));
  6217. 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, "", "", ""));
  6218. 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, "", "", ""));
  6219. 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, "", "", ""));
  6220. 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, "", "", ""));
  6221. 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, "", "", ""));
  6222. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Rating", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Rating", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6223. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6224. this._adapter.InsertCommand.Connection = this.Connection;
  6225. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Partner] ([IDTypePartner], [Namepartner], [Surname], [Name], [Patronomyc], [Email], [Phone], [IDPostCode], [IDRegion], [IDCity], [IDStreet], [House], [INN], [Rating]) VALUES (@IDTypePartner, @Namepartner, @Surname, @Name, @Patronomyc, @Email, @Phone, @IDPostCode, @IDRegion, @IDCity, @IDStreet, @House, @INN, @Rating);
  6226. SELECT IDPartner, IDTypePartner, Namepartner, Surname, Name, Patronomyc, Email, Phone, IDPostCode, IDRegion, IDCity, IDStreet, House, INN, Rating FROM Partner WHERE (IDPartner = SCOPE_IDENTITY())";
  6227. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6228. 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, "", "", ""));
  6229. 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, "", "", ""));
  6230. 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, "", "", ""));
  6231. 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, "", "", ""));
  6232. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Patronomyc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronomyc", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6233. 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, "", "", ""));
  6234. 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, "", "", ""));
  6235. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDPostCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDPostCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6236. 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, "", "", ""));
  6237. 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, "", "", ""));
  6238. 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, "", "", ""));
  6239. 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, "", "", ""));
  6240. 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, "", "", ""));
  6241. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Rating", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Rating", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6242. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6243. this._adapter.UpdateCommand.Connection = this.Connection;
  6244. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Partner] SET [IDTypePartner] = @IDTypePartner, [Namepartner] = @Nam" +
  6245. "epartner, [Surname] = @Surname, [Name] = @Name, [Patronomyc] = @Patronomyc, [Ema" +
  6246. "il] = @Email, [Phone] = @Phone, [IDPostCode] = @IDPostCode, [IDRegion] = @IDRegi" +
  6247. "on, [IDCity] = @IDCity, [IDStreet] = @IDStreet, [House] = @House, [INN] = @INN, " +
  6248. "[Rating] = @Rating WHERE (([IDPartner] = @Original_IDPartner) AND ([IDTypePartne" +
  6249. "r] = @Original_IDTypePartner) AND ((@IsNull_Namepartner = 1 AND [Namepartner] IS" +
  6250. " NULL) OR ([Namepartner] = @Original_Namepartner)) AND ((@IsNull_Surname = 1 AND" +
  6251. " [Surname] IS NULL) OR ([Surname] = @Original_Surname)) AND ((@IsNull_Name = 1 A" +
  6252. "ND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_Patronomyc = 1 AN" +
  6253. "D [Patronomyc] IS NULL) OR ([Patronomyc] = @Original_Patronomyc)) AND ((@IsNull_" +
  6254. "Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ((@IsNull_Pho" +
  6255. "ne = 1 AND [Phone] IS NULL) OR ([Phone] = @Original_Phone)) AND ((@IsNull_IDPost" +
  6256. "Code = 1 AND [IDPostCode] IS NULL) OR ([IDPostCode] = @Original_IDPostCode)) AND" +
  6257. " ((@IsNull_IDRegion = 1 AND [IDRegion] IS NULL) OR ([IDRegion] = @Original_IDReg" +
  6258. "ion)) AND ((@IsNull_IDCity = 1 AND [IDCity] IS NULL) OR ([IDCity] = @Original_ID" +
  6259. "City)) AND ((@IsNull_IDStreet = 1 AND [IDStreet] IS NULL) OR ([IDStreet] = @Orig" +
  6260. "inal_IDStreet)) AND ((@IsNull_House = 1 AND [House] IS NULL) OR ([House] = @Orig" +
  6261. "inal_House)) AND ((@IsNull_INN = 1 AND [INN] IS NULL) OR ([INN] = @Original_INN)" +
  6262. ") AND ((@IsNull_Rating = 1 AND [Rating] IS NULL) OR ([Rating] = @Original_Rating" +
  6263. ")));\r\nSELECT IDPartner, IDTypePartner, Namepartner, Surname, Name, Patronomyc, E" +
  6264. "mail, Phone, IDPostCode, IDRegion, IDCity, IDStreet, House, INN, Rating FROM Par" +
  6265. "tner WHERE (IDPartner = @IDPartner)";
  6266. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6267. 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, "", "", ""));
  6268. 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, "", "", ""));
  6269. 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, "", "", ""));
  6270. 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, "", "", ""));
  6271. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Patronomyc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronomyc", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6272. 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, "", "", ""));
  6273. 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, "", "", ""));
  6274. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDPostCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDPostCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6275. 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, "", "", ""));
  6276. 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, "", "", ""));
  6277. 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, "", "", ""));
  6278. 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, "", "", ""));
  6279. 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, "", "", ""));
  6280. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Rating", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Rating", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6281. 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, "", "", ""));
  6282. 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, "", "", ""));
  6283. 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, "", "", ""));
  6284. 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, "", "", ""));
  6285. 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, "", "", ""));
  6286. 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, "", "", ""));
  6287. 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, "", "", ""));
  6288. 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, "", "", ""));
  6289. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Patronomyc", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronomyc", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6290. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Patronomyc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronomyc", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6291. 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, "", "", ""));
  6292. 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, "", "", ""));
  6293. 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, "", "", ""));
  6294. 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, "", "", ""));
  6295. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IDPostCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDPostCode", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6296. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDPostCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDPostCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6297. 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, "", "", ""));
  6298. 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, "", "", ""));
  6299. 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, "", "", ""));
  6300. 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, "", "", ""));
  6301. 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, "", "", ""));
  6302. 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, "", "", ""));
  6303. 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, "", "", ""));
  6304. 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, "", "", ""));
  6305. 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, "", "", ""));
  6306. 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, "", "", ""));
  6307. 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, "", "", ""));
  6308. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Rating", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Rating", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6309. 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, "", "", ""));
  6310. }
  6311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6313. private void InitConnection() {
  6314. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6315. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.AlfafloorGDVConnectionString;
  6316. }
  6317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6319. private void InitCommandCollection() {
  6320. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6321. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6322. this._commandCollection[0].Connection = this.Connection;
  6323. this._commandCollection[0].CommandText = "SELECT IDPartner, IDTypePartner, Namepartner, Surname, Name, Patronomyc, Email, P" +
  6324. "hone, IDPostCode, IDRegion, IDCity, IDStreet, House, INN, Rating FROM dbo.Partne" +
  6325. "r";
  6326. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6327. }
  6328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6330. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6331. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6332. public virtual int Fill(AlfafloorGDVDataSet.PartnerDataTable dataTable) {
  6333. this.Adapter.SelectCommand = this.CommandCollection[0];
  6334. if ((this.ClearBeforeFill == true)) {
  6335. dataTable.Clear();
  6336. }
  6337. int returnValue = this.Adapter.Fill(dataTable);
  6338. return returnValue;
  6339. }
  6340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6342. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6343. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6344. public virtual AlfafloorGDVDataSet.PartnerDataTable GetData() {
  6345. this.Adapter.SelectCommand = this.CommandCollection[0];
  6346. AlfafloorGDVDataSet.PartnerDataTable dataTable = new AlfafloorGDVDataSet.PartnerDataTable();
  6347. this.Adapter.Fill(dataTable);
  6348. return dataTable;
  6349. }
  6350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6352. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6353. public virtual int Update(AlfafloorGDVDataSet.PartnerDataTable dataTable) {
  6354. return this.Adapter.Update(dataTable);
  6355. }
  6356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6358. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6359. public virtual int Update(AlfafloorGDVDataSet dataSet) {
  6360. return this.Adapter.Update(dataSet, "Partner");
  6361. }
  6362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6364. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6365. public virtual int Update(global::System.Data.DataRow dataRow) {
  6366. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6367. dataRow});
  6368. }
  6369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6371. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6372. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6373. return this.Adapter.Update(dataRows);
  6374. }
  6375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6377. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6378. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6379. public virtual int Delete(int Original_IDPartner, int Original_IDTypePartner, string Original_Namepartner, string Original_Surname, string Original_Name, string Original_Patronomyc, string Original_Email, string Original_Phone, global::System.Nullable<int> Original_IDPostCode, global::System.Nullable<int> Original_IDRegion, global::System.Nullable<int> Original_IDCity, global::System.Nullable<int> Original_IDStreet, global::System.Nullable<int> Original_House, string Original_INN, global::System.Nullable<int> Original_Rating) {
  6380. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IDPartner));
  6381. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_IDTypePartner));
  6382. if ((Original_Namepartner == null)) {
  6383. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  6384. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  6385. }
  6386. else {
  6387. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  6388. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_Namepartner));
  6389. }
  6390. if ((Original_Surname == null)) {
  6391. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  6392. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  6393. }
  6394. else {
  6395. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  6396. this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_Surname));
  6397. }
  6398. if ((Original_Name == null)) {
  6399. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
  6400. this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
  6401. }
  6402. else {
  6403. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
  6404. this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_Name));
  6405. }
  6406. if ((Original_Patronomyc == null)) {
  6407. this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(1));
  6408. this.Adapter.DeleteCommand.Parameters[9].Value = global::System.DBNull.Value;
  6409. }
  6410. else {
  6411. this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(0));
  6412. this.Adapter.DeleteCommand.Parameters[9].Value = ((string)(Original_Patronomyc));
  6413. }
  6414. if ((Original_Email == null)) {
  6415. this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(1));
  6416. this.Adapter.DeleteCommand.Parameters[11].Value = global::System.DBNull.Value;
  6417. }
  6418. else {
  6419. this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(0));
  6420. this.Adapter.DeleteCommand.Parameters[11].Value = ((string)(Original_Email));
  6421. }
  6422. if ((Original_Phone == null)) {
  6423. this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(1));
  6424. this.Adapter.DeleteCommand.Parameters[13].Value = global::System.DBNull.Value;
  6425. }
  6426. else {
  6427. this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(0));
  6428. this.Adapter.DeleteCommand.Parameters[13].Value = ((string)(Original_Phone));
  6429. }
  6430. if ((Original_IDPostCode.HasValue == true)) {
  6431. this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(0));
  6432. this.Adapter.DeleteCommand.Parameters[15].Value = ((int)(Original_IDPostCode.Value));
  6433. }
  6434. else {
  6435. this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(1));
  6436. this.Adapter.DeleteCommand.Parameters[15].Value = global::System.DBNull.Value;
  6437. }
  6438. if ((Original_IDRegion.HasValue == true)) {
  6439. this.Adapter.DeleteCommand.Parameters[16].Value = ((object)(0));
  6440. this.Adapter.DeleteCommand.Parameters[17].Value = ((int)(Original_IDRegion.Value));
  6441. }
  6442. else {
  6443. this.Adapter.DeleteCommand.Parameters[16].Value = ((object)(1));
  6444. this.Adapter.DeleteCommand.Parameters[17].Value = global::System.DBNull.Value;
  6445. }
  6446. if ((Original_IDCity.HasValue == true)) {
  6447. this.Adapter.DeleteCommand.Parameters[18].Value = ((object)(0));
  6448. this.Adapter.DeleteCommand.Parameters[19].Value = ((int)(Original_IDCity.Value));
  6449. }
  6450. else {
  6451. this.Adapter.DeleteCommand.Parameters[18].Value = ((object)(1));
  6452. this.Adapter.DeleteCommand.Parameters[19].Value = global::System.DBNull.Value;
  6453. }
  6454. if ((Original_IDStreet.HasValue == true)) {
  6455. this.Adapter.DeleteCommand.Parameters[20].Value = ((object)(0));
  6456. this.Adapter.DeleteCommand.Parameters[21].Value = ((int)(Original_IDStreet.Value));
  6457. }
  6458. else {
  6459. this.Adapter.DeleteCommand.Parameters[20].Value = ((object)(1));
  6460. this.Adapter.DeleteCommand.Parameters[21].Value = global::System.DBNull.Value;
  6461. }
  6462. if ((Original_House.HasValue == true)) {
  6463. this.Adapter.DeleteCommand.Parameters[22].Value = ((object)(0));
  6464. this.Adapter.DeleteCommand.Parameters[23].Value = ((int)(Original_House.Value));
  6465. }
  6466. else {
  6467. this.Adapter.DeleteCommand.Parameters[22].Value = ((object)(1));
  6468. this.Adapter.DeleteCommand.Parameters[23].Value = global::System.DBNull.Value;
  6469. }
  6470. if ((Original_INN == null)) {
  6471. this.Adapter.DeleteCommand.Parameters[24].Value = ((object)(1));
  6472. this.Adapter.DeleteCommand.Parameters[25].Value = global::System.DBNull.Value;
  6473. }
  6474. else {
  6475. this.Adapter.DeleteCommand.Parameters[24].Value = ((object)(0));
  6476. this.Adapter.DeleteCommand.Parameters[25].Value = ((string)(Original_INN));
  6477. }
  6478. if ((Original_Rating.HasValue == true)) {
  6479. this.Adapter.DeleteCommand.Parameters[26].Value = ((object)(0));
  6480. this.Adapter.DeleteCommand.Parameters[27].Value = ((int)(Original_Rating.Value));
  6481. }
  6482. else {
  6483. this.Adapter.DeleteCommand.Parameters[26].Value = ((object)(1));
  6484. this.Adapter.DeleteCommand.Parameters[27].Value = global::System.DBNull.Value;
  6485. }
  6486. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6487. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6488. != global::System.Data.ConnectionState.Open)) {
  6489. this.Adapter.DeleteCommand.Connection.Open();
  6490. }
  6491. try {
  6492. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6493. return returnValue;
  6494. }
  6495. finally {
  6496. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6497. this.Adapter.DeleteCommand.Connection.Close();
  6498. }
  6499. }
  6500. }
  6501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6503. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6504. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6505. public virtual int Insert(int IDTypePartner, string Namepartner, string Surname, string Name, string Patronomyc, string Email, string Phone, global::System.Nullable<int> IDPostCode, global::System.Nullable<int> IDRegion, global::System.Nullable<int> IDCity, global::System.Nullable<int> IDStreet, global::System.Nullable<int> House, string INN, global::System.Nullable<int> Rating) {
  6506. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IDTypePartner));
  6507. if ((Namepartner == null)) {
  6508. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  6509. }
  6510. else {
  6511. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Namepartner));
  6512. }
  6513. if ((Surname == null)) {
  6514. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6515. }
  6516. else {
  6517. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Surname));
  6518. }
  6519. if ((Name == null)) {
  6520. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  6521. }
  6522. else {
  6523. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Name));
  6524. }
  6525. if ((Patronomyc == null)) {
  6526. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  6527. }
  6528. else {
  6529. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Patronomyc));
  6530. }
  6531. if ((Email == null)) {
  6532. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  6533. }
  6534. else {
  6535. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Email));
  6536. }
  6537. if ((Phone == null)) {
  6538. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  6539. }
  6540. else {
  6541. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Phone));
  6542. }
  6543. if ((IDPostCode.HasValue == true)) {
  6544. this.Adapter.InsertCommand.Parameters[7].Value = ((int)(IDPostCode.Value));
  6545. }
  6546. else {
  6547. this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
  6548. }
  6549. if ((IDRegion.HasValue == true)) {
  6550. this.Adapter.InsertCommand.Parameters[8].Value = ((int)(IDRegion.Value));
  6551. }
  6552. else {
  6553. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  6554. }
  6555. if ((IDCity.HasValue == true)) {
  6556. this.Adapter.InsertCommand.Parameters[9].Value = ((int)(IDCity.Value));
  6557. }
  6558. else {
  6559. this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value;
  6560. }
  6561. if ((IDStreet.HasValue == true)) {
  6562. this.Adapter.InsertCommand.Parameters[10].Value = ((int)(IDStreet.Value));
  6563. }
  6564. else {
  6565. this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value;
  6566. }
  6567. if ((House.HasValue == true)) {
  6568. this.Adapter.InsertCommand.Parameters[11].Value = ((int)(House.Value));
  6569. }
  6570. else {
  6571. this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value;
  6572. }
  6573. if ((INN == null)) {
  6574. this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value;
  6575. }
  6576. else {
  6577. this.Adapter.InsertCommand.Parameters[12].Value = ((string)(INN));
  6578. }
  6579. if ((Rating.HasValue == true)) {
  6580. this.Adapter.InsertCommand.Parameters[13].Value = ((int)(Rating.Value));
  6581. }
  6582. else {
  6583. this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value;
  6584. }
  6585. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6586. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6587. != global::System.Data.ConnectionState.Open)) {
  6588. this.Adapter.InsertCommand.Connection.Open();
  6589. }
  6590. try {
  6591. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6592. return returnValue;
  6593. }
  6594. finally {
  6595. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6596. this.Adapter.InsertCommand.Connection.Close();
  6597. }
  6598. }
  6599. }
  6600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6602. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6603. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6604. public virtual int Update(
  6605. int IDTypePartner,
  6606. string Namepartner,
  6607. string Surname,
  6608. string Name,
  6609. string Patronomyc,
  6610. string Email,
  6611. string Phone,
  6612. global::System.Nullable<int> IDPostCode,
  6613. global::System.Nullable<int> IDRegion,
  6614. global::System.Nullable<int> IDCity,
  6615. global::System.Nullable<int> IDStreet,
  6616. global::System.Nullable<int> House,
  6617. string INN,
  6618. global::System.Nullable<int> Rating,
  6619. int Original_IDPartner,
  6620. int Original_IDTypePartner,
  6621. string Original_Namepartner,
  6622. string Original_Surname,
  6623. string Original_Name,
  6624. string Original_Patronomyc,
  6625. string Original_Email,
  6626. string Original_Phone,
  6627. global::System.Nullable<int> Original_IDPostCode,
  6628. global::System.Nullable<int> Original_IDRegion,
  6629. global::System.Nullable<int> Original_IDCity,
  6630. global::System.Nullable<int> Original_IDStreet,
  6631. global::System.Nullable<int> Original_House,
  6632. string Original_INN,
  6633. global::System.Nullable<int> Original_Rating,
  6634. int IDPartner) {
  6635. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IDTypePartner));
  6636. if ((Namepartner == null)) {
  6637. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  6638. }
  6639. else {
  6640. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Namepartner));
  6641. }
  6642. if ((Surname == null)) {
  6643. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  6644. }
  6645. else {
  6646. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Surname));
  6647. }
  6648. if ((Name == null)) {
  6649. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6650. }
  6651. else {
  6652. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Name));
  6653. }
  6654. if ((Patronomyc == null)) {
  6655. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  6656. }
  6657. else {
  6658. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Patronomyc));
  6659. }
  6660. if ((Email == null)) {
  6661. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  6662. }
  6663. else {
  6664. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Email));
  6665. }
  6666. if ((Phone == null)) {
  6667. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  6668. }
  6669. else {
  6670. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Phone));
  6671. }
  6672. if ((IDPostCode.HasValue == true)) {
  6673. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(IDPostCode.Value));
  6674. }
  6675. else {
  6676. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  6677. }
  6678. if ((IDRegion.HasValue == true)) {
  6679. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(IDRegion.Value));
  6680. }
  6681. else {
  6682. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  6683. }
  6684. if ((IDCity.HasValue == true)) {
  6685. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(IDCity.Value));
  6686. }
  6687. else {
  6688. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  6689. }
  6690. if ((IDStreet.HasValue == true)) {
  6691. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(IDStreet.Value));
  6692. }
  6693. else {
  6694. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  6695. }
  6696. if ((House.HasValue == true)) {
  6697. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(House.Value));
  6698. }
  6699. else {
  6700. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  6701. }
  6702. if ((INN == null)) {
  6703. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  6704. }
  6705. else {
  6706. this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(INN));
  6707. }
  6708. if ((Rating.HasValue == true)) {
  6709. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Rating.Value));
  6710. }
  6711. else {
  6712. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  6713. }
  6714. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(Original_IDPartner));
  6715. this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_IDTypePartner));
  6716. if ((Original_Namepartner == null)) {
  6717. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
  6718. this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
  6719. }
  6720. else {
  6721. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
  6722. this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_Namepartner));
  6723. }
  6724. if ((Original_Surname == null)) {
  6725. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
  6726. this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
  6727. }
  6728. else {
  6729. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
  6730. this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_Surname));
  6731. }
  6732. if ((Original_Name == null)) {
  6733. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
  6734. this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
  6735. }
  6736. else {
  6737. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
  6738. this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_Name));
  6739. }
  6740. if ((Original_Patronomyc == null)) {
  6741. this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
  6742. this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
  6743. }
  6744. else {
  6745. this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
  6746. this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_Patronomyc));
  6747. }
  6748. if ((Original_Email == null)) {
  6749. this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1));
  6750. this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value;
  6751. }
  6752. else {
  6753. this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0));
  6754. this.Adapter.UpdateCommand.Parameters[25].Value = ((string)(Original_Email));
  6755. }
  6756. if ((Original_Phone == null)) {
  6757. this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(1));
  6758. this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value;
  6759. }
  6760. else {
  6761. this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(0));
  6762. this.Adapter.UpdateCommand.Parameters[27].Value = ((string)(Original_Phone));
  6763. }
  6764. if ((Original_IDPostCode.HasValue == true)) {
  6765. this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(0));
  6766. this.Adapter.UpdateCommand.Parameters[29].Value = ((int)(Original_IDPostCode.Value));
  6767. }
  6768. else {
  6769. this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(1));
  6770. this.Adapter.UpdateCommand.Parameters[29].Value = global::System.DBNull.Value;
  6771. }
  6772. if ((Original_IDRegion.HasValue == true)) {
  6773. this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(0));
  6774. this.Adapter.UpdateCommand.Parameters[31].Value = ((int)(Original_IDRegion.Value));
  6775. }
  6776. else {
  6777. this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(1));
  6778. this.Adapter.UpdateCommand.Parameters[31].Value = global::System.DBNull.Value;
  6779. }
  6780. if ((Original_IDCity.HasValue == true)) {
  6781. this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(0));
  6782. this.Adapter.UpdateCommand.Parameters[33].Value = ((int)(Original_IDCity.Value));
  6783. }
  6784. else {
  6785. this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(1));
  6786. this.Adapter.UpdateCommand.Parameters[33].Value = global::System.DBNull.Value;
  6787. }
  6788. if ((Original_IDStreet.HasValue == true)) {
  6789. this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(0));
  6790. this.Adapter.UpdateCommand.Parameters[35].Value = ((int)(Original_IDStreet.Value));
  6791. }
  6792. else {
  6793. this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(1));
  6794. this.Adapter.UpdateCommand.Parameters[35].Value = global::System.DBNull.Value;
  6795. }
  6796. if ((Original_House.HasValue == true)) {
  6797. this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(0));
  6798. this.Adapter.UpdateCommand.Parameters[37].Value = ((int)(Original_House.Value));
  6799. }
  6800. else {
  6801. this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(1));
  6802. this.Adapter.UpdateCommand.Parameters[37].Value = global::System.DBNull.Value;
  6803. }
  6804. if ((Original_INN == null)) {
  6805. this.Adapter.UpdateCommand.Parameters[38].Value = ((object)(1));
  6806. this.Adapter.UpdateCommand.Parameters[39].Value = global::System.DBNull.Value;
  6807. }
  6808. else {
  6809. this.Adapter.UpdateCommand.Parameters[38].Value = ((object)(0));
  6810. this.Adapter.UpdateCommand.Parameters[39].Value = ((string)(Original_INN));
  6811. }
  6812. if ((Original_Rating.HasValue == true)) {
  6813. this.Adapter.UpdateCommand.Parameters[40].Value = ((object)(0));
  6814. this.Adapter.UpdateCommand.Parameters[41].Value = ((int)(Original_Rating.Value));
  6815. }
  6816. else {
  6817. this.Adapter.UpdateCommand.Parameters[40].Value = ((object)(1));
  6818. this.Adapter.UpdateCommand.Parameters[41].Value = global::System.DBNull.Value;
  6819. }
  6820. this.Adapter.UpdateCommand.Parameters[42].Value = ((int)(IDPartner));
  6821. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6822. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6823. != global::System.Data.ConnectionState.Open)) {
  6824. this.Adapter.UpdateCommand.Connection.Open();
  6825. }
  6826. try {
  6827. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6828. return returnValue;
  6829. }
  6830. finally {
  6831. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6832. this.Adapter.UpdateCommand.Connection.Close();
  6833. }
  6834. }
  6835. }
  6836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6837. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6838. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6839. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6840. public virtual int Update(
  6841. int IDTypePartner,
  6842. string Namepartner,
  6843. string Surname,
  6844. string Name,
  6845. string Patronomyc,
  6846. string Email,
  6847. string Phone,
  6848. global::System.Nullable<int> IDPostCode,
  6849. global::System.Nullable<int> IDRegion,
  6850. global::System.Nullable<int> IDCity,
  6851. global::System.Nullable<int> IDStreet,
  6852. global::System.Nullable<int> House,
  6853. string INN,
  6854. global::System.Nullable<int> Rating,
  6855. int Original_IDPartner,
  6856. int Original_IDTypePartner,
  6857. string Original_Namepartner,
  6858. string Original_Surname,
  6859. string Original_Name,
  6860. string Original_Patronomyc,
  6861. string Original_Email,
  6862. string Original_Phone,
  6863. global::System.Nullable<int> Original_IDPostCode,
  6864. global::System.Nullable<int> Original_IDRegion,
  6865. global::System.Nullable<int> Original_IDCity,
  6866. global::System.Nullable<int> Original_IDStreet,
  6867. global::System.Nullable<int> Original_House,
  6868. string Original_INN,
  6869. global::System.Nullable<int> Original_Rating) {
  6870. return this.Update(IDTypePartner, Namepartner, Surname, Name, Patronomyc, Email, Phone, IDPostCode, IDRegion, IDCity, IDStreet, House, INN, Rating, Original_IDPartner, Original_IDTypePartner, Original_Namepartner, Original_Surname, Original_Name, Original_Patronomyc, Original_Email, Original_Phone, Original_IDPostCode, Original_IDRegion, Original_IDCity, Original_IDStreet, Original_House, Original_INN, Original_Rating, Original_IDPartner);
  6871. }
  6872. }
  6873. /// <summary>
  6874. ///Represents the connection and commands used to retrieve and save data.
  6875. ///</summary>
  6876. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6877. [global::System.ComponentModel.ToolboxItem(true)]
  6878. [global::System.ComponentModel.DataObjectAttribute(true)]
  6879. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6880. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6881. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6882. public partial class PartnerProductsTableAdapter : global::System.ComponentModel.Component {
  6883. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6884. private global::System.Data.SqlClient.SqlConnection _connection;
  6885. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6886. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6887. private bool _clearBeforeFill;
  6888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6890. public PartnerProductsTableAdapter() {
  6891. this.ClearBeforeFill = true;
  6892. }
  6893. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6894. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6895. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6896. get {
  6897. if ((this._adapter == null)) {
  6898. this.InitAdapter();
  6899. }
  6900. return this._adapter;
  6901. }
  6902. }
  6903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6904. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6905. internal global::System.Data.SqlClient.SqlConnection Connection {
  6906. get {
  6907. if ((this._connection == null)) {
  6908. this.InitConnection();
  6909. }
  6910. return this._connection;
  6911. }
  6912. set {
  6913. this._connection = value;
  6914. if ((this.Adapter.InsertCommand != null)) {
  6915. this.Adapter.InsertCommand.Connection = value;
  6916. }
  6917. if ((this.Adapter.DeleteCommand != null)) {
  6918. this.Adapter.DeleteCommand.Connection = value;
  6919. }
  6920. if ((this.Adapter.UpdateCommand != null)) {
  6921. this.Adapter.UpdateCommand.Connection = value;
  6922. }
  6923. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6924. if ((this.CommandCollection[i] != null)) {
  6925. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6926. }
  6927. }
  6928. }
  6929. }
  6930. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6931. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6932. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6933. get {
  6934. return this._transaction;
  6935. }
  6936. set {
  6937. this._transaction = value;
  6938. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6939. this.CommandCollection[i].Transaction = this._transaction;
  6940. }
  6941. if (((this.Adapter != null)
  6942. && (this.Adapter.DeleteCommand != null))) {
  6943. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6944. }
  6945. if (((this.Adapter != null)
  6946. && (this.Adapter.InsertCommand != null))) {
  6947. this.Adapter.InsertCommand.Transaction = this._transaction;
  6948. }
  6949. if (((this.Adapter != null)
  6950. && (this.Adapter.UpdateCommand != null))) {
  6951. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6952. }
  6953. }
  6954. }
  6955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6956. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6957. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6958. get {
  6959. if ((this._commandCollection == null)) {
  6960. this.InitCommandCollection();
  6961. }
  6962. return this._commandCollection;
  6963. }
  6964. }
  6965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6967. public bool ClearBeforeFill {
  6968. get {
  6969. return this._clearBeforeFill;
  6970. }
  6971. set {
  6972. this._clearBeforeFill = value;
  6973. }
  6974. }
  6975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6976. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6977. private void InitAdapter() {
  6978. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6979. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6980. tableMapping.SourceTable = "Table";
  6981. tableMapping.DataSetTable = "PartnerProducts";
  6982. tableMapping.ColumnMappings.Add("IDPartnerProduct", "IDPartnerProduct");
  6983. tableMapping.ColumnMappings.Add("IDProduct", "IDProduct");
  6984. tableMapping.ColumnMappings.Add("IDPartner", "IDPartner");
  6985. tableMapping.ColumnMappings.Add("CountProduct", "CountProduct");
  6986. tableMapping.ColumnMappings.Add("DateSale", "DateSale");
  6987. this._adapter.TableMappings.Add(tableMapping);
  6988. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6989. this._adapter.DeleteCommand.Connection = this.Connection;
  6990. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[PartnerProducts] 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)))";
  6991. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6992. 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, "", "", ""));
  6993. 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, "", "", ""));
  6994. 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, "", "", ""));
  6995. 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, "", "", ""));
  6996. 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, "", "", ""));
  6997. 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, "", "", ""));
  6998. 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, "", "", ""));
  6999. 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, "", "", ""));
  7000. 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, "", "", ""));
  7001. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7002. this._adapter.InsertCommand.Connection = this.Connection;
  7003. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[PartnerProducts] ([IDProduct], [IDPartner], [CountProduct], [DateSale]) VALUES (@IDProduct, @IDPartner, @CountProduct, @DateSale);
  7004. SELECT IDPartnerProduct, IDProduct, IDPartner, CountProduct, DateSale FROM PartnerProducts WHERE (IDPartnerProduct = SCOPE_IDENTITY())";
  7005. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7006. 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, "", "", ""));
  7007. 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, "", "", ""));
  7008. 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, "", "", ""));
  7009. 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, "", "", ""));
  7010. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7011. this._adapter.UpdateCommand.Connection = this.Connection;
  7012. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[PartnerProducts] 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)));
  7013. SELECT IDPartnerProduct, IDProduct, IDPartner, CountProduct, DateSale FROM PartnerProducts WHERE (IDPartnerProduct = @IDPartnerProduct)";
  7014. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7015. 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, "", "", ""));
  7016. 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, "", "", ""));
  7017. 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, "", "", ""));
  7018. 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, "", "", ""));
  7019. 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, "", "", ""));
  7020. 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, "", "", ""));
  7021. 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, "", "", ""));
  7022. 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, "", "", ""));
  7023. 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, "", "", ""));
  7024. 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, "", "", ""));
  7025. 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, "", "", ""));
  7026. 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, "", "", ""));
  7027. 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, "", "", ""));
  7028. 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, "", "", ""));
  7029. }
  7030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7032. private void InitConnection() {
  7033. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7034. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.AlfafloorGDVConnectionString;
  7035. }
  7036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7038. private void InitCommandCollection() {
  7039. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7040. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7041. this._commandCollection[0].Connection = this.Connection;
  7042. this._commandCollection[0].CommandText = "SELECT IDPartnerProduct, IDProduct, IDPartner, CountProduct, DateSale FROM dbo.Pa" +
  7043. "rtnerProducts";
  7044. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7045. }
  7046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7048. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7049. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7050. public virtual int Fill(AlfafloorGDVDataSet.PartnerProductsDataTable dataTable) {
  7051. this.Adapter.SelectCommand = this.CommandCollection[0];
  7052. if ((this.ClearBeforeFill == true)) {
  7053. dataTable.Clear();
  7054. }
  7055. int returnValue = this.Adapter.Fill(dataTable);
  7056. return returnValue;
  7057. }
  7058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7060. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7061. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7062. public virtual AlfafloorGDVDataSet.PartnerProductsDataTable GetData() {
  7063. this.Adapter.SelectCommand = this.CommandCollection[0];
  7064. AlfafloorGDVDataSet.PartnerProductsDataTable dataTable = new AlfafloorGDVDataSet.PartnerProductsDataTable();
  7065. this.Adapter.Fill(dataTable);
  7066. return dataTable;
  7067. }
  7068. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7069. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7070. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7071. public virtual int Update(AlfafloorGDVDataSet.PartnerProductsDataTable dataTable) {
  7072. return this.Adapter.Update(dataTable);
  7073. }
  7074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7076. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7077. public virtual int Update(AlfafloorGDVDataSet dataSet) {
  7078. return this.Adapter.Update(dataSet, "PartnerProducts");
  7079. }
  7080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7082. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7083. public virtual int Update(global::System.Data.DataRow dataRow) {
  7084. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7085. dataRow});
  7086. }
  7087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7089. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7090. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7091. return this.Adapter.Update(dataRows);
  7092. }
  7093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7095. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7096. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7097. 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) {
  7098. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IDPartnerProduct));
  7099. if ((Original_IDProduct.HasValue == true)) {
  7100. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7101. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_IDProduct.Value));
  7102. }
  7103. else {
  7104. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7105. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7106. }
  7107. if ((Original_IDPartner.HasValue == true)) {
  7108. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  7109. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_IDPartner.Value));
  7110. }
  7111. else {
  7112. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  7113. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  7114. }
  7115. if ((Original_CountProduct.HasValue == true)) {
  7116. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  7117. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_CountProduct.Value));
  7118. }
  7119. else {
  7120. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  7121. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  7122. }
  7123. if ((Original_DateSale.HasValue == true)) {
  7124. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  7125. this.Adapter.DeleteCommand.Parameters[8].Value = ((System.DateTime)(Original_DateSale.Value));
  7126. }
  7127. else {
  7128. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  7129. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  7130. }
  7131. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7132. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7133. != global::System.Data.ConnectionState.Open)) {
  7134. this.Adapter.DeleteCommand.Connection.Open();
  7135. }
  7136. try {
  7137. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7138. return returnValue;
  7139. }
  7140. finally {
  7141. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7142. this.Adapter.DeleteCommand.Connection.Close();
  7143. }
  7144. }
  7145. }
  7146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7147. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7148. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7149. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7150. 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) {
  7151. if ((IDProduct.HasValue == true)) {
  7152. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IDProduct.Value));
  7153. }
  7154. else {
  7155. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  7156. }
  7157. if ((IDPartner.HasValue == true)) {
  7158. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(IDPartner.Value));
  7159. }
  7160. else {
  7161. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7162. }
  7163. if ((CountProduct.HasValue == true)) {
  7164. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(CountProduct.Value));
  7165. }
  7166. else {
  7167. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  7168. }
  7169. if ((DateSale.HasValue == true)) {
  7170. this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(DateSale.Value));
  7171. }
  7172. else {
  7173. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  7174. }
  7175. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7176. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7177. != global::System.Data.ConnectionState.Open)) {
  7178. this.Adapter.InsertCommand.Connection.Open();
  7179. }
  7180. try {
  7181. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7182. return returnValue;
  7183. }
  7184. finally {
  7185. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7186. this.Adapter.InsertCommand.Connection.Close();
  7187. }
  7188. }
  7189. }
  7190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7191. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7192. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7193. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7194. 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) {
  7195. if ((IDProduct.HasValue == true)) {
  7196. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IDProduct.Value));
  7197. }
  7198. else {
  7199. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  7200. }
  7201. if ((IDPartner.HasValue == true)) {
  7202. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(IDPartner.Value));
  7203. }
  7204. else {
  7205. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7206. }
  7207. if ((CountProduct.HasValue == true)) {
  7208. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(CountProduct.Value));
  7209. }
  7210. else {
  7211. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  7212. }
  7213. if ((DateSale.HasValue == true)) {
  7214. this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(DateSale.Value));
  7215. }
  7216. else {
  7217. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  7218. }
  7219. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_IDPartnerProduct));
  7220. if ((Original_IDProduct.HasValue == true)) {
  7221. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  7222. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_IDProduct.Value));
  7223. }
  7224. else {
  7225. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  7226. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  7227. }
  7228. if ((Original_IDPartner.HasValue == true)) {
  7229. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  7230. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_IDPartner.Value));
  7231. }
  7232. else {
  7233. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  7234. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  7235. }
  7236. if ((Original_CountProduct.HasValue == true)) {
  7237. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  7238. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_CountProduct.Value));
  7239. }
  7240. else {
  7241. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  7242. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  7243. }
  7244. if ((Original_DateSale.HasValue == true)) {
  7245. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  7246. this.Adapter.UpdateCommand.Parameters[12].Value = ((System.DateTime)(Original_DateSale.Value));
  7247. }
  7248. else {
  7249. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  7250. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  7251. }
  7252. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(IDPartnerProduct));
  7253. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7254. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7255. != global::System.Data.ConnectionState.Open)) {
  7256. this.Adapter.UpdateCommand.Connection.Open();
  7257. }
  7258. try {
  7259. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7260. return returnValue;
  7261. }
  7262. finally {
  7263. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7264. this.Adapter.UpdateCommand.Connection.Close();
  7265. }
  7266. }
  7267. }
  7268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7270. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7271. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7272. 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) {
  7273. return this.Update(IDProduct, IDPartner, CountProduct, DateSale, Original_IDPartnerProduct, Original_IDProduct, Original_IDPartner, Original_CountProduct, Original_DateSale, Original_IDPartnerProduct);
  7274. }
  7275. }
  7276. /// <summary>
  7277. ///Represents the connection and commands used to retrieve and save data.
  7278. ///</summary>
  7279. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7280. [global::System.ComponentModel.ToolboxItem(true)]
  7281. [global::System.ComponentModel.DataObjectAttribute(true)]
  7282. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7283. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7284. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7285. public partial class PostCodeTableAdapter : global::System.ComponentModel.Component {
  7286. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7287. private global::System.Data.SqlClient.SqlConnection _connection;
  7288. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7289. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7290. private bool _clearBeforeFill;
  7291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7293. public PostCodeTableAdapter() {
  7294. this.ClearBeforeFill = true;
  7295. }
  7296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7297. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7298. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7299. get {
  7300. if ((this._adapter == null)) {
  7301. this.InitAdapter();
  7302. }
  7303. return this._adapter;
  7304. }
  7305. }
  7306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7308. internal global::System.Data.SqlClient.SqlConnection Connection {
  7309. get {
  7310. if ((this._connection == null)) {
  7311. this.InitConnection();
  7312. }
  7313. return this._connection;
  7314. }
  7315. set {
  7316. this._connection = value;
  7317. if ((this.Adapter.InsertCommand != null)) {
  7318. this.Adapter.InsertCommand.Connection = value;
  7319. }
  7320. if ((this.Adapter.DeleteCommand != null)) {
  7321. this.Adapter.DeleteCommand.Connection = value;
  7322. }
  7323. if ((this.Adapter.UpdateCommand != null)) {
  7324. this.Adapter.UpdateCommand.Connection = value;
  7325. }
  7326. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7327. if ((this.CommandCollection[i] != null)) {
  7328. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7329. }
  7330. }
  7331. }
  7332. }
  7333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7335. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7336. get {
  7337. return this._transaction;
  7338. }
  7339. set {
  7340. this._transaction = value;
  7341. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7342. this.CommandCollection[i].Transaction = this._transaction;
  7343. }
  7344. if (((this.Adapter != null)
  7345. && (this.Adapter.DeleteCommand != null))) {
  7346. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7347. }
  7348. if (((this.Adapter != null)
  7349. && (this.Adapter.InsertCommand != null))) {
  7350. this.Adapter.InsertCommand.Transaction = this._transaction;
  7351. }
  7352. if (((this.Adapter != null)
  7353. && (this.Adapter.UpdateCommand != null))) {
  7354. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7355. }
  7356. }
  7357. }
  7358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7359. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7360. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7361. get {
  7362. if ((this._commandCollection == null)) {
  7363. this.InitCommandCollection();
  7364. }
  7365. return this._commandCollection;
  7366. }
  7367. }
  7368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7370. public bool ClearBeforeFill {
  7371. get {
  7372. return this._clearBeforeFill;
  7373. }
  7374. set {
  7375. this._clearBeforeFill = value;
  7376. }
  7377. }
  7378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7379. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7380. private void InitAdapter() {
  7381. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7382. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7383. tableMapping.SourceTable = "Table";
  7384. tableMapping.DataSetTable = "PostCode";
  7385. tableMapping.ColumnMappings.Add("IDPostCode", "IDPostCode");
  7386. tableMapping.ColumnMappings.Add("PostCode", "PostCode");
  7387. this._adapter.TableMappings.Add(tableMapping);
  7388. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7389. this._adapter.DeleteCommand.Connection = this.Connection;
  7390. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[PostCode] WHERE (([IDPostCode] = @Original_IDPostCode) AND ((@" +
  7391. "IsNull_PostCode = 1 AND [PostCode] IS NULL) OR ([PostCode] = @Original_PostCode)" +
  7392. "))";
  7393. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7394. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDPostCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDPostCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7395. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PostCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PostCode", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7396. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PostCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PostCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7397. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7398. this._adapter.InsertCommand.Connection = this.Connection;
  7399. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[PostCode] ([PostCode]) VALUES (@PostCode);\r\nSELECT IDPostCode," +
  7400. " PostCode FROM PostCode WHERE (IDPostCode = SCOPE_IDENTITY())";
  7401. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7402. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PostCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PostCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7403. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7404. this._adapter.UpdateCommand.Connection = this.Connection;
  7405. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[PostCode] SET [PostCode] = @PostCode WHERE (([IDPostCode] = @Original_IDPostCode) AND ((@IsNull_PostCode = 1 AND [PostCode] IS NULL) OR ([PostCode] = @Original_PostCode)));
  7406. SELECT IDPostCode, PostCode FROM PostCode WHERE (IDPostCode = @IDPostCode)";
  7407. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7408. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PostCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PostCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7409. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDPostCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDPostCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7410. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PostCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PostCode", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7411. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PostCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PostCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7412. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDPostCode", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IDPostCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7413. }
  7414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7416. private void InitConnection() {
  7417. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7418. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.AlfafloorGDVConnectionString;
  7419. }
  7420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7422. private void InitCommandCollection() {
  7423. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7424. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7425. this._commandCollection[0].Connection = this.Connection;
  7426. this._commandCollection[0].CommandText = "SELECT IDPostCode, PostCode FROM dbo.PostCode";
  7427. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7428. }
  7429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7431. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7432. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7433. public virtual int Fill(AlfafloorGDVDataSet.PostCodeDataTable dataTable) {
  7434. this.Adapter.SelectCommand = this.CommandCollection[0];
  7435. if ((this.ClearBeforeFill == true)) {
  7436. dataTable.Clear();
  7437. }
  7438. int returnValue = this.Adapter.Fill(dataTable);
  7439. return returnValue;
  7440. }
  7441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7443. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7444. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7445. public virtual AlfafloorGDVDataSet.PostCodeDataTable GetData() {
  7446. this.Adapter.SelectCommand = this.CommandCollection[0];
  7447. AlfafloorGDVDataSet.PostCodeDataTable dataTable = new AlfafloorGDVDataSet.PostCodeDataTable();
  7448. this.Adapter.Fill(dataTable);
  7449. return dataTable;
  7450. }
  7451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7453. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7454. public virtual int Update(AlfafloorGDVDataSet.PostCodeDataTable dataTable) {
  7455. return this.Adapter.Update(dataTable);
  7456. }
  7457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7458. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7459. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7460. public virtual int Update(AlfafloorGDVDataSet dataSet) {
  7461. return this.Adapter.Update(dataSet, "PostCode");
  7462. }
  7463. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7464. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7465. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7466. public virtual int Update(global::System.Data.DataRow dataRow) {
  7467. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7468. dataRow});
  7469. }
  7470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7471. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7472. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7473. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7474. return this.Adapter.Update(dataRows);
  7475. }
  7476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7477. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7478. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7479. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7480. public virtual int Delete(int Original_IDPostCode, global::System.Nullable<int> Original_PostCode) {
  7481. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IDPostCode));
  7482. if ((Original_PostCode.HasValue == true)) {
  7483. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7484. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_PostCode.Value));
  7485. }
  7486. else {
  7487. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7488. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7489. }
  7490. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7491. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7492. != global::System.Data.ConnectionState.Open)) {
  7493. this.Adapter.DeleteCommand.Connection.Open();
  7494. }
  7495. try {
  7496. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7497. return returnValue;
  7498. }
  7499. finally {
  7500. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7501. this.Adapter.DeleteCommand.Connection.Close();
  7502. }
  7503. }
  7504. }
  7505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7507. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7508. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7509. public virtual int Insert(global::System.Nullable<int> PostCode) {
  7510. if ((PostCode.HasValue == true)) {
  7511. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(PostCode.Value));
  7512. }
  7513. else {
  7514. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  7515. }
  7516. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7517. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7518. != global::System.Data.ConnectionState.Open)) {
  7519. this.Adapter.InsertCommand.Connection.Open();
  7520. }
  7521. try {
  7522. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7523. return returnValue;
  7524. }
  7525. finally {
  7526. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7527. this.Adapter.InsertCommand.Connection.Close();
  7528. }
  7529. }
  7530. }
  7531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7533. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7534. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7535. public virtual int Update(global::System.Nullable<int> PostCode, int Original_IDPostCode, global::System.Nullable<int> Original_PostCode, int IDPostCode) {
  7536. if ((PostCode.HasValue == true)) {
  7537. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(PostCode.Value));
  7538. }
  7539. else {
  7540. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  7541. }
  7542. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_IDPostCode));
  7543. if ((Original_PostCode.HasValue == true)) {
  7544. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  7545. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_PostCode.Value));
  7546. }
  7547. else {
  7548. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  7549. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  7550. }
  7551. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(IDPostCode));
  7552. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7553. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7554. != global::System.Data.ConnectionState.Open)) {
  7555. this.Adapter.UpdateCommand.Connection.Open();
  7556. }
  7557. try {
  7558. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7559. return returnValue;
  7560. }
  7561. finally {
  7562. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7563. this.Adapter.UpdateCommand.Connection.Close();
  7564. }
  7565. }
  7566. }
  7567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7569. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7570. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7571. public virtual int Update(global::System.Nullable<int> PostCode, int Original_IDPostCode, global::System.Nullable<int> Original_PostCode) {
  7572. return this.Update(PostCode, Original_IDPostCode, Original_PostCode, Original_IDPostCode);
  7573. }
  7574. }
  7575. /// <summary>
  7576. ///Represents the connection and commands used to retrieve and save data.
  7577. ///</summary>
  7578. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7579. [global::System.ComponentModel.ToolboxItem(true)]
  7580. [global::System.ComponentModel.DataObjectAttribute(true)]
  7581. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7582. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7583. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7584. public partial class ProductTableAdapter : global::System.ComponentModel.Component {
  7585. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7586. private global::System.Data.SqlClient.SqlConnection _connection;
  7587. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7588. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7589. private bool _clearBeforeFill;
  7590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7592. public ProductTableAdapter() {
  7593. this.ClearBeforeFill = true;
  7594. }
  7595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7597. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7598. get {
  7599. if ((this._adapter == null)) {
  7600. this.InitAdapter();
  7601. }
  7602. return this._adapter;
  7603. }
  7604. }
  7605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7607. internal global::System.Data.SqlClient.SqlConnection Connection {
  7608. get {
  7609. if ((this._connection == null)) {
  7610. this.InitConnection();
  7611. }
  7612. return this._connection;
  7613. }
  7614. set {
  7615. this._connection = value;
  7616. if ((this.Adapter.InsertCommand != null)) {
  7617. this.Adapter.InsertCommand.Connection = value;
  7618. }
  7619. if ((this.Adapter.DeleteCommand != null)) {
  7620. this.Adapter.DeleteCommand.Connection = value;
  7621. }
  7622. if ((this.Adapter.UpdateCommand != null)) {
  7623. this.Adapter.UpdateCommand.Connection = value;
  7624. }
  7625. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7626. if ((this.CommandCollection[i] != null)) {
  7627. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7628. }
  7629. }
  7630. }
  7631. }
  7632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7634. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7635. get {
  7636. return this._transaction;
  7637. }
  7638. set {
  7639. this._transaction = value;
  7640. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7641. this.CommandCollection[i].Transaction = this._transaction;
  7642. }
  7643. if (((this.Adapter != null)
  7644. && (this.Adapter.DeleteCommand != null))) {
  7645. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7646. }
  7647. if (((this.Adapter != null)
  7648. && (this.Adapter.InsertCommand != null))) {
  7649. this.Adapter.InsertCommand.Transaction = this._transaction;
  7650. }
  7651. if (((this.Adapter != null)
  7652. && (this.Adapter.UpdateCommand != null))) {
  7653. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7654. }
  7655. }
  7656. }
  7657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7659. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7660. get {
  7661. if ((this._commandCollection == null)) {
  7662. this.InitCommandCollection();
  7663. }
  7664. return this._commandCollection;
  7665. }
  7666. }
  7667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7668. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7669. public bool ClearBeforeFill {
  7670. get {
  7671. return this._clearBeforeFill;
  7672. }
  7673. set {
  7674. this._clearBeforeFill = value;
  7675. }
  7676. }
  7677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7678. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7679. private void InitAdapter() {
  7680. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7681. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7682. tableMapping.SourceTable = "Table";
  7683. tableMapping.DataSetTable = "Product";
  7684. tableMapping.ColumnMappings.Add("IDProduct", "IDProduct");
  7685. tableMapping.ColumnMappings.Add("IDProductType", "IDProductType");
  7686. tableMapping.ColumnMappings.Add("ProductName", "ProductName");
  7687. tableMapping.ColumnMappings.Add("Article", "Article");
  7688. tableMapping.ColumnMappings.Add("Cost", "Cost");
  7689. this._adapter.TableMappings.Add(tableMapping);
  7690. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7691. this._adapter.DeleteCommand.Connection = this.Connection;
  7692. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Product] WHERE (([IDProduct] = @Original_IDProduct) AND ((@IsNull_IDProductType = 1 AND [IDProductType] IS NULL) OR ([IDProductType] = @Original_IDProductType)) AND ((@IsNull_ProductName = 1 AND [ProductName] IS NULL) OR ([ProductName] = @Original_ProductName)) AND ((@IsNull_Article = 1 AND [Article] IS NULL) OR ([Article] = @Original_Article)) AND ((@IsNull_Cost = 1 AND [Cost] IS NULL) OR ([Cost] = @Original_Cost)))";
  7693. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7694. 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, "", "", ""));
  7695. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IDProductType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDProductType", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7696. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDProductType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDProductType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7697. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ProductName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductName", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7698. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7699. 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, "", "", ""));
  7700. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Article", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Article", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7701. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Cost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7702. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7703. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7704. this._adapter.InsertCommand.Connection = this.Connection;
  7705. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Product] ([IDProductType], [ProductName], [Article], [Cost]) V" +
  7706. "ALUES (@IDProductType, @ProductName, @Article, @Cost);\r\nSELECT IDProduct, IDProd" +
  7707. "uctType, ProductName, Article, Cost FROM Product WHERE (IDProduct = SCOPE_IDENTI" +
  7708. "TY())";
  7709. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7710. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDProductType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDProductType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7711. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7712. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Article", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Article", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7713. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7714. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7715. this._adapter.UpdateCommand.Connection = this.Connection;
  7716. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Product] SET [IDProductType] = @IDProductType, [ProductName] = @ProductName, [Article] = @Article, [Cost] = @Cost WHERE (([IDProduct] = @Original_IDProduct) AND ((@IsNull_IDProductType = 1 AND [IDProductType] IS NULL) OR ([IDProductType] = @Original_IDProductType)) AND ((@IsNull_ProductName = 1 AND [ProductName] IS NULL) OR ([ProductName] = @Original_ProductName)) AND ((@IsNull_Article = 1 AND [Article] IS NULL) OR ([Article] = @Original_Article)) AND ((@IsNull_Cost = 1 AND [Cost] IS NULL) OR ([Cost] = @Original_Cost)));
  7717. SELECT IDProduct, IDProductType, ProductName, Article, Cost FROM Product WHERE (IDProduct = @IDProduct)";
  7718. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7719. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDProductType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDProductType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7720. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7721. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Article", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Article", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7722. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7723. 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, "", "", ""));
  7724. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IDProductType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDProductType", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7725. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDProductType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDProductType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7726. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ProductName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductName", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7727. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7728. 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, "", "", ""));
  7729. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Article", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Article", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7730. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Cost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7731. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7732. 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, "", "", ""));
  7733. }
  7734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7736. private void InitConnection() {
  7737. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7738. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.AlfafloorGDVConnectionString;
  7739. }
  7740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7742. private void InitCommandCollection() {
  7743. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7744. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7745. this._commandCollection[0].Connection = this.Connection;
  7746. this._commandCollection[0].CommandText = "SELECT IDProduct, IDProductType, ProductName, Article, Cost FROM dbo.Product";
  7747. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7748. }
  7749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7751. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7752. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7753. public virtual int Fill(AlfafloorGDVDataSet.ProductDataTable dataTable) {
  7754. this.Adapter.SelectCommand = this.CommandCollection[0];
  7755. if ((this.ClearBeforeFill == true)) {
  7756. dataTable.Clear();
  7757. }
  7758. int returnValue = this.Adapter.Fill(dataTable);
  7759. return returnValue;
  7760. }
  7761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7763. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7764. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7765. public virtual AlfafloorGDVDataSet.ProductDataTable GetData() {
  7766. this.Adapter.SelectCommand = this.CommandCollection[0];
  7767. AlfafloorGDVDataSet.ProductDataTable dataTable = new AlfafloorGDVDataSet.ProductDataTable();
  7768. this.Adapter.Fill(dataTable);
  7769. return dataTable;
  7770. }
  7771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7773. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7774. public virtual int Update(AlfafloorGDVDataSet.ProductDataTable dataTable) {
  7775. return this.Adapter.Update(dataTable);
  7776. }
  7777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7779. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7780. public virtual int Update(AlfafloorGDVDataSet dataSet) {
  7781. return this.Adapter.Update(dataSet, "Product");
  7782. }
  7783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7785. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7786. public virtual int Update(global::System.Data.DataRow dataRow) {
  7787. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7788. dataRow});
  7789. }
  7790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7792. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7793. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7794. return this.Adapter.Update(dataRows);
  7795. }
  7796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7798. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7799. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7800. public virtual int Delete(int Original_IDProduct, global::System.Nullable<int> Original_IDProductType, string Original_ProductName, string Original_Article, global::System.Nullable<decimal> Original_Cost) {
  7801. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IDProduct));
  7802. if ((Original_IDProductType.HasValue == true)) {
  7803. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7804. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_IDProductType.Value));
  7805. }
  7806. else {
  7807. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7808. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7809. }
  7810. if ((Original_ProductName == null)) {
  7811. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  7812. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  7813. }
  7814. else {
  7815. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  7816. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_ProductName));
  7817. }
  7818. if ((Original_Article == null)) {
  7819. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  7820. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  7821. }
  7822. else {
  7823. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  7824. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Article));
  7825. }
  7826. if ((Original_Cost.HasValue == true)) {
  7827. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  7828. this.Adapter.DeleteCommand.Parameters[8].Value = ((decimal)(Original_Cost.Value));
  7829. }
  7830. else {
  7831. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  7832. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  7833. }
  7834. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7835. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7836. != global::System.Data.ConnectionState.Open)) {
  7837. this.Adapter.DeleteCommand.Connection.Open();
  7838. }
  7839. try {
  7840. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7841. return returnValue;
  7842. }
  7843. finally {
  7844. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7845. this.Adapter.DeleteCommand.Connection.Close();
  7846. }
  7847. }
  7848. }
  7849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7851. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7852. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7853. public virtual int Insert(global::System.Nullable<int> IDProductType, string ProductName, string Article, global::System.Nullable<decimal> Cost) {
  7854. if ((IDProductType.HasValue == true)) {
  7855. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IDProductType.Value));
  7856. }
  7857. else {
  7858. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  7859. }
  7860. if ((ProductName == null)) {
  7861. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7862. }
  7863. else {
  7864. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(ProductName));
  7865. }
  7866. if ((Article == null)) {
  7867. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  7868. }
  7869. else {
  7870. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Article));
  7871. }
  7872. if ((Cost.HasValue == true)) {
  7873. this.Adapter.InsertCommand.Parameters[3].Value = ((decimal)(Cost.Value));
  7874. }
  7875. else {
  7876. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  7877. }
  7878. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7879. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7880. != global::System.Data.ConnectionState.Open)) {
  7881. this.Adapter.InsertCommand.Connection.Open();
  7882. }
  7883. try {
  7884. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7885. return returnValue;
  7886. }
  7887. finally {
  7888. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7889. this.Adapter.InsertCommand.Connection.Close();
  7890. }
  7891. }
  7892. }
  7893. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7894. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7895. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7896. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7897. public virtual int Update(global::System.Nullable<int> IDProductType, string ProductName, string Article, global::System.Nullable<decimal> Cost, int Original_IDProduct, global::System.Nullable<int> Original_IDProductType, string Original_ProductName, string Original_Article, global::System.Nullable<decimal> Original_Cost, int IDProduct) {
  7898. if ((IDProductType.HasValue == true)) {
  7899. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IDProductType.Value));
  7900. }
  7901. else {
  7902. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  7903. }
  7904. if ((ProductName == null)) {
  7905. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7906. }
  7907. else {
  7908. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(ProductName));
  7909. }
  7910. if ((Article == null)) {
  7911. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  7912. }
  7913. else {
  7914. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Article));
  7915. }
  7916. if ((Cost.HasValue == true)) {
  7917. this.Adapter.UpdateCommand.Parameters[3].Value = ((decimal)(Cost.Value));
  7918. }
  7919. else {
  7920. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  7921. }
  7922. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_IDProduct));
  7923. if ((Original_IDProductType.HasValue == true)) {
  7924. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  7925. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_IDProductType.Value));
  7926. }
  7927. else {
  7928. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  7929. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  7930. }
  7931. if ((Original_ProductName == null)) {
  7932. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  7933. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  7934. }
  7935. else {
  7936. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  7937. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_ProductName));
  7938. }
  7939. if ((Original_Article == null)) {
  7940. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  7941. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  7942. }
  7943. else {
  7944. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  7945. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Article));
  7946. }
  7947. if ((Original_Cost.HasValue == true)) {
  7948. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  7949. this.Adapter.UpdateCommand.Parameters[12].Value = ((decimal)(Original_Cost.Value));
  7950. }
  7951. else {
  7952. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  7953. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  7954. }
  7955. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(IDProduct));
  7956. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7957. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7958. != global::System.Data.ConnectionState.Open)) {
  7959. this.Adapter.UpdateCommand.Connection.Open();
  7960. }
  7961. try {
  7962. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7963. return returnValue;
  7964. }
  7965. finally {
  7966. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7967. this.Adapter.UpdateCommand.Connection.Close();
  7968. }
  7969. }
  7970. }
  7971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7972. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7973. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7974. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7975. public virtual int Update(global::System.Nullable<int> IDProductType, string ProductName, string Article, global::System.Nullable<decimal> Cost, int Original_IDProduct, global::System.Nullable<int> Original_IDProductType, string Original_ProductName, string Original_Article, global::System.Nullable<decimal> Original_Cost) {
  7976. return this.Update(IDProductType, ProductName, Article, Cost, Original_IDProduct, Original_IDProductType, Original_ProductName, Original_Article, Original_Cost, Original_IDProduct);
  7977. }
  7978. }
  7979. /// <summary>
  7980. ///Represents the connection and commands used to retrieve and save data.
  7981. ///</summary>
  7982. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7983. [global::System.ComponentModel.ToolboxItem(true)]
  7984. [global::System.ComponentModel.DataObjectAttribute(true)]
  7985. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7986. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7987. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7988. public partial class ProductTypeTableAdapter : global::System.ComponentModel.Component {
  7989. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7990. private global::System.Data.SqlClient.SqlConnection _connection;
  7991. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7992. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7993. private bool _clearBeforeFill;
  7994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7996. public ProductTypeTableAdapter() {
  7997. this.ClearBeforeFill = true;
  7998. }
  7999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8001. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8002. get {
  8003. if ((this._adapter == null)) {
  8004. this.InitAdapter();
  8005. }
  8006. return this._adapter;
  8007. }
  8008. }
  8009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8011. internal global::System.Data.SqlClient.SqlConnection Connection {
  8012. get {
  8013. if ((this._connection == null)) {
  8014. this.InitConnection();
  8015. }
  8016. return this._connection;
  8017. }
  8018. set {
  8019. this._connection = value;
  8020. if ((this.Adapter.InsertCommand != null)) {
  8021. this.Adapter.InsertCommand.Connection = value;
  8022. }
  8023. if ((this.Adapter.DeleteCommand != null)) {
  8024. this.Adapter.DeleteCommand.Connection = value;
  8025. }
  8026. if ((this.Adapter.UpdateCommand != null)) {
  8027. this.Adapter.UpdateCommand.Connection = value;
  8028. }
  8029. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8030. if ((this.CommandCollection[i] != null)) {
  8031. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8032. }
  8033. }
  8034. }
  8035. }
  8036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8038. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8039. get {
  8040. return this._transaction;
  8041. }
  8042. set {
  8043. this._transaction = value;
  8044. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8045. this.CommandCollection[i].Transaction = this._transaction;
  8046. }
  8047. if (((this.Adapter != null)
  8048. && (this.Adapter.DeleteCommand != null))) {
  8049. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8050. }
  8051. if (((this.Adapter != null)
  8052. && (this.Adapter.InsertCommand != null))) {
  8053. this.Adapter.InsertCommand.Transaction = this._transaction;
  8054. }
  8055. if (((this.Adapter != null)
  8056. && (this.Adapter.UpdateCommand != null))) {
  8057. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8058. }
  8059. }
  8060. }
  8061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8063. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8064. get {
  8065. if ((this._commandCollection == null)) {
  8066. this.InitCommandCollection();
  8067. }
  8068. return this._commandCollection;
  8069. }
  8070. }
  8071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8073. public bool ClearBeforeFill {
  8074. get {
  8075. return this._clearBeforeFill;
  8076. }
  8077. set {
  8078. this._clearBeforeFill = value;
  8079. }
  8080. }
  8081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8083. private void InitAdapter() {
  8084. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8085. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8086. tableMapping.SourceTable = "Table";
  8087. tableMapping.DataSetTable = "ProductType";
  8088. tableMapping.ColumnMappings.Add("IDProductType", "IDProductType");
  8089. tableMapping.ColumnMappings.Add("ProductType", "ProductType");
  8090. tableMapping.ColumnMappings.Add("Сoefficient", "Сoefficient");
  8091. this._adapter.TableMappings.Add(tableMapping);
  8092. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8093. this._adapter.DeleteCommand.Connection = this.Connection;
  8094. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[ProductType] WHERE (([IDProductType] = @Original_IDProductType) AND ((@IsNull_ProductType = 1 AND [ProductType] IS NULL) OR ([ProductType] = @Original_ProductType)) AND ((@IsNull_Сoefficient = 1 AND [Сoefficient] IS NULL) OR ([Сoefficient] = @Original_Сoefficient)))";
  8095. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8096. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDProductType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDProductType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8097. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ProductType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductType", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8098. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8099. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Сoefficient", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Сoefficient", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8100. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Сoefficient", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Сoefficient", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8101. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8102. this._adapter.InsertCommand.Connection = this.Connection;
  8103. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ProductType] ([ProductType], [Сoefficient]) VALUES (@ProductTy" +
  8104. "pe, @Сoefficient);\r\nSELECT IDProductType, ProductType, Сoefficient FROM ProductT" +
  8105. "ype WHERE (IDProductType = SCOPE_IDENTITY())";
  8106. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8107. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8108. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Сoefficient", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Сoefficient", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8109. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8110. this._adapter.UpdateCommand.Connection = this.Connection;
  8111. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ProductType] SET [ProductType] = @ProductType, [Сoefficient] = @Сoefficient WHERE (([IDProductType] = @Original_IDProductType) AND ((@IsNull_ProductType = 1 AND [ProductType] IS NULL) OR ([ProductType] = @Original_ProductType)) AND ((@IsNull_Сoefficient = 1 AND [Сoefficient] IS NULL) OR ([Сoefficient] = @Original_Сoefficient)));
  8112. SELECT IDProductType, ProductType, Сoefficient FROM ProductType WHERE (IDProductType = @IDProductType)";
  8113. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8114. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8115. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Сoefficient", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Сoefficient", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8116. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDProductType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDProductType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8117. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ProductType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductType", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8118. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8119. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Сoefficient", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Сoefficient", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8120. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Сoefficient", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Сoefficient", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8121. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDProductType", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IDProductType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8122. }
  8123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8125. private void InitConnection() {
  8126. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8127. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.AlfafloorGDVConnectionString;
  8128. }
  8129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8131. private void InitCommandCollection() {
  8132. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8133. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8134. this._commandCollection[0].Connection = this.Connection;
  8135. this._commandCollection[0].CommandText = "SELECT IDProductType, ProductType, Сoefficient FROM dbo.ProductType";
  8136. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8137. }
  8138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8140. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8141. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8142. public virtual int Fill(AlfafloorGDVDataSet.ProductTypeDataTable dataTable) {
  8143. this.Adapter.SelectCommand = this.CommandCollection[0];
  8144. if ((this.ClearBeforeFill == true)) {
  8145. dataTable.Clear();
  8146. }
  8147. int returnValue = this.Adapter.Fill(dataTable);
  8148. return returnValue;
  8149. }
  8150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8152. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8153. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8154. public virtual AlfafloorGDVDataSet.ProductTypeDataTable GetData() {
  8155. this.Adapter.SelectCommand = this.CommandCollection[0];
  8156. AlfafloorGDVDataSet.ProductTypeDataTable dataTable = new AlfafloorGDVDataSet.ProductTypeDataTable();
  8157. this.Adapter.Fill(dataTable);
  8158. return dataTable;
  8159. }
  8160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8162. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8163. public virtual int Update(AlfafloorGDVDataSet.ProductTypeDataTable dataTable) {
  8164. return this.Adapter.Update(dataTable);
  8165. }
  8166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8168. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8169. public virtual int Update(AlfafloorGDVDataSet dataSet) {
  8170. return this.Adapter.Update(dataSet, "ProductType");
  8171. }
  8172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8174. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8175. public virtual int Update(global::System.Data.DataRow dataRow) {
  8176. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8177. dataRow});
  8178. }
  8179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8181. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8182. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8183. return this.Adapter.Update(dataRows);
  8184. }
  8185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8187. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8188. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8189. public virtual int Delete(int Original_IDProductType, string Original_ProductType, global::System.Nullable<double> Original_Сoefficient) {
  8190. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IDProductType));
  8191. if ((Original_ProductType == null)) {
  8192. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  8193. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  8194. }
  8195. else {
  8196. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  8197. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_ProductType));
  8198. }
  8199. if ((Original_Сoefficient.HasValue == true)) {
  8200. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  8201. this.Adapter.DeleteCommand.Parameters[4].Value = ((double)(Original_Сoefficient.Value));
  8202. }
  8203. else {
  8204. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  8205. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  8206. }
  8207. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8208. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8209. != global::System.Data.ConnectionState.Open)) {
  8210. this.Adapter.DeleteCommand.Connection.Open();
  8211. }
  8212. try {
  8213. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8214. return returnValue;
  8215. }
  8216. finally {
  8217. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8218. this.Adapter.DeleteCommand.Connection.Close();
  8219. }
  8220. }
  8221. }
  8222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8224. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8225. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8226. public virtual int Insert(string ProductType, global::System.Nullable<double> Сoefficient) {
  8227. if ((ProductType == null)) {
  8228. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  8229. }
  8230. else {
  8231. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(ProductType));
  8232. }
  8233. if ((Сoefficient.HasValue == true)) {
  8234. this.Adapter.InsertCommand.Parameters[1].Value = ((double)(Сoefficient.Value));
  8235. }
  8236. else {
  8237. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  8238. }
  8239. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8240. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8241. != global::System.Data.ConnectionState.Open)) {
  8242. this.Adapter.InsertCommand.Connection.Open();
  8243. }
  8244. try {
  8245. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8246. return returnValue;
  8247. }
  8248. finally {
  8249. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8250. this.Adapter.InsertCommand.Connection.Close();
  8251. }
  8252. }
  8253. }
  8254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8255. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8256. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8257. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8258. public virtual int Update(string ProductType, global::System.Nullable<double> Сoefficient, int Original_IDProductType, string Original_ProductType, global::System.Nullable<double> Original_Сoefficient, int IDProductType) {
  8259. if ((ProductType == null)) {
  8260. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  8261. }
  8262. else {
  8263. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(ProductType));
  8264. }
  8265. if ((Сoefficient.HasValue == true)) {
  8266. this.Adapter.UpdateCommand.Parameters[1].Value = ((double)(Сoefficient.Value));
  8267. }
  8268. else {
  8269. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  8270. }
  8271. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_IDProductType));
  8272. if ((Original_ProductType == null)) {
  8273. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  8274. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  8275. }
  8276. else {
  8277. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  8278. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_ProductType));
  8279. }
  8280. if ((Original_Сoefficient.HasValue == true)) {
  8281. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  8282. this.Adapter.UpdateCommand.Parameters[6].Value = ((double)(Original_Сoefficient.Value));
  8283. }
  8284. else {
  8285. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  8286. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  8287. }
  8288. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(IDProductType));
  8289. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8290. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8291. != global::System.Data.ConnectionState.Open)) {
  8292. this.Adapter.UpdateCommand.Connection.Open();
  8293. }
  8294. try {
  8295. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8296. return returnValue;
  8297. }
  8298. finally {
  8299. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8300. this.Adapter.UpdateCommand.Connection.Close();
  8301. }
  8302. }
  8303. }
  8304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8306. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8307. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8308. public virtual int Update(string ProductType, global::System.Nullable<double> Сoefficient, int Original_IDProductType, string Original_ProductType, global::System.Nullable<double> Original_Сoefficient) {
  8309. return this.Update(ProductType, Сoefficient, Original_IDProductType, Original_ProductType, Original_Сoefficient, Original_IDProductType);
  8310. }
  8311. }
  8312. /// <summary>
  8313. ///Represents the connection and commands used to retrieve and save data.
  8314. ///</summary>
  8315. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8316. [global::System.ComponentModel.ToolboxItem(true)]
  8317. [global::System.ComponentModel.DataObjectAttribute(true)]
  8318. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8319. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8320. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8321. public partial class RegionTableAdapter : global::System.ComponentModel.Component {
  8322. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8323. private global::System.Data.SqlClient.SqlConnection _connection;
  8324. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8325. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8326. private bool _clearBeforeFill;
  8327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8328. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8329. public RegionTableAdapter() {
  8330. this.ClearBeforeFill = true;
  8331. }
  8332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8334. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8335. get {
  8336. if ((this._adapter == null)) {
  8337. this.InitAdapter();
  8338. }
  8339. return this._adapter;
  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.SqlConnection Connection {
  8345. get {
  8346. if ((this._connection == null)) {
  8347. this.InitConnection();
  8348. }
  8349. return this._connection;
  8350. }
  8351. set {
  8352. this._connection = value;
  8353. if ((this.Adapter.InsertCommand != null)) {
  8354. this.Adapter.InsertCommand.Connection = value;
  8355. }
  8356. if ((this.Adapter.DeleteCommand != null)) {
  8357. this.Adapter.DeleteCommand.Connection = value;
  8358. }
  8359. if ((this.Adapter.UpdateCommand != null)) {
  8360. this.Adapter.UpdateCommand.Connection = value;
  8361. }
  8362. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8363. if ((this.CommandCollection[i] != null)) {
  8364. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8365. }
  8366. }
  8367. }
  8368. }
  8369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8371. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8372. get {
  8373. return this._transaction;
  8374. }
  8375. set {
  8376. this._transaction = value;
  8377. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8378. this.CommandCollection[i].Transaction = this._transaction;
  8379. }
  8380. if (((this.Adapter != null)
  8381. && (this.Adapter.DeleteCommand != null))) {
  8382. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8383. }
  8384. if (((this.Adapter != null)
  8385. && (this.Adapter.InsertCommand != null))) {
  8386. this.Adapter.InsertCommand.Transaction = this._transaction;
  8387. }
  8388. if (((this.Adapter != null)
  8389. && (this.Adapter.UpdateCommand != null))) {
  8390. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8391. }
  8392. }
  8393. }
  8394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8396. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8397. get {
  8398. if ((this._commandCollection == null)) {
  8399. this.InitCommandCollection();
  8400. }
  8401. return this._commandCollection;
  8402. }
  8403. }
  8404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8406. public bool ClearBeforeFill {
  8407. get {
  8408. return this._clearBeforeFill;
  8409. }
  8410. set {
  8411. this._clearBeforeFill = value;
  8412. }
  8413. }
  8414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8416. private void InitAdapter() {
  8417. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8418. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8419. tableMapping.SourceTable = "Table";
  8420. tableMapping.DataSetTable = "Region";
  8421. tableMapping.ColumnMappings.Add("IDRegion", "IDRegion");
  8422. tableMapping.ColumnMappings.Add("Region", "Region");
  8423. this._adapter.TableMappings.Add(tableMapping);
  8424. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8425. this._adapter.DeleteCommand.Connection = this.Connection;
  8426. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Region] WHERE (([IDRegion] = @Original_IDRegion) AND ((@IsNull" +
  8427. "_Region = 1 AND [Region] IS NULL) OR ([Region] = @Original_Region)))";
  8428. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8429. 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, "", "", ""));
  8430. 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, "", "", ""));
  8431. 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, "", "", ""));
  8432. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8433. this._adapter.InsertCommand.Connection = this.Connection;
  8434. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Region] ([Region]) VALUES (@Region);\r\nSELECT IDRegion, Region " +
  8435. "FROM Region WHERE (IDRegion = SCOPE_IDENTITY())";
  8436. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8437. 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, "", "", ""));
  8438. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8439. this._adapter.UpdateCommand.Connection = this.Connection;
  8440. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Region] SET [Region] = @Region WHERE (([IDRegion] = @Original_IDReg" +
  8441. "ion) AND ((@IsNull_Region = 1 AND [Region] IS NULL) OR ([Region] = @Original_Reg" +
  8442. "ion)));\r\nSELECT IDRegion, Region FROM Region WHERE (IDRegion = @IDRegion)";
  8443. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8444. 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, "", "", ""));
  8445. 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, "", "", ""));
  8446. 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, "", "", ""));
  8447. 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, "", "", ""));
  8448. 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, "", "", ""));
  8449. }
  8450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8452. private void InitConnection() {
  8453. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8454. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.AlfafloorGDVConnectionString;
  8455. }
  8456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8458. private void InitCommandCollection() {
  8459. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8460. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8461. this._commandCollection[0].Connection = this.Connection;
  8462. this._commandCollection[0].CommandText = "SELECT IDRegion, Region FROM dbo.Region";
  8463. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8464. }
  8465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8467. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8468. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8469. public virtual int Fill(AlfafloorGDVDataSet.RegionDataTable dataTable) {
  8470. this.Adapter.SelectCommand = this.CommandCollection[0];
  8471. if ((this.ClearBeforeFill == true)) {
  8472. dataTable.Clear();
  8473. }
  8474. int returnValue = this.Adapter.Fill(dataTable);
  8475. return returnValue;
  8476. }
  8477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8479. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8480. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8481. public virtual AlfafloorGDVDataSet.RegionDataTable GetData() {
  8482. this.Adapter.SelectCommand = this.CommandCollection[0];
  8483. AlfafloorGDVDataSet.RegionDataTable dataTable = new AlfafloorGDVDataSet.RegionDataTable();
  8484. this.Adapter.Fill(dataTable);
  8485. return dataTable;
  8486. }
  8487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8489. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8490. public virtual int Update(AlfafloorGDVDataSet.RegionDataTable dataTable) {
  8491. return this.Adapter.Update(dataTable);
  8492. }
  8493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8495. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8496. public virtual int Update(AlfafloorGDVDataSet dataSet) {
  8497. return this.Adapter.Update(dataSet, "Region");
  8498. }
  8499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8500. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8501. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8502. public virtual int Update(global::System.Data.DataRow dataRow) {
  8503. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8504. dataRow});
  8505. }
  8506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8508. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8509. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8510. return this.Adapter.Update(dataRows);
  8511. }
  8512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8514. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8515. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8516. public virtual int Delete(int Original_IDRegion, string Original_Region) {
  8517. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IDRegion));
  8518. if ((Original_Region == null)) {
  8519. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  8520. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  8521. }
  8522. else {
  8523. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  8524. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Region));
  8525. }
  8526. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8527. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8528. != global::System.Data.ConnectionState.Open)) {
  8529. this.Adapter.DeleteCommand.Connection.Open();
  8530. }
  8531. try {
  8532. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8533. return returnValue;
  8534. }
  8535. finally {
  8536. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8537. this.Adapter.DeleteCommand.Connection.Close();
  8538. }
  8539. }
  8540. }
  8541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8543. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8544. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8545. public virtual int Insert(string Region) {
  8546. if ((Region == null)) {
  8547. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  8548. }
  8549. else {
  8550. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Region));
  8551. }
  8552. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8553. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8554. != global::System.Data.ConnectionState.Open)) {
  8555. this.Adapter.InsertCommand.Connection.Open();
  8556. }
  8557. try {
  8558. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8559. return returnValue;
  8560. }
  8561. finally {
  8562. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8563. this.Adapter.InsertCommand.Connection.Close();
  8564. }
  8565. }
  8566. }
  8567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8569. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8570. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8571. public virtual int Update(string Region, int Original_IDRegion, string Original_Region, int IDRegion) {
  8572. if ((Region == null)) {
  8573. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  8574. }
  8575. else {
  8576. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Region));
  8577. }
  8578. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_IDRegion));
  8579. if ((Original_Region == null)) {
  8580. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  8581. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8582. }
  8583. else {
  8584. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  8585. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Region));
  8586. }
  8587. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(IDRegion));
  8588. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8589. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8590. != global::System.Data.ConnectionState.Open)) {
  8591. this.Adapter.UpdateCommand.Connection.Open();
  8592. }
  8593. try {
  8594. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8595. return returnValue;
  8596. }
  8597. finally {
  8598. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8599. this.Adapter.UpdateCommand.Connection.Close();
  8600. }
  8601. }
  8602. }
  8603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8605. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8606. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8607. public virtual int Update(string Region, int Original_IDRegion, string Original_Region) {
  8608. return this.Update(Region, Original_IDRegion, Original_Region, Original_IDRegion);
  8609. }
  8610. }
  8611. /// <summary>
  8612. ///Represents the connection and commands used to retrieve and save data.
  8613. ///</summary>
  8614. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8615. [global::System.ComponentModel.ToolboxItem(true)]
  8616. [global::System.ComponentModel.DataObjectAttribute(true)]
  8617. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8618. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8619. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8620. public partial class StreetTableAdapter : global::System.ComponentModel.Component {
  8621. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8622. private global::System.Data.SqlClient.SqlConnection _connection;
  8623. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8624. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8625. private bool _clearBeforeFill;
  8626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8628. public StreetTableAdapter() {
  8629. this.ClearBeforeFill = true;
  8630. }
  8631. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8633. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8634. get {
  8635. if ((this._adapter == null)) {
  8636. this.InitAdapter();
  8637. }
  8638. return this._adapter;
  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.SqlConnection Connection {
  8644. get {
  8645. if ((this._connection == null)) {
  8646. this.InitConnection();
  8647. }
  8648. return this._connection;
  8649. }
  8650. set {
  8651. this._connection = value;
  8652. if ((this.Adapter.InsertCommand != null)) {
  8653. this.Adapter.InsertCommand.Connection = value;
  8654. }
  8655. if ((this.Adapter.DeleteCommand != null)) {
  8656. this.Adapter.DeleteCommand.Connection = value;
  8657. }
  8658. if ((this.Adapter.UpdateCommand != null)) {
  8659. this.Adapter.UpdateCommand.Connection = value;
  8660. }
  8661. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8662. if ((this.CommandCollection[i] != null)) {
  8663. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8664. }
  8665. }
  8666. }
  8667. }
  8668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8670. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8671. get {
  8672. return this._transaction;
  8673. }
  8674. set {
  8675. this._transaction = value;
  8676. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8677. this.CommandCollection[i].Transaction = this._transaction;
  8678. }
  8679. if (((this.Adapter != null)
  8680. && (this.Adapter.DeleteCommand != null))) {
  8681. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8682. }
  8683. if (((this.Adapter != null)
  8684. && (this.Adapter.InsertCommand != null))) {
  8685. this.Adapter.InsertCommand.Transaction = this._transaction;
  8686. }
  8687. if (((this.Adapter != null)
  8688. && (this.Adapter.UpdateCommand != null))) {
  8689. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8690. }
  8691. }
  8692. }
  8693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8695. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8696. get {
  8697. if ((this._commandCollection == null)) {
  8698. this.InitCommandCollection();
  8699. }
  8700. return this._commandCollection;
  8701. }
  8702. }
  8703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8705. public bool ClearBeforeFill {
  8706. get {
  8707. return this._clearBeforeFill;
  8708. }
  8709. set {
  8710. this._clearBeforeFill = value;
  8711. }
  8712. }
  8713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8715. private void InitAdapter() {
  8716. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8717. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8718. tableMapping.SourceTable = "Table";
  8719. tableMapping.DataSetTable = "Street";
  8720. tableMapping.ColumnMappings.Add("IDStreet", "IDStreet");
  8721. tableMapping.ColumnMappings.Add("Street", "Street");
  8722. this._adapter.TableMappings.Add(tableMapping);
  8723. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8724. this._adapter.DeleteCommand.Connection = this.Connection;
  8725. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Street] WHERE (([IDStreet] = @Original_IDStreet) AND ((@IsNull" +
  8726. "_Street = 1 AND [Street] IS NULL) OR ([Street] = @Original_Street)))";
  8727. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8728. 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, "", "", ""));
  8729. 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, "", "", ""));
  8730. 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, "", "", ""));
  8731. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8732. this._adapter.InsertCommand.Connection = this.Connection;
  8733. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Street] ([Street]) VALUES (@Street);\r\nSELECT IDStreet, Street " +
  8734. "FROM Street WHERE (IDStreet = SCOPE_IDENTITY())";
  8735. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8736. 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, "", "", ""));
  8737. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8738. this._adapter.UpdateCommand.Connection = this.Connection;
  8739. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Street] SET [Street] = @Street WHERE (([IDStreet] = @Original_IDStr" +
  8740. "eet) AND ((@IsNull_Street = 1 AND [Street] IS NULL) OR ([Street] = @Original_Str" +
  8741. "eet)));\r\nSELECT IDStreet, Street FROM Street WHERE (IDStreet = @IDStreet)";
  8742. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8743. 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, "", "", ""));
  8744. 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, "", "", ""));
  8745. 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, "", "", ""));
  8746. 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, "", "", ""));
  8747. 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, "", "", ""));
  8748. }
  8749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8751. private void InitConnection() {
  8752. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8753. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.AlfafloorGDVConnectionString;
  8754. }
  8755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8757. private void InitCommandCollection() {
  8758. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8759. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8760. this._commandCollection[0].Connection = this.Connection;
  8761. this._commandCollection[0].CommandText = "SELECT IDStreet, Street FROM dbo.Street";
  8762. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8763. }
  8764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8766. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8767. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8768. public virtual int Fill(AlfafloorGDVDataSet.StreetDataTable dataTable) {
  8769. this.Adapter.SelectCommand = this.CommandCollection[0];
  8770. if ((this.ClearBeforeFill == true)) {
  8771. dataTable.Clear();
  8772. }
  8773. int returnValue = this.Adapter.Fill(dataTable);
  8774. return returnValue;
  8775. }
  8776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8778. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8779. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8780. public virtual AlfafloorGDVDataSet.StreetDataTable GetData() {
  8781. this.Adapter.SelectCommand = this.CommandCollection[0];
  8782. AlfafloorGDVDataSet.StreetDataTable dataTable = new AlfafloorGDVDataSet.StreetDataTable();
  8783. this.Adapter.Fill(dataTable);
  8784. return dataTable;
  8785. }
  8786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8788. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8789. public virtual int Update(AlfafloorGDVDataSet.StreetDataTable dataTable) {
  8790. return this.Adapter.Update(dataTable);
  8791. }
  8792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8794. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8795. public virtual int Update(AlfafloorGDVDataSet dataSet) {
  8796. return this.Adapter.Update(dataSet, "Street");
  8797. }
  8798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8800. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8801. public virtual int Update(global::System.Data.DataRow dataRow) {
  8802. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8803. dataRow});
  8804. }
  8805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8806. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8807. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8808. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8809. return this.Adapter.Update(dataRows);
  8810. }
  8811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8813. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8814. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8815. public virtual int Delete(int Original_IDStreet, string Original_Street) {
  8816. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IDStreet));
  8817. if ((Original_Street == null)) {
  8818. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  8819. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  8820. }
  8821. else {
  8822. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  8823. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Street));
  8824. }
  8825. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8826. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8827. != global::System.Data.ConnectionState.Open)) {
  8828. this.Adapter.DeleteCommand.Connection.Open();
  8829. }
  8830. try {
  8831. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8832. return returnValue;
  8833. }
  8834. finally {
  8835. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8836. this.Adapter.DeleteCommand.Connection.Close();
  8837. }
  8838. }
  8839. }
  8840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8841. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8842. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8843. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8844. public virtual int Insert(string Street) {
  8845. if ((Street == null)) {
  8846. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  8847. }
  8848. else {
  8849. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Street));
  8850. }
  8851. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8852. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8853. != global::System.Data.ConnectionState.Open)) {
  8854. this.Adapter.InsertCommand.Connection.Open();
  8855. }
  8856. try {
  8857. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8858. return returnValue;
  8859. }
  8860. finally {
  8861. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8862. this.Adapter.InsertCommand.Connection.Close();
  8863. }
  8864. }
  8865. }
  8866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8868. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8869. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8870. public virtual int Update(string Street, int Original_IDStreet, string Original_Street, int IDStreet) {
  8871. if ((Street == null)) {
  8872. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  8873. }
  8874. else {
  8875. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Street));
  8876. }
  8877. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_IDStreet));
  8878. if ((Original_Street == null)) {
  8879. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  8880. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8881. }
  8882. else {
  8883. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  8884. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Street));
  8885. }
  8886. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(IDStreet));
  8887. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8888. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8889. != global::System.Data.ConnectionState.Open)) {
  8890. this.Adapter.UpdateCommand.Connection.Open();
  8891. }
  8892. try {
  8893. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8894. return returnValue;
  8895. }
  8896. finally {
  8897. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8898. this.Adapter.UpdateCommand.Connection.Close();
  8899. }
  8900. }
  8901. }
  8902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8904. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8905. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8906. public virtual int Update(string Street, int Original_IDStreet, string Original_Street) {
  8907. return this.Update(Street, Original_IDStreet, Original_Street, Original_IDStreet);
  8908. }
  8909. }
  8910. /// <summary>
  8911. ///Represents the connection and commands used to retrieve and save data.
  8912. ///</summary>
  8913. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8914. [global::System.ComponentModel.ToolboxItem(true)]
  8915. [global::System.ComponentModel.DataObjectAttribute(true)]
  8916. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8917. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8918. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8919. public partial class TypeMaterialTableAdapter : global::System.ComponentModel.Component {
  8920. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8921. private global::System.Data.SqlClient.SqlConnection _connection;
  8922. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8923. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8924. private bool _clearBeforeFill;
  8925. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8926. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8927. public TypeMaterialTableAdapter() {
  8928. this.ClearBeforeFill = true;
  8929. }
  8930. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8931. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8932. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8933. get {
  8934. if ((this._adapter == null)) {
  8935. this.InitAdapter();
  8936. }
  8937. return this._adapter;
  8938. }
  8939. }
  8940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8942. internal global::System.Data.SqlClient.SqlConnection Connection {
  8943. get {
  8944. if ((this._connection == null)) {
  8945. this.InitConnection();
  8946. }
  8947. return this._connection;
  8948. }
  8949. set {
  8950. this._connection = value;
  8951. if ((this.Adapter.InsertCommand != null)) {
  8952. this.Adapter.InsertCommand.Connection = value;
  8953. }
  8954. if ((this.Adapter.DeleteCommand != null)) {
  8955. this.Adapter.DeleteCommand.Connection = value;
  8956. }
  8957. if ((this.Adapter.UpdateCommand != null)) {
  8958. this.Adapter.UpdateCommand.Connection = value;
  8959. }
  8960. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8961. if ((this.CommandCollection[i] != null)) {
  8962. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8963. }
  8964. }
  8965. }
  8966. }
  8967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8969. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8970. get {
  8971. return this._transaction;
  8972. }
  8973. set {
  8974. this._transaction = value;
  8975. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8976. this.CommandCollection[i].Transaction = this._transaction;
  8977. }
  8978. if (((this.Adapter != null)
  8979. && (this.Adapter.DeleteCommand != null))) {
  8980. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8981. }
  8982. if (((this.Adapter != null)
  8983. && (this.Adapter.InsertCommand != null))) {
  8984. this.Adapter.InsertCommand.Transaction = this._transaction;
  8985. }
  8986. if (((this.Adapter != null)
  8987. && (this.Adapter.UpdateCommand != null))) {
  8988. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8989. }
  8990. }
  8991. }
  8992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8994. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8995. get {
  8996. if ((this._commandCollection == null)) {
  8997. this.InitCommandCollection();
  8998. }
  8999. return this._commandCollection;
  9000. }
  9001. }
  9002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9004. public bool ClearBeforeFill {
  9005. get {
  9006. return this._clearBeforeFill;
  9007. }
  9008. set {
  9009. this._clearBeforeFill = value;
  9010. }
  9011. }
  9012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9014. private void InitAdapter() {
  9015. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9016. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9017. tableMapping.SourceTable = "Table";
  9018. tableMapping.DataSetTable = "TypeMaterial";
  9019. tableMapping.ColumnMappings.Add("IDTypeMaterial", "IDTypeMaterial");
  9020. tableMapping.ColumnMappings.Add("TypeMaterial", "TypeMaterial");
  9021. tableMapping.ColumnMappings.Add("DefectPercent", "DefectPercent");
  9022. this._adapter.TableMappings.Add(tableMapping);
  9023. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9024. this._adapter.DeleteCommand.Connection = this.Connection;
  9025. 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_DefectPercent = 1 AND [DefectPercent] IS NULL) OR ([DefectPercent] = @Original_DefectPercent)))";
  9026. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9027. 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, "", "", ""));
  9028. 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, "", "", ""));
  9029. 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, "", "", ""));
  9030. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DefectPercent", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DefectPercent", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9031. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DefectPercent", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DefectPercent", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9032. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9033. this._adapter.InsertCommand.Connection = this.Connection;
  9034. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[TypeMaterial] ([TypeMaterial], [DefectPercent]) VALUES (@TypeM" +
  9035. "aterial, @DefectPercent);\r\nSELECT IDTypeMaterial, TypeMaterial, DefectPercent FR" +
  9036. "OM TypeMaterial WHERE (IDTypeMaterial = SCOPE_IDENTITY())";
  9037. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9038. 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, "", "", ""));
  9039. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DefectPercent", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DefectPercent", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9040. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9041. this._adapter.UpdateCommand.Connection = this.Connection;
  9042. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[TypeMaterial] SET [TypeMaterial] = @TypeMaterial, [DefectPercent] = @DefectPercent WHERE (([IDTypeMaterial] = @Original_IDTypeMaterial) AND ((@IsNull_TypeMaterial = 1 AND [TypeMaterial] IS NULL) OR ([TypeMaterial] = @Original_TypeMaterial)) AND ((@IsNull_DefectPercent = 1 AND [DefectPercent] IS NULL) OR ([DefectPercent] = @Original_DefectPercent)));
  9043. SELECT IDTypeMaterial, TypeMaterial, DefectPercent FROM TypeMaterial WHERE (IDTypeMaterial = @IDTypeMaterial)";
  9044. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9045. 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, "", "", ""));
  9046. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DefectPercent", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DefectPercent", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9047. 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, "", "", ""));
  9048. 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, "", "", ""));
  9049. 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, "", "", ""));
  9050. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DefectPercent", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DefectPercent", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9051. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DefectPercent", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DefectPercent", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9052. 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, "", "", ""));
  9053. }
  9054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9056. private void InitConnection() {
  9057. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9058. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.AlfafloorGDVConnectionString;
  9059. }
  9060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9062. private void InitCommandCollection() {
  9063. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9064. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9065. this._commandCollection[0].Connection = this.Connection;
  9066. this._commandCollection[0].CommandText = "SELECT IDTypeMaterial, TypeMaterial, DefectPercent FROM dbo.TypeMaterial";
  9067. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9068. }
  9069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9070. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9071. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9072. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9073. public virtual int Fill(AlfafloorGDVDataSet.TypeMaterialDataTable dataTable) {
  9074. this.Adapter.SelectCommand = this.CommandCollection[0];
  9075. if ((this.ClearBeforeFill == true)) {
  9076. dataTable.Clear();
  9077. }
  9078. int returnValue = this.Adapter.Fill(dataTable);
  9079. return returnValue;
  9080. }
  9081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9083. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9084. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9085. public virtual AlfafloorGDVDataSet.TypeMaterialDataTable GetData() {
  9086. this.Adapter.SelectCommand = this.CommandCollection[0];
  9087. AlfafloorGDVDataSet.TypeMaterialDataTable dataTable = new AlfafloorGDVDataSet.TypeMaterialDataTable();
  9088. this.Adapter.Fill(dataTable);
  9089. return dataTable;
  9090. }
  9091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9093. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9094. public virtual int Update(AlfafloorGDVDataSet.TypeMaterialDataTable dataTable) {
  9095. return this.Adapter.Update(dataTable);
  9096. }
  9097. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9098. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9099. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9100. public virtual int Update(AlfafloorGDVDataSet dataSet) {
  9101. return this.Adapter.Update(dataSet, "TypeMaterial");
  9102. }
  9103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9105. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9106. public virtual int Update(global::System.Data.DataRow dataRow) {
  9107. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9108. dataRow});
  9109. }
  9110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9112. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9113. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9114. return this.Adapter.Update(dataRows);
  9115. }
  9116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9118. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9119. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9120. public virtual int Delete(int Original_IDTypeMaterial, string Original_TypeMaterial, global::System.Nullable<double> Original_DefectPercent) {
  9121. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IDTypeMaterial));
  9122. if ((Original_TypeMaterial == null)) {
  9123. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  9124. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  9125. }
  9126. else {
  9127. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  9128. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_TypeMaterial));
  9129. }
  9130. if ((Original_DefectPercent.HasValue == true)) {
  9131. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  9132. this.Adapter.DeleteCommand.Parameters[4].Value = ((double)(Original_DefectPercent.Value));
  9133. }
  9134. else {
  9135. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  9136. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  9137. }
  9138. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9139. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9140. != global::System.Data.ConnectionState.Open)) {
  9141. this.Adapter.DeleteCommand.Connection.Open();
  9142. }
  9143. try {
  9144. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9145. return returnValue;
  9146. }
  9147. finally {
  9148. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9149. this.Adapter.DeleteCommand.Connection.Close();
  9150. }
  9151. }
  9152. }
  9153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9155. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9156. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9157. public virtual int Insert(string TypeMaterial, global::System.Nullable<double> DefectPercent) {
  9158. if ((TypeMaterial == null)) {
  9159. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  9160. }
  9161. else {
  9162. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(TypeMaterial));
  9163. }
  9164. if ((DefectPercent.HasValue == true)) {
  9165. this.Adapter.InsertCommand.Parameters[1].Value = ((double)(DefectPercent.Value));
  9166. }
  9167. else {
  9168. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  9169. }
  9170. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9171. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9172. != global::System.Data.ConnectionState.Open)) {
  9173. this.Adapter.InsertCommand.Connection.Open();
  9174. }
  9175. try {
  9176. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9177. return returnValue;
  9178. }
  9179. finally {
  9180. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9181. this.Adapter.InsertCommand.Connection.Close();
  9182. }
  9183. }
  9184. }
  9185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9187. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9188. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9189. public virtual int Update(string TypeMaterial, global::System.Nullable<double> DefectPercent, int Original_IDTypeMaterial, string Original_TypeMaterial, global::System.Nullable<double> Original_DefectPercent, int IDTypeMaterial) {
  9190. if ((TypeMaterial == null)) {
  9191. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  9192. }
  9193. else {
  9194. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(TypeMaterial));
  9195. }
  9196. if ((DefectPercent.HasValue == true)) {
  9197. this.Adapter.UpdateCommand.Parameters[1].Value = ((double)(DefectPercent.Value));
  9198. }
  9199. else {
  9200. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  9201. }
  9202. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_IDTypeMaterial));
  9203. if ((Original_TypeMaterial == null)) {
  9204. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  9205. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  9206. }
  9207. else {
  9208. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  9209. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_TypeMaterial));
  9210. }
  9211. if ((Original_DefectPercent.HasValue == true)) {
  9212. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  9213. this.Adapter.UpdateCommand.Parameters[6].Value = ((double)(Original_DefectPercent.Value));
  9214. }
  9215. else {
  9216. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  9217. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  9218. }
  9219. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(IDTypeMaterial));
  9220. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9221. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9222. != global::System.Data.ConnectionState.Open)) {
  9223. this.Adapter.UpdateCommand.Connection.Open();
  9224. }
  9225. try {
  9226. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9227. return returnValue;
  9228. }
  9229. finally {
  9230. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9231. this.Adapter.UpdateCommand.Connection.Close();
  9232. }
  9233. }
  9234. }
  9235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9236. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9237. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9238. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9239. public virtual int Update(string TypeMaterial, global::System.Nullable<double> DefectPercent, int Original_IDTypeMaterial, string Original_TypeMaterial, global::System.Nullable<double> Original_DefectPercent) {
  9240. return this.Update(TypeMaterial, DefectPercent, Original_IDTypeMaterial, Original_TypeMaterial, Original_DefectPercent, Original_IDTypeMaterial);
  9241. }
  9242. }
  9243. /// <summary>
  9244. ///Represents the connection and commands used to retrieve and save data.
  9245. ///</summary>
  9246. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9247. [global::System.ComponentModel.ToolboxItem(true)]
  9248. [global::System.ComponentModel.DataObjectAttribute(true)]
  9249. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9250. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9251. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9252. public partial class TypePartnerTableAdapter : global::System.ComponentModel.Component {
  9253. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9254. private global::System.Data.SqlClient.SqlConnection _connection;
  9255. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9256. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9257. private bool _clearBeforeFill;
  9258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9260. public TypePartnerTableAdapter() {
  9261. this.ClearBeforeFill = true;
  9262. }
  9263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9265. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9266. get {
  9267. if ((this._adapter == null)) {
  9268. this.InitAdapter();
  9269. }
  9270. return this._adapter;
  9271. }
  9272. }
  9273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9275. internal global::System.Data.SqlClient.SqlConnection Connection {
  9276. get {
  9277. if ((this._connection == null)) {
  9278. this.InitConnection();
  9279. }
  9280. return this._connection;
  9281. }
  9282. set {
  9283. this._connection = value;
  9284. if ((this.Adapter.InsertCommand != null)) {
  9285. this.Adapter.InsertCommand.Connection = value;
  9286. }
  9287. if ((this.Adapter.DeleteCommand != null)) {
  9288. this.Adapter.DeleteCommand.Connection = value;
  9289. }
  9290. if ((this.Adapter.UpdateCommand != null)) {
  9291. this.Adapter.UpdateCommand.Connection = value;
  9292. }
  9293. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9294. if ((this.CommandCollection[i] != null)) {
  9295. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9296. }
  9297. }
  9298. }
  9299. }
  9300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9302. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9303. get {
  9304. return this._transaction;
  9305. }
  9306. set {
  9307. this._transaction = value;
  9308. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9309. this.CommandCollection[i].Transaction = this._transaction;
  9310. }
  9311. if (((this.Adapter != null)
  9312. && (this.Adapter.DeleteCommand != null))) {
  9313. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9314. }
  9315. if (((this.Adapter != null)
  9316. && (this.Adapter.InsertCommand != null))) {
  9317. this.Adapter.InsertCommand.Transaction = this._transaction;
  9318. }
  9319. if (((this.Adapter != null)
  9320. && (this.Adapter.UpdateCommand != null))) {
  9321. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9322. }
  9323. }
  9324. }
  9325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9327. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9328. get {
  9329. if ((this._commandCollection == null)) {
  9330. this.InitCommandCollection();
  9331. }
  9332. return this._commandCollection;
  9333. }
  9334. }
  9335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9337. public bool ClearBeforeFill {
  9338. get {
  9339. return this._clearBeforeFill;
  9340. }
  9341. set {
  9342. this._clearBeforeFill = value;
  9343. }
  9344. }
  9345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9347. private void InitAdapter() {
  9348. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9349. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9350. tableMapping.SourceTable = "Table";
  9351. tableMapping.DataSetTable = "TypePartner";
  9352. tableMapping.ColumnMappings.Add("IDTypePartner", "IDTypePartner");
  9353. tableMapping.ColumnMappings.Add("TypePartner", "TypePartner");
  9354. this._adapter.TableMappings.Add(tableMapping);
  9355. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9356. this._adapter.DeleteCommand.Connection = this.Connection;
  9357. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[TypePartner] WHERE (([IDTypePartner] = @Original_IDTypePartner" +
  9358. ") AND ((@IsNull_TypePartner = 1 AND [TypePartner] IS NULL) OR ([TypePartner] = @" +
  9359. "Original_TypePartner)))";
  9360. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9361. 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, "", "", ""));
  9362. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TypePartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypePartner", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9363. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TypePartner", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypePartner", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9364. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9365. this._adapter.InsertCommand.Connection = this.Connection;
  9366. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[TypePartner] ([TypePartner]) VALUES (@TypePartner);\r\nSELECT ID" +
  9367. "TypePartner, TypePartner FROM TypePartner WHERE (IDTypePartner = SCOPE_IDENTITY(" +
  9368. "))";
  9369. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9370. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TypePartner", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypePartner", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9371. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9372. this._adapter.UpdateCommand.Connection = this.Connection;
  9373. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[TypePartner] SET [TypePartner] = @TypePartner WHERE (([IDTypePartner] = @Original_IDTypePartner) AND ((@IsNull_TypePartner = 1 AND [TypePartner] IS NULL) OR ([TypePartner] = @Original_TypePartner)));
  9374. SELECT IDTypePartner, TypePartner FROM TypePartner WHERE (IDTypePartner = @IDTypePartner)";
  9375. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9376. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TypePartner", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypePartner", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9377. 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, "", "", ""));
  9378. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TypePartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypePartner", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9379. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TypePartner", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypePartner", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9380. 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, "", "", ""));
  9381. }
  9382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9384. private void InitConnection() {
  9385. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9386. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.AlfafloorGDVConnectionString;
  9387. }
  9388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9390. private void InitCommandCollection() {
  9391. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9392. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9393. this._commandCollection[0].Connection = this.Connection;
  9394. this._commandCollection[0].CommandText = "SELECT IDTypePartner, TypePartner FROM dbo.TypePartner";
  9395. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9396. }
  9397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9399. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9400. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9401. public virtual int Fill(AlfafloorGDVDataSet.TypePartnerDataTable dataTable) {
  9402. this.Adapter.SelectCommand = this.CommandCollection[0];
  9403. if ((this.ClearBeforeFill == true)) {
  9404. dataTable.Clear();
  9405. }
  9406. int returnValue = this.Adapter.Fill(dataTable);
  9407. return returnValue;
  9408. }
  9409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9411. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9412. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9413. public virtual AlfafloorGDVDataSet.TypePartnerDataTable GetData() {
  9414. this.Adapter.SelectCommand = this.CommandCollection[0];
  9415. AlfafloorGDVDataSet.TypePartnerDataTable dataTable = new AlfafloorGDVDataSet.TypePartnerDataTable();
  9416. this.Adapter.Fill(dataTable);
  9417. return dataTable;
  9418. }
  9419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9421. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9422. public virtual int Update(AlfafloorGDVDataSet.TypePartnerDataTable dataTable) {
  9423. return this.Adapter.Update(dataTable);
  9424. }
  9425. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9427. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9428. public virtual int Update(AlfafloorGDVDataSet dataSet) {
  9429. return this.Adapter.Update(dataSet, "TypePartner");
  9430. }
  9431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9433. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9434. public virtual int Update(global::System.Data.DataRow dataRow) {
  9435. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9436. dataRow});
  9437. }
  9438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9440. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9441. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9442. return this.Adapter.Update(dataRows);
  9443. }
  9444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9446. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9447. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9448. public virtual int Delete(int Original_IDTypePartner, string Original_TypePartner) {
  9449. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IDTypePartner));
  9450. if ((Original_TypePartner == null)) {
  9451. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  9452. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  9453. }
  9454. else {
  9455. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  9456. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_TypePartner));
  9457. }
  9458. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9459. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9460. != global::System.Data.ConnectionState.Open)) {
  9461. this.Adapter.DeleteCommand.Connection.Open();
  9462. }
  9463. try {
  9464. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9465. return returnValue;
  9466. }
  9467. finally {
  9468. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9469. this.Adapter.DeleteCommand.Connection.Close();
  9470. }
  9471. }
  9472. }
  9473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9475. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9476. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9477. public virtual int Insert(string TypePartner) {
  9478. if ((TypePartner == null)) {
  9479. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  9480. }
  9481. else {
  9482. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(TypePartner));
  9483. }
  9484. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9485. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9486. != global::System.Data.ConnectionState.Open)) {
  9487. this.Adapter.InsertCommand.Connection.Open();
  9488. }
  9489. try {
  9490. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9491. return returnValue;
  9492. }
  9493. finally {
  9494. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9495. this.Adapter.InsertCommand.Connection.Close();
  9496. }
  9497. }
  9498. }
  9499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9500. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9501. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9502. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9503. public virtual int Update(string TypePartner, int Original_IDTypePartner, string Original_TypePartner, int IDTypePartner) {
  9504. if ((TypePartner == null)) {
  9505. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  9506. }
  9507. else {
  9508. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(TypePartner));
  9509. }
  9510. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_IDTypePartner));
  9511. if ((Original_TypePartner == null)) {
  9512. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  9513. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  9514. }
  9515. else {
  9516. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  9517. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_TypePartner));
  9518. }
  9519. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(IDTypePartner));
  9520. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9521. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9522. != global::System.Data.ConnectionState.Open)) {
  9523. this.Adapter.UpdateCommand.Connection.Open();
  9524. }
  9525. try {
  9526. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9527. return returnValue;
  9528. }
  9529. finally {
  9530. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9531. this.Adapter.UpdateCommand.Connection.Close();
  9532. }
  9533. }
  9534. }
  9535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9537. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9538. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9539. public virtual int Update(string TypePartner, int Original_IDTypePartner, string Original_TypePartner) {
  9540. return this.Update(TypePartner, Original_IDTypePartner, Original_TypePartner, Original_IDTypePartner);
  9541. }
  9542. }
  9543. /// <summary>
  9544. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  9545. ///</summary>
  9546. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9547. [global::System.ComponentModel.ToolboxItem(true)]
  9548. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  9549. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9550. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  9551. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  9552. private UpdateOrderOption _updateOrder;
  9553. private CityTableAdapter _cityTableAdapter;
  9554. private ManagerTableAdapter _managerTableAdapter;
  9555. private PartnerTableAdapter _partnerTableAdapter;
  9556. private PartnerProductsTableAdapter _partnerProductsTableAdapter;
  9557. private PostCodeTableAdapter _postCodeTableAdapter;
  9558. private ProductTableAdapter _productTableAdapter;
  9559. private ProductTypeTableAdapter _productTypeTableAdapter;
  9560. private RegionTableAdapter _regionTableAdapter;
  9561. private StreetTableAdapter _streetTableAdapter;
  9562. private TypeMaterialTableAdapter _typeMaterialTableAdapter;
  9563. private TypePartnerTableAdapter _typePartnerTableAdapter;
  9564. private bool _backupDataSetBeforeUpdate;
  9565. private global::System.Data.IDbConnection _connection;
  9566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9568. public UpdateOrderOption UpdateOrder {
  9569. get {
  9570. return this._updateOrder;
  9571. }
  9572. set {
  9573. this._updateOrder = value;
  9574. }
  9575. }
  9576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9578. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9579. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9580. "a", "System.Drawing.Design.UITypeEditor")]
  9581. public CityTableAdapter CityTableAdapter {
  9582. get {
  9583. return this._cityTableAdapter;
  9584. }
  9585. set {
  9586. this._cityTableAdapter = value;
  9587. }
  9588. }
  9589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9591. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9592. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9593. "a", "System.Drawing.Design.UITypeEditor")]
  9594. public ManagerTableAdapter ManagerTableAdapter {
  9595. get {
  9596. return this._managerTableAdapter;
  9597. }
  9598. set {
  9599. this._managerTableAdapter = value;
  9600. }
  9601. }
  9602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9604. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9605. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9606. "a", "System.Drawing.Design.UITypeEditor")]
  9607. public PartnerTableAdapter PartnerTableAdapter {
  9608. get {
  9609. return this._partnerTableAdapter;
  9610. }
  9611. set {
  9612. this._partnerTableAdapter = value;
  9613. }
  9614. }
  9615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9617. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9618. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9619. "a", "System.Drawing.Design.UITypeEditor")]
  9620. public PartnerProductsTableAdapter PartnerProductsTableAdapter {
  9621. get {
  9622. return this._partnerProductsTableAdapter;
  9623. }
  9624. set {
  9625. this._partnerProductsTableAdapter = value;
  9626. }
  9627. }
  9628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9630. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9631. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9632. "a", "System.Drawing.Design.UITypeEditor")]
  9633. public PostCodeTableAdapter PostCodeTableAdapter {
  9634. get {
  9635. return this._postCodeTableAdapter;
  9636. }
  9637. set {
  9638. this._postCodeTableAdapter = value;
  9639. }
  9640. }
  9641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9642. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9643. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9644. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9645. "a", "System.Drawing.Design.UITypeEditor")]
  9646. public ProductTableAdapter ProductTableAdapter {
  9647. get {
  9648. return this._productTableAdapter;
  9649. }
  9650. set {
  9651. this._productTableAdapter = value;
  9652. }
  9653. }
  9654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9656. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9657. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9658. "a", "System.Drawing.Design.UITypeEditor")]
  9659. public ProductTypeTableAdapter ProductTypeTableAdapter {
  9660. get {
  9661. return this._productTypeTableAdapter;
  9662. }
  9663. set {
  9664. this._productTypeTableAdapter = value;
  9665. }
  9666. }
  9667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9668. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9669. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9670. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9671. "a", "System.Drawing.Design.UITypeEditor")]
  9672. public RegionTableAdapter RegionTableAdapter {
  9673. get {
  9674. return this._regionTableAdapter;
  9675. }
  9676. set {
  9677. this._regionTableAdapter = value;
  9678. }
  9679. }
  9680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9682. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9683. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9684. "a", "System.Drawing.Design.UITypeEditor")]
  9685. public StreetTableAdapter StreetTableAdapter {
  9686. get {
  9687. return this._streetTableAdapter;
  9688. }
  9689. set {
  9690. this._streetTableAdapter = value;
  9691. }
  9692. }
  9693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9695. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9696. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9697. "a", "System.Drawing.Design.UITypeEditor")]
  9698. public TypeMaterialTableAdapter TypeMaterialTableAdapter {
  9699. get {
  9700. return this._typeMaterialTableAdapter;
  9701. }
  9702. set {
  9703. this._typeMaterialTableAdapter = value;
  9704. }
  9705. }
  9706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9708. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9709. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9710. "a", "System.Drawing.Design.UITypeEditor")]
  9711. public TypePartnerTableAdapter TypePartnerTableAdapter {
  9712. get {
  9713. return this._typePartnerTableAdapter;
  9714. }
  9715. set {
  9716. this._typePartnerTableAdapter = value;
  9717. }
  9718. }
  9719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9721. public bool BackupDataSetBeforeUpdate {
  9722. get {
  9723. return this._backupDataSetBeforeUpdate;
  9724. }
  9725. set {
  9726. this._backupDataSetBeforeUpdate = value;
  9727. }
  9728. }
  9729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9731. [global::System.ComponentModel.Browsable(false)]
  9732. public global::System.Data.IDbConnection Connection {
  9733. get {
  9734. if ((this._connection != null)) {
  9735. return this._connection;
  9736. }
  9737. if (((this._cityTableAdapter != null)
  9738. && (this._cityTableAdapter.Connection != null))) {
  9739. return this._cityTableAdapter.Connection;
  9740. }
  9741. if (((this._managerTableAdapter != null)
  9742. && (this._managerTableAdapter.Connection != null))) {
  9743. return this._managerTableAdapter.Connection;
  9744. }
  9745. if (((this._partnerTableAdapter != null)
  9746. && (this._partnerTableAdapter.Connection != null))) {
  9747. return this._partnerTableAdapter.Connection;
  9748. }
  9749. if (((this._partnerProductsTableAdapter != null)
  9750. && (this._partnerProductsTableAdapter.Connection != null))) {
  9751. return this._partnerProductsTableAdapter.Connection;
  9752. }
  9753. if (((this._postCodeTableAdapter != null)
  9754. && (this._postCodeTableAdapter.Connection != null))) {
  9755. return this._postCodeTableAdapter.Connection;
  9756. }
  9757. if (((this._productTableAdapter != null)
  9758. && (this._productTableAdapter.Connection != null))) {
  9759. return this._productTableAdapter.Connection;
  9760. }
  9761. if (((this._productTypeTableAdapter != null)
  9762. && (this._productTypeTableAdapter.Connection != null))) {
  9763. return this._productTypeTableAdapter.Connection;
  9764. }
  9765. if (((this._regionTableAdapter != null)
  9766. && (this._regionTableAdapter.Connection != null))) {
  9767. return this._regionTableAdapter.Connection;
  9768. }
  9769. if (((this._streetTableAdapter != null)
  9770. && (this._streetTableAdapter.Connection != null))) {
  9771. return this._streetTableAdapter.Connection;
  9772. }
  9773. if (((this._typeMaterialTableAdapter != null)
  9774. && (this._typeMaterialTableAdapter.Connection != null))) {
  9775. return this._typeMaterialTableAdapter.Connection;
  9776. }
  9777. if (((this._typePartnerTableAdapter != null)
  9778. && (this._typePartnerTableAdapter.Connection != null))) {
  9779. return this._typePartnerTableAdapter.Connection;
  9780. }
  9781. return null;
  9782. }
  9783. set {
  9784. this._connection = value;
  9785. }
  9786. }
  9787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9788. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9789. [global::System.ComponentModel.Browsable(false)]
  9790. public int TableAdapterInstanceCount {
  9791. get {
  9792. int count = 0;
  9793. if ((this._cityTableAdapter != null)) {
  9794. count = (count + 1);
  9795. }
  9796. if ((this._managerTableAdapter != null)) {
  9797. count = (count + 1);
  9798. }
  9799. if ((this._partnerTableAdapter != null)) {
  9800. count = (count + 1);
  9801. }
  9802. if ((this._partnerProductsTableAdapter != null)) {
  9803. count = (count + 1);
  9804. }
  9805. if ((this._postCodeTableAdapter != null)) {
  9806. count = (count + 1);
  9807. }
  9808. if ((this._productTableAdapter != null)) {
  9809. count = (count + 1);
  9810. }
  9811. if ((this._productTypeTableAdapter != null)) {
  9812. count = (count + 1);
  9813. }
  9814. if ((this._regionTableAdapter != null)) {
  9815. count = (count + 1);
  9816. }
  9817. if ((this._streetTableAdapter != null)) {
  9818. count = (count + 1);
  9819. }
  9820. if ((this._typeMaterialTableAdapter != null)) {
  9821. count = (count + 1);
  9822. }
  9823. if ((this._typePartnerTableAdapter != null)) {
  9824. count = (count + 1);
  9825. }
  9826. return count;
  9827. }
  9828. }
  9829. /// <summary>
  9830. ///Update rows in top-down order.
  9831. ///</summary>
  9832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9834. private int UpdateUpdatedRows(AlfafloorGDVDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  9835. int result = 0;
  9836. if ((this._cityTableAdapter != null)) {
  9837. global::System.Data.DataRow[] updatedRows = dataSet.City.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9838. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9839. if (((updatedRows != null)
  9840. && (0 < updatedRows.Length))) {
  9841. result = (result + this._cityTableAdapter.Update(updatedRows));
  9842. allChangedRows.AddRange(updatedRows);
  9843. }
  9844. }
  9845. if ((this._postCodeTableAdapter != null)) {
  9846. global::System.Data.DataRow[] updatedRows = dataSet.PostCode.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9847. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9848. if (((updatedRows != null)
  9849. && (0 < updatedRows.Length))) {
  9850. result = (result + this._postCodeTableAdapter.Update(updatedRows));
  9851. allChangedRows.AddRange(updatedRows);
  9852. }
  9853. }
  9854. if ((this._productTypeTableAdapter != null)) {
  9855. global::System.Data.DataRow[] updatedRows = dataSet.ProductType.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9856. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9857. if (((updatedRows != null)
  9858. && (0 < updatedRows.Length))) {
  9859. result = (result + this._productTypeTableAdapter.Update(updatedRows));
  9860. allChangedRows.AddRange(updatedRows);
  9861. }
  9862. }
  9863. if ((this._regionTableAdapter != null)) {
  9864. global::System.Data.DataRow[] updatedRows = dataSet.Region.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9865. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9866. if (((updatedRows != null)
  9867. && (0 < updatedRows.Length))) {
  9868. result = (result + this._regionTableAdapter.Update(updatedRows));
  9869. allChangedRows.AddRange(updatedRows);
  9870. }
  9871. }
  9872. if ((this._streetTableAdapter != null)) {
  9873. global::System.Data.DataRow[] updatedRows = dataSet.Street.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9874. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9875. if (((updatedRows != null)
  9876. && (0 < updatedRows.Length))) {
  9877. result = (result + this._streetTableAdapter.Update(updatedRows));
  9878. allChangedRows.AddRange(updatedRows);
  9879. }
  9880. }
  9881. if ((this._typePartnerTableAdapter != null)) {
  9882. global::System.Data.DataRow[] updatedRows = dataSet.TypePartner.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9883. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9884. if (((updatedRows != null)
  9885. && (0 < updatedRows.Length))) {
  9886. result = (result + this._typePartnerTableAdapter.Update(updatedRows));
  9887. allChangedRows.AddRange(updatedRows);
  9888. }
  9889. }
  9890. if ((this._partnerTableAdapter != null)) {
  9891. global::System.Data.DataRow[] updatedRows = dataSet.Partner.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9892. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9893. if (((updatedRows != null)
  9894. && (0 < updatedRows.Length))) {
  9895. result = (result + this._partnerTableAdapter.Update(updatedRows));
  9896. allChangedRows.AddRange(updatedRows);
  9897. }
  9898. }
  9899. if ((this._productTableAdapter != null)) {
  9900. global::System.Data.DataRow[] updatedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9901. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9902. if (((updatedRows != null)
  9903. && (0 < updatedRows.Length))) {
  9904. result = (result + this._productTableAdapter.Update(updatedRows));
  9905. allChangedRows.AddRange(updatedRows);
  9906. }
  9907. }
  9908. if ((this._managerTableAdapter != null)) {
  9909. global::System.Data.DataRow[] updatedRows = dataSet.Manager.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9910. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9911. if (((updatedRows != null)
  9912. && (0 < updatedRows.Length))) {
  9913. result = (result + this._managerTableAdapter.Update(updatedRows));
  9914. allChangedRows.AddRange(updatedRows);
  9915. }
  9916. }
  9917. if ((this._partnerProductsTableAdapter != null)) {
  9918. global::System.Data.DataRow[] updatedRows = dataSet.PartnerProducts.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9919. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9920. if (((updatedRows != null)
  9921. && (0 < updatedRows.Length))) {
  9922. result = (result + this._partnerProductsTableAdapter.Update(updatedRows));
  9923. allChangedRows.AddRange(updatedRows);
  9924. }
  9925. }
  9926. if ((this._typeMaterialTableAdapter != null)) {
  9927. global::System.Data.DataRow[] updatedRows = dataSet.TypeMaterial.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9928. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9929. if (((updatedRows != null)
  9930. && (0 < updatedRows.Length))) {
  9931. result = (result + this._typeMaterialTableAdapter.Update(updatedRows));
  9932. allChangedRows.AddRange(updatedRows);
  9933. }
  9934. }
  9935. return result;
  9936. }
  9937. /// <summary>
  9938. ///Insert rows in top-down order.
  9939. ///</summary>
  9940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9942. private int UpdateInsertedRows(AlfafloorGDVDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  9943. int result = 0;
  9944. if ((this._cityTableAdapter != null)) {
  9945. global::System.Data.DataRow[] addedRows = dataSet.City.Select(null, null, global::System.Data.DataViewRowState.Added);
  9946. if (((addedRows != null)
  9947. && (0 < addedRows.Length))) {
  9948. result = (result + this._cityTableAdapter.Update(addedRows));
  9949. allAddedRows.AddRange(addedRows);
  9950. }
  9951. }
  9952. if ((this._postCodeTableAdapter != null)) {
  9953. global::System.Data.DataRow[] addedRows = dataSet.PostCode.Select(null, null, global::System.Data.DataViewRowState.Added);
  9954. if (((addedRows != null)
  9955. && (0 < addedRows.Length))) {
  9956. result = (result + this._postCodeTableAdapter.Update(addedRows));
  9957. allAddedRows.AddRange(addedRows);
  9958. }
  9959. }
  9960. if ((this._productTypeTableAdapter != null)) {
  9961. global::System.Data.DataRow[] addedRows = dataSet.ProductType.Select(null, null, global::System.Data.DataViewRowState.Added);
  9962. if (((addedRows != null)
  9963. && (0 < addedRows.Length))) {
  9964. result = (result + this._productTypeTableAdapter.Update(addedRows));
  9965. allAddedRows.AddRange(addedRows);
  9966. }
  9967. }
  9968. if ((this._regionTableAdapter != null)) {
  9969. global::System.Data.DataRow[] addedRows = dataSet.Region.Select(null, null, global::System.Data.DataViewRowState.Added);
  9970. if (((addedRows != null)
  9971. && (0 < addedRows.Length))) {
  9972. result = (result + this._regionTableAdapter.Update(addedRows));
  9973. allAddedRows.AddRange(addedRows);
  9974. }
  9975. }
  9976. if ((this._streetTableAdapter != null)) {
  9977. global::System.Data.DataRow[] addedRows = dataSet.Street.Select(null, null, global::System.Data.DataViewRowState.Added);
  9978. if (((addedRows != null)
  9979. && (0 < addedRows.Length))) {
  9980. result = (result + this._streetTableAdapter.Update(addedRows));
  9981. allAddedRows.AddRange(addedRows);
  9982. }
  9983. }
  9984. if ((this._typePartnerTableAdapter != null)) {
  9985. global::System.Data.DataRow[] addedRows = dataSet.TypePartner.Select(null, null, global::System.Data.DataViewRowState.Added);
  9986. if (((addedRows != null)
  9987. && (0 < addedRows.Length))) {
  9988. result = (result + this._typePartnerTableAdapter.Update(addedRows));
  9989. allAddedRows.AddRange(addedRows);
  9990. }
  9991. }
  9992. if ((this._partnerTableAdapter != null)) {
  9993. global::System.Data.DataRow[] addedRows = dataSet.Partner.Select(null, null, global::System.Data.DataViewRowState.Added);
  9994. if (((addedRows != null)
  9995. && (0 < addedRows.Length))) {
  9996. result = (result + this._partnerTableAdapter.Update(addedRows));
  9997. allAddedRows.AddRange(addedRows);
  9998. }
  9999. }
  10000. if ((this._productTableAdapter != null)) {
  10001. global::System.Data.DataRow[] addedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Added);
  10002. if (((addedRows != null)
  10003. && (0 < addedRows.Length))) {
  10004. result = (result + this._productTableAdapter.Update(addedRows));
  10005. allAddedRows.AddRange(addedRows);
  10006. }
  10007. }
  10008. if ((this._managerTableAdapter != null)) {
  10009. global::System.Data.DataRow[] addedRows = dataSet.Manager.Select(null, null, global::System.Data.DataViewRowState.Added);
  10010. if (((addedRows != null)
  10011. && (0 < addedRows.Length))) {
  10012. result = (result + this._managerTableAdapter.Update(addedRows));
  10013. allAddedRows.AddRange(addedRows);
  10014. }
  10015. }
  10016. if ((this._partnerProductsTableAdapter != null)) {
  10017. global::System.Data.DataRow[] addedRows = dataSet.PartnerProducts.Select(null, null, global::System.Data.DataViewRowState.Added);
  10018. if (((addedRows != null)
  10019. && (0 < addedRows.Length))) {
  10020. result = (result + this._partnerProductsTableAdapter.Update(addedRows));
  10021. allAddedRows.AddRange(addedRows);
  10022. }
  10023. }
  10024. if ((this._typeMaterialTableAdapter != null)) {
  10025. global::System.Data.DataRow[] addedRows = dataSet.TypeMaterial.Select(null, null, global::System.Data.DataViewRowState.Added);
  10026. if (((addedRows != null)
  10027. && (0 < addedRows.Length))) {
  10028. result = (result + this._typeMaterialTableAdapter.Update(addedRows));
  10029. allAddedRows.AddRange(addedRows);
  10030. }
  10031. }
  10032. return result;
  10033. }
  10034. /// <summary>
  10035. ///Delete rows in bottom-up order.
  10036. ///</summary>
  10037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10039. private int UpdateDeletedRows(AlfafloorGDVDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  10040. int result = 0;
  10041. if ((this._typeMaterialTableAdapter != null)) {
  10042. global::System.Data.DataRow[] deletedRows = dataSet.TypeMaterial.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10043. if (((deletedRows != null)
  10044. && (0 < deletedRows.Length))) {
  10045. result = (result + this._typeMaterialTableAdapter.Update(deletedRows));
  10046. allChangedRows.AddRange(deletedRows);
  10047. }
  10048. }
  10049. if ((this._partnerProductsTableAdapter != null)) {
  10050. global::System.Data.DataRow[] deletedRows = dataSet.PartnerProducts.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10051. if (((deletedRows != null)
  10052. && (0 < deletedRows.Length))) {
  10053. result = (result + this._partnerProductsTableAdapter.Update(deletedRows));
  10054. allChangedRows.AddRange(deletedRows);
  10055. }
  10056. }
  10057. if ((this._managerTableAdapter != null)) {
  10058. global::System.Data.DataRow[] deletedRows = dataSet.Manager.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10059. if (((deletedRows != null)
  10060. && (0 < deletedRows.Length))) {
  10061. result = (result + this._managerTableAdapter.Update(deletedRows));
  10062. allChangedRows.AddRange(deletedRows);
  10063. }
  10064. }
  10065. if ((this._productTableAdapter != null)) {
  10066. global::System.Data.DataRow[] deletedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10067. if (((deletedRows != null)
  10068. && (0 < deletedRows.Length))) {
  10069. result = (result + this._productTableAdapter.Update(deletedRows));
  10070. allChangedRows.AddRange(deletedRows);
  10071. }
  10072. }
  10073. if ((this._partnerTableAdapter != null)) {
  10074. global::System.Data.DataRow[] deletedRows = dataSet.Partner.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10075. if (((deletedRows != null)
  10076. && (0 < deletedRows.Length))) {
  10077. result = (result + this._partnerTableAdapter.Update(deletedRows));
  10078. allChangedRows.AddRange(deletedRows);
  10079. }
  10080. }
  10081. if ((this._typePartnerTableAdapter != null)) {
  10082. global::System.Data.DataRow[] deletedRows = dataSet.TypePartner.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10083. if (((deletedRows != null)
  10084. && (0 < deletedRows.Length))) {
  10085. result = (result + this._typePartnerTableAdapter.Update(deletedRows));
  10086. allChangedRows.AddRange(deletedRows);
  10087. }
  10088. }
  10089. if ((this._streetTableAdapter != null)) {
  10090. global::System.Data.DataRow[] deletedRows = dataSet.Street.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10091. if (((deletedRows != null)
  10092. && (0 < deletedRows.Length))) {
  10093. result = (result + this._streetTableAdapter.Update(deletedRows));
  10094. allChangedRows.AddRange(deletedRows);
  10095. }
  10096. }
  10097. if ((this._regionTableAdapter != null)) {
  10098. global::System.Data.DataRow[] deletedRows = dataSet.Region.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10099. if (((deletedRows != null)
  10100. && (0 < deletedRows.Length))) {
  10101. result = (result + this._regionTableAdapter.Update(deletedRows));
  10102. allChangedRows.AddRange(deletedRows);
  10103. }
  10104. }
  10105. if ((this._productTypeTableAdapter != null)) {
  10106. global::System.Data.DataRow[] deletedRows = dataSet.ProductType.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10107. if (((deletedRows != null)
  10108. && (0 < deletedRows.Length))) {
  10109. result = (result + this._productTypeTableAdapter.Update(deletedRows));
  10110. allChangedRows.AddRange(deletedRows);
  10111. }
  10112. }
  10113. if ((this._postCodeTableAdapter != null)) {
  10114. global::System.Data.DataRow[] deletedRows = dataSet.PostCode.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10115. if (((deletedRows != null)
  10116. && (0 < deletedRows.Length))) {
  10117. result = (result + this._postCodeTableAdapter.Update(deletedRows));
  10118. allChangedRows.AddRange(deletedRows);
  10119. }
  10120. }
  10121. if ((this._cityTableAdapter != null)) {
  10122. global::System.Data.DataRow[] deletedRows = dataSet.City.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10123. if (((deletedRows != null)
  10124. && (0 < deletedRows.Length))) {
  10125. result = (result + this._cityTableAdapter.Update(deletedRows));
  10126. allChangedRows.AddRange(deletedRows);
  10127. }
  10128. }
  10129. return result;
  10130. }
  10131. /// <summary>
  10132. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  10133. ///</summary>
  10134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10136. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  10137. if (((updatedRows == null)
  10138. || (updatedRows.Length < 1))) {
  10139. return updatedRows;
  10140. }
  10141. if (((allAddedRows == null)
  10142. || (allAddedRows.Count < 1))) {
  10143. return updatedRows;
  10144. }
  10145. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  10146. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  10147. global::System.Data.DataRow row = updatedRows[i];
  10148. if ((allAddedRows.Contains(row) == false)) {
  10149. realUpdatedRows.Add(row);
  10150. }
  10151. }
  10152. return realUpdatedRows.ToArray();
  10153. }
  10154. /// <summary>
  10155. ///Update all changes to the dataset.
  10156. ///</summary>
  10157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10159. public virtual int UpdateAll(AlfafloorGDVDataSet dataSet) {
  10160. if ((dataSet == null)) {
  10161. throw new global::System.ArgumentNullException("dataSet");
  10162. }
  10163. if ((dataSet.HasChanges() == false)) {
  10164. return 0;
  10165. }
  10166. if (((this._cityTableAdapter != null)
  10167. && (this.MatchTableAdapterConnection(this._cityTableAdapter.Connection) == false))) {
  10168. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10169. "tring.");
  10170. }
  10171. if (((this._managerTableAdapter != null)
  10172. && (this.MatchTableAdapterConnection(this._managerTableAdapter.Connection) == false))) {
  10173. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10174. "tring.");
  10175. }
  10176. if (((this._partnerTableAdapter != null)
  10177. && (this.MatchTableAdapterConnection(this._partnerTableAdapter.Connection) == false))) {
  10178. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10179. "tring.");
  10180. }
  10181. if (((this._partnerProductsTableAdapter != null)
  10182. && (this.MatchTableAdapterConnection(this._partnerProductsTableAdapter.Connection) == false))) {
  10183. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10184. "tring.");
  10185. }
  10186. if (((this._postCodeTableAdapter != null)
  10187. && (this.MatchTableAdapterConnection(this._postCodeTableAdapter.Connection) == false))) {
  10188. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10189. "tring.");
  10190. }
  10191. if (((this._productTableAdapter != null)
  10192. && (this.MatchTableAdapterConnection(this._productTableAdapter.Connection) == false))) {
  10193. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10194. "tring.");
  10195. }
  10196. if (((this._productTypeTableAdapter != null)
  10197. && (this.MatchTableAdapterConnection(this._productTypeTableAdapter.Connection) == false))) {
  10198. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10199. "tring.");
  10200. }
  10201. if (((this._regionTableAdapter != null)
  10202. && (this.MatchTableAdapterConnection(this._regionTableAdapter.Connection) == false))) {
  10203. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10204. "tring.");
  10205. }
  10206. if (((this._streetTableAdapter != null)
  10207. && (this.MatchTableAdapterConnection(this._streetTableAdapter.Connection) == false))) {
  10208. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10209. "tring.");
  10210. }
  10211. if (((this._typeMaterialTableAdapter != null)
  10212. && (this.MatchTableAdapterConnection(this._typeMaterialTableAdapter.Connection) == false))) {
  10213. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10214. "tring.");
  10215. }
  10216. if (((this._typePartnerTableAdapter != null)
  10217. && (this.MatchTableAdapterConnection(this._typePartnerTableAdapter.Connection) == false))) {
  10218. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10219. "tring.");
  10220. }
  10221. global::System.Data.IDbConnection workConnection = this.Connection;
  10222. if ((workConnection == null)) {
  10223. throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" +
  10224. "ger TableAdapter property to a valid TableAdapter instance.");
  10225. }
  10226. bool workConnOpened = false;
  10227. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  10228. == global::System.Data.ConnectionState.Broken)) {
  10229. workConnection.Close();
  10230. }
  10231. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  10232. workConnection.Open();
  10233. workConnOpened = true;
  10234. }
  10235. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  10236. if ((workTransaction == null)) {
  10237. throw new global::System.ApplicationException("The transaction cannot begin. The current data connection does not support transa" +
  10238. "ctions or the current state is not allowing the transaction to begin.");
  10239. }
  10240. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  10241. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  10242. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  10243. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  10244. int result = 0;
  10245. global::System.Data.DataSet backupDataSet = null;
  10246. if (this.BackupDataSetBeforeUpdate) {
  10247. backupDataSet = new global::System.Data.DataSet();
  10248. backupDataSet.Merge(dataSet);
  10249. }
  10250. try {
  10251. // ---- Prepare for update -----------
  10252. //
  10253. if ((this._cityTableAdapter != null)) {
  10254. revertConnections.Add(this._cityTableAdapter, this._cityTableAdapter.Connection);
  10255. this._cityTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10256. this._cityTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10257. if (this._cityTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10258. this._cityTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10259. adaptersWithAcceptChangesDuringUpdate.Add(this._cityTableAdapter.Adapter);
  10260. }
  10261. }
  10262. if ((this._managerTableAdapter != null)) {
  10263. revertConnections.Add(this._managerTableAdapter, this._managerTableAdapter.Connection);
  10264. this._managerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10265. this._managerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10266. if (this._managerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10267. this._managerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10268. adaptersWithAcceptChangesDuringUpdate.Add(this._managerTableAdapter.Adapter);
  10269. }
  10270. }
  10271. if ((this._partnerTableAdapter != null)) {
  10272. revertConnections.Add(this._partnerTableAdapter, this._partnerTableAdapter.Connection);
  10273. this._partnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10274. this._partnerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10275. if (this._partnerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10276. this._partnerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10277. adaptersWithAcceptChangesDuringUpdate.Add(this._partnerTableAdapter.Adapter);
  10278. }
  10279. }
  10280. if ((this._partnerProductsTableAdapter != null)) {
  10281. revertConnections.Add(this._partnerProductsTableAdapter, this._partnerProductsTableAdapter.Connection);
  10282. this._partnerProductsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10283. this._partnerProductsTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10284. if (this._partnerProductsTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10285. this._partnerProductsTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10286. adaptersWithAcceptChangesDuringUpdate.Add(this._partnerProductsTableAdapter.Adapter);
  10287. }
  10288. }
  10289. if ((this._postCodeTableAdapter != null)) {
  10290. revertConnections.Add(this._postCodeTableAdapter, this._postCodeTableAdapter.Connection);
  10291. this._postCodeTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10292. this._postCodeTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10293. if (this._postCodeTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10294. this._postCodeTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10295. adaptersWithAcceptChangesDuringUpdate.Add(this._postCodeTableAdapter.Adapter);
  10296. }
  10297. }
  10298. if ((this._productTableAdapter != null)) {
  10299. revertConnections.Add(this._productTableAdapter, this._productTableAdapter.Connection);
  10300. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10301. this._productTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10302. if (this._productTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10303. this._productTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10304. adaptersWithAcceptChangesDuringUpdate.Add(this._productTableAdapter.Adapter);
  10305. }
  10306. }
  10307. if ((this._productTypeTableAdapter != null)) {
  10308. revertConnections.Add(this._productTypeTableAdapter, this._productTypeTableAdapter.Connection);
  10309. this._productTypeTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10310. this._productTypeTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10311. if (this._productTypeTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10312. this._productTypeTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10313. adaptersWithAcceptChangesDuringUpdate.Add(this._productTypeTableAdapter.Adapter);
  10314. }
  10315. }
  10316. if ((this._regionTableAdapter != null)) {
  10317. revertConnections.Add(this._regionTableAdapter, this._regionTableAdapter.Connection);
  10318. this._regionTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10319. this._regionTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10320. if (this._regionTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10321. this._regionTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10322. adaptersWithAcceptChangesDuringUpdate.Add(this._regionTableAdapter.Adapter);
  10323. }
  10324. }
  10325. if ((this._streetTableAdapter != null)) {
  10326. revertConnections.Add(this._streetTableAdapter, this._streetTableAdapter.Connection);
  10327. this._streetTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10328. this._streetTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10329. if (this._streetTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10330. this._streetTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10331. adaptersWithAcceptChangesDuringUpdate.Add(this._streetTableAdapter.Adapter);
  10332. }
  10333. }
  10334. if ((this._typeMaterialTableAdapter != null)) {
  10335. revertConnections.Add(this._typeMaterialTableAdapter, this._typeMaterialTableAdapter.Connection);
  10336. this._typeMaterialTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10337. this._typeMaterialTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10338. if (this._typeMaterialTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10339. this._typeMaterialTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10340. adaptersWithAcceptChangesDuringUpdate.Add(this._typeMaterialTableAdapter.Adapter);
  10341. }
  10342. }
  10343. if ((this._typePartnerTableAdapter != null)) {
  10344. revertConnections.Add(this._typePartnerTableAdapter, this._typePartnerTableAdapter.Connection);
  10345. this._typePartnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10346. this._typePartnerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10347. if (this._typePartnerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10348. this._typePartnerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10349. adaptersWithAcceptChangesDuringUpdate.Add(this._typePartnerTableAdapter.Adapter);
  10350. }
  10351. }
  10352. //
  10353. //---- Perform updates -----------
  10354. //
  10355. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  10356. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  10357. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  10358. }
  10359. else {
  10360. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  10361. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  10362. }
  10363. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  10364. //
  10365. //---- Commit updates -----------
  10366. //
  10367. workTransaction.Commit();
  10368. if ((0 < allAddedRows.Count)) {
  10369. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  10370. allAddedRows.CopyTo(rows);
  10371. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  10372. global::System.Data.DataRow row = rows[i];
  10373. row.AcceptChanges();
  10374. }
  10375. }
  10376. if ((0 < allChangedRows.Count)) {
  10377. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  10378. allChangedRows.CopyTo(rows);
  10379. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  10380. global::System.Data.DataRow row = rows[i];
  10381. row.AcceptChanges();
  10382. }
  10383. }
  10384. }
  10385. catch (global::System.Exception ex) {
  10386. workTransaction.Rollback();
  10387. // ---- Restore the dataset -----------
  10388. if (this.BackupDataSetBeforeUpdate) {
  10389. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  10390. dataSet.Clear();
  10391. dataSet.Merge(backupDataSet);
  10392. }
  10393. else {
  10394. if ((0 < allAddedRows.Count)) {
  10395. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  10396. allAddedRows.CopyTo(rows);
  10397. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  10398. global::System.Data.DataRow row = rows[i];
  10399. row.AcceptChanges();
  10400. row.SetAdded();
  10401. }
  10402. }
  10403. }
  10404. throw ex;
  10405. }
  10406. finally {
  10407. if (workConnOpened) {
  10408. workConnection.Close();
  10409. }
  10410. if ((this._cityTableAdapter != null)) {
  10411. this._cityTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._cityTableAdapter]));
  10412. this._cityTableAdapter.Transaction = null;
  10413. }
  10414. if ((this._managerTableAdapter != null)) {
  10415. this._managerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._managerTableAdapter]));
  10416. this._managerTableAdapter.Transaction = null;
  10417. }
  10418. if ((this._partnerTableAdapter != null)) {
  10419. this._partnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._partnerTableAdapter]));
  10420. this._partnerTableAdapter.Transaction = null;
  10421. }
  10422. if ((this._partnerProductsTableAdapter != null)) {
  10423. this._partnerProductsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._partnerProductsTableAdapter]));
  10424. this._partnerProductsTableAdapter.Transaction = null;
  10425. }
  10426. if ((this._postCodeTableAdapter != null)) {
  10427. this._postCodeTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._postCodeTableAdapter]));
  10428. this._postCodeTableAdapter.Transaction = null;
  10429. }
  10430. if ((this._productTableAdapter != null)) {
  10431. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productTableAdapter]));
  10432. this._productTableAdapter.Transaction = null;
  10433. }
  10434. if ((this._productTypeTableAdapter != null)) {
  10435. this._productTypeTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productTypeTableAdapter]));
  10436. this._productTypeTableAdapter.Transaction = null;
  10437. }
  10438. if ((this._regionTableAdapter != null)) {
  10439. this._regionTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._regionTableAdapter]));
  10440. this._regionTableAdapter.Transaction = null;
  10441. }
  10442. if ((this._streetTableAdapter != null)) {
  10443. this._streetTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._streetTableAdapter]));
  10444. this._streetTableAdapter.Transaction = null;
  10445. }
  10446. if ((this._typeMaterialTableAdapter != null)) {
  10447. this._typeMaterialTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._typeMaterialTableAdapter]));
  10448. this._typeMaterialTableAdapter.Transaction = null;
  10449. }
  10450. if ((this._typePartnerTableAdapter != null)) {
  10451. this._typePartnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._typePartnerTableAdapter]));
  10452. this._typePartnerTableAdapter.Transaction = null;
  10453. }
  10454. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  10455. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  10456. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  10457. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  10458. global::System.Data.Common.DataAdapter adapter = adapters[i];
  10459. adapter.AcceptChangesDuringUpdate = true;
  10460. }
  10461. }
  10462. }
  10463. return result;
  10464. }
  10465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10467. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  10468. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  10469. }
  10470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10471. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10472. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  10473. if ((this._connection != null)) {
  10474. return true;
  10475. }
  10476. if (((this.Connection == null)
  10477. || (inputConnection == null))) {
  10478. return true;
  10479. }
  10480. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  10481. return true;
  10482. }
  10483. return false;
  10484. }
  10485. /// <summary>
  10486. ///Update Order Option
  10487. ///</summary>
  10488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10489. public enum UpdateOrderOption {
  10490. InsertUpdateDelete = 0,
  10491. UpdateInsertDelete = 1,
  10492. }
  10493. /// <summary>
  10494. ///Used to sort self-referenced table's rows
  10495. ///</summary>
  10496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10497. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  10498. private global::System.Data.DataRelation _relation;
  10499. private int _childFirst;
  10500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10502. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  10503. this._relation = relation;
  10504. if (childFirst) {
  10505. this._childFirst = -1;
  10506. }
  10507. else {
  10508. this._childFirst = 1;
  10509. }
  10510. }
  10511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10513. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  10514. global::System.Diagnostics.Debug.Assert((row != null));
  10515. global::System.Data.DataRow root = row;
  10516. distance = 0;
  10517. 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>();
  10518. traversedRows[row] = row;
  10519. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  10520. for (
  10521. ; ((parent != null)
  10522. && (traversedRows.ContainsKey(parent) == false));
  10523. ) {
  10524. distance = (distance + 1);
  10525. root = parent;
  10526. traversedRows[parent] = parent;
  10527. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  10528. }
  10529. if ((distance == 0)) {
  10530. traversedRows.Clear();
  10531. traversedRows[row] = row;
  10532. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  10533. for (
  10534. ; ((parent != null)
  10535. && (traversedRows.ContainsKey(parent) == false));
  10536. ) {
  10537. distance = (distance + 1);
  10538. root = parent;
  10539. traversedRows[parent] = parent;
  10540. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  10541. }
  10542. }
  10543. return root;
  10544. }
  10545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10547. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  10548. if (object.ReferenceEquals(row1, row2)) {
  10549. return 0;
  10550. }
  10551. if ((row1 == null)) {
  10552. return -1;
  10553. }
  10554. if ((row2 == null)) {
  10555. return 1;
  10556. }
  10557. int distance1 = 0;
  10558. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  10559. int distance2 = 0;
  10560. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  10561. if (object.ReferenceEquals(root1, root2)) {
  10562. return (this._childFirst * distance1.CompareTo(distance2));
  10563. }
  10564. else {
  10565. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  10566. && (root2.Table != null)));
  10567. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  10568. return -1;
  10569. }
  10570. else {
  10571. return 1;
  10572. }
  10573. }
  10574. }
  10575. }
  10576. }
  10577. }
  10578. #pragma warning restore 1591