AlfafloorGDVDataSet.Designer.cs 767 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819
  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 Type4FilterDataTable tableType4Filter;
  34. private HistorySaleDataTable tableHistorySale;
  35. private global::System.Data.DataRelation relationFK_Partner_City;
  36. private global::System.Data.DataRelation relationFK_Partner_PostCode;
  37. private global::System.Data.DataRelation relationFK_Partner_Region;
  38. private global::System.Data.DataRelation relationFK_Partner_Street;
  39. private global::System.Data.DataRelation relationFK_Partner_TypePartner;
  40. private global::System.Data.DataRelation relationFK_PartnerProducts_Partner;
  41. private global::System.Data.DataRelation relationFK_PartnerProducts_Product;
  42. private global::System.Data.DataRelation relationFK_Product_ProductType;
  43. private global::System.Data.DataRelation relationFK_PartnerProducts_Partner1;
  44. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  45. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  46. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  47. public AlfafloorGDVDataSet() {
  48. this.BeginInit();
  49. this.InitClass();
  50. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  51. base.Tables.CollectionChanged += schemaChangedHandler;
  52. base.Relations.CollectionChanged += schemaChangedHandler;
  53. this.EndInit();
  54. }
  55. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  56. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  57. protected AlfafloorGDVDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  58. base(info, context, false) {
  59. if ((this.IsBinarySerialized(info, context) == true)) {
  60. this.InitVars(false);
  61. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  62. this.Tables.CollectionChanged += schemaChangedHandler1;
  63. this.Relations.CollectionChanged += schemaChangedHandler1;
  64. return;
  65. }
  66. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  67. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  68. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  69. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  70. if ((ds.Tables["City"] != null)) {
  71. base.Tables.Add(new CityDataTable(ds.Tables["City"]));
  72. }
  73. if ((ds.Tables["Manager"] != null)) {
  74. base.Tables.Add(new ManagerDataTable(ds.Tables["Manager"]));
  75. }
  76. if ((ds.Tables["Partner"] != null)) {
  77. base.Tables.Add(new PartnerDataTable(ds.Tables["Partner"]));
  78. }
  79. if ((ds.Tables["PartnerProducts"] != null)) {
  80. base.Tables.Add(new PartnerProductsDataTable(ds.Tables["PartnerProducts"]));
  81. }
  82. if ((ds.Tables["PostCode"] != null)) {
  83. base.Tables.Add(new PostCodeDataTable(ds.Tables["PostCode"]));
  84. }
  85. if ((ds.Tables["Product"] != null)) {
  86. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  87. }
  88. if ((ds.Tables["ProductType"] != null)) {
  89. base.Tables.Add(new ProductTypeDataTable(ds.Tables["ProductType"]));
  90. }
  91. if ((ds.Tables["Region"] != null)) {
  92. base.Tables.Add(new RegionDataTable(ds.Tables["Region"]));
  93. }
  94. if ((ds.Tables["Street"] != null)) {
  95. base.Tables.Add(new StreetDataTable(ds.Tables["Street"]));
  96. }
  97. if ((ds.Tables["TypeMaterial"] != null)) {
  98. base.Tables.Add(new TypeMaterialDataTable(ds.Tables["TypeMaterial"]));
  99. }
  100. if ((ds.Tables["TypePartner"] != null)) {
  101. base.Tables.Add(new TypePartnerDataTable(ds.Tables["TypePartner"]));
  102. }
  103. if ((ds.Tables["Type4Filter"] != null)) {
  104. base.Tables.Add(new Type4FilterDataTable(ds.Tables["Type4Filter"]));
  105. }
  106. if ((ds.Tables["HistorySale"] != null)) {
  107. base.Tables.Add(new HistorySaleDataTable(ds.Tables["HistorySale"]));
  108. }
  109. this.DataSetName = ds.DataSetName;
  110. this.Prefix = ds.Prefix;
  111. this.Namespace = ds.Namespace;
  112. this.Locale = ds.Locale;
  113. this.CaseSensitive = ds.CaseSensitive;
  114. this.EnforceConstraints = ds.EnforceConstraints;
  115. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  116. this.InitVars();
  117. }
  118. else {
  119. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  120. }
  121. this.GetSerializationData(info, context);
  122. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  123. base.Tables.CollectionChanged += schemaChangedHandler;
  124. this.Relations.CollectionChanged += schemaChangedHandler;
  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 CityDataTable City {
  131. get {
  132. return this.tableCity;
  133. }
  134. }
  135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  137. [global::System.ComponentModel.Browsable(false)]
  138. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  139. public ManagerDataTable Manager {
  140. get {
  141. return this.tableManager;
  142. }
  143. }
  144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  146. [global::System.ComponentModel.Browsable(false)]
  147. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  148. public PartnerDataTable Partner {
  149. get {
  150. return this.tablePartner;
  151. }
  152. }
  153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  155. [global::System.ComponentModel.Browsable(false)]
  156. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  157. public PartnerProductsDataTable PartnerProducts {
  158. get {
  159. return this.tablePartnerProducts;
  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 PostCodeDataTable PostCode {
  167. get {
  168. return this.tablePostCode;
  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 ProductDataTable Product {
  176. get {
  177. return this.tableProduct;
  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 ProductTypeDataTable ProductType {
  185. get {
  186. return this.tableProductType;
  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 RegionDataTable Region {
  194. get {
  195. return this.tableRegion;
  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 StreetDataTable Street {
  203. get {
  204. return this.tableStreet;
  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 TypeMaterialDataTable TypeMaterial {
  212. get {
  213. return this.tableTypeMaterial;
  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.Browsable(false)]
  219. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  220. public TypePartnerDataTable TypePartner {
  221. get {
  222. return this.tableTypePartner;
  223. }
  224. }
  225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  227. [global::System.ComponentModel.Browsable(false)]
  228. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  229. public Type4FilterDataTable Type4Filter {
  230. get {
  231. return this.tableType4Filter;
  232. }
  233. }
  234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  236. [global::System.ComponentModel.Browsable(false)]
  237. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  238. public HistorySaleDataTable HistorySale {
  239. get {
  240. return this.tableHistorySale;
  241. }
  242. }
  243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  245. [global::System.ComponentModel.BrowsableAttribute(true)]
  246. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  247. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  248. get {
  249. return this._schemaSerializationMode;
  250. }
  251. set {
  252. this._schemaSerializationMode = value;
  253. }
  254. }
  255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  257. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  258. public new global::System.Data.DataTableCollection Tables {
  259. get {
  260. return base.Tables;
  261. }
  262. }
  263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  265. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  266. public new global::System.Data.DataRelationCollection Relations {
  267. get {
  268. return base.Relations;
  269. }
  270. }
  271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  272. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  273. protected override void InitializeDerivedDataSet() {
  274. this.BeginInit();
  275. this.InitClass();
  276. this.EndInit();
  277. }
  278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  280. public override global::System.Data.DataSet Clone() {
  281. AlfafloorGDVDataSet cln = ((AlfafloorGDVDataSet)(base.Clone()));
  282. cln.InitVars();
  283. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  284. return cln;
  285. }
  286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  287. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  288. protected override bool ShouldSerializeTables() {
  289. return false;
  290. }
  291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  293. protected override bool ShouldSerializeRelations() {
  294. return false;
  295. }
  296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  297. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  298. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  299. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  300. this.Reset();
  301. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  302. ds.ReadXml(reader);
  303. if ((ds.Tables["City"] != null)) {
  304. base.Tables.Add(new CityDataTable(ds.Tables["City"]));
  305. }
  306. if ((ds.Tables["Manager"] != null)) {
  307. base.Tables.Add(new ManagerDataTable(ds.Tables["Manager"]));
  308. }
  309. if ((ds.Tables["Partner"] != null)) {
  310. base.Tables.Add(new PartnerDataTable(ds.Tables["Partner"]));
  311. }
  312. if ((ds.Tables["PartnerProducts"] != null)) {
  313. base.Tables.Add(new PartnerProductsDataTable(ds.Tables["PartnerProducts"]));
  314. }
  315. if ((ds.Tables["PostCode"] != null)) {
  316. base.Tables.Add(new PostCodeDataTable(ds.Tables["PostCode"]));
  317. }
  318. if ((ds.Tables["Product"] != null)) {
  319. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  320. }
  321. if ((ds.Tables["ProductType"] != null)) {
  322. base.Tables.Add(new ProductTypeDataTable(ds.Tables["ProductType"]));
  323. }
  324. if ((ds.Tables["Region"] != null)) {
  325. base.Tables.Add(new RegionDataTable(ds.Tables["Region"]));
  326. }
  327. if ((ds.Tables["Street"] != null)) {
  328. base.Tables.Add(new StreetDataTable(ds.Tables["Street"]));
  329. }
  330. if ((ds.Tables["TypeMaterial"] != null)) {
  331. base.Tables.Add(new TypeMaterialDataTable(ds.Tables["TypeMaterial"]));
  332. }
  333. if ((ds.Tables["TypePartner"] != null)) {
  334. base.Tables.Add(new TypePartnerDataTable(ds.Tables["TypePartner"]));
  335. }
  336. if ((ds.Tables["Type4Filter"] != null)) {
  337. base.Tables.Add(new Type4FilterDataTable(ds.Tables["Type4Filter"]));
  338. }
  339. if ((ds.Tables["HistorySale"] != null)) {
  340. base.Tables.Add(new HistorySaleDataTable(ds.Tables["HistorySale"]));
  341. }
  342. this.DataSetName = ds.DataSetName;
  343. this.Prefix = ds.Prefix;
  344. this.Namespace = ds.Namespace;
  345. this.Locale = ds.Locale;
  346. this.CaseSensitive = ds.CaseSensitive;
  347. this.EnforceConstraints = ds.EnforceConstraints;
  348. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  349. this.InitVars();
  350. }
  351. else {
  352. this.ReadXml(reader);
  353. this.InitVars();
  354. }
  355. }
  356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  358. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  359. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  360. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  361. stream.Position = 0;
  362. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  363. }
  364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  366. internal void InitVars() {
  367. this.InitVars(true);
  368. }
  369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  371. internal void InitVars(bool initTable) {
  372. this.tableCity = ((CityDataTable)(base.Tables["City"]));
  373. if ((initTable == true)) {
  374. if ((this.tableCity != null)) {
  375. this.tableCity.InitVars();
  376. }
  377. }
  378. this.tableManager = ((ManagerDataTable)(base.Tables["Manager"]));
  379. if ((initTable == true)) {
  380. if ((this.tableManager != null)) {
  381. this.tableManager.InitVars();
  382. }
  383. }
  384. this.tablePartner = ((PartnerDataTable)(base.Tables["Partner"]));
  385. if ((initTable == true)) {
  386. if ((this.tablePartner != null)) {
  387. this.tablePartner.InitVars();
  388. }
  389. }
  390. this.tablePartnerProducts = ((PartnerProductsDataTable)(base.Tables["PartnerProducts"]));
  391. if ((initTable == true)) {
  392. if ((this.tablePartnerProducts != null)) {
  393. this.tablePartnerProducts.InitVars();
  394. }
  395. }
  396. this.tablePostCode = ((PostCodeDataTable)(base.Tables["PostCode"]));
  397. if ((initTable == true)) {
  398. if ((this.tablePostCode != null)) {
  399. this.tablePostCode.InitVars();
  400. }
  401. }
  402. this.tableProduct = ((ProductDataTable)(base.Tables["Product"]));
  403. if ((initTable == true)) {
  404. if ((this.tableProduct != null)) {
  405. this.tableProduct.InitVars();
  406. }
  407. }
  408. this.tableProductType = ((ProductTypeDataTable)(base.Tables["ProductType"]));
  409. if ((initTable == true)) {
  410. if ((this.tableProductType != null)) {
  411. this.tableProductType.InitVars();
  412. }
  413. }
  414. this.tableRegion = ((RegionDataTable)(base.Tables["Region"]));
  415. if ((initTable == true)) {
  416. if ((this.tableRegion != null)) {
  417. this.tableRegion.InitVars();
  418. }
  419. }
  420. this.tableStreet = ((StreetDataTable)(base.Tables["Street"]));
  421. if ((initTable == true)) {
  422. if ((this.tableStreet != null)) {
  423. this.tableStreet.InitVars();
  424. }
  425. }
  426. this.tableTypeMaterial = ((TypeMaterialDataTable)(base.Tables["TypeMaterial"]));
  427. if ((initTable == true)) {
  428. if ((this.tableTypeMaterial != null)) {
  429. this.tableTypeMaterial.InitVars();
  430. }
  431. }
  432. this.tableTypePartner = ((TypePartnerDataTable)(base.Tables["TypePartner"]));
  433. if ((initTable == true)) {
  434. if ((this.tableTypePartner != null)) {
  435. this.tableTypePartner.InitVars();
  436. }
  437. }
  438. this.tableType4Filter = ((Type4FilterDataTable)(base.Tables["Type4Filter"]));
  439. if ((initTable == true)) {
  440. if ((this.tableType4Filter != null)) {
  441. this.tableType4Filter.InitVars();
  442. }
  443. }
  444. this.tableHistorySale = ((HistorySaleDataTable)(base.Tables["HistorySale"]));
  445. if ((initTable == true)) {
  446. if ((this.tableHistorySale != null)) {
  447. this.tableHistorySale.InitVars();
  448. }
  449. }
  450. this.relationFK_Partner_City = this.Relations["FK_Partner_City"];
  451. this.relationFK_Partner_PostCode = this.Relations["FK_Partner_PostCode"];
  452. this.relationFK_Partner_Region = this.Relations["FK_Partner_Region"];
  453. this.relationFK_Partner_Street = this.Relations["FK_Partner_Street"];
  454. this.relationFK_Partner_TypePartner = this.Relations["FK_Partner_TypePartner"];
  455. this.relationFK_PartnerProducts_Partner = this.Relations["FK_PartnerProducts_Partner"];
  456. this.relationFK_PartnerProducts_Product = this.Relations["FK_PartnerProducts_Product"];
  457. this.relationFK_Product_ProductType = this.Relations["FK_Product_ProductType"];
  458. this.relationFK_PartnerProducts_Partner1 = this.Relations["FK_PartnerProducts_Partner1"];
  459. }
  460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  462. private void InitClass() {
  463. this.DataSetName = "AlfafloorGDVDataSet";
  464. this.Prefix = "";
  465. this.Namespace = "http://tempuri.org/AlfafloorGDVDataSet.xsd";
  466. this.EnforceConstraints = true;
  467. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  468. this.tableCity = new CityDataTable();
  469. base.Tables.Add(this.tableCity);
  470. this.tableManager = new ManagerDataTable();
  471. base.Tables.Add(this.tableManager);
  472. this.tablePartner = new PartnerDataTable();
  473. base.Tables.Add(this.tablePartner);
  474. this.tablePartnerProducts = new PartnerProductsDataTable();
  475. base.Tables.Add(this.tablePartnerProducts);
  476. this.tablePostCode = new PostCodeDataTable();
  477. base.Tables.Add(this.tablePostCode);
  478. this.tableProduct = new ProductDataTable();
  479. base.Tables.Add(this.tableProduct);
  480. this.tableProductType = new ProductTypeDataTable();
  481. base.Tables.Add(this.tableProductType);
  482. this.tableRegion = new RegionDataTable();
  483. base.Tables.Add(this.tableRegion);
  484. this.tableStreet = new StreetDataTable();
  485. base.Tables.Add(this.tableStreet);
  486. this.tableTypeMaterial = new TypeMaterialDataTable();
  487. base.Tables.Add(this.tableTypeMaterial);
  488. this.tableTypePartner = new TypePartnerDataTable();
  489. base.Tables.Add(this.tableTypePartner);
  490. this.tableType4Filter = new Type4FilterDataTable();
  491. base.Tables.Add(this.tableType4Filter);
  492. this.tableHistorySale = new HistorySaleDataTable();
  493. base.Tables.Add(this.tableHistorySale);
  494. this.relationFK_Partner_City = new global::System.Data.DataRelation("FK_Partner_City", new global::System.Data.DataColumn[] {
  495. this.tableCity.IDCityColumn}, new global::System.Data.DataColumn[] {
  496. this.tablePartner.IDCityColumn}, false);
  497. this.Relations.Add(this.relationFK_Partner_City);
  498. this.relationFK_Partner_PostCode = new global::System.Data.DataRelation("FK_Partner_PostCode", new global::System.Data.DataColumn[] {
  499. this.tablePostCode.IDPostCodeColumn}, new global::System.Data.DataColumn[] {
  500. this.tablePartner.IDPostCodeColumn}, false);
  501. this.Relations.Add(this.relationFK_Partner_PostCode);
  502. this.relationFK_Partner_Region = new global::System.Data.DataRelation("FK_Partner_Region", new global::System.Data.DataColumn[] {
  503. this.tableRegion.IDRegionColumn}, new global::System.Data.DataColumn[] {
  504. this.tablePartner.IDRegionColumn}, false);
  505. this.Relations.Add(this.relationFK_Partner_Region);
  506. this.relationFK_Partner_Street = new global::System.Data.DataRelation("FK_Partner_Street", new global::System.Data.DataColumn[] {
  507. this.tableStreet.IDStreetColumn}, new global::System.Data.DataColumn[] {
  508. this.tablePartner.IDStreetColumn}, false);
  509. this.Relations.Add(this.relationFK_Partner_Street);
  510. this.relationFK_Partner_TypePartner = new global::System.Data.DataRelation("FK_Partner_TypePartner", new global::System.Data.DataColumn[] {
  511. this.tableTypePartner.IDTypePartnerColumn}, new global::System.Data.DataColumn[] {
  512. this.tablePartner.IDTypePartnerColumn}, false);
  513. this.Relations.Add(this.relationFK_Partner_TypePartner);
  514. this.relationFK_PartnerProducts_Partner = new global::System.Data.DataRelation("FK_PartnerProducts_Partner", new global::System.Data.DataColumn[] {
  515. this.tablePartner.IDPartnerColumn}, new global::System.Data.DataColumn[] {
  516. this.tablePartnerProducts.IDPartnerColumn}, false);
  517. this.Relations.Add(this.relationFK_PartnerProducts_Partner);
  518. this.relationFK_PartnerProducts_Product = new global::System.Data.DataRelation("FK_PartnerProducts_Product", new global::System.Data.DataColumn[] {
  519. this.tableProduct.IDProductColumn}, new global::System.Data.DataColumn[] {
  520. this.tablePartnerProducts.IDProductColumn}, false);
  521. this.Relations.Add(this.relationFK_PartnerProducts_Product);
  522. this.relationFK_Product_ProductType = new global::System.Data.DataRelation("FK_Product_ProductType", new global::System.Data.DataColumn[] {
  523. this.tableProductType.IDProductTypeColumn}, new global::System.Data.DataColumn[] {
  524. this.tableProduct.IDProductTypeColumn}, false);
  525. this.Relations.Add(this.relationFK_Product_ProductType);
  526. this.relationFK_PartnerProducts_Partner1 = new global::System.Data.DataRelation("FK_PartnerProducts_Partner1", new global::System.Data.DataColumn[] {
  527. this.tablePartner.IDPartnerColumn}, new global::System.Data.DataColumn[] {
  528. this.tableHistorySale.IDPartnerColumn}, false);
  529. this.Relations.Add(this.relationFK_PartnerProducts_Partner1);
  530. }
  531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  533. private bool ShouldSerializeCity() {
  534. return false;
  535. }
  536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  538. private bool ShouldSerializeManager() {
  539. return false;
  540. }
  541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  543. private bool ShouldSerializePartner() {
  544. return false;
  545. }
  546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  548. private bool ShouldSerializePartnerProducts() {
  549. return false;
  550. }
  551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  553. private bool ShouldSerializePostCode() {
  554. return false;
  555. }
  556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  558. private bool ShouldSerializeProduct() {
  559. return false;
  560. }
  561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  563. private bool ShouldSerializeProductType() {
  564. return false;
  565. }
  566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  568. private bool ShouldSerializeRegion() {
  569. return false;
  570. }
  571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  573. private bool ShouldSerializeStreet() {
  574. return false;
  575. }
  576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  578. private bool ShouldSerializeTypeMaterial() {
  579. return false;
  580. }
  581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  583. private bool ShouldSerializeTypePartner() {
  584. return false;
  585. }
  586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  588. private bool ShouldSerializeType4Filter() {
  589. return false;
  590. }
  591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  593. private bool ShouldSerializeHistorySale() {
  594. return false;
  595. }
  596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  598. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  599. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  600. this.InitVars();
  601. }
  602. }
  603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  605. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  606. AlfafloorGDVDataSet ds = new AlfafloorGDVDataSet();
  607. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  608. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  609. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  610. any.Namespace = ds.Namespace;
  611. sequence.Items.Add(any);
  612. type.Particle = sequence;
  613. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  614. if (xs.Contains(dsSchema.TargetNamespace)) {
  615. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  616. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  617. try {
  618. global::System.Xml.Schema.XmlSchema schema = null;
  619. dsSchema.Write(s1);
  620. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  621. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  622. s2.SetLength(0);
  623. schema.Write(s2);
  624. if ((s1.Length == s2.Length)) {
  625. s1.Position = 0;
  626. s2.Position = 0;
  627. for (; ((s1.Position != s1.Length)
  628. && (s1.ReadByte() == s2.ReadByte())); ) {
  629. ;
  630. }
  631. if ((s1.Position == s1.Length)) {
  632. return type;
  633. }
  634. }
  635. }
  636. }
  637. finally {
  638. if ((s1 != null)) {
  639. s1.Close();
  640. }
  641. if ((s2 != null)) {
  642. s2.Close();
  643. }
  644. }
  645. }
  646. xs.Add(dsSchema);
  647. return type;
  648. }
  649. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  650. public delegate void CityRowChangeEventHandler(object sender, CityRowChangeEvent e);
  651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  652. public delegate void ManagerRowChangeEventHandler(object sender, ManagerRowChangeEvent e);
  653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  654. public delegate void PartnerRowChangeEventHandler(object sender, PartnerRowChangeEvent e);
  655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  656. public delegate void PartnerProductsRowChangeEventHandler(object sender, PartnerProductsRowChangeEvent e);
  657. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  658. public delegate void PostCodeRowChangeEventHandler(object sender, PostCodeRowChangeEvent e);
  659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  660. public delegate void ProductRowChangeEventHandler(object sender, ProductRowChangeEvent e);
  661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  662. public delegate void ProductTypeRowChangeEventHandler(object sender, ProductTypeRowChangeEvent e);
  663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  664. public delegate void RegionRowChangeEventHandler(object sender, RegionRowChangeEvent e);
  665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  666. public delegate void StreetRowChangeEventHandler(object sender, StreetRowChangeEvent e);
  667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  668. public delegate void TypeMaterialRowChangeEventHandler(object sender, TypeMaterialRowChangeEvent e);
  669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  670. public delegate void TypePartnerRowChangeEventHandler(object sender, TypePartnerRowChangeEvent e);
  671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  672. public delegate void Type4FilterRowChangeEventHandler(object sender, Type4FilterRowChangeEvent e);
  673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  674. public delegate void HistorySaleRowChangeEventHandler(object sender, HistorySaleRowChangeEvent e);
  675. /// <summary>
  676. ///Represents the strongly named DataTable class.
  677. ///</summary>
  678. [global::System.Serializable()]
  679. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  680. public partial class CityDataTable : global::System.Data.TypedTableBase<CityRow> {
  681. private global::System.Data.DataColumn columnIDCity;
  682. private global::System.Data.DataColumn columnCity;
  683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  685. public CityDataTable() {
  686. this.TableName = "City";
  687. this.BeginInit();
  688. this.InitClass();
  689. this.EndInit();
  690. }
  691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  693. internal CityDataTable(global::System.Data.DataTable table) {
  694. this.TableName = table.TableName;
  695. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  696. this.CaseSensitive = table.CaseSensitive;
  697. }
  698. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  699. this.Locale = table.Locale;
  700. }
  701. if ((table.Namespace != table.DataSet.Namespace)) {
  702. this.Namespace = table.Namespace;
  703. }
  704. this.Prefix = table.Prefix;
  705. this.MinimumCapacity = table.MinimumCapacity;
  706. }
  707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  709. protected CityDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  710. base(info, context) {
  711. this.InitVars();
  712. }
  713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  715. public global::System.Data.DataColumn IDCityColumn {
  716. get {
  717. return this.columnIDCity;
  718. }
  719. }
  720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  722. public global::System.Data.DataColumn CityColumn {
  723. get {
  724. return this.columnCity;
  725. }
  726. }
  727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  729. [global::System.ComponentModel.Browsable(false)]
  730. public int Count {
  731. get {
  732. return this.Rows.Count;
  733. }
  734. }
  735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  737. public CityRow this[int index] {
  738. get {
  739. return ((CityRow)(this.Rows[index]));
  740. }
  741. }
  742. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  743. public event CityRowChangeEventHandler CityRowChanging;
  744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  745. public event CityRowChangeEventHandler CityRowChanged;
  746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  747. public event CityRowChangeEventHandler CityRowDeleting;
  748. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  749. public event CityRowChangeEventHandler CityRowDeleted;
  750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  752. public void AddCityRow(CityRow row) {
  753. this.Rows.Add(row);
  754. }
  755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  757. public CityRow AddCityRow(string City) {
  758. CityRow rowCityRow = ((CityRow)(this.NewRow()));
  759. object[] columnValuesArray = new object[] {
  760. null,
  761. City};
  762. rowCityRow.ItemArray = columnValuesArray;
  763. this.Rows.Add(rowCityRow);
  764. return rowCityRow;
  765. }
  766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  768. public CityRow FindByIDCity(int IDCity) {
  769. return ((CityRow)(this.Rows.Find(new object[] {
  770. IDCity})));
  771. }
  772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  774. public override global::System.Data.DataTable Clone() {
  775. CityDataTable cln = ((CityDataTable)(base.Clone()));
  776. cln.InitVars();
  777. return cln;
  778. }
  779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  781. protected override global::System.Data.DataTable CreateInstance() {
  782. return new CityDataTable();
  783. }
  784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  786. internal void InitVars() {
  787. this.columnIDCity = base.Columns["IDCity"];
  788. this.columnCity = base.Columns["City"];
  789. }
  790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  792. private void InitClass() {
  793. this.columnIDCity = new global::System.Data.DataColumn("IDCity", typeof(int), null, global::System.Data.MappingType.Element);
  794. base.Columns.Add(this.columnIDCity);
  795. this.columnCity = new global::System.Data.DataColumn("City", typeof(string), null, global::System.Data.MappingType.Element);
  796. base.Columns.Add(this.columnCity);
  797. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  798. this.columnIDCity}, true));
  799. this.columnIDCity.AutoIncrement = true;
  800. this.columnIDCity.AutoIncrementSeed = -1;
  801. this.columnIDCity.AutoIncrementStep = -1;
  802. this.columnIDCity.AllowDBNull = false;
  803. this.columnIDCity.ReadOnly = true;
  804. this.columnIDCity.Unique = true;
  805. this.columnCity.MaxLength = 50;
  806. }
  807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  809. public CityRow NewCityRow() {
  810. return ((CityRow)(this.NewRow()));
  811. }
  812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  814. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  815. return new CityRow(builder);
  816. }
  817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  818. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  819. protected override global::System.Type GetRowType() {
  820. return typeof(CityRow);
  821. }
  822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  824. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  825. base.OnRowChanged(e);
  826. if ((this.CityRowChanged != null)) {
  827. this.CityRowChanged(this, new CityRowChangeEvent(((CityRow)(e.Row)), e.Action));
  828. }
  829. }
  830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  831. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  832. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  833. base.OnRowChanging(e);
  834. if ((this.CityRowChanging != null)) {
  835. this.CityRowChanging(this, new CityRowChangeEvent(((CityRow)(e.Row)), e.Action));
  836. }
  837. }
  838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  840. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  841. base.OnRowDeleted(e);
  842. if ((this.CityRowDeleted != null)) {
  843. this.CityRowDeleted(this, new CityRowChangeEvent(((CityRow)(e.Row)), e.Action));
  844. }
  845. }
  846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  848. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  849. base.OnRowDeleting(e);
  850. if ((this.CityRowDeleting != null)) {
  851. this.CityRowDeleting(this, new CityRowChangeEvent(((CityRow)(e.Row)), e.Action));
  852. }
  853. }
  854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  856. public void RemoveCityRow(CityRow row) {
  857. this.Rows.Remove(row);
  858. }
  859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  861. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  862. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  863. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  864. AlfafloorGDVDataSet ds = new AlfafloorGDVDataSet();
  865. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  866. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  867. any1.MinOccurs = new decimal(0);
  868. any1.MaxOccurs = decimal.MaxValue;
  869. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  870. sequence.Items.Add(any1);
  871. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  872. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  873. any2.MinOccurs = new decimal(1);
  874. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  875. sequence.Items.Add(any2);
  876. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  877. attribute1.Name = "namespace";
  878. attribute1.FixedValue = ds.Namespace;
  879. type.Attributes.Add(attribute1);
  880. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  881. attribute2.Name = "tableTypeName";
  882. attribute2.FixedValue = "CityDataTable";
  883. type.Attributes.Add(attribute2);
  884. type.Particle = sequence;
  885. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  886. if (xs.Contains(dsSchema.TargetNamespace)) {
  887. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  888. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  889. try {
  890. global::System.Xml.Schema.XmlSchema schema = null;
  891. dsSchema.Write(s1);
  892. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  893. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  894. s2.SetLength(0);
  895. schema.Write(s2);
  896. if ((s1.Length == s2.Length)) {
  897. s1.Position = 0;
  898. s2.Position = 0;
  899. for (; ((s1.Position != s1.Length)
  900. && (s1.ReadByte() == s2.ReadByte())); ) {
  901. ;
  902. }
  903. if ((s1.Position == s1.Length)) {
  904. return type;
  905. }
  906. }
  907. }
  908. }
  909. finally {
  910. if ((s1 != null)) {
  911. s1.Close();
  912. }
  913. if ((s2 != null)) {
  914. s2.Close();
  915. }
  916. }
  917. }
  918. xs.Add(dsSchema);
  919. return type;
  920. }
  921. }
  922. /// <summary>
  923. ///Represents the strongly named DataTable class.
  924. ///</summary>
  925. [global::System.Serializable()]
  926. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  927. public partial class ManagerDataTable : global::System.Data.TypedTableBase<ManagerRow> {
  928. private global::System.Data.DataColumn columnIDManager;
  929. private global::System.Data.DataColumn columnSurname;
  930. private global::System.Data.DataColumn columnName;
  931. private global::System.Data.DataColumn columnPatronomyc;
  932. private global::System.Data.DataColumn columnLogin;
  933. private global::System.Data.DataColumn columnPassword;
  934. private global::System.Data.DataColumn columnPhoto;
  935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  936. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  937. public ManagerDataTable() {
  938. this.TableName = "Manager";
  939. this.BeginInit();
  940. this.InitClass();
  941. this.EndInit();
  942. }
  943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  945. internal ManagerDataTable(global::System.Data.DataTable table) {
  946. this.TableName = table.TableName;
  947. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  948. this.CaseSensitive = table.CaseSensitive;
  949. }
  950. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  951. this.Locale = table.Locale;
  952. }
  953. if ((table.Namespace != table.DataSet.Namespace)) {
  954. this.Namespace = table.Namespace;
  955. }
  956. this.Prefix = table.Prefix;
  957. this.MinimumCapacity = table.MinimumCapacity;
  958. }
  959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  961. protected ManagerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  962. base(info, context) {
  963. this.InitVars();
  964. }
  965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  967. public global::System.Data.DataColumn IDManagerColumn {
  968. get {
  969. return this.columnIDManager;
  970. }
  971. }
  972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  974. public global::System.Data.DataColumn SurnameColumn {
  975. get {
  976. return this.columnSurname;
  977. }
  978. }
  979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  981. public global::System.Data.DataColumn NameColumn {
  982. get {
  983. return this.columnName;
  984. }
  985. }
  986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  987. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  988. public global::System.Data.DataColumn PatronomycColumn {
  989. get {
  990. return this.columnPatronomyc;
  991. }
  992. }
  993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  995. public global::System.Data.DataColumn LoginColumn {
  996. get {
  997. return this.columnLogin;
  998. }
  999. }
  1000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1002. public global::System.Data.DataColumn PasswordColumn {
  1003. get {
  1004. return this.columnPassword;
  1005. }
  1006. }
  1007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1008. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1009. public global::System.Data.DataColumn PhotoColumn {
  1010. get {
  1011. return this.columnPhoto;
  1012. }
  1013. }
  1014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1016. [global::System.ComponentModel.Browsable(false)]
  1017. public int Count {
  1018. get {
  1019. return this.Rows.Count;
  1020. }
  1021. }
  1022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1024. public ManagerRow this[int index] {
  1025. get {
  1026. return ((ManagerRow)(this.Rows[index]));
  1027. }
  1028. }
  1029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1030. public event ManagerRowChangeEventHandler ManagerRowChanging;
  1031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1032. public event ManagerRowChangeEventHandler ManagerRowChanged;
  1033. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1034. public event ManagerRowChangeEventHandler ManagerRowDeleting;
  1035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1036. public event ManagerRowChangeEventHandler ManagerRowDeleted;
  1037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1039. public void AddManagerRow(ManagerRow row) {
  1040. this.Rows.Add(row);
  1041. }
  1042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1044. public ManagerRow AddManagerRow(string Surname, string Name, string Patronomyc, string Login, string Password, string Photo) {
  1045. ManagerRow rowManagerRow = ((ManagerRow)(this.NewRow()));
  1046. object[] columnValuesArray = new object[] {
  1047. null,
  1048. Surname,
  1049. Name,
  1050. Patronomyc,
  1051. Login,
  1052. Password,
  1053. Photo};
  1054. rowManagerRow.ItemArray = columnValuesArray;
  1055. this.Rows.Add(rowManagerRow);
  1056. return rowManagerRow;
  1057. }
  1058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1060. public ManagerRow FindByIDManager(int IDManager) {
  1061. return ((ManagerRow)(this.Rows.Find(new object[] {
  1062. IDManager})));
  1063. }
  1064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1066. public override global::System.Data.DataTable Clone() {
  1067. ManagerDataTable cln = ((ManagerDataTable)(base.Clone()));
  1068. cln.InitVars();
  1069. return cln;
  1070. }
  1071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1073. protected override global::System.Data.DataTable CreateInstance() {
  1074. return new ManagerDataTable();
  1075. }
  1076. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1077. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1078. internal void InitVars() {
  1079. this.columnIDManager = base.Columns["IDManager"];
  1080. this.columnSurname = base.Columns["Surname"];
  1081. this.columnName = base.Columns["Name"];
  1082. this.columnPatronomyc = base.Columns["Patronomyc"];
  1083. this.columnLogin = base.Columns["Login"];
  1084. this.columnPassword = base.Columns["Password"];
  1085. this.columnPhoto = base.Columns["Photo"];
  1086. }
  1087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1089. private void InitClass() {
  1090. this.columnIDManager = new global::System.Data.DataColumn("IDManager", typeof(int), null, global::System.Data.MappingType.Element);
  1091. base.Columns.Add(this.columnIDManager);
  1092. this.columnSurname = new global::System.Data.DataColumn("Surname", typeof(string), null, global::System.Data.MappingType.Element);
  1093. base.Columns.Add(this.columnSurname);
  1094. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  1095. base.Columns.Add(this.columnName);
  1096. this.columnPatronomyc = new global::System.Data.DataColumn("Patronomyc", typeof(string), null, global::System.Data.MappingType.Element);
  1097. base.Columns.Add(this.columnPatronomyc);
  1098. this.columnLogin = new global::System.Data.DataColumn("Login", typeof(string), null, global::System.Data.MappingType.Element);
  1099. base.Columns.Add(this.columnLogin);
  1100. this.columnPassword = new global::System.Data.DataColumn("Password", typeof(string), null, global::System.Data.MappingType.Element);
  1101. base.Columns.Add(this.columnPassword);
  1102. this.columnPhoto = new global::System.Data.DataColumn("Photo", typeof(string), null, global::System.Data.MappingType.Element);
  1103. base.Columns.Add(this.columnPhoto);
  1104. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1105. this.columnIDManager}, true));
  1106. this.columnIDManager.AutoIncrement = true;
  1107. this.columnIDManager.AutoIncrementSeed = -1;
  1108. this.columnIDManager.AutoIncrementStep = -1;
  1109. this.columnIDManager.AllowDBNull = false;
  1110. this.columnIDManager.ReadOnly = true;
  1111. this.columnIDManager.Unique = true;
  1112. this.columnSurname.MaxLength = 50;
  1113. this.columnName.MaxLength = 50;
  1114. this.columnPatronomyc.MaxLength = 50;
  1115. this.columnLogin.MaxLength = 50;
  1116. this.columnPassword.MaxLength = 50;
  1117. this.columnPhoto.MaxLength = 255;
  1118. }
  1119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1121. public ManagerRow NewManagerRow() {
  1122. return ((ManagerRow)(this.NewRow()));
  1123. }
  1124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1126. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1127. return new ManagerRow(builder);
  1128. }
  1129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1131. protected override global::System.Type GetRowType() {
  1132. return typeof(ManagerRow);
  1133. }
  1134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1136. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1137. base.OnRowChanged(e);
  1138. if ((this.ManagerRowChanged != null)) {
  1139. this.ManagerRowChanged(this, new ManagerRowChangeEvent(((ManagerRow)(e.Row)), e.Action));
  1140. }
  1141. }
  1142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1144. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1145. base.OnRowChanging(e);
  1146. if ((this.ManagerRowChanging != null)) {
  1147. this.ManagerRowChanging(this, new ManagerRowChangeEvent(((ManagerRow)(e.Row)), e.Action));
  1148. }
  1149. }
  1150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1152. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1153. base.OnRowDeleted(e);
  1154. if ((this.ManagerRowDeleted != null)) {
  1155. this.ManagerRowDeleted(this, new ManagerRowChangeEvent(((ManagerRow)(e.Row)), e.Action));
  1156. }
  1157. }
  1158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1160. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1161. base.OnRowDeleting(e);
  1162. if ((this.ManagerRowDeleting != null)) {
  1163. this.ManagerRowDeleting(this, new ManagerRowChangeEvent(((ManagerRow)(e.Row)), e.Action));
  1164. }
  1165. }
  1166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1168. public void RemoveManagerRow(ManagerRow row) {
  1169. this.Rows.Remove(row);
  1170. }
  1171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1173. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1174. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1175. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1176. AlfafloorGDVDataSet ds = new AlfafloorGDVDataSet();
  1177. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1178. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1179. any1.MinOccurs = new decimal(0);
  1180. any1.MaxOccurs = decimal.MaxValue;
  1181. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1182. sequence.Items.Add(any1);
  1183. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1184. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1185. any2.MinOccurs = new decimal(1);
  1186. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1187. sequence.Items.Add(any2);
  1188. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1189. attribute1.Name = "namespace";
  1190. attribute1.FixedValue = ds.Namespace;
  1191. type.Attributes.Add(attribute1);
  1192. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1193. attribute2.Name = "tableTypeName";
  1194. attribute2.FixedValue = "ManagerDataTable";
  1195. type.Attributes.Add(attribute2);
  1196. type.Particle = sequence;
  1197. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1198. if (xs.Contains(dsSchema.TargetNamespace)) {
  1199. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1200. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1201. try {
  1202. global::System.Xml.Schema.XmlSchema schema = null;
  1203. dsSchema.Write(s1);
  1204. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1205. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1206. s2.SetLength(0);
  1207. schema.Write(s2);
  1208. if ((s1.Length == s2.Length)) {
  1209. s1.Position = 0;
  1210. s2.Position = 0;
  1211. for (; ((s1.Position != s1.Length)
  1212. && (s1.ReadByte() == s2.ReadByte())); ) {
  1213. ;
  1214. }
  1215. if ((s1.Position == s1.Length)) {
  1216. return type;
  1217. }
  1218. }
  1219. }
  1220. }
  1221. finally {
  1222. if ((s1 != null)) {
  1223. s1.Close();
  1224. }
  1225. if ((s2 != null)) {
  1226. s2.Close();
  1227. }
  1228. }
  1229. }
  1230. xs.Add(dsSchema);
  1231. return type;
  1232. }
  1233. }
  1234. /// <summary>
  1235. ///Represents the strongly named DataTable class.
  1236. ///</summary>
  1237. [global::System.Serializable()]
  1238. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1239. public partial class PartnerDataTable : global::System.Data.TypedTableBase<PartnerRow> {
  1240. private global::System.Data.DataColumn columnIDPartner;
  1241. private global::System.Data.DataColumn columnIDTypePartner;
  1242. private global::System.Data.DataColumn columnNamepartner;
  1243. private global::System.Data.DataColumn columnSurname;
  1244. private global::System.Data.DataColumn columnName;
  1245. private global::System.Data.DataColumn columnPatronomyc;
  1246. private global::System.Data.DataColumn columnEmail;
  1247. private global::System.Data.DataColumn columnPhone;
  1248. private global::System.Data.DataColumn columnIDPostCode;
  1249. private global::System.Data.DataColumn columnIDRegion;
  1250. private global::System.Data.DataColumn columnIDCity;
  1251. private global::System.Data.DataColumn columnIDStreet;
  1252. private global::System.Data.DataColumn columnHouse;
  1253. private global::System.Data.DataColumn columnINN;
  1254. private global::System.Data.DataColumn columnRating;
  1255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1257. public PartnerDataTable() {
  1258. this.TableName = "Partner";
  1259. this.BeginInit();
  1260. this.InitClass();
  1261. this.EndInit();
  1262. }
  1263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1265. internal PartnerDataTable(global::System.Data.DataTable table) {
  1266. this.TableName = table.TableName;
  1267. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1268. this.CaseSensitive = table.CaseSensitive;
  1269. }
  1270. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1271. this.Locale = table.Locale;
  1272. }
  1273. if ((table.Namespace != table.DataSet.Namespace)) {
  1274. this.Namespace = table.Namespace;
  1275. }
  1276. this.Prefix = table.Prefix;
  1277. this.MinimumCapacity = table.MinimumCapacity;
  1278. }
  1279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1281. protected PartnerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1282. base(info, context) {
  1283. this.InitVars();
  1284. }
  1285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1287. public global::System.Data.DataColumn IDPartnerColumn {
  1288. get {
  1289. return this.columnIDPartner;
  1290. }
  1291. }
  1292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1294. public global::System.Data.DataColumn IDTypePartnerColumn {
  1295. get {
  1296. return this.columnIDTypePartner;
  1297. }
  1298. }
  1299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1301. public global::System.Data.DataColumn NamepartnerColumn {
  1302. get {
  1303. return this.columnNamepartner;
  1304. }
  1305. }
  1306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1308. public global::System.Data.DataColumn SurnameColumn {
  1309. get {
  1310. return this.columnSurname;
  1311. }
  1312. }
  1313. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1314. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1315. public global::System.Data.DataColumn NameColumn {
  1316. get {
  1317. return this.columnName;
  1318. }
  1319. }
  1320. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1321. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1322. public global::System.Data.DataColumn PatronomycColumn {
  1323. get {
  1324. return this.columnPatronomyc;
  1325. }
  1326. }
  1327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1328. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1329. public global::System.Data.DataColumn EmailColumn {
  1330. get {
  1331. return this.columnEmail;
  1332. }
  1333. }
  1334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1336. public global::System.Data.DataColumn PhoneColumn {
  1337. get {
  1338. return this.columnPhone;
  1339. }
  1340. }
  1341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1343. public global::System.Data.DataColumn IDPostCodeColumn {
  1344. get {
  1345. return this.columnIDPostCode;
  1346. }
  1347. }
  1348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1349. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1350. public global::System.Data.DataColumn IDRegionColumn {
  1351. get {
  1352. return this.columnIDRegion;
  1353. }
  1354. }
  1355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1357. public global::System.Data.DataColumn IDCityColumn {
  1358. get {
  1359. return this.columnIDCity;
  1360. }
  1361. }
  1362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1364. public global::System.Data.DataColumn IDStreetColumn {
  1365. get {
  1366. return this.columnIDStreet;
  1367. }
  1368. }
  1369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1371. public global::System.Data.DataColumn HouseColumn {
  1372. get {
  1373. return this.columnHouse;
  1374. }
  1375. }
  1376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1378. public global::System.Data.DataColumn INNColumn {
  1379. get {
  1380. return this.columnINN;
  1381. }
  1382. }
  1383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1385. public global::System.Data.DataColumn RatingColumn {
  1386. get {
  1387. return this.columnRating;
  1388. }
  1389. }
  1390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1392. [global::System.ComponentModel.Browsable(false)]
  1393. public int Count {
  1394. get {
  1395. return this.Rows.Count;
  1396. }
  1397. }
  1398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1400. public PartnerRow this[int index] {
  1401. get {
  1402. return ((PartnerRow)(this.Rows[index]));
  1403. }
  1404. }
  1405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1406. public event PartnerRowChangeEventHandler PartnerRowChanging;
  1407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1408. public event PartnerRowChangeEventHandler PartnerRowChanged;
  1409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1410. public event PartnerRowChangeEventHandler PartnerRowDeleting;
  1411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1412. public event PartnerRowChangeEventHandler PartnerRowDeleted;
  1413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1415. public void AddPartnerRow(PartnerRow row) {
  1416. this.Rows.Add(row);
  1417. }
  1418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1420. 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) {
  1421. PartnerRow rowPartnerRow = ((PartnerRow)(this.NewRow()));
  1422. object[] columnValuesArray = new object[] {
  1423. null,
  1424. null,
  1425. Namepartner,
  1426. Surname,
  1427. Name,
  1428. Patronomyc,
  1429. Email,
  1430. Phone,
  1431. null,
  1432. null,
  1433. null,
  1434. null,
  1435. House,
  1436. INN,
  1437. Rating};
  1438. if ((parentTypePartnerRowByFK_Partner_TypePartner != null)) {
  1439. columnValuesArray[1] = parentTypePartnerRowByFK_Partner_TypePartner[0];
  1440. }
  1441. if ((parentPostCodeRowByFK_Partner_PostCode != null)) {
  1442. columnValuesArray[8] = parentPostCodeRowByFK_Partner_PostCode[0];
  1443. }
  1444. if ((parentRegionRowByFK_Partner_Region != null)) {
  1445. columnValuesArray[9] = parentRegionRowByFK_Partner_Region[0];
  1446. }
  1447. if ((parentCityRowByFK_Partner_City != null)) {
  1448. columnValuesArray[10] = parentCityRowByFK_Partner_City[0];
  1449. }
  1450. if ((parentStreetRowByFK_Partner_Street != null)) {
  1451. columnValuesArray[11] = parentStreetRowByFK_Partner_Street[0];
  1452. }
  1453. rowPartnerRow.ItemArray = columnValuesArray;
  1454. this.Rows.Add(rowPartnerRow);
  1455. return rowPartnerRow;
  1456. }
  1457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1458. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1459. public PartnerRow FindByIDPartner(int IDPartner) {
  1460. return ((PartnerRow)(this.Rows.Find(new object[] {
  1461. IDPartner})));
  1462. }
  1463. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1464. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1465. public override global::System.Data.DataTable Clone() {
  1466. PartnerDataTable cln = ((PartnerDataTable)(base.Clone()));
  1467. cln.InitVars();
  1468. return cln;
  1469. }
  1470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1471. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1472. protected override global::System.Data.DataTable CreateInstance() {
  1473. return new PartnerDataTable();
  1474. }
  1475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1477. internal void InitVars() {
  1478. this.columnIDPartner = base.Columns["IDPartner"];
  1479. this.columnIDTypePartner = base.Columns["IDTypePartner"];
  1480. this.columnNamepartner = base.Columns["Namepartner"];
  1481. this.columnSurname = base.Columns["Surname"];
  1482. this.columnName = base.Columns["Name"];
  1483. this.columnPatronomyc = base.Columns["Patronomyc"];
  1484. this.columnEmail = base.Columns["Email"];
  1485. this.columnPhone = base.Columns["Phone"];
  1486. this.columnIDPostCode = base.Columns["IDPostCode"];
  1487. this.columnIDRegion = base.Columns["IDRegion"];
  1488. this.columnIDCity = base.Columns["IDCity"];
  1489. this.columnIDStreet = base.Columns["IDStreet"];
  1490. this.columnHouse = base.Columns["House"];
  1491. this.columnINN = base.Columns["INN"];
  1492. this.columnRating = base.Columns["Rating"];
  1493. }
  1494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1496. private void InitClass() {
  1497. this.columnIDPartner = new global::System.Data.DataColumn("IDPartner", typeof(int), null, global::System.Data.MappingType.Element);
  1498. base.Columns.Add(this.columnIDPartner);
  1499. this.columnIDTypePartner = new global::System.Data.DataColumn("IDTypePartner", typeof(int), null, global::System.Data.MappingType.Element);
  1500. base.Columns.Add(this.columnIDTypePartner);
  1501. this.columnNamepartner = new global::System.Data.DataColumn("Namepartner", typeof(string), null, global::System.Data.MappingType.Element);
  1502. base.Columns.Add(this.columnNamepartner);
  1503. this.columnSurname = new global::System.Data.DataColumn("Surname", typeof(string), null, global::System.Data.MappingType.Element);
  1504. base.Columns.Add(this.columnSurname);
  1505. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  1506. base.Columns.Add(this.columnName);
  1507. this.columnPatronomyc = new global::System.Data.DataColumn("Patronomyc", typeof(string), null, global::System.Data.MappingType.Element);
  1508. base.Columns.Add(this.columnPatronomyc);
  1509. this.columnEmail = new global::System.Data.DataColumn("Email", typeof(string), null, global::System.Data.MappingType.Element);
  1510. base.Columns.Add(this.columnEmail);
  1511. this.columnPhone = new global::System.Data.DataColumn("Phone", typeof(string), null, global::System.Data.MappingType.Element);
  1512. base.Columns.Add(this.columnPhone);
  1513. this.columnIDPostCode = new global::System.Data.DataColumn("IDPostCode", typeof(int), null, global::System.Data.MappingType.Element);
  1514. base.Columns.Add(this.columnIDPostCode);
  1515. this.columnIDRegion = new global::System.Data.DataColumn("IDRegion", typeof(int), null, global::System.Data.MappingType.Element);
  1516. base.Columns.Add(this.columnIDRegion);
  1517. this.columnIDCity = new global::System.Data.DataColumn("IDCity", typeof(int), null, global::System.Data.MappingType.Element);
  1518. base.Columns.Add(this.columnIDCity);
  1519. this.columnIDStreet = new global::System.Data.DataColumn("IDStreet", typeof(int), null, global::System.Data.MappingType.Element);
  1520. base.Columns.Add(this.columnIDStreet);
  1521. this.columnHouse = new global::System.Data.DataColumn("House", typeof(int), null, global::System.Data.MappingType.Element);
  1522. base.Columns.Add(this.columnHouse);
  1523. this.columnINN = new global::System.Data.DataColumn("INN", typeof(string), null, global::System.Data.MappingType.Element);
  1524. base.Columns.Add(this.columnINN);
  1525. this.columnRating = new global::System.Data.DataColumn("Rating", typeof(int), null, global::System.Data.MappingType.Element);
  1526. base.Columns.Add(this.columnRating);
  1527. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1528. this.columnIDPartner}, true));
  1529. this.columnIDPartner.AutoIncrement = true;
  1530. this.columnIDPartner.AutoIncrementSeed = -1;
  1531. this.columnIDPartner.AutoIncrementStep = -1;
  1532. this.columnIDPartner.AllowDBNull = false;
  1533. this.columnIDPartner.ReadOnly = true;
  1534. this.columnIDPartner.Unique = true;
  1535. this.columnIDTypePartner.AllowDBNull = false;
  1536. this.columnNamepartner.MaxLength = 150;
  1537. this.columnSurname.MaxLength = 50;
  1538. this.columnName.MaxLength = 50;
  1539. this.columnPatronomyc.MaxLength = 50;
  1540. this.columnEmail.MaxLength = 50;
  1541. this.columnPhone.MaxLength = 50;
  1542. this.columnINN.MaxLength = 50;
  1543. }
  1544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1545. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1546. public PartnerRow NewPartnerRow() {
  1547. return ((PartnerRow)(this.NewRow()));
  1548. }
  1549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1551. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1552. return new PartnerRow(builder);
  1553. }
  1554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1556. protected override global::System.Type GetRowType() {
  1557. return typeof(PartnerRow);
  1558. }
  1559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1561. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1562. base.OnRowChanged(e);
  1563. if ((this.PartnerRowChanged != null)) {
  1564. this.PartnerRowChanged(this, new PartnerRowChangeEvent(((PartnerRow)(e.Row)), e.Action));
  1565. }
  1566. }
  1567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1569. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1570. base.OnRowChanging(e);
  1571. if ((this.PartnerRowChanging != null)) {
  1572. this.PartnerRowChanging(this, new PartnerRowChangeEvent(((PartnerRow)(e.Row)), e.Action));
  1573. }
  1574. }
  1575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1577. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1578. base.OnRowDeleted(e);
  1579. if ((this.PartnerRowDeleted != null)) {
  1580. this.PartnerRowDeleted(this, new PartnerRowChangeEvent(((PartnerRow)(e.Row)), e.Action));
  1581. }
  1582. }
  1583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1585. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1586. base.OnRowDeleting(e);
  1587. if ((this.PartnerRowDeleting != null)) {
  1588. this.PartnerRowDeleting(this, new PartnerRowChangeEvent(((PartnerRow)(e.Row)), e.Action));
  1589. }
  1590. }
  1591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1593. public void RemovePartnerRow(PartnerRow row) {
  1594. this.Rows.Remove(row);
  1595. }
  1596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1598. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1599. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1600. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1601. AlfafloorGDVDataSet ds = new AlfafloorGDVDataSet();
  1602. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1603. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1604. any1.MinOccurs = new decimal(0);
  1605. any1.MaxOccurs = decimal.MaxValue;
  1606. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1607. sequence.Items.Add(any1);
  1608. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1609. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1610. any2.MinOccurs = new decimal(1);
  1611. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1612. sequence.Items.Add(any2);
  1613. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1614. attribute1.Name = "namespace";
  1615. attribute1.FixedValue = ds.Namespace;
  1616. type.Attributes.Add(attribute1);
  1617. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1618. attribute2.Name = "tableTypeName";
  1619. attribute2.FixedValue = "PartnerDataTable";
  1620. type.Attributes.Add(attribute2);
  1621. type.Particle = sequence;
  1622. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1623. if (xs.Contains(dsSchema.TargetNamespace)) {
  1624. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1625. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1626. try {
  1627. global::System.Xml.Schema.XmlSchema schema = null;
  1628. dsSchema.Write(s1);
  1629. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1630. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1631. s2.SetLength(0);
  1632. schema.Write(s2);
  1633. if ((s1.Length == s2.Length)) {
  1634. s1.Position = 0;
  1635. s2.Position = 0;
  1636. for (; ((s1.Position != s1.Length)
  1637. && (s1.ReadByte() == s2.ReadByte())); ) {
  1638. ;
  1639. }
  1640. if ((s1.Position == s1.Length)) {
  1641. return type;
  1642. }
  1643. }
  1644. }
  1645. }
  1646. finally {
  1647. if ((s1 != null)) {
  1648. s1.Close();
  1649. }
  1650. if ((s2 != null)) {
  1651. s2.Close();
  1652. }
  1653. }
  1654. }
  1655. xs.Add(dsSchema);
  1656. return type;
  1657. }
  1658. }
  1659. /// <summary>
  1660. ///Represents the strongly named DataTable class.
  1661. ///</summary>
  1662. [global::System.Serializable()]
  1663. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1664. public partial class PartnerProductsDataTable : global::System.Data.TypedTableBase<PartnerProductsRow> {
  1665. private global::System.Data.DataColumn columnIDPartnerProduct;
  1666. private global::System.Data.DataColumn columnIDProduct;
  1667. private global::System.Data.DataColumn columnIDPartner;
  1668. private global::System.Data.DataColumn columnCountProduct;
  1669. private global::System.Data.DataColumn columnDateSale;
  1670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1672. public PartnerProductsDataTable() {
  1673. this.TableName = "PartnerProducts";
  1674. this.BeginInit();
  1675. this.InitClass();
  1676. this.EndInit();
  1677. }
  1678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1680. internal PartnerProductsDataTable(global::System.Data.DataTable table) {
  1681. this.TableName = table.TableName;
  1682. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1683. this.CaseSensitive = table.CaseSensitive;
  1684. }
  1685. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1686. this.Locale = table.Locale;
  1687. }
  1688. if ((table.Namespace != table.DataSet.Namespace)) {
  1689. this.Namespace = table.Namespace;
  1690. }
  1691. this.Prefix = table.Prefix;
  1692. this.MinimumCapacity = table.MinimumCapacity;
  1693. }
  1694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1696. protected PartnerProductsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1697. base(info, context) {
  1698. this.InitVars();
  1699. }
  1700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1702. public global::System.Data.DataColumn IDPartnerProductColumn {
  1703. get {
  1704. return this.columnIDPartnerProduct;
  1705. }
  1706. }
  1707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1709. public global::System.Data.DataColumn IDProductColumn {
  1710. get {
  1711. return this.columnIDProduct;
  1712. }
  1713. }
  1714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1716. public global::System.Data.DataColumn IDPartnerColumn {
  1717. get {
  1718. return this.columnIDPartner;
  1719. }
  1720. }
  1721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1723. public global::System.Data.DataColumn CountProductColumn {
  1724. get {
  1725. return this.columnCountProduct;
  1726. }
  1727. }
  1728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1730. public global::System.Data.DataColumn DateSaleColumn {
  1731. get {
  1732. return this.columnDateSale;
  1733. }
  1734. }
  1735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1737. [global::System.ComponentModel.Browsable(false)]
  1738. public int Count {
  1739. get {
  1740. return this.Rows.Count;
  1741. }
  1742. }
  1743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1745. public PartnerProductsRow this[int index] {
  1746. get {
  1747. return ((PartnerProductsRow)(this.Rows[index]));
  1748. }
  1749. }
  1750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1751. public event PartnerProductsRowChangeEventHandler PartnerProductsRowChanging;
  1752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1753. public event PartnerProductsRowChangeEventHandler PartnerProductsRowChanged;
  1754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1755. public event PartnerProductsRowChangeEventHandler PartnerProductsRowDeleting;
  1756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1757. public event PartnerProductsRowChangeEventHandler PartnerProductsRowDeleted;
  1758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1760. public void AddPartnerProductsRow(PartnerProductsRow row) {
  1761. this.Rows.Add(row);
  1762. }
  1763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1765. public PartnerProductsRow AddPartnerProductsRow(ProductRow parentProductRowByFK_PartnerProducts_Product, PartnerRow parentPartnerRowByFK_PartnerProducts_Partner, int CountProduct, System.DateTime DateSale) {
  1766. PartnerProductsRow rowPartnerProductsRow = ((PartnerProductsRow)(this.NewRow()));
  1767. object[] columnValuesArray = new object[] {
  1768. null,
  1769. null,
  1770. null,
  1771. CountProduct,
  1772. DateSale};
  1773. if ((parentProductRowByFK_PartnerProducts_Product != null)) {
  1774. columnValuesArray[1] = parentProductRowByFK_PartnerProducts_Product[0];
  1775. }
  1776. if ((parentPartnerRowByFK_PartnerProducts_Partner != null)) {
  1777. columnValuesArray[2] = parentPartnerRowByFK_PartnerProducts_Partner[0];
  1778. }
  1779. rowPartnerProductsRow.ItemArray = columnValuesArray;
  1780. this.Rows.Add(rowPartnerProductsRow);
  1781. return rowPartnerProductsRow;
  1782. }
  1783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1785. public PartnerProductsRow FindByIDPartnerProduct(int IDPartnerProduct) {
  1786. return ((PartnerProductsRow)(this.Rows.Find(new object[] {
  1787. IDPartnerProduct})));
  1788. }
  1789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1791. public override global::System.Data.DataTable Clone() {
  1792. PartnerProductsDataTable cln = ((PartnerProductsDataTable)(base.Clone()));
  1793. cln.InitVars();
  1794. return cln;
  1795. }
  1796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1798. protected override global::System.Data.DataTable CreateInstance() {
  1799. return new PartnerProductsDataTable();
  1800. }
  1801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1803. internal void InitVars() {
  1804. this.columnIDPartnerProduct = base.Columns["IDPartnerProduct"];
  1805. this.columnIDProduct = base.Columns["IDProduct"];
  1806. this.columnIDPartner = base.Columns["IDPartner"];
  1807. this.columnCountProduct = base.Columns["CountProduct"];
  1808. this.columnDateSale = base.Columns["DateSale"];
  1809. }
  1810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1812. private void InitClass() {
  1813. this.columnIDPartnerProduct = new global::System.Data.DataColumn("IDPartnerProduct", typeof(int), null, global::System.Data.MappingType.Element);
  1814. base.Columns.Add(this.columnIDPartnerProduct);
  1815. this.columnIDProduct = new global::System.Data.DataColumn("IDProduct", typeof(int), null, global::System.Data.MappingType.Element);
  1816. base.Columns.Add(this.columnIDProduct);
  1817. this.columnIDPartner = new global::System.Data.DataColumn("IDPartner", typeof(int), null, global::System.Data.MappingType.Element);
  1818. base.Columns.Add(this.columnIDPartner);
  1819. this.columnCountProduct = new global::System.Data.DataColumn("CountProduct", typeof(int), null, global::System.Data.MappingType.Element);
  1820. base.Columns.Add(this.columnCountProduct);
  1821. this.columnDateSale = new global::System.Data.DataColumn("DateSale", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1822. base.Columns.Add(this.columnDateSale);
  1823. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1824. this.columnIDPartnerProduct}, true));
  1825. this.columnIDPartnerProduct.AutoIncrement = true;
  1826. this.columnIDPartnerProduct.AutoIncrementSeed = -1;
  1827. this.columnIDPartnerProduct.AutoIncrementStep = -1;
  1828. this.columnIDPartnerProduct.AllowDBNull = false;
  1829. this.columnIDPartnerProduct.ReadOnly = true;
  1830. this.columnIDPartnerProduct.Unique = true;
  1831. }
  1832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1834. public PartnerProductsRow NewPartnerProductsRow() {
  1835. return ((PartnerProductsRow)(this.NewRow()));
  1836. }
  1837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1839. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1840. return new PartnerProductsRow(builder);
  1841. }
  1842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1844. protected override global::System.Type GetRowType() {
  1845. return typeof(PartnerProductsRow);
  1846. }
  1847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1849. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1850. base.OnRowChanged(e);
  1851. if ((this.PartnerProductsRowChanged != null)) {
  1852. this.PartnerProductsRowChanged(this, new PartnerProductsRowChangeEvent(((PartnerProductsRow)(e.Row)), e.Action));
  1853. }
  1854. }
  1855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1857. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1858. base.OnRowChanging(e);
  1859. if ((this.PartnerProductsRowChanging != null)) {
  1860. this.PartnerProductsRowChanging(this, new PartnerProductsRowChangeEvent(((PartnerProductsRow)(e.Row)), e.Action));
  1861. }
  1862. }
  1863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1865. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1866. base.OnRowDeleted(e);
  1867. if ((this.PartnerProductsRowDeleted != null)) {
  1868. this.PartnerProductsRowDeleted(this, new PartnerProductsRowChangeEvent(((PartnerProductsRow)(e.Row)), e.Action));
  1869. }
  1870. }
  1871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1872. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1873. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1874. base.OnRowDeleting(e);
  1875. if ((this.PartnerProductsRowDeleting != null)) {
  1876. this.PartnerProductsRowDeleting(this, new PartnerProductsRowChangeEvent(((PartnerProductsRow)(e.Row)), e.Action));
  1877. }
  1878. }
  1879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1881. public void RemovePartnerProductsRow(PartnerProductsRow row) {
  1882. this.Rows.Remove(row);
  1883. }
  1884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1886. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1887. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1888. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1889. AlfafloorGDVDataSet ds = new AlfafloorGDVDataSet();
  1890. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1891. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1892. any1.MinOccurs = new decimal(0);
  1893. any1.MaxOccurs = decimal.MaxValue;
  1894. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1895. sequence.Items.Add(any1);
  1896. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1897. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1898. any2.MinOccurs = new decimal(1);
  1899. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1900. sequence.Items.Add(any2);
  1901. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1902. attribute1.Name = "namespace";
  1903. attribute1.FixedValue = ds.Namespace;
  1904. type.Attributes.Add(attribute1);
  1905. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1906. attribute2.Name = "tableTypeName";
  1907. attribute2.FixedValue = "PartnerProductsDataTable";
  1908. type.Attributes.Add(attribute2);
  1909. type.Particle = sequence;
  1910. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1911. if (xs.Contains(dsSchema.TargetNamespace)) {
  1912. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1913. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1914. try {
  1915. global::System.Xml.Schema.XmlSchema schema = null;
  1916. dsSchema.Write(s1);
  1917. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1918. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1919. s2.SetLength(0);
  1920. schema.Write(s2);
  1921. if ((s1.Length == s2.Length)) {
  1922. s1.Position = 0;
  1923. s2.Position = 0;
  1924. for (; ((s1.Position != s1.Length)
  1925. && (s1.ReadByte() == s2.ReadByte())); ) {
  1926. ;
  1927. }
  1928. if ((s1.Position == s1.Length)) {
  1929. return type;
  1930. }
  1931. }
  1932. }
  1933. }
  1934. finally {
  1935. if ((s1 != null)) {
  1936. s1.Close();
  1937. }
  1938. if ((s2 != null)) {
  1939. s2.Close();
  1940. }
  1941. }
  1942. }
  1943. xs.Add(dsSchema);
  1944. return type;
  1945. }
  1946. }
  1947. /// <summary>
  1948. ///Represents the strongly named DataTable class.
  1949. ///</summary>
  1950. [global::System.Serializable()]
  1951. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1952. public partial class PostCodeDataTable : global::System.Data.TypedTableBase<PostCodeRow> {
  1953. private global::System.Data.DataColumn columnIDPostCode;
  1954. private global::System.Data.DataColumn columnPostCode;
  1955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1956. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1957. public PostCodeDataTable() {
  1958. this.TableName = "PostCode";
  1959. this.BeginInit();
  1960. this.InitClass();
  1961. this.EndInit();
  1962. }
  1963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1965. internal PostCodeDataTable(global::System.Data.DataTable table) {
  1966. this.TableName = table.TableName;
  1967. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1968. this.CaseSensitive = table.CaseSensitive;
  1969. }
  1970. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1971. this.Locale = table.Locale;
  1972. }
  1973. if ((table.Namespace != table.DataSet.Namespace)) {
  1974. this.Namespace = table.Namespace;
  1975. }
  1976. this.Prefix = table.Prefix;
  1977. this.MinimumCapacity = table.MinimumCapacity;
  1978. }
  1979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1981. protected PostCodeDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1982. base(info, context) {
  1983. this.InitVars();
  1984. }
  1985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1987. public global::System.Data.DataColumn IDPostCodeColumn {
  1988. get {
  1989. return this.columnIDPostCode;
  1990. }
  1991. }
  1992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1994. public global::System.Data.DataColumn PostCodeColumn {
  1995. get {
  1996. return this.columnPostCode;
  1997. }
  1998. }
  1999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2001. [global::System.ComponentModel.Browsable(false)]
  2002. public int Count {
  2003. get {
  2004. return this.Rows.Count;
  2005. }
  2006. }
  2007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2008. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2009. public PostCodeRow this[int index] {
  2010. get {
  2011. return ((PostCodeRow)(this.Rows[index]));
  2012. }
  2013. }
  2014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2015. public event PostCodeRowChangeEventHandler PostCodeRowChanging;
  2016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2017. public event PostCodeRowChangeEventHandler PostCodeRowChanged;
  2018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2019. public event PostCodeRowChangeEventHandler PostCodeRowDeleting;
  2020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2021. public event PostCodeRowChangeEventHandler PostCodeRowDeleted;
  2022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2024. public void AddPostCodeRow(PostCodeRow row) {
  2025. this.Rows.Add(row);
  2026. }
  2027. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2028. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2029. public PostCodeRow AddPostCodeRow(int PostCode) {
  2030. PostCodeRow rowPostCodeRow = ((PostCodeRow)(this.NewRow()));
  2031. object[] columnValuesArray = new object[] {
  2032. null,
  2033. PostCode};
  2034. rowPostCodeRow.ItemArray = columnValuesArray;
  2035. this.Rows.Add(rowPostCodeRow);
  2036. return rowPostCodeRow;
  2037. }
  2038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2039. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2040. public PostCodeRow FindByIDPostCode(int IDPostCode) {
  2041. return ((PostCodeRow)(this.Rows.Find(new object[] {
  2042. IDPostCode})));
  2043. }
  2044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2046. public override global::System.Data.DataTable Clone() {
  2047. PostCodeDataTable cln = ((PostCodeDataTable)(base.Clone()));
  2048. cln.InitVars();
  2049. return cln;
  2050. }
  2051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2053. protected override global::System.Data.DataTable CreateInstance() {
  2054. return new PostCodeDataTable();
  2055. }
  2056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2057. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2058. internal void InitVars() {
  2059. this.columnIDPostCode = base.Columns["IDPostCode"];
  2060. this.columnPostCode = base.Columns["PostCode"];
  2061. }
  2062. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2063. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2064. private void InitClass() {
  2065. this.columnIDPostCode = new global::System.Data.DataColumn("IDPostCode", typeof(int), null, global::System.Data.MappingType.Element);
  2066. base.Columns.Add(this.columnIDPostCode);
  2067. this.columnPostCode = new global::System.Data.DataColumn("PostCode", typeof(int), null, global::System.Data.MappingType.Element);
  2068. base.Columns.Add(this.columnPostCode);
  2069. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2070. this.columnIDPostCode}, true));
  2071. this.columnIDPostCode.AutoIncrement = true;
  2072. this.columnIDPostCode.AutoIncrementSeed = -1;
  2073. this.columnIDPostCode.AutoIncrementStep = -1;
  2074. this.columnIDPostCode.AllowDBNull = false;
  2075. this.columnIDPostCode.ReadOnly = true;
  2076. this.columnIDPostCode.Unique = true;
  2077. }
  2078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2080. public PostCodeRow NewPostCodeRow() {
  2081. return ((PostCodeRow)(this.NewRow()));
  2082. }
  2083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2085. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2086. return new PostCodeRow(builder);
  2087. }
  2088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2090. protected override global::System.Type GetRowType() {
  2091. return typeof(PostCodeRow);
  2092. }
  2093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2095. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2096. base.OnRowChanged(e);
  2097. if ((this.PostCodeRowChanged != null)) {
  2098. this.PostCodeRowChanged(this, new PostCodeRowChangeEvent(((PostCodeRow)(e.Row)), e.Action));
  2099. }
  2100. }
  2101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2103. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2104. base.OnRowChanging(e);
  2105. if ((this.PostCodeRowChanging != null)) {
  2106. this.PostCodeRowChanging(this, new PostCodeRowChangeEvent(((PostCodeRow)(e.Row)), e.Action));
  2107. }
  2108. }
  2109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2110. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2111. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2112. base.OnRowDeleted(e);
  2113. if ((this.PostCodeRowDeleted != null)) {
  2114. this.PostCodeRowDeleted(this, new PostCodeRowChangeEvent(((PostCodeRow)(e.Row)), e.Action));
  2115. }
  2116. }
  2117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2119. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2120. base.OnRowDeleting(e);
  2121. if ((this.PostCodeRowDeleting != null)) {
  2122. this.PostCodeRowDeleting(this, new PostCodeRowChangeEvent(((PostCodeRow)(e.Row)), e.Action));
  2123. }
  2124. }
  2125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2126. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2127. public void RemovePostCodeRow(PostCodeRow row) {
  2128. this.Rows.Remove(row);
  2129. }
  2130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2132. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2133. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2134. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2135. AlfafloorGDVDataSet ds = new AlfafloorGDVDataSet();
  2136. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2137. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2138. any1.MinOccurs = new decimal(0);
  2139. any1.MaxOccurs = decimal.MaxValue;
  2140. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2141. sequence.Items.Add(any1);
  2142. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2143. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2144. any2.MinOccurs = new decimal(1);
  2145. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2146. sequence.Items.Add(any2);
  2147. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2148. attribute1.Name = "namespace";
  2149. attribute1.FixedValue = ds.Namespace;
  2150. type.Attributes.Add(attribute1);
  2151. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2152. attribute2.Name = "tableTypeName";
  2153. attribute2.FixedValue = "PostCodeDataTable";
  2154. type.Attributes.Add(attribute2);
  2155. type.Particle = sequence;
  2156. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2157. if (xs.Contains(dsSchema.TargetNamespace)) {
  2158. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2159. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2160. try {
  2161. global::System.Xml.Schema.XmlSchema schema = null;
  2162. dsSchema.Write(s1);
  2163. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2164. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2165. s2.SetLength(0);
  2166. schema.Write(s2);
  2167. if ((s1.Length == s2.Length)) {
  2168. s1.Position = 0;
  2169. s2.Position = 0;
  2170. for (; ((s1.Position != s1.Length)
  2171. && (s1.ReadByte() == s2.ReadByte())); ) {
  2172. ;
  2173. }
  2174. if ((s1.Position == s1.Length)) {
  2175. return type;
  2176. }
  2177. }
  2178. }
  2179. }
  2180. finally {
  2181. if ((s1 != null)) {
  2182. s1.Close();
  2183. }
  2184. if ((s2 != null)) {
  2185. s2.Close();
  2186. }
  2187. }
  2188. }
  2189. xs.Add(dsSchema);
  2190. return type;
  2191. }
  2192. }
  2193. /// <summary>
  2194. ///Represents the strongly named DataTable class.
  2195. ///</summary>
  2196. [global::System.Serializable()]
  2197. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2198. public partial class ProductDataTable : global::System.Data.TypedTableBase<ProductRow> {
  2199. private global::System.Data.DataColumn columnIDProduct;
  2200. private global::System.Data.DataColumn columnIDProductType;
  2201. private global::System.Data.DataColumn columnProductName;
  2202. private global::System.Data.DataColumn columnArticle;
  2203. private global::System.Data.DataColumn columnCost;
  2204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2206. public ProductDataTable() {
  2207. this.TableName = "Product";
  2208. this.BeginInit();
  2209. this.InitClass();
  2210. this.EndInit();
  2211. }
  2212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2213. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2214. internal ProductDataTable(global::System.Data.DataTable table) {
  2215. this.TableName = table.TableName;
  2216. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2217. this.CaseSensitive = table.CaseSensitive;
  2218. }
  2219. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2220. this.Locale = table.Locale;
  2221. }
  2222. if ((table.Namespace != table.DataSet.Namespace)) {
  2223. this.Namespace = table.Namespace;
  2224. }
  2225. this.Prefix = table.Prefix;
  2226. this.MinimumCapacity = table.MinimumCapacity;
  2227. }
  2228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2230. protected ProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2231. base(info, context) {
  2232. this.InitVars();
  2233. }
  2234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2236. public global::System.Data.DataColumn IDProductColumn {
  2237. get {
  2238. return this.columnIDProduct;
  2239. }
  2240. }
  2241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2243. public global::System.Data.DataColumn IDProductTypeColumn {
  2244. get {
  2245. return this.columnIDProductType;
  2246. }
  2247. }
  2248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2250. public global::System.Data.DataColumn ProductNameColumn {
  2251. get {
  2252. return this.columnProductName;
  2253. }
  2254. }
  2255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2257. public global::System.Data.DataColumn ArticleColumn {
  2258. get {
  2259. return this.columnArticle;
  2260. }
  2261. }
  2262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2264. public global::System.Data.DataColumn CostColumn {
  2265. get {
  2266. return this.columnCost;
  2267. }
  2268. }
  2269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2270. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2271. [global::System.ComponentModel.Browsable(false)]
  2272. public int Count {
  2273. get {
  2274. return this.Rows.Count;
  2275. }
  2276. }
  2277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2279. public ProductRow this[int index] {
  2280. get {
  2281. return ((ProductRow)(this.Rows[index]));
  2282. }
  2283. }
  2284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2285. public event ProductRowChangeEventHandler ProductRowChanging;
  2286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2287. public event ProductRowChangeEventHandler ProductRowChanged;
  2288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2289. public event ProductRowChangeEventHandler ProductRowDeleting;
  2290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2291. public event ProductRowChangeEventHandler ProductRowDeleted;
  2292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2294. public void AddProductRow(ProductRow row) {
  2295. this.Rows.Add(row);
  2296. }
  2297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2299. public ProductRow AddProductRow(ProductTypeRow parentProductTypeRowByFK_Product_ProductType, string ProductName, string Article, decimal Cost) {
  2300. ProductRow rowProductRow = ((ProductRow)(this.NewRow()));
  2301. object[] columnValuesArray = new object[] {
  2302. null,
  2303. null,
  2304. ProductName,
  2305. Article,
  2306. Cost};
  2307. if ((parentProductTypeRowByFK_Product_ProductType != null)) {
  2308. columnValuesArray[1] = parentProductTypeRowByFK_Product_ProductType[0];
  2309. }
  2310. rowProductRow.ItemArray = columnValuesArray;
  2311. this.Rows.Add(rowProductRow);
  2312. return rowProductRow;
  2313. }
  2314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2316. public ProductRow FindByIDProduct(int IDProduct) {
  2317. return ((ProductRow)(this.Rows.Find(new object[] {
  2318. IDProduct})));
  2319. }
  2320. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2321. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2322. public override global::System.Data.DataTable Clone() {
  2323. ProductDataTable cln = ((ProductDataTable)(base.Clone()));
  2324. cln.InitVars();
  2325. return cln;
  2326. }
  2327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2328. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2329. protected override global::System.Data.DataTable CreateInstance() {
  2330. return new ProductDataTable();
  2331. }
  2332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2334. internal void InitVars() {
  2335. this.columnIDProduct = base.Columns["IDProduct"];
  2336. this.columnIDProductType = base.Columns["IDProductType"];
  2337. this.columnProductName = base.Columns["ProductName"];
  2338. this.columnArticle = base.Columns["Article"];
  2339. this.columnCost = base.Columns["Cost"];
  2340. }
  2341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2343. private void InitClass() {
  2344. this.columnIDProduct = new global::System.Data.DataColumn("IDProduct", typeof(int), null, global::System.Data.MappingType.Element);
  2345. base.Columns.Add(this.columnIDProduct);
  2346. this.columnIDProductType = new global::System.Data.DataColumn("IDProductType", typeof(int), null, global::System.Data.MappingType.Element);
  2347. base.Columns.Add(this.columnIDProductType);
  2348. this.columnProductName = new global::System.Data.DataColumn("ProductName", typeof(string), null, global::System.Data.MappingType.Element);
  2349. base.Columns.Add(this.columnProductName);
  2350. this.columnArticle = new global::System.Data.DataColumn("Article", typeof(string), null, global::System.Data.MappingType.Element);
  2351. base.Columns.Add(this.columnArticle);
  2352. this.columnCost = new global::System.Data.DataColumn("Cost", typeof(decimal), null, global::System.Data.MappingType.Element);
  2353. base.Columns.Add(this.columnCost);
  2354. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2355. this.columnIDProduct}, true));
  2356. this.columnIDProduct.AutoIncrement = true;
  2357. this.columnIDProduct.AutoIncrementSeed = -1;
  2358. this.columnIDProduct.AutoIncrementStep = -1;
  2359. this.columnIDProduct.AllowDBNull = false;
  2360. this.columnIDProduct.ReadOnly = true;
  2361. this.columnIDProduct.Unique = true;
  2362. this.columnProductName.MaxLength = 150;
  2363. this.columnArticle.MaxLength = 50;
  2364. }
  2365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2367. public ProductRow NewProductRow() {
  2368. return ((ProductRow)(this.NewRow()));
  2369. }
  2370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2372. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2373. return new ProductRow(builder);
  2374. }
  2375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2377. protected override global::System.Type GetRowType() {
  2378. return typeof(ProductRow);
  2379. }
  2380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2382. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2383. base.OnRowChanged(e);
  2384. if ((this.ProductRowChanged != null)) {
  2385. this.ProductRowChanged(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2386. }
  2387. }
  2388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2390. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2391. base.OnRowChanging(e);
  2392. if ((this.ProductRowChanging != null)) {
  2393. this.ProductRowChanging(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2394. }
  2395. }
  2396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2398. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2399. base.OnRowDeleted(e);
  2400. if ((this.ProductRowDeleted != null)) {
  2401. this.ProductRowDeleted(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2402. }
  2403. }
  2404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2406. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2407. base.OnRowDeleting(e);
  2408. if ((this.ProductRowDeleting != null)) {
  2409. this.ProductRowDeleting(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2410. }
  2411. }
  2412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2413. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2414. public void RemoveProductRow(ProductRow row) {
  2415. this.Rows.Remove(row);
  2416. }
  2417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2419. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2420. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2421. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2422. AlfafloorGDVDataSet ds = new AlfafloorGDVDataSet();
  2423. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2424. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2425. any1.MinOccurs = new decimal(0);
  2426. any1.MaxOccurs = decimal.MaxValue;
  2427. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2428. sequence.Items.Add(any1);
  2429. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2430. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2431. any2.MinOccurs = new decimal(1);
  2432. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2433. sequence.Items.Add(any2);
  2434. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2435. attribute1.Name = "namespace";
  2436. attribute1.FixedValue = ds.Namespace;
  2437. type.Attributes.Add(attribute1);
  2438. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2439. attribute2.Name = "tableTypeName";
  2440. attribute2.FixedValue = "ProductDataTable";
  2441. type.Attributes.Add(attribute2);
  2442. type.Particle = sequence;
  2443. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2444. if (xs.Contains(dsSchema.TargetNamespace)) {
  2445. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2446. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2447. try {
  2448. global::System.Xml.Schema.XmlSchema schema = null;
  2449. dsSchema.Write(s1);
  2450. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2451. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2452. s2.SetLength(0);
  2453. schema.Write(s2);
  2454. if ((s1.Length == s2.Length)) {
  2455. s1.Position = 0;
  2456. s2.Position = 0;
  2457. for (; ((s1.Position != s1.Length)
  2458. && (s1.ReadByte() == s2.ReadByte())); ) {
  2459. ;
  2460. }
  2461. if ((s1.Position == s1.Length)) {
  2462. return type;
  2463. }
  2464. }
  2465. }
  2466. }
  2467. finally {
  2468. if ((s1 != null)) {
  2469. s1.Close();
  2470. }
  2471. if ((s2 != null)) {
  2472. s2.Close();
  2473. }
  2474. }
  2475. }
  2476. xs.Add(dsSchema);
  2477. return type;
  2478. }
  2479. }
  2480. /// <summary>
  2481. ///Represents the strongly named DataTable class.
  2482. ///</summary>
  2483. [global::System.Serializable()]
  2484. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2485. public partial class ProductTypeDataTable : global::System.Data.TypedTableBase<ProductTypeRow> {
  2486. private global::System.Data.DataColumn columnIDProductType;
  2487. private global::System.Data.DataColumn columnProductType;
  2488. private global::System.Data.DataColumn columnСoefficient;
  2489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2491. public ProductTypeDataTable() {
  2492. this.TableName = "ProductType";
  2493. this.BeginInit();
  2494. this.InitClass();
  2495. this.EndInit();
  2496. }
  2497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2499. internal ProductTypeDataTable(global::System.Data.DataTable table) {
  2500. this.TableName = table.TableName;
  2501. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2502. this.CaseSensitive = table.CaseSensitive;
  2503. }
  2504. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2505. this.Locale = table.Locale;
  2506. }
  2507. if ((table.Namespace != table.DataSet.Namespace)) {
  2508. this.Namespace = table.Namespace;
  2509. }
  2510. this.Prefix = table.Prefix;
  2511. this.MinimumCapacity = table.MinimumCapacity;
  2512. }
  2513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2515. protected ProductTypeDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2516. base(info, context) {
  2517. this.InitVars();
  2518. }
  2519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2521. public global::System.Data.DataColumn IDProductTypeColumn {
  2522. get {
  2523. return this.columnIDProductType;
  2524. }
  2525. }
  2526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2528. public global::System.Data.DataColumn ProductTypeColumn {
  2529. get {
  2530. return this.columnProductType;
  2531. }
  2532. }
  2533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2535. public global::System.Data.DataColumn СoefficientColumn {
  2536. get {
  2537. return this.columnСoefficient;
  2538. }
  2539. }
  2540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2542. [global::System.ComponentModel.Browsable(false)]
  2543. public int Count {
  2544. get {
  2545. return this.Rows.Count;
  2546. }
  2547. }
  2548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2549. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2550. public ProductTypeRow this[int index] {
  2551. get {
  2552. return ((ProductTypeRow)(this.Rows[index]));
  2553. }
  2554. }
  2555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2556. public event ProductTypeRowChangeEventHandler ProductTypeRowChanging;
  2557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2558. public event ProductTypeRowChangeEventHandler ProductTypeRowChanged;
  2559. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2560. public event ProductTypeRowChangeEventHandler ProductTypeRowDeleting;
  2561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2562. public event ProductTypeRowChangeEventHandler ProductTypeRowDeleted;
  2563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2565. public void AddProductTypeRow(ProductTypeRow row) {
  2566. this.Rows.Add(row);
  2567. }
  2568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2570. public ProductTypeRow AddProductTypeRow(string ProductType, double Сoefficient) {
  2571. ProductTypeRow rowProductTypeRow = ((ProductTypeRow)(this.NewRow()));
  2572. object[] columnValuesArray = new object[] {
  2573. null,
  2574. ProductType,
  2575. Сoefficient};
  2576. rowProductTypeRow.ItemArray = columnValuesArray;
  2577. this.Rows.Add(rowProductTypeRow);
  2578. return rowProductTypeRow;
  2579. }
  2580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2582. public ProductTypeRow FindByIDProductType(int IDProductType) {
  2583. return ((ProductTypeRow)(this.Rows.Find(new object[] {
  2584. IDProductType})));
  2585. }
  2586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2588. public override global::System.Data.DataTable Clone() {
  2589. ProductTypeDataTable cln = ((ProductTypeDataTable)(base.Clone()));
  2590. cln.InitVars();
  2591. return cln;
  2592. }
  2593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2595. protected override global::System.Data.DataTable CreateInstance() {
  2596. return new ProductTypeDataTable();
  2597. }
  2598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2600. internal void InitVars() {
  2601. this.columnIDProductType = base.Columns["IDProductType"];
  2602. this.columnProductType = base.Columns["ProductType"];
  2603. this.columnСoefficient = base.Columns["Сoefficient"];
  2604. }
  2605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2607. private void InitClass() {
  2608. this.columnIDProductType = new global::System.Data.DataColumn("IDProductType", typeof(int), null, global::System.Data.MappingType.Element);
  2609. base.Columns.Add(this.columnIDProductType);
  2610. this.columnProductType = new global::System.Data.DataColumn("ProductType", typeof(string), null, global::System.Data.MappingType.Element);
  2611. base.Columns.Add(this.columnProductType);
  2612. this.columnСoefficient = new global::System.Data.DataColumn("Сoefficient", typeof(double), null, global::System.Data.MappingType.Element);
  2613. base.Columns.Add(this.columnСoefficient);
  2614. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2615. this.columnIDProductType}, true));
  2616. this.columnIDProductType.AutoIncrement = true;
  2617. this.columnIDProductType.AutoIncrementSeed = -1;
  2618. this.columnIDProductType.AutoIncrementStep = -1;
  2619. this.columnIDProductType.AllowDBNull = false;
  2620. this.columnIDProductType.ReadOnly = true;
  2621. this.columnIDProductType.Unique = true;
  2622. this.columnProductType.MaxLength = 50;
  2623. }
  2624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2626. public ProductTypeRow NewProductTypeRow() {
  2627. return ((ProductTypeRow)(this.NewRow()));
  2628. }
  2629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2631. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2632. return new ProductTypeRow(builder);
  2633. }
  2634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2636. protected override global::System.Type GetRowType() {
  2637. return typeof(ProductTypeRow);
  2638. }
  2639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2641. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2642. base.OnRowChanged(e);
  2643. if ((this.ProductTypeRowChanged != null)) {
  2644. this.ProductTypeRowChanged(this, new ProductTypeRowChangeEvent(((ProductTypeRow)(e.Row)), e.Action));
  2645. }
  2646. }
  2647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2649. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2650. base.OnRowChanging(e);
  2651. if ((this.ProductTypeRowChanging != null)) {
  2652. this.ProductTypeRowChanging(this, new ProductTypeRowChangeEvent(((ProductTypeRow)(e.Row)), e.Action));
  2653. }
  2654. }
  2655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2657. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2658. base.OnRowDeleted(e);
  2659. if ((this.ProductTypeRowDeleted != null)) {
  2660. this.ProductTypeRowDeleted(this, new ProductTypeRowChangeEvent(((ProductTypeRow)(e.Row)), e.Action));
  2661. }
  2662. }
  2663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2665. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2666. base.OnRowDeleting(e);
  2667. if ((this.ProductTypeRowDeleting != null)) {
  2668. this.ProductTypeRowDeleting(this, new ProductTypeRowChangeEvent(((ProductTypeRow)(e.Row)), e.Action));
  2669. }
  2670. }
  2671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2673. public void RemoveProductTypeRow(ProductTypeRow row) {
  2674. this.Rows.Remove(row);
  2675. }
  2676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2678. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2679. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2680. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2681. AlfafloorGDVDataSet ds = new AlfafloorGDVDataSet();
  2682. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2683. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2684. any1.MinOccurs = new decimal(0);
  2685. any1.MaxOccurs = decimal.MaxValue;
  2686. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2687. sequence.Items.Add(any1);
  2688. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2689. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2690. any2.MinOccurs = new decimal(1);
  2691. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2692. sequence.Items.Add(any2);
  2693. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2694. attribute1.Name = "namespace";
  2695. attribute1.FixedValue = ds.Namespace;
  2696. type.Attributes.Add(attribute1);
  2697. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2698. attribute2.Name = "tableTypeName";
  2699. attribute2.FixedValue = "ProductTypeDataTable";
  2700. type.Attributes.Add(attribute2);
  2701. type.Particle = sequence;
  2702. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2703. if (xs.Contains(dsSchema.TargetNamespace)) {
  2704. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2705. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2706. try {
  2707. global::System.Xml.Schema.XmlSchema schema = null;
  2708. dsSchema.Write(s1);
  2709. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2710. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2711. s2.SetLength(0);
  2712. schema.Write(s2);
  2713. if ((s1.Length == s2.Length)) {
  2714. s1.Position = 0;
  2715. s2.Position = 0;
  2716. for (; ((s1.Position != s1.Length)
  2717. && (s1.ReadByte() == s2.ReadByte())); ) {
  2718. ;
  2719. }
  2720. if ((s1.Position == s1.Length)) {
  2721. return type;
  2722. }
  2723. }
  2724. }
  2725. }
  2726. finally {
  2727. if ((s1 != null)) {
  2728. s1.Close();
  2729. }
  2730. if ((s2 != null)) {
  2731. s2.Close();
  2732. }
  2733. }
  2734. }
  2735. xs.Add(dsSchema);
  2736. return type;
  2737. }
  2738. }
  2739. /// <summary>
  2740. ///Represents the strongly named DataTable class.
  2741. ///</summary>
  2742. [global::System.Serializable()]
  2743. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2744. public partial class RegionDataTable : global::System.Data.TypedTableBase<RegionRow> {
  2745. private global::System.Data.DataColumn columnIDRegion;
  2746. private global::System.Data.DataColumn columnRegion;
  2747. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2748. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2749. public RegionDataTable() {
  2750. this.TableName = "Region";
  2751. this.BeginInit();
  2752. this.InitClass();
  2753. this.EndInit();
  2754. }
  2755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2757. internal RegionDataTable(global::System.Data.DataTable table) {
  2758. this.TableName = table.TableName;
  2759. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2760. this.CaseSensitive = table.CaseSensitive;
  2761. }
  2762. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2763. this.Locale = table.Locale;
  2764. }
  2765. if ((table.Namespace != table.DataSet.Namespace)) {
  2766. this.Namespace = table.Namespace;
  2767. }
  2768. this.Prefix = table.Prefix;
  2769. this.MinimumCapacity = table.MinimumCapacity;
  2770. }
  2771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2773. protected RegionDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2774. base(info, context) {
  2775. this.InitVars();
  2776. }
  2777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2779. public global::System.Data.DataColumn IDRegionColumn {
  2780. get {
  2781. return this.columnIDRegion;
  2782. }
  2783. }
  2784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2786. public global::System.Data.DataColumn RegionColumn {
  2787. get {
  2788. return this.columnRegion;
  2789. }
  2790. }
  2791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2793. [global::System.ComponentModel.Browsable(false)]
  2794. public int Count {
  2795. get {
  2796. return this.Rows.Count;
  2797. }
  2798. }
  2799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2801. public RegionRow this[int index] {
  2802. get {
  2803. return ((RegionRow)(this.Rows[index]));
  2804. }
  2805. }
  2806. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2807. public event RegionRowChangeEventHandler RegionRowChanging;
  2808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2809. public event RegionRowChangeEventHandler RegionRowChanged;
  2810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2811. public event RegionRowChangeEventHandler RegionRowDeleting;
  2812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2813. public event RegionRowChangeEventHandler RegionRowDeleted;
  2814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2816. public void AddRegionRow(RegionRow row) {
  2817. this.Rows.Add(row);
  2818. }
  2819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2821. public RegionRow AddRegionRow(string Region) {
  2822. RegionRow rowRegionRow = ((RegionRow)(this.NewRow()));
  2823. object[] columnValuesArray = new object[] {
  2824. null,
  2825. Region};
  2826. rowRegionRow.ItemArray = columnValuesArray;
  2827. this.Rows.Add(rowRegionRow);
  2828. return rowRegionRow;
  2829. }
  2830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2831. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2832. public RegionRow FindByIDRegion(int IDRegion) {
  2833. return ((RegionRow)(this.Rows.Find(new object[] {
  2834. IDRegion})));
  2835. }
  2836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2837. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2838. public override global::System.Data.DataTable Clone() {
  2839. RegionDataTable cln = ((RegionDataTable)(base.Clone()));
  2840. cln.InitVars();
  2841. return cln;
  2842. }
  2843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2845. protected override global::System.Data.DataTable CreateInstance() {
  2846. return new RegionDataTable();
  2847. }
  2848. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2849. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2850. internal void InitVars() {
  2851. this.columnIDRegion = base.Columns["IDRegion"];
  2852. this.columnRegion = base.Columns["Region"];
  2853. }
  2854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2856. private void InitClass() {
  2857. this.columnIDRegion = new global::System.Data.DataColumn("IDRegion", typeof(int), null, global::System.Data.MappingType.Element);
  2858. base.Columns.Add(this.columnIDRegion);
  2859. this.columnRegion = new global::System.Data.DataColumn("Region", typeof(string), null, global::System.Data.MappingType.Element);
  2860. base.Columns.Add(this.columnRegion);
  2861. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2862. this.columnIDRegion}, true));
  2863. this.columnIDRegion.AutoIncrement = true;
  2864. this.columnIDRegion.AutoIncrementSeed = -1;
  2865. this.columnIDRegion.AutoIncrementStep = -1;
  2866. this.columnIDRegion.AllowDBNull = false;
  2867. this.columnIDRegion.ReadOnly = true;
  2868. this.columnIDRegion.Unique = true;
  2869. this.columnRegion.MaxLength = 50;
  2870. }
  2871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2872. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2873. public RegionRow NewRegionRow() {
  2874. return ((RegionRow)(this.NewRow()));
  2875. }
  2876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2878. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2879. return new RegionRow(builder);
  2880. }
  2881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2883. protected override global::System.Type GetRowType() {
  2884. return typeof(RegionRow);
  2885. }
  2886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2888. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2889. base.OnRowChanged(e);
  2890. if ((this.RegionRowChanged != null)) {
  2891. this.RegionRowChanged(this, new RegionRowChangeEvent(((RegionRow)(e.Row)), e.Action));
  2892. }
  2893. }
  2894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2896. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2897. base.OnRowChanging(e);
  2898. if ((this.RegionRowChanging != null)) {
  2899. this.RegionRowChanging(this, new RegionRowChangeEvent(((RegionRow)(e.Row)), e.Action));
  2900. }
  2901. }
  2902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2904. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2905. base.OnRowDeleted(e);
  2906. if ((this.RegionRowDeleted != null)) {
  2907. this.RegionRowDeleted(this, new RegionRowChangeEvent(((RegionRow)(e.Row)), e.Action));
  2908. }
  2909. }
  2910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2911. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2912. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2913. base.OnRowDeleting(e);
  2914. if ((this.RegionRowDeleting != null)) {
  2915. this.RegionRowDeleting(this, new RegionRowChangeEvent(((RegionRow)(e.Row)), e.Action));
  2916. }
  2917. }
  2918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2920. public void RemoveRegionRow(RegionRow row) {
  2921. this.Rows.Remove(row);
  2922. }
  2923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2925. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2926. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2927. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2928. AlfafloorGDVDataSet ds = new AlfafloorGDVDataSet();
  2929. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2930. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2931. any1.MinOccurs = new decimal(0);
  2932. any1.MaxOccurs = decimal.MaxValue;
  2933. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2934. sequence.Items.Add(any1);
  2935. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2936. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2937. any2.MinOccurs = new decimal(1);
  2938. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2939. sequence.Items.Add(any2);
  2940. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2941. attribute1.Name = "namespace";
  2942. attribute1.FixedValue = ds.Namespace;
  2943. type.Attributes.Add(attribute1);
  2944. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2945. attribute2.Name = "tableTypeName";
  2946. attribute2.FixedValue = "RegionDataTable";
  2947. type.Attributes.Add(attribute2);
  2948. type.Particle = sequence;
  2949. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2950. if (xs.Contains(dsSchema.TargetNamespace)) {
  2951. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2952. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2953. try {
  2954. global::System.Xml.Schema.XmlSchema schema = null;
  2955. dsSchema.Write(s1);
  2956. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2957. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2958. s2.SetLength(0);
  2959. schema.Write(s2);
  2960. if ((s1.Length == s2.Length)) {
  2961. s1.Position = 0;
  2962. s2.Position = 0;
  2963. for (; ((s1.Position != s1.Length)
  2964. && (s1.ReadByte() == s2.ReadByte())); ) {
  2965. ;
  2966. }
  2967. if ((s1.Position == s1.Length)) {
  2968. return type;
  2969. }
  2970. }
  2971. }
  2972. }
  2973. finally {
  2974. if ((s1 != null)) {
  2975. s1.Close();
  2976. }
  2977. if ((s2 != null)) {
  2978. s2.Close();
  2979. }
  2980. }
  2981. }
  2982. xs.Add(dsSchema);
  2983. return type;
  2984. }
  2985. }
  2986. /// <summary>
  2987. ///Represents the strongly named DataTable class.
  2988. ///</summary>
  2989. [global::System.Serializable()]
  2990. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2991. public partial class StreetDataTable : global::System.Data.TypedTableBase<StreetRow> {
  2992. private global::System.Data.DataColumn columnIDStreet;
  2993. private global::System.Data.DataColumn columnStreet;
  2994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2996. public StreetDataTable() {
  2997. this.TableName = "Street";
  2998. this.BeginInit();
  2999. this.InitClass();
  3000. this.EndInit();
  3001. }
  3002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3004. internal StreetDataTable(global::System.Data.DataTable table) {
  3005. this.TableName = table.TableName;
  3006. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3007. this.CaseSensitive = table.CaseSensitive;
  3008. }
  3009. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3010. this.Locale = table.Locale;
  3011. }
  3012. if ((table.Namespace != table.DataSet.Namespace)) {
  3013. this.Namespace = table.Namespace;
  3014. }
  3015. this.Prefix = table.Prefix;
  3016. this.MinimumCapacity = table.MinimumCapacity;
  3017. }
  3018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3020. protected StreetDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3021. base(info, context) {
  3022. this.InitVars();
  3023. }
  3024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3026. public global::System.Data.DataColumn IDStreetColumn {
  3027. get {
  3028. return this.columnIDStreet;
  3029. }
  3030. }
  3031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3032. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3033. public global::System.Data.DataColumn StreetColumn {
  3034. get {
  3035. return this.columnStreet;
  3036. }
  3037. }
  3038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3039. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3040. [global::System.ComponentModel.Browsable(false)]
  3041. public int Count {
  3042. get {
  3043. return this.Rows.Count;
  3044. }
  3045. }
  3046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3048. public StreetRow this[int index] {
  3049. get {
  3050. return ((StreetRow)(this.Rows[index]));
  3051. }
  3052. }
  3053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3054. public event StreetRowChangeEventHandler StreetRowChanging;
  3055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3056. public event StreetRowChangeEventHandler StreetRowChanged;
  3057. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3058. public event StreetRowChangeEventHandler StreetRowDeleting;
  3059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3060. public event StreetRowChangeEventHandler StreetRowDeleted;
  3061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3063. public void AddStreetRow(StreetRow row) {
  3064. this.Rows.Add(row);
  3065. }
  3066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3068. public StreetRow AddStreetRow(string Street) {
  3069. StreetRow rowStreetRow = ((StreetRow)(this.NewRow()));
  3070. object[] columnValuesArray = new object[] {
  3071. null,
  3072. Street};
  3073. rowStreetRow.ItemArray = columnValuesArray;
  3074. this.Rows.Add(rowStreetRow);
  3075. return rowStreetRow;
  3076. }
  3077. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3078. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3079. public StreetRow FindByIDStreet(int IDStreet) {
  3080. return ((StreetRow)(this.Rows.Find(new object[] {
  3081. IDStreet})));
  3082. }
  3083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3085. public override global::System.Data.DataTable Clone() {
  3086. StreetDataTable cln = ((StreetDataTable)(base.Clone()));
  3087. cln.InitVars();
  3088. return cln;
  3089. }
  3090. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3091. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3092. protected override global::System.Data.DataTable CreateInstance() {
  3093. return new StreetDataTable();
  3094. }
  3095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3097. internal void InitVars() {
  3098. this.columnIDStreet = base.Columns["IDStreet"];
  3099. this.columnStreet = base.Columns["Street"];
  3100. }
  3101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3103. private void InitClass() {
  3104. this.columnIDStreet = new global::System.Data.DataColumn("IDStreet", typeof(int), null, global::System.Data.MappingType.Element);
  3105. base.Columns.Add(this.columnIDStreet);
  3106. this.columnStreet = new global::System.Data.DataColumn("Street", typeof(string), null, global::System.Data.MappingType.Element);
  3107. base.Columns.Add(this.columnStreet);
  3108. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3109. this.columnIDStreet}, true));
  3110. this.columnIDStreet.AutoIncrement = true;
  3111. this.columnIDStreet.AutoIncrementSeed = -1;
  3112. this.columnIDStreet.AutoIncrementStep = -1;
  3113. this.columnIDStreet.AllowDBNull = false;
  3114. this.columnIDStreet.ReadOnly = true;
  3115. this.columnIDStreet.Unique = true;
  3116. this.columnStreet.MaxLength = 50;
  3117. }
  3118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3120. public StreetRow NewStreetRow() {
  3121. return ((StreetRow)(this.NewRow()));
  3122. }
  3123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3125. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3126. return new StreetRow(builder);
  3127. }
  3128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3130. protected override global::System.Type GetRowType() {
  3131. return typeof(StreetRow);
  3132. }
  3133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3135. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3136. base.OnRowChanged(e);
  3137. if ((this.StreetRowChanged != null)) {
  3138. this.StreetRowChanged(this, new StreetRowChangeEvent(((StreetRow)(e.Row)), e.Action));
  3139. }
  3140. }
  3141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3143. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3144. base.OnRowChanging(e);
  3145. if ((this.StreetRowChanging != null)) {
  3146. this.StreetRowChanging(this, new StreetRowChangeEvent(((StreetRow)(e.Row)), e.Action));
  3147. }
  3148. }
  3149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3151. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3152. base.OnRowDeleted(e);
  3153. if ((this.StreetRowDeleted != null)) {
  3154. this.StreetRowDeleted(this, new StreetRowChangeEvent(((StreetRow)(e.Row)), e.Action));
  3155. }
  3156. }
  3157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3159. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3160. base.OnRowDeleting(e);
  3161. if ((this.StreetRowDeleting != null)) {
  3162. this.StreetRowDeleting(this, new StreetRowChangeEvent(((StreetRow)(e.Row)), e.Action));
  3163. }
  3164. }
  3165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3167. public void RemoveStreetRow(StreetRow row) {
  3168. this.Rows.Remove(row);
  3169. }
  3170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3171. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3172. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3173. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3174. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3175. AlfafloorGDVDataSet ds = new AlfafloorGDVDataSet();
  3176. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3177. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3178. any1.MinOccurs = new decimal(0);
  3179. any1.MaxOccurs = decimal.MaxValue;
  3180. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3181. sequence.Items.Add(any1);
  3182. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3183. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3184. any2.MinOccurs = new decimal(1);
  3185. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3186. sequence.Items.Add(any2);
  3187. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3188. attribute1.Name = "namespace";
  3189. attribute1.FixedValue = ds.Namespace;
  3190. type.Attributes.Add(attribute1);
  3191. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3192. attribute2.Name = "tableTypeName";
  3193. attribute2.FixedValue = "StreetDataTable";
  3194. type.Attributes.Add(attribute2);
  3195. type.Particle = sequence;
  3196. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3197. if (xs.Contains(dsSchema.TargetNamespace)) {
  3198. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3199. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3200. try {
  3201. global::System.Xml.Schema.XmlSchema schema = null;
  3202. dsSchema.Write(s1);
  3203. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3204. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3205. s2.SetLength(0);
  3206. schema.Write(s2);
  3207. if ((s1.Length == s2.Length)) {
  3208. s1.Position = 0;
  3209. s2.Position = 0;
  3210. for (; ((s1.Position != s1.Length)
  3211. && (s1.ReadByte() == s2.ReadByte())); ) {
  3212. ;
  3213. }
  3214. if ((s1.Position == s1.Length)) {
  3215. return type;
  3216. }
  3217. }
  3218. }
  3219. }
  3220. finally {
  3221. if ((s1 != null)) {
  3222. s1.Close();
  3223. }
  3224. if ((s2 != null)) {
  3225. s2.Close();
  3226. }
  3227. }
  3228. }
  3229. xs.Add(dsSchema);
  3230. return type;
  3231. }
  3232. }
  3233. /// <summary>
  3234. ///Represents the strongly named DataTable class.
  3235. ///</summary>
  3236. [global::System.Serializable()]
  3237. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3238. public partial class TypeMaterialDataTable : global::System.Data.TypedTableBase<TypeMaterialRow> {
  3239. private global::System.Data.DataColumn columnIDTypeMaterial;
  3240. private global::System.Data.DataColumn columnTypeMaterial;
  3241. private global::System.Data.DataColumn columnDefectPercent;
  3242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3244. public TypeMaterialDataTable() {
  3245. this.TableName = "TypeMaterial";
  3246. this.BeginInit();
  3247. this.InitClass();
  3248. this.EndInit();
  3249. }
  3250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3252. internal TypeMaterialDataTable(global::System.Data.DataTable table) {
  3253. this.TableName = table.TableName;
  3254. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3255. this.CaseSensitive = table.CaseSensitive;
  3256. }
  3257. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3258. this.Locale = table.Locale;
  3259. }
  3260. if ((table.Namespace != table.DataSet.Namespace)) {
  3261. this.Namespace = table.Namespace;
  3262. }
  3263. this.Prefix = table.Prefix;
  3264. this.MinimumCapacity = table.MinimumCapacity;
  3265. }
  3266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3268. protected TypeMaterialDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3269. base(info, context) {
  3270. this.InitVars();
  3271. }
  3272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3274. public global::System.Data.DataColumn IDTypeMaterialColumn {
  3275. get {
  3276. return this.columnIDTypeMaterial;
  3277. }
  3278. }
  3279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3281. public global::System.Data.DataColumn TypeMaterialColumn {
  3282. get {
  3283. return this.columnTypeMaterial;
  3284. }
  3285. }
  3286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3287. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3288. public global::System.Data.DataColumn DefectPercentColumn {
  3289. get {
  3290. return this.columnDefectPercent;
  3291. }
  3292. }
  3293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3295. [global::System.ComponentModel.Browsable(false)]
  3296. public int Count {
  3297. get {
  3298. return this.Rows.Count;
  3299. }
  3300. }
  3301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3303. public TypeMaterialRow this[int index] {
  3304. get {
  3305. return ((TypeMaterialRow)(this.Rows[index]));
  3306. }
  3307. }
  3308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3309. public event TypeMaterialRowChangeEventHandler TypeMaterialRowChanging;
  3310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3311. public event TypeMaterialRowChangeEventHandler TypeMaterialRowChanged;
  3312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3313. public event TypeMaterialRowChangeEventHandler TypeMaterialRowDeleting;
  3314. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3315. public event TypeMaterialRowChangeEventHandler TypeMaterialRowDeleted;
  3316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3317. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3318. public void AddTypeMaterialRow(TypeMaterialRow row) {
  3319. this.Rows.Add(row);
  3320. }
  3321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3323. public TypeMaterialRow AddTypeMaterialRow(string TypeMaterial, double DefectPercent) {
  3324. TypeMaterialRow rowTypeMaterialRow = ((TypeMaterialRow)(this.NewRow()));
  3325. object[] columnValuesArray = new object[] {
  3326. null,
  3327. TypeMaterial,
  3328. DefectPercent};
  3329. rowTypeMaterialRow.ItemArray = columnValuesArray;
  3330. this.Rows.Add(rowTypeMaterialRow);
  3331. return rowTypeMaterialRow;
  3332. }
  3333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3335. public TypeMaterialRow FindByIDTypeMaterial(int IDTypeMaterial) {
  3336. return ((TypeMaterialRow)(this.Rows.Find(new object[] {
  3337. IDTypeMaterial})));
  3338. }
  3339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3341. public override global::System.Data.DataTable Clone() {
  3342. TypeMaterialDataTable cln = ((TypeMaterialDataTable)(base.Clone()));
  3343. cln.InitVars();
  3344. return cln;
  3345. }
  3346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3348. protected override global::System.Data.DataTable CreateInstance() {
  3349. return new TypeMaterialDataTable();
  3350. }
  3351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3352. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3353. internal void InitVars() {
  3354. this.columnIDTypeMaterial = base.Columns["IDTypeMaterial"];
  3355. this.columnTypeMaterial = base.Columns["TypeMaterial"];
  3356. this.columnDefectPercent = base.Columns["DefectPercent"];
  3357. }
  3358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3359. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3360. private void InitClass() {
  3361. this.columnIDTypeMaterial = new global::System.Data.DataColumn("IDTypeMaterial", typeof(int), null, global::System.Data.MappingType.Element);
  3362. base.Columns.Add(this.columnIDTypeMaterial);
  3363. this.columnTypeMaterial = new global::System.Data.DataColumn("TypeMaterial", typeof(string), null, global::System.Data.MappingType.Element);
  3364. base.Columns.Add(this.columnTypeMaterial);
  3365. this.columnDefectPercent = new global::System.Data.DataColumn("DefectPercent", typeof(double), null, global::System.Data.MappingType.Element);
  3366. base.Columns.Add(this.columnDefectPercent);
  3367. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3368. this.columnIDTypeMaterial}, true));
  3369. this.columnIDTypeMaterial.AutoIncrement = true;
  3370. this.columnIDTypeMaterial.AutoIncrementSeed = -1;
  3371. this.columnIDTypeMaterial.AutoIncrementStep = -1;
  3372. this.columnIDTypeMaterial.AllowDBNull = false;
  3373. this.columnIDTypeMaterial.ReadOnly = true;
  3374. this.columnIDTypeMaterial.Unique = true;
  3375. this.columnTypeMaterial.MaxLength = 50;
  3376. }
  3377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3378. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3379. public TypeMaterialRow NewTypeMaterialRow() {
  3380. return ((TypeMaterialRow)(this.NewRow()));
  3381. }
  3382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3384. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3385. return new TypeMaterialRow(builder);
  3386. }
  3387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3389. protected override global::System.Type GetRowType() {
  3390. return typeof(TypeMaterialRow);
  3391. }
  3392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3394. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3395. base.OnRowChanged(e);
  3396. if ((this.TypeMaterialRowChanged != null)) {
  3397. this.TypeMaterialRowChanged(this, new TypeMaterialRowChangeEvent(((TypeMaterialRow)(e.Row)), e.Action));
  3398. }
  3399. }
  3400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3402. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3403. base.OnRowChanging(e);
  3404. if ((this.TypeMaterialRowChanging != null)) {
  3405. this.TypeMaterialRowChanging(this, new TypeMaterialRowChangeEvent(((TypeMaterialRow)(e.Row)), e.Action));
  3406. }
  3407. }
  3408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3410. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3411. base.OnRowDeleted(e);
  3412. if ((this.TypeMaterialRowDeleted != null)) {
  3413. this.TypeMaterialRowDeleted(this, new TypeMaterialRowChangeEvent(((TypeMaterialRow)(e.Row)), e.Action));
  3414. }
  3415. }
  3416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3418. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3419. base.OnRowDeleting(e);
  3420. if ((this.TypeMaterialRowDeleting != null)) {
  3421. this.TypeMaterialRowDeleting(this, new TypeMaterialRowChangeEvent(((TypeMaterialRow)(e.Row)), e.Action));
  3422. }
  3423. }
  3424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3426. public void RemoveTypeMaterialRow(TypeMaterialRow row) {
  3427. this.Rows.Remove(row);
  3428. }
  3429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3431. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3432. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3433. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3434. AlfafloorGDVDataSet ds = new AlfafloorGDVDataSet();
  3435. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3436. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3437. any1.MinOccurs = new decimal(0);
  3438. any1.MaxOccurs = decimal.MaxValue;
  3439. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3440. sequence.Items.Add(any1);
  3441. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3442. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3443. any2.MinOccurs = new decimal(1);
  3444. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3445. sequence.Items.Add(any2);
  3446. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3447. attribute1.Name = "namespace";
  3448. attribute1.FixedValue = ds.Namespace;
  3449. type.Attributes.Add(attribute1);
  3450. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3451. attribute2.Name = "tableTypeName";
  3452. attribute2.FixedValue = "TypeMaterialDataTable";
  3453. type.Attributes.Add(attribute2);
  3454. type.Particle = sequence;
  3455. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3456. if (xs.Contains(dsSchema.TargetNamespace)) {
  3457. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3458. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3459. try {
  3460. global::System.Xml.Schema.XmlSchema schema = null;
  3461. dsSchema.Write(s1);
  3462. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3463. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3464. s2.SetLength(0);
  3465. schema.Write(s2);
  3466. if ((s1.Length == s2.Length)) {
  3467. s1.Position = 0;
  3468. s2.Position = 0;
  3469. for (; ((s1.Position != s1.Length)
  3470. && (s1.ReadByte() == s2.ReadByte())); ) {
  3471. ;
  3472. }
  3473. if ((s1.Position == s1.Length)) {
  3474. return type;
  3475. }
  3476. }
  3477. }
  3478. }
  3479. finally {
  3480. if ((s1 != null)) {
  3481. s1.Close();
  3482. }
  3483. if ((s2 != null)) {
  3484. s2.Close();
  3485. }
  3486. }
  3487. }
  3488. xs.Add(dsSchema);
  3489. return type;
  3490. }
  3491. }
  3492. /// <summary>
  3493. ///Represents the strongly named DataTable class.
  3494. ///</summary>
  3495. [global::System.Serializable()]
  3496. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3497. public partial class TypePartnerDataTable : global::System.Data.TypedTableBase<TypePartnerRow> {
  3498. private global::System.Data.DataColumn columnIDTypePartner;
  3499. private global::System.Data.DataColumn columnTypePartner;
  3500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3502. public TypePartnerDataTable() {
  3503. this.TableName = "TypePartner";
  3504. this.BeginInit();
  3505. this.InitClass();
  3506. this.EndInit();
  3507. }
  3508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3510. internal TypePartnerDataTable(global::System.Data.DataTable table) {
  3511. this.TableName = table.TableName;
  3512. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3513. this.CaseSensitive = table.CaseSensitive;
  3514. }
  3515. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3516. this.Locale = table.Locale;
  3517. }
  3518. if ((table.Namespace != table.DataSet.Namespace)) {
  3519. this.Namespace = table.Namespace;
  3520. }
  3521. this.Prefix = table.Prefix;
  3522. this.MinimumCapacity = table.MinimumCapacity;
  3523. }
  3524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3526. protected TypePartnerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3527. base(info, context) {
  3528. this.InitVars();
  3529. }
  3530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3532. public global::System.Data.DataColumn IDTypePartnerColumn {
  3533. get {
  3534. return this.columnIDTypePartner;
  3535. }
  3536. }
  3537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3539. public global::System.Data.DataColumn TypePartnerColumn {
  3540. get {
  3541. return this.columnTypePartner;
  3542. }
  3543. }
  3544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3545. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3546. [global::System.ComponentModel.Browsable(false)]
  3547. public int Count {
  3548. get {
  3549. return this.Rows.Count;
  3550. }
  3551. }
  3552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3554. public TypePartnerRow this[int index] {
  3555. get {
  3556. return ((TypePartnerRow)(this.Rows[index]));
  3557. }
  3558. }
  3559. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3560. public event TypePartnerRowChangeEventHandler TypePartnerRowChanging;
  3561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3562. public event TypePartnerRowChangeEventHandler TypePartnerRowChanged;
  3563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3564. public event TypePartnerRowChangeEventHandler TypePartnerRowDeleting;
  3565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3566. public event TypePartnerRowChangeEventHandler TypePartnerRowDeleted;
  3567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3569. public void AddTypePartnerRow(TypePartnerRow row) {
  3570. this.Rows.Add(row);
  3571. }
  3572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3574. public TypePartnerRow AddTypePartnerRow(string TypePartner) {
  3575. TypePartnerRow rowTypePartnerRow = ((TypePartnerRow)(this.NewRow()));
  3576. object[] columnValuesArray = new object[] {
  3577. null,
  3578. TypePartner};
  3579. rowTypePartnerRow.ItemArray = columnValuesArray;
  3580. this.Rows.Add(rowTypePartnerRow);
  3581. return rowTypePartnerRow;
  3582. }
  3583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3585. public TypePartnerRow FindByIDTypePartner(int IDTypePartner) {
  3586. return ((TypePartnerRow)(this.Rows.Find(new object[] {
  3587. IDTypePartner})));
  3588. }
  3589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3591. public override global::System.Data.DataTable Clone() {
  3592. TypePartnerDataTable cln = ((TypePartnerDataTable)(base.Clone()));
  3593. cln.InitVars();
  3594. return cln;
  3595. }
  3596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3598. protected override global::System.Data.DataTable CreateInstance() {
  3599. return new TypePartnerDataTable();
  3600. }
  3601. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3602. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3603. internal void InitVars() {
  3604. this.columnIDTypePartner = base.Columns["IDTypePartner"];
  3605. this.columnTypePartner = base.Columns["TypePartner"];
  3606. }
  3607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3609. private void InitClass() {
  3610. this.columnIDTypePartner = new global::System.Data.DataColumn("IDTypePartner", typeof(int), null, global::System.Data.MappingType.Element);
  3611. base.Columns.Add(this.columnIDTypePartner);
  3612. this.columnTypePartner = new global::System.Data.DataColumn("TypePartner", typeof(string), null, global::System.Data.MappingType.Element);
  3613. base.Columns.Add(this.columnTypePartner);
  3614. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3615. this.columnIDTypePartner}, true));
  3616. this.columnIDTypePartner.AutoIncrement = true;
  3617. this.columnIDTypePartner.AutoIncrementSeed = -1;
  3618. this.columnIDTypePartner.AutoIncrementStep = -1;
  3619. this.columnIDTypePartner.AllowDBNull = false;
  3620. this.columnIDTypePartner.ReadOnly = true;
  3621. this.columnIDTypePartner.Unique = true;
  3622. this.columnTypePartner.MaxLength = 50;
  3623. }
  3624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3626. public TypePartnerRow NewTypePartnerRow() {
  3627. return ((TypePartnerRow)(this.NewRow()));
  3628. }
  3629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3631. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3632. return new TypePartnerRow(builder);
  3633. }
  3634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3636. protected override global::System.Type GetRowType() {
  3637. return typeof(TypePartnerRow);
  3638. }
  3639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3641. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3642. base.OnRowChanged(e);
  3643. if ((this.TypePartnerRowChanged != null)) {
  3644. this.TypePartnerRowChanged(this, new TypePartnerRowChangeEvent(((TypePartnerRow)(e.Row)), e.Action));
  3645. }
  3646. }
  3647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3649. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3650. base.OnRowChanging(e);
  3651. if ((this.TypePartnerRowChanging != null)) {
  3652. this.TypePartnerRowChanging(this, new TypePartnerRowChangeEvent(((TypePartnerRow)(e.Row)), e.Action));
  3653. }
  3654. }
  3655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3657. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3658. base.OnRowDeleted(e);
  3659. if ((this.TypePartnerRowDeleted != null)) {
  3660. this.TypePartnerRowDeleted(this, new TypePartnerRowChangeEvent(((TypePartnerRow)(e.Row)), e.Action));
  3661. }
  3662. }
  3663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3665. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3666. base.OnRowDeleting(e);
  3667. if ((this.TypePartnerRowDeleting != null)) {
  3668. this.TypePartnerRowDeleting(this, new TypePartnerRowChangeEvent(((TypePartnerRow)(e.Row)), e.Action));
  3669. }
  3670. }
  3671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3673. public void RemoveTypePartnerRow(TypePartnerRow row) {
  3674. this.Rows.Remove(row);
  3675. }
  3676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3678. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3679. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3680. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3681. AlfafloorGDVDataSet ds = new AlfafloorGDVDataSet();
  3682. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3683. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3684. any1.MinOccurs = new decimal(0);
  3685. any1.MaxOccurs = decimal.MaxValue;
  3686. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3687. sequence.Items.Add(any1);
  3688. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3689. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3690. any2.MinOccurs = new decimal(1);
  3691. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3692. sequence.Items.Add(any2);
  3693. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3694. attribute1.Name = "namespace";
  3695. attribute1.FixedValue = ds.Namespace;
  3696. type.Attributes.Add(attribute1);
  3697. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3698. attribute2.Name = "tableTypeName";
  3699. attribute2.FixedValue = "TypePartnerDataTable";
  3700. type.Attributes.Add(attribute2);
  3701. type.Particle = sequence;
  3702. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3703. if (xs.Contains(dsSchema.TargetNamespace)) {
  3704. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3705. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3706. try {
  3707. global::System.Xml.Schema.XmlSchema schema = null;
  3708. dsSchema.Write(s1);
  3709. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3710. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3711. s2.SetLength(0);
  3712. schema.Write(s2);
  3713. if ((s1.Length == s2.Length)) {
  3714. s1.Position = 0;
  3715. s2.Position = 0;
  3716. for (; ((s1.Position != s1.Length)
  3717. && (s1.ReadByte() == s2.ReadByte())); ) {
  3718. ;
  3719. }
  3720. if ((s1.Position == s1.Length)) {
  3721. return type;
  3722. }
  3723. }
  3724. }
  3725. }
  3726. finally {
  3727. if ((s1 != null)) {
  3728. s1.Close();
  3729. }
  3730. if ((s2 != null)) {
  3731. s2.Close();
  3732. }
  3733. }
  3734. }
  3735. xs.Add(dsSchema);
  3736. return type;
  3737. }
  3738. }
  3739. /// <summary>
  3740. ///Represents the strongly named DataTable class.
  3741. ///</summary>
  3742. [global::System.Serializable()]
  3743. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3744. public partial class Type4FilterDataTable : global::System.Data.TypedTableBase<Type4FilterRow> {
  3745. private global::System.Data.DataColumn columnTypePartner;
  3746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3748. public Type4FilterDataTable() {
  3749. this.TableName = "Type4Filter";
  3750. this.BeginInit();
  3751. this.InitClass();
  3752. this.EndInit();
  3753. }
  3754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3756. internal Type4FilterDataTable(global::System.Data.DataTable table) {
  3757. this.TableName = table.TableName;
  3758. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3759. this.CaseSensitive = table.CaseSensitive;
  3760. }
  3761. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3762. this.Locale = table.Locale;
  3763. }
  3764. if ((table.Namespace != table.DataSet.Namespace)) {
  3765. this.Namespace = table.Namespace;
  3766. }
  3767. this.Prefix = table.Prefix;
  3768. this.MinimumCapacity = table.MinimumCapacity;
  3769. }
  3770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3772. protected Type4FilterDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3773. base(info, context) {
  3774. this.InitVars();
  3775. }
  3776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3778. public global::System.Data.DataColumn TypePartnerColumn {
  3779. get {
  3780. return this.columnTypePartner;
  3781. }
  3782. }
  3783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3785. [global::System.ComponentModel.Browsable(false)]
  3786. public int Count {
  3787. get {
  3788. return this.Rows.Count;
  3789. }
  3790. }
  3791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3793. public Type4FilterRow this[int index] {
  3794. get {
  3795. return ((Type4FilterRow)(this.Rows[index]));
  3796. }
  3797. }
  3798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3799. public event Type4FilterRowChangeEventHandler Type4FilterRowChanging;
  3800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3801. public event Type4FilterRowChangeEventHandler Type4FilterRowChanged;
  3802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3803. public event Type4FilterRowChangeEventHandler Type4FilterRowDeleting;
  3804. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3805. public event Type4FilterRowChangeEventHandler Type4FilterRowDeleted;
  3806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3808. public void AddType4FilterRow(Type4FilterRow row) {
  3809. this.Rows.Add(row);
  3810. }
  3811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3813. public Type4FilterRow AddType4FilterRow(string TypePartner) {
  3814. Type4FilterRow rowType4FilterRow = ((Type4FilterRow)(this.NewRow()));
  3815. object[] columnValuesArray = new object[] {
  3816. TypePartner};
  3817. rowType4FilterRow.ItemArray = columnValuesArray;
  3818. this.Rows.Add(rowType4FilterRow);
  3819. return rowType4FilterRow;
  3820. }
  3821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3823. public override global::System.Data.DataTable Clone() {
  3824. Type4FilterDataTable cln = ((Type4FilterDataTable)(base.Clone()));
  3825. cln.InitVars();
  3826. return cln;
  3827. }
  3828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3830. protected override global::System.Data.DataTable CreateInstance() {
  3831. return new Type4FilterDataTable();
  3832. }
  3833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3835. internal void InitVars() {
  3836. this.columnTypePartner = base.Columns["TypePartner"];
  3837. }
  3838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3840. private void InitClass() {
  3841. this.columnTypePartner = new global::System.Data.DataColumn("TypePartner", typeof(string), null, global::System.Data.MappingType.Element);
  3842. base.Columns.Add(this.columnTypePartner);
  3843. this.columnTypePartner.ReadOnly = true;
  3844. this.columnTypePartner.Caption = "Column1";
  3845. this.columnTypePartner.MaxLength = 50;
  3846. }
  3847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3849. public Type4FilterRow NewType4FilterRow() {
  3850. return ((Type4FilterRow)(this.NewRow()));
  3851. }
  3852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3854. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3855. return new Type4FilterRow(builder);
  3856. }
  3857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3859. protected override global::System.Type GetRowType() {
  3860. return typeof(Type4FilterRow);
  3861. }
  3862. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3863. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3864. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3865. base.OnRowChanged(e);
  3866. if ((this.Type4FilterRowChanged != null)) {
  3867. this.Type4FilterRowChanged(this, new Type4FilterRowChangeEvent(((Type4FilterRow)(e.Row)), e.Action));
  3868. }
  3869. }
  3870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3872. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3873. base.OnRowChanging(e);
  3874. if ((this.Type4FilterRowChanging != null)) {
  3875. this.Type4FilterRowChanging(this, new Type4FilterRowChangeEvent(((Type4FilterRow)(e.Row)), e.Action));
  3876. }
  3877. }
  3878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3880. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3881. base.OnRowDeleted(e);
  3882. if ((this.Type4FilterRowDeleted != null)) {
  3883. this.Type4FilterRowDeleted(this, new Type4FilterRowChangeEvent(((Type4FilterRow)(e.Row)), e.Action));
  3884. }
  3885. }
  3886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3888. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3889. base.OnRowDeleting(e);
  3890. if ((this.Type4FilterRowDeleting != null)) {
  3891. this.Type4FilterRowDeleting(this, new Type4FilterRowChangeEvent(((Type4FilterRow)(e.Row)), e.Action));
  3892. }
  3893. }
  3894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3896. public void RemoveType4FilterRow(Type4FilterRow row) {
  3897. this.Rows.Remove(row);
  3898. }
  3899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3901. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3902. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3903. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3904. AlfafloorGDVDataSet ds = new AlfafloorGDVDataSet();
  3905. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3906. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3907. any1.MinOccurs = new decimal(0);
  3908. any1.MaxOccurs = decimal.MaxValue;
  3909. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3910. sequence.Items.Add(any1);
  3911. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3912. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3913. any2.MinOccurs = new decimal(1);
  3914. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3915. sequence.Items.Add(any2);
  3916. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3917. attribute1.Name = "namespace";
  3918. attribute1.FixedValue = ds.Namespace;
  3919. type.Attributes.Add(attribute1);
  3920. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3921. attribute2.Name = "tableTypeName";
  3922. attribute2.FixedValue = "Type4FilterDataTable";
  3923. type.Attributes.Add(attribute2);
  3924. type.Particle = sequence;
  3925. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3926. if (xs.Contains(dsSchema.TargetNamespace)) {
  3927. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3928. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3929. try {
  3930. global::System.Xml.Schema.XmlSchema schema = null;
  3931. dsSchema.Write(s1);
  3932. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3933. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3934. s2.SetLength(0);
  3935. schema.Write(s2);
  3936. if ((s1.Length == s2.Length)) {
  3937. s1.Position = 0;
  3938. s2.Position = 0;
  3939. for (; ((s1.Position != s1.Length)
  3940. && (s1.ReadByte() == s2.ReadByte())); ) {
  3941. ;
  3942. }
  3943. if ((s1.Position == s1.Length)) {
  3944. return type;
  3945. }
  3946. }
  3947. }
  3948. }
  3949. finally {
  3950. if ((s1 != null)) {
  3951. s1.Close();
  3952. }
  3953. if ((s2 != null)) {
  3954. s2.Close();
  3955. }
  3956. }
  3957. }
  3958. xs.Add(dsSchema);
  3959. return type;
  3960. }
  3961. }
  3962. /// <summary>
  3963. ///Represents the strongly named DataTable class.
  3964. ///</summary>
  3965. [global::System.Serializable()]
  3966. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3967. public partial class HistorySaleDataTable : global::System.Data.TypedTableBase<HistorySaleRow> {
  3968. private global::System.Data.DataColumn columnIDPartner;
  3969. private global::System.Data.DataColumn columnProductName;
  3970. private global::System.Data.DataColumn columnCountProduct;
  3971. private global::System.Data.DataColumn columnDateSale;
  3972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3974. public HistorySaleDataTable() {
  3975. this.TableName = "HistorySale";
  3976. this.BeginInit();
  3977. this.InitClass();
  3978. this.EndInit();
  3979. }
  3980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3981. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3982. internal HistorySaleDataTable(global::System.Data.DataTable table) {
  3983. this.TableName = table.TableName;
  3984. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3985. this.CaseSensitive = table.CaseSensitive;
  3986. }
  3987. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3988. this.Locale = table.Locale;
  3989. }
  3990. if ((table.Namespace != table.DataSet.Namespace)) {
  3991. this.Namespace = table.Namespace;
  3992. }
  3993. this.Prefix = table.Prefix;
  3994. this.MinimumCapacity = table.MinimumCapacity;
  3995. }
  3996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3998. protected HistorySaleDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3999. base(info, context) {
  4000. this.InitVars();
  4001. }
  4002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4004. public global::System.Data.DataColumn IDPartnerColumn {
  4005. get {
  4006. return this.columnIDPartner;
  4007. }
  4008. }
  4009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4011. public global::System.Data.DataColumn ProductNameColumn {
  4012. get {
  4013. return this.columnProductName;
  4014. }
  4015. }
  4016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4018. public global::System.Data.DataColumn CountProductColumn {
  4019. get {
  4020. return this.columnCountProduct;
  4021. }
  4022. }
  4023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4025. public global::System.Data.DataColumn DateSaleColumn {
  4026. get {
  4027. return this.columnDateSale;
  4028. }
  4029. }
  4030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4032. [global::System.ComponentModel.Browsable(false)]
  4033. public int Count {
  4034. get {
  4035. return this.Rows.Count;
  4036. }
  4037. }
  4038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4039. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4040. public HistorySaleRow this[int index] {
  4041. get {
  4042. return ((HistorySaleRow)(this.Rows[index]));
  4043. }
  4044. }
  4045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4046. public event HistorySaleRowChangeEventHandler HistorySaleRowChanging;
  4047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4048. public event HistorySaleRowChangeEventHandler HistorySaleRowChanged;
  4049. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4050. public event HistorySaleRowChangeEventHandler HistorySaleRowDeleting;
  4051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4052. public event HistorySaleRowChangeEventHandler HistorySaleRowDeleted;
  4053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4055. public void AddHistorySaleRow(HistorySaleRow row) {
  4056. this.Rows.Add(row);
  4057. }
  4058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4060. public HistorySaleRow AddHistorySaleRow(PartnerRow parentPartnerRowByFK_PartnerProducts_Partner1, string ProductName, int CountProduct, System.DateTime DateSale) {
  4061. HistorySaleRow rowHistorySaleRow = ((HistorySaleRow)(this.NewRow()));
  4062. object[] columnValuesArray = new object[] {
  4063. null,
  4064. ProductName,
  4065. CountProduct,
  4066. DateSale};
  4067. if ((parentPartnerRowByFK_PartnerProducts_Partner1 != null)) {
  4068. columnValuesArray[0] = parentPartnerRowByFK_PartnerProducts_Partner1[0];
  4069. }
  4070. rowHistorySaleRow.ItemArray = columnValuesArray;
  4071. this.Rows.Add(rowHistorySaleRow);
  4072. return rowHistorySaleRow;
  4073. }
  4074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4076. public override global::System.Data.DataTable Clone() {
  4077. HistorySaleDataTable cln = ((HistorySaleDataTable)(base.Clone()));
  4078. cln.InitVars();
  4079. return cln;
  4080. }
  4081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4083. protected override global::System.Data.DataTable CreateInstance() {
  4084. return new HistorySaleDataTable();
  4085. }
  4086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4088. internal void InitVars() {
  4089. this.columnIDPartner = base.Columns["IDPartner"];
  4090. this.columnProductName = base.Columns["ProductName"];
  4091. this.columnCountProduct = base.Columns["CountProduct"];
  4092. this.columnDateSale = base.Columns["DateSale"];
  4093. }
  4094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4095. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4096. private void InitClass() {
  4097. this.columnIDPartner = new global::System.Data.DataColumn("IDPartner", typeof(int), null, global::System.Data.MappingType.Element);
  4098. base.Columns.Add(this.columnIDPartner);
  4099. this.columnProductName = new global::System.Data.DataColumn("ProductName", typeof(string), null, global::System.Data.MappingType.Element);
  4100. base.Columns.Add(this.columnProductName);
  4101. this.columnCountProduct = new global::System.Data.DataColumn("CountProduct", typeof(int), null, global::System.Data.MappingType.Element);
  4102. base.Columns.Add(this.columnCountProduct);
  4103. this.columnDateSale = new global::System.Data.DataColumn("DateSale", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  4104. base.Columns.Add(this.columnDateSale);
  4105. this.columnProductName.MaxLength = 150;
  4106. }
  4107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4108. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4109. public HistorySaleRow NewHistorySaleRow() {
  4110. return ((HistorySaleRow)(this.NewRow()));
  4111. }
  4112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4113. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4114. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4115. return new HistorySaleRow(builder);
  4116. }
  4117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4119. protected override global::System.Type GetRowType() {
  4120. return typeof(HistorySaleRow);
  4121. }
  4122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4123. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4124. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4125. base.OnRowChanged(e);
  4126. if ((this.HistorySaleRowChanged != null)) {
  4127. this.HistorySaleRowChanged(this, new HistorySaleRowChangeEvent(((HistorySaleRow)(e.Row)), e.Action));
  4128. }
  4129. }
  4130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4132. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4133. base.OnRowChanging(e);
  4134. if ((this.HistorySaleRowChanging != null)) {
  4135. this.HistorySaleRowChanging(this, new HistorySaleRowChangeEvent(((HistorySaleRow)(e.Row)), e.Action));
  4136. }
  4137. }
  4138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4140. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4141. base.OnRowDeleted(e);
  4142. if ((this.HistorySaleRowDeleted != null)) {
  4143. this.HistorySaleRowDeleted(this, new HistorySaleRowChangeEvent(((HistorySaleRow)(e.Row)), e.Action));
  4144. }
  4145. }
  4146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4147. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4148. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4149. base.OnRowDeleting(e);
  4150. if ((this.HistorySaleRowDeleting != null)) {
  4151. this.HistorySaleRowDeleting(this, new HistorySaleRowChangeEvent(((HistorySaleRow)(e.Row)), e.Action));
  4152. }
  4153. }
  4154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4156. public void RemoveHistorySaleRow(HistorySaleRow row) {
  4157. this.Rows.Remove(row);
  4158. }
  4159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4161. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4162. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4163. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4164. AlfafloorGDVDataSet ds = new AlfafloorGDVDataSet();
  4165. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4166. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4167. any1.MinOccurs = new decimal(0);
  4168. any1.MaxOccurs = decimal.MaxValue;
  4169. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4170. sequence.Items.Add(any1);
  4171. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4172. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4173. any2.MinOccurs = new decimal(1);
  4174. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4175. sequence.Items.Add(any2);
  4176. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4177. attribute1.Name = "namespace";
  4178. attribute1.FixedValue = ds.Namespace;
  4179. type.Attributes.Add(attribute1);
  4180. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4181. attribute2.Name = "tableTypeName";
  4182. attribute2.FixedValue = "HistorySaleDataTable";
  4183. type.Attributes.Add(attribute2);
  4184. type.Particle = sequence;
  4185. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4186. if (xs.Contains(dsSchema.TargetNamespace)) {
  4187. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4188. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4189. try {
  4190. global::System.Xml.Schema.XmlSchema schema = null;
  4191. dsSchema.Write(s1);
  4192. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4193. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4194. s2.SetLength(0);
  4195. schema.Write(s2);
  4196. if ((s1.Length == s2.Length)) {
  4197. s1.Position = 0;
  4198. s2.Position = 0;
  4199. for (; ((s1.Position != s1.Length)
  4200. && (s1.ReadByte() == s2.ReadByte())); ) {
  4201. ;
  4202. }
  4203. if ((s1.Position == s1.Length)) {
  4204. return type;
  4205. }
  4206. }
  4207. }
  4208. }
  4209. finally {
  4210. if ((s1 != null)) {
  4211. s1.Close();
  4212. }
  4213. if ((s2 != null)) {
  4214. s2.Close();
  4215. }
  4216. }
  4217. }
  4218. xs.Add(dsSchema);
  4219. return type;
  4220. }
  4221. }
  4222. /// <summary>
  4223. ///Represents strongly named DataRow class.
  4224. ///</summary>
  4225. public partial class CityRow : global::System.Data.DataRow {
  4226. private CityDataTable tableCity;
  4227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4229. internal CityRow(global::System.Data.DataRowBuilder rb) :
  4230. base(rb) {
  4231. this.tableCity = ((CityDataTable)(this.Table));
  4232. }
  4233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4235. public int IDCity {
  4236. get {
  4237. return ((int)(this[this.tableCity.IDCityColumn]));
  4238. }
  4239. set {
  4240. this[this.tableCity.IDCityColumn] = value;
  4241. }
  4242. }
  4243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4245. public string City {
  4246. get {
  4247. try {
  4248. return ((string)(this[this.tableCity.CityColumn]));
  4249. }
  4250. catch (global::System.InvalidCastException e) {
  4251. throw new global::System.Data.StrongTypingException("The value for column \'City\' in table \'City\' is DBNull.", e);
  4252. }
  4253. }
  4254. set {
  4255. this[this.tableCity.CityColumn] = value;
  4256. }
  4257. }
  4258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4260. public bool IsCityNull() {
  4261. return this.IsNull(this.tableCity.CityColumn);
  4262. }
  4263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4265. public void SetCityNull() {
  4266. this[this.tableCity.CityColumn] = global::System.Convert.DBNull;
  4267. }
  4268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4270. public PartnerRow[] GetPartnerRows() {
  4271. if ((this.Table.ChildRelations["FK_Partner_City"] == null)) {
  4272. return new PartnerRow[0];
  4273. }
  4274. else {
  4275. return ((PartnerRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Partner_City"])));
  4276. }
  4277. }
  4278. }
  4279. /// <summary>
  4280. ///Represents strongly named DataRow class.
  4281. ///</summary>
  4282. public partial class ManagerRow : global::System.Data.DataRow {
  4283. private ManagerDataTable tableManager;
  4284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4286. internal ManagerRow(global::System.Data.DataRowBuilder rb) :
  4287. base(rb) {
  4288. this.tableManager = ((ManagerDataTable)(this.Table));
  4289. }
  4290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4291. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4292. public int IDManager {
  4293. get {
  4294. return ((int)(this[this.tableManager.IDManagerColumn]));
  4295. }
  4296. set {
  4297. this[this.tableManager.IDManagerColumn] = value;
  4298. }
  4299. }
  4300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4302. public string Surname {
  4303. get {
  4304. try {
  4305. return ((string)(this[this.tableManager.SurnameColumn]));
  4306. }
  4307. catch (global::System.InvalidCastException e) {
  4308. throw new global::System.Data.StrongTypingException("The value for column \'Surname\' in table \'Manager\' is DBNull.", e);
  4309. }
  4310. }
  4311. set {
  4312. this[this.tableManager.SurnameColumn] = value;
  4313. }
  4314. }
  4315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4317. public string Name {
  4318. get {
  4319. try {
  4320. return ((string)(this[this.tableManager.NameColumn]));
  4321. }
  4322. catch (global::System.InvalidCastException e) {
  4323. throw new global::System.Data.StrongTypingException("The value for column \'Name\' in table \'Manager\' is DBNull.", e);
  4324. }
  4325. }
  4326. set {
  4327. this[this.tableManager.NameColumn] = value;
  4328. }
  4329. }
  4330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4332. public string Patronomyc {
  4333. get {
  4334. try {
  4335. return ((string)(this[this.tableManager.PatronomycColumn]));
  4336. }
  4337. catch (global::System.InvalidCastException e) {
  4338. throw new global::System.Data.StrongTypingException("The value for column \'Patronomyc\' in table \'Manager\' is DBNull.", e);
  4339. }
  4340. }
  4341. set {
  4342. this[this.tableManager.PatronomycColumn] = value;
  4343. }
  4344. }
  4345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4347. public string Login {
  4348. get {
  4349. try {
  4350. return ((string)(this[this.tableManager.LoginColumn]));
  4351. }
  4352. catch (global::System.InvalidCastException e) {
  4353. throw new global::System.Data.StrongTypingException("The value for column \'Login\' in table \'Manager\' is DBNull.", e);
  4354. }
  4355. }
  4356. set {
  4357. this[this.tableManager.LoginColumn] = value;
  4358. }
  4359. }
  4360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4362. public string Password {
  4363. get {
  4364. try {
  4365. return ((string)(this[this.tableManager.PasswordColumn]));
  4366. }
  4367. catch (global::System.InvalidCastException e) {
  4368. throw new global::System.Data.StrongTypingException("The value for column \'Password\' in table \'Manager\' is DBNull.", e);
  4369. }
  4370. }
  4371. set {
  4372. this[this.tableManager.PasswordColumn] = value;
  4373. }
  4374. }
  4375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4377. public string Photo {
  4378. get {
  4379. try {
  4380. return ((string)(this[this.tableManager.PhotoColumn]));
  4381. }
  4382. catch (global::System.InvalidCastException e) {
  4383. throw new global::System.Data.StrongTypingException("The value for column \'Photo\' in table \'Manager\' is DBNull.", e);
  4384. }
  4385. }
  4386. set {
  4387. this[this.tableManager.PhotoColumn] = value;
  4388. }
  4389. }
  4390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4392. public bool IsSurnameNull() {
  4393. return this.IsNull(this.tableManager.SurnameColumn);
  4394. }
  4395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4397. public void SetSurnameNull() {
  4398. this[this.tableManager.SurnameColumn] = global::System.Convert.DBNull;
  4399. }
  4400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4402. public bool IsNameNull() {
  4403. return this.IsNull(this.tableManager.NameColumn);
  4404. }
  4405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4407. public void SetNameNull() {
  4408. this[this.tableManager.NameColumn] = global::System.Convert.DBNull;
  4409. }
  4410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4412. public bool IsPatronomycNull() {
  4413. return this.IsNull(this.tableManager.PatronomycColumn);
  4414. }
  4415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4416. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4417. public void SetPatronomycNull() {
  4418. this[this.tableManager.PatronomycColumn] = global::System.Convert.DBNull;
  4419. }
  4420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4422. public bool IsLoginNull() {
  4423. return this.IsNull(this.tableManager.LoginColumn);
  4424. }
  4425. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4427. public void SetLoginNull() {
  4428. this[this.tableManager.LoginColumn] = global::System.Convert.DBNull;
  4429. }
  4430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4432. public bool IsPasswordNull() {
  4433. return this.IsNull(this.tableManager.PasswordColumn);
  4434. }
  4435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4437. public void SetPasswordNull() {
  4438. this[this.tableManager.PasswordColumn] = global::System.Convert.DBNull;
  4439. }
  4440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4442. public bool IsPhotoNull() {
  4443. return this.IsNull(this.tableManager.PhotoColumn);
  4444. }
  4445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4446. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4447. public void SetPhotoNull() {
  4448. this[this.tableManager.PhotoColumn] = global::System.Convert.DBNull;
  4449. }
  4450. }
  4451. /// <summary>
  4452. ///Represents strongly named DataRow class.
  4453. ///</summary>
  4454. public partial class PartnerRow : global::System.Data.DataRow {
  4455. private PartnerDataTable tablePartner;
  4456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4458. internal PartnerRow(global::System.Data.DataRowBuilder rb) :
  4459. base(rb) {
  4460. this.tablePartner = ((PartnerDataTable)(this.Table));
  4461. }
  4462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4464. public int IDPartner {
  4465. get {
  4466. return ((int)(this[this.tablePartner.IDPartnerColumn]));
  4467. }
  4468. set {
  4469. this[this.tablePartner.IDPartnerColumn] = value;
  4470. }
  4471. }
  4472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4474. public int IDTypePartner {
  4475. get {
  4476. return ((int)(this[this.tablePartner.IDTypePartnerColumn]));
  4477. }
  4478. set {
  4479. this[this.tablePartner.IDTypePartnerColumn] = value;
  4480. }
  4481. }
  4482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4484. public string Namepartner {
  4485. get {
  4486. try {
  4487. return ((string)(this[this.tablePartner.NamepartnerColumn]));
  4488. }
  4489. catch (global::System.InvalidCastException e) {
  4490. throw new global::System.Data.StrongTypingException("The value for column \'Namepartner\' in table \'Partner\' is DBNull.", e);
  4491. }
  4492. }
  4493. set {
  4494. this[this.tablePartner.NamepartnerColumn] = value;
  4495. }
  4496. }
  4497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4499. public string Surname {
  4500. get {
  4501. try {
  4502. return ((string)(this[this.tablePartner.SurnameColumn]));
  4503. }
  4504. catch (global::System.InvalidCastException e) {
  4505. throw new global::System.Data.StrongTypingException("The value for column \'Surname\' in table \'Partner\' is DBNull.", e);
  4506. }
  4507. }
  4508. set {
  4509. this[this.tablePartner.SurnameColumn] = value;
  4510. }
  4511. }
  4512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4514. public string Name {
  4515. get {
  4516. try {
  4517. return ((string)(this[this.tablePartner.NameColumn]));
  4518. }
  4519. catch (global::System.InvalidCastException e) {
  4520. throw new global::System.Data.StrongTypingException("The value for column \'Name\' in table \'Partner\' is DBNull.", e);
  4521. }
  4522. }
  4523. set {
  4524. this[this.tablePartner.NameColumn] = value;
  4525. }
  4526. }
  4527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4529. public string Patronomyc {
  4530. get {
  4531. try {
  4532. return ((string)(this[this.tablePartner.PatronomycColumn]));
  4533. }
  4534. catch (global::System.InvalidCastException e) {
  4535. throw new global::System.Data.StrongTypingException("The value for column \'Patronomyc\' in table \'Partner\' is DBNull.", e);
  4536. }
  4537. }
  4538. set {
  4539. this[this.tablePartner.PatronomycColumn] = value;
  4540. }
  4541. }
  4542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4544. public string Email {
  4545. get {
  4546. try {
  4547. return ((string)(this[this.tablePartner.EmailColumn]));
  4548. }
  4549. catch (global::System.InvalidCastException e) {
  4550. throw new global::System.Data.StrongTypingException("The value for column \'Email\' in table \'Partner\' is DBNull.", e);
  4551. }
  4552. }
  4553. set {
  4554. this[this.tablePartner.EmailColumn] = value;
  4555. }
  4556. }
  4557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4559. public string Phone {
  4560. get {
  4561. try {
  4562. return ((string)(this[this.tablePartner.PhoneColumn]));
  4563. }
  4564. catch (global::System.InvalidCastException e) {
  4565. throw new global::System.Data.StrongTypingException("The value for column \'Phone\' in table \'Partner\' is DBNull.", e);
  4566. }
  4567. }
  4568. set {
  4569. this[this.tablePartner.PhoneColumn] = value;
  4570. }
  4571. }
  4572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4574. public int IDPostCode {
  4575. get {
  4576. try {
  4577. return ((int)(this[this.tablePartner.IDPostCodeColumn]));
  4578. }
  4579. catch (global::System.InvalidCastException e) {
  4580. throw new global::System.Data.StrongTypingException("The value for column \'IDPostCode\' in table \'Partner\' is DBNull.", e);
  4581. }
  4582. }
  4583. set {
  4584. this[this.tablePartner.IDPostCodeColumn] = value;
  4585. }
  4586. }
  4587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4589. public int IDRegion {
  4590. get {
  4591. try {
  4592. return ((int)(this[this.tablePartner.IDRegionColumn]));
  4593. }
  4594. catch (global::System.InvalidCastException e) {
  4595. throw new global::System.Data.StrongTypingException("The value for column \'IDRegion\' in table \'Partner\' is DBNull.", e);
  4596. }
  4597. }
  4598. set {
  4599. this[this.tablePartner.IDRegionColumn] = value;
  4600. }
  4601. }
  4602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4604. public int IDCity {
  4605. get {
  4606. try {
  4607. return ((int)(this[this.tablePartner.IDCityColumn]));
  4608. }
  4609. catch (global::System.InvalidCastException e) {
  4610. throw new global::System.Data.StrongTypingException("The value for column \'IDCity\' in table \'Partner\' is DBNull.", e);
  4611. }
  4612. }
  4613. set {
  4614. this[this.tablePartner.IDCityColumn] = value;
  4615. }
  4616. }
  4617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4619. public int IDStreet {
  4620. get {
  4621. try {
  4622. return ((int)(this[this.tablePartner.IDStreetColumn]));
  4623. }
  4624. catch (global::System.InvalidCastException e) {
  4625. throw new global::System.Data.StrongTypingException("The value for column \'IDStreet\' in table \'Partner\' is DBNull.", e);
  4626. }
  4627. }
  4628. set {
  4629. this[this.tablePartner.IDStreetColumn] = value;
  4630. }
  4631. }
  4632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4634. public int House {
  4635. get {
  4636. try {
  4637. return ((int)(this[this.tablePartner.HouseColumn]));
  4638. }
  4639. catch (global::System.InvalidCastException e) {
  4640. throw new global::System.Data.StrongTypingException("The value for column \'House\' in table \'Partner\' is DBNull.", e);
  4641. }
  4642. }
  4643. set {
  4644. this[this.tablePartner.HouseColumn] = value;
  4645. }
  4646. }
  4647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4649. public string INN {
  4650. get {
  4651. try {
  4652. return ((string)(this[this.tablePartner.INNColumn]));
  4653. }
  4654. catch (global::System.InvalidCastException e) {
  4655. throw new global::System.Data.StrongTypingException("The value for column \'INN\' in table \'Partner\' is DBNull.", e);
  4656. }
  4657. }
  4658. set {
  4659. this[this.tablePartner.INNColumn] = value;
  4660. }
  4661. }
  4662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4664. public int Rating {
  4665. get {
  4666. try {
  4667. return ((int)(this[this.tablePartner.RatingColumn]));
  4668. }
  4669. catch (global::System.InvalidCastException e) {
  4670. throw new global::System.Data.StrongTypingException("The value for column \'Rating\' in table \'Partner\' is DBNull.", e);
  4671. }
  4672. }
  4673. set {
  4674. this[this.tablePartner.RatingColumn] = value;
  4675. }
  4676. }
  4677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4678. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4679. public CityRow CityRow {
  4680. get {
  4681. return ((CityRow)(this.GetParentRow(this.Table.ParentRelations["FK_Partner_City"])));
  4682. }
  4683. set {
  4684. this.SetParentRow(value, this.Table.ParentRelations["FK_Partner_City"]);
  4685. }
  4686. }
  4687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4689. public PostCodeRow PostCodeRow {
  4690. get {
  4691. return ((PostCodeRow)(this.GetParentRow(this.Table.ParentRelations["FK_Partner_PostCode"])));
  4692. }
  4693. set {
  4694. this.SetParentRow(value, this.Table.ParentRelations["FK_Partner_PostCode"]);
  4695. }
  4696. }
  4697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4699. public RegionRow RegionRow {
  4700. get {
  4701. return ((RegionRow)(this.GetParentRow(this.Table.ParentRelations["FK_Partner_Region"])));
  4702. }
  4703. set {
  4704. this.SetParentRow(value, this.Table.ParentRelations["FK_Partner_Region"]);
  4705. }
  4706. }
  4707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4709. public StreetRow StreetRow {
  4710. get {
  4711. return ((StreetRow)(this.GetParentRow(this.Table.ParentRelations["FK_Partner_Street"])));
  4712. }
  4713. set {
  4714. this.SetParentRow(value, this.Table.ParentRelations["FK_Partner_Street"]);
  4715. }
  4716. }
  4717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4719. public TypePartnerRow TypePartnerRow {
  4720. get {
  4721. return ((TypePartnerRow)(this.GetParentRow(this.Table.ParentRelations["FK_Partner_TypePartner"])));
  4722. }
  4723. set {
  4724. this.SetParentRow(value, this.Table.ParentRelations["FK_Partner_TypePartner"]);
  4725. }
  4726. }
  4727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4729. public bool IsNamepartnerNull() {
  4730. return this.IsNull(this.tablePartner.NamepartnerColumn);
  4731. }
  4732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4734. public void SetNamepartnerNull() {
  4735. this[this.tablePartner.NamepartnerColumn] = global::System.Convert.DBNull;
  4736. }
  4737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4739. public bool IsSurnameNull() {
  4740. return this.IsNull(this.tablePartner.SurnameColumn);
  4741. }
  4742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4744. public void SetSurnameNull() {
  4745. this[this.tablePartner.SurnameColumn] = global::System.Convert.DBNull;
  4746. }
  4747. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4748. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4749. public bool IsNameNull() {
  4750. return this.IsNull(this.tablePartner.NameColumn);
  4751. }
  4752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4754. public void SetNameNull() {
  4755. this[this.tablePartner.NameColumn] = global::System.Convert.DBNull;
  4756. }
  4757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4759. public bool IsPatronomycNull() {
  4760. return this.IsNull(this.tablePartner.PatronomycColumn);
  4761. }
  4762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4764. public void SetPatronomycNull() {
  4765. this[this.tablePartner.PatronomycColumn] = global::System.Convert.DBNull;
  4766. }
  4767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4769. public bool IsEmailNull() {
  4770. return this.IsNull(this.tablePartner.EmailColumn);
  4771. }
  4772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4774. public void SetEmailNull() {
  4775. this[this.tablePartner.EmailColumn] = global::System.Convert.DBNull;
  4776. }
  4777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4779. public bool IsPhoneNull() {
  4780. return this.IsNull(this.tablePartner.PhoneColumn);
  4781. }
  4782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4784. public void SetPhoneNull() {
  4785. this[this.tablePartner.PhoneColumn] = global::System.Convert.DBNull;
  4786. }
  4787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4788. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4789. public bool IsIDPostCodeNull() {
  4790. return this.IsNull(this.tablePartner.IDPostCodeColumn);
  4791. }
  4792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4794. public void SetIDPostCodeNull() {
  4795. this[this.tablePartner.IDPostCodeColumn] = global::System.Convert.DBNull;
  4796. }
  4797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4799. public bool IsIDRegionNull() {
  4800. return this.IsNull(this.tablePartner.IDRegionColumn);
  4801. }
  4802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4804. public void SetIDRegionNull() {
  4805. this[this.tablePartner.IDRegionColumn] = global::System.Convert.DBNull;
  4806. }
  4807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4809. public bool IsIDCityNull() {
  4810. return this.IsNull(this.tablePartner.IDCityColumn);
  4811. }
  4812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4814. public void SetIDCityNull() {
  4815. this[this.tablePartner.IDCityColumn] = global::System.Convert.DBNull;
  4816. }
  4817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4818. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4819. public bool IsIDStreetNull() {
  4820. return this.IsNull(this.tablePartner.IDStreetColumn);
  4821. }
  4822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4824. public void SetIDStreetNull() {
  4825. this[this.tablePartner.IDStreetColumn] = global::System.Convert.DBNull;
  4826. }
  4827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4829. public bool IsHouseNull() {
  4830. return this.IsNull(this.tablePartner.HouseColumn);
  4831. }
  4832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4834. public void SetHouseNull() {
  4835. this[this.tablePartner.HouseColumn] = global::System.Convert.DBNull;
  4836. }
  4837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4839. public bool IsINNNull() {
  4840. return this.IsNull(this.tablePartner.INNColumn);
  4841. }
  4842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4844. public void SetINNNull() {
  4845. this[this.tablePartner.INNColumn] = global::System.Convert.DBNull;
  4846. }
  4847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4849. public bool IsRatingNull() {
  4850. return this.IsNull(this.tablePartner.RatingColumn);
  4851. }
  4852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4854. public void SetRatingNull() {
  4855. this[this.tablePartner.RatingColumn] = global::System.Convert.DBNull;
  4856. }
  4857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4859. public PartnerProductsRow[] GetPartnerProductsRows() {
  4860. if ((this.Table.ChildRelations["FK_PartnerProducts_Partner"] == null)) {
  4861. return new PartnerProductsRow[0];
  4862. }
  4863. else {
  4864. return ((PartnerProductsRow[])(base.GetChildRows(this.Table.ChildRelations["FK_PartnerProducts_Partner"])));
  4865. }
  4866. }
  4867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4868. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4869. public HistorySaleRow[] GetHistorySaleRows() {
  4870. if ((this.Table.ChildRelations["FK_PartnerProducts_Partner1"] == null)) {
  4871. return new HistorySaleRow[0];
  4872. }
  4873. else {
  4874. return ((HistorySaleRow[])(base.GetChildRows(this.Table.ChildRelations["FK_PartnerProducts_Partner1"])));
  4875. }
  4876. }
  4877. }
  4878. /// <summary>
  4879. ///Represents strongly named DataRow class.
  4880. ///</summary>
  4881. public partial class PartnerProductsRow : global::System.Data.DataRow {
  4882. private PartnerProductsDataTable tablePartnerProducts;
  4883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4885. internal PartnerProductsRow(global::System.Data.DataRowBuilder rb) :
  4886. base(rb) {
  4887. this.tablePartnerProducts = ((PartnerProductsDataTable)(this.Table));
  4888. }
  4889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4891. public int IDPartnerProduct {
  4892. get {
  4893. return ((int)(this[this.tablePartnerProducts.IDPartnerProductColumn]));
  4894. }
  4895. set {
  4896. this[this.tablePartnerProducts.IDPartnerProductColumn] = value;
  4897. }
  4898. }
  4899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4901. public int IDProduct {
  4902. get {
  4903. try {
  4904. return ((int)(this[this.tablePartnerProducts.IDProductColumn]));
  4905. }
  4906. catch (global::System.InvalidCastException e) {
  4907. throw new global::System.Data.StrongTypingException("The value for column \'IDProduct\' in table \'PartnerProducts\' is DBNull.", e);
  4908. }
  4909. }
  4910. set {
  4911. this[this.tablePartnerProducts.IDProductColumn] = value;
  4912. }
  4913. }
  4914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4915. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4916. public int IDPartner {
  4917. get {
  4918. try {
  4919. return ((int)(this[this.tablePartnerProducts.IDPartnerColumn]));
  4920. }
  4921. catch (global::System.InvalidCastException e) {
  4922. throw new global::System.Data.StrongTypingException("The value for column \'IDPartner\' in table \'PartnerProducts\' is DBNull.", e);
  4923. }
  4924. }
  4925. set {
  4926. this[this.tablePartnerProducts.IDPartnerColumn] = value;
  4927. }
  4928. }
  4929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4931. public int CountProduct {
  4932. get {
  4933. try {
  4934. return ((int)(this[this.tablePartnerProducts.CountProductColumn]));
  4935. }
  4936. catch (global::System.InvalidCastException e) {
  4937. throw new global::System.Data.StrongTypingException("The value for column \'CountProduct\' in table \'PartnerProducts\' is DBNull.", e);
  4938. }
  4939. }
  4940. set {
  4941. this[this.tablePartnerProducts.CountProductColumn] = value;
  4942. }
  4943. }
  4944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4946. public System.DateTime DateSale {
  4947. get {
  4948. try {
  4949. return ((global::System.DateTime)(this[this.tablePartnerProducts.DateSaleColumn]));
  4950. }
  4951. catch (global::System.InvalidCastException e) {
  4952. throw new global::System.Data.StrongTypingException("The value for column \'DateSale\' in table \'PartnerProducts\' is DBNull.", e);
  4953. }
  4954. }
  4955. set {
  4956. this[this.tablePartnerProducts.DateSaleColumn] = value;
  4957. }
  4958. }
  4959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4961. public PartnerRow PartnerRow {
  4962. get {
  4963. return ((PartnerRow)(this.GetParentRow(this.Table.ParentRelations["FK_PartnerProducts_Partner"])));
  4964. }
  4965. set {
  4966. this.SetParentRow(value, this.Table.ParentRelations["FK_PartnerProducts_Partner"]);
  4967. }
  4968. }
  4969. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4970. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4971. public ProductRow ProductRow {
  4972. get {
  4973. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_PartnerProducts_Product"])));
  4974. }
  4975. set {
  4976. this.SetParentRow(value, this.Table.ParentRelations["FK_PartnerProducts_Product"]);
  4977. }
  4978. }
  4979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4981. public bool IsIDProductNull() {
  4982. return this.IsNull(this.tablePartnerProducts.IDProductColumn);
  4983. }
  4984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4986. public void SetIDProductNull() {
  4987. this[this.tablePartnerProducts.IDProductColumn] = global::System.Convert.DBNull;
  4988. }
  4989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4991. public bool IsIDPartnerNull() {
  4992. return this.IsNull(this.tablePartnerProducts.IDPartnerColumn);
  4993. }
  4994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4996. public void SetIDPartnerNull() {
  4997. this[this.tablePartnerProducts.IDPartnerColumn] = global::System.Convert.DBNull;
  4998. }
  4999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5001. public bool IsCountProductNull() {
  5002. return this.IsNull(this.tablePartnerProducts.CountProductColumn);
  5003. }
  5004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5006. public void SetCountProductNull() {
  5007. this[this.tablePartnerProducts.CountProductColumn] = global::System.Convert.DBNull;
  5008. }
  5009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5011. public bool IsDateSaleNull() {
  5012. return this.IsNull(this.tablePartnerProducts.DateSaleColumn);
  5013. }
  5014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5016. public void SetDateSaleNull() {
  5017. this[this.tablePartnerProducts.DateSaleColumn] = global::System.Convert.DBNull;
  5018. }
  5019. }
  5020. /// <summary>
  5021. ///Represents strongly named DataRow class.
  5022. ///</summary>
  5023. public partial class PostCodeRow : global::System.Data.DataRow {
  5024. private PostCodeDataTable tablePostCode;
  5025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5027. internal PostCodeRow(global::System.Data.DataRowBuilder rb) :
  5028. base(rb) {
  5029. this.tablePostCode = ((PostCodeDataTable)(this.Table));
  5030. }
  5031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5032. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5033. public int IDPostCode {
  5034. get {
  5035. return ((int)(this[this.tablePostCode.IDPostCodeColumn]));
  5036. }
  5037. set {
  5038. this[this.tablePostCode.IDPostCodeColumn] = value;
  5039. }
  5040. }
  5041. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5042. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5043. public int PostCode {
  5044. get {
  5045. try {
  5046. return ((int)(this[this.tablePostCode.PostCodeColumn]));
  5047. }
  5048. catch (global::System.InvalidCastException e) {
  5049. throw new global::System.Data.StrongTypingException("The value for column \'PostCode\' in table \'PostCode\' is DBNull.", e);
  5050. }
  5051. }
  5052. set {
  5053. this[this.tablePostCode.PostCodeColumn] = value;
  5054. }
  5055. }
  5056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5057. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5058. public bool IsPostCodeNull() {
  5059. return this.IsNull(this.tablePostCode.PostCodeColumn);
  5060. }
  5061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5063. public void SetPostCodeNull() {
  5064. this[this.tablePostCode.PostCodeColumn] = global::System.Convert.DBNull;
  5065. }
  5066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5068. public PartnerRow[] GetPartnerRows() {
  5069. if ((this.Table.ChildRelations["FK_Partner_PostCode"] == null)) {
  5070. return new PartnerRow[0];
  5071. }
  5072. else {
  5073. return ((PartnerRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Partner_PostCode"])));
  5074. }
  5075. }
  5076. }
  5077. /// <summary>
  5078. ///Represents strongly named DataRow class.
  5079. ///</summary>
  5080. public partial class ProductRow : global::System.Data.DataRow {
  5081. private ProductDataTable tableProduct;
  5082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5084. internal ProductRow(global::System.Data.DataRowBuilder rb) :
  5085. base(rb) {
  5086. this.tableProduct = ((ProductDataTable)(this.Table));
  5087. }
  5088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5090. public int IDProduct {
  5091. get {
  5092. return ((int)(this[this.tableProduct.IDProductColumn]));
  5093. }
  5094. set {
  5095. this[this.tableProduct.IDProductColumn] = value;
  5096. }
  5097. }
  5098. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5099. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5100. public int IDProductType {
  5101. get {
  5102. try {
  5103. return ((int)(this[this.tableProduct.IDProductTypeColumn]));
  5104. }
  5105. catch (global::System.InvalidCastException e) {
  5106. throw new global::System.Data.StrongTypingException("The value for column \'IDProductType\' in table \'Product\' is DBNull.", e);
  5107. }
  5108. }
  5109. set {
  5110. this[this.tableProduct.IDProductTypeColumn] = value;
  5111. }
  5112. }
  5113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5115. public string ProductName {
  5116. get {
  5117. try {
  5118. return ((string)(this[this.tableProduct.ProductNameColumn]));
  5119. }
  5120. catch (global::System.InvalidCastException e) {
  5121. throw new global::System.Data.StrongTypingException("The value for column \'ProductName\' in table \'Product\' is DBNull.", e);
  5122. }
  5123. }
  5124. set {
  5125. this[this.tableProduct.ProductNameColumn] = value;
  5126. }
  5127. }
  5128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5130. public string Article {
  5131. get {
  5132. try {
  5133. return ((string)(this[this.tableProduct.ArticleColumn]));
  5134. }
  5135. catch (global::System.InvalidCastException e) {
  5136. throw new global::System.Data.StrongTypingException("The value for column \'Article\' in table \'Product\' is DBNull.", e);
  5137. }
  5138. }
  5139. set {
  5140. this[this.tableProduct.ArticleColumn] = value;
  5141. }
  5142. }
  5143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5145. public decimal Cost {
  5146. get {
  5147. try {
  5148. return ((decimal)(this[this.tableProduct.CostColumn]));
  5149. }
  5150. catch (global::System.InvalidCastException e) {
  5151. throw new global::System.Data.StrongTypingException("The value for column \'Cost\' in table \'Product\' is DBNull.", e);
  5152. }
  5153. }
  5154. set {
  5155. this[this.tableProduct.CostColumn] = value;
  5156. }
  5157. }
  5158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5160. public ProductTypeRow ProductTypeRow {
  5161. get {
  5162. return ((ProductTypeRow)(this.GetParentRow(this.Table.ParentRelations["FK_Product_ProductType"])));
  5163. }
  5164. set {
  5165. this.SetParentRow(value, this.Table.ParentRelations["FK_Product_ProductType"]);
  5166. }
  5167. }
  5168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5170. public bool IsIDProductTypeNull() {
  5171. return this.IsNull(this.tableProduct.IDProductTypeColumn);
  5172. }
  5173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5175. public void SetIDProductTypeNull() {
  5176. this[this.tableProduct.IDProductTypeColumn] = global::System.Convert.DBNull;
  5177. }
  5178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5180. public bool IsProductNameNull() {
  5181. return this.IsNull(this.tableProduct.ProductNameColumn);
  5182. }
  5183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5185. public void SetProductNameNull() {
  5186. this[this.tableProduct.ProductNameColumn] = global::System.Convert.DBNull;
  5187. }
  5188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5190. public bool IsArticleNull() {
  5191. return this.IsNull(this.tableProduct.ArticleColumn);
  5192. }
  5193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5195. public void SetArticleNull() {
  5196. this[this.tableProduct.ArticleColumn] = global::System.Convert.DBNull;
  5197. }
  5198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5200. public bool IsCostNull() {
  5201. return this.IsNull(this.tableProduct.CostColumn);
  5202. }
  5203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5205. public void SetCostNull() {
  5206. this[this.tableProduct.CostColumn] = global::System.Convert.DBNull;
  5207. }
  5208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5210. public PartnerProductsRow[] GetPartnerProductsRows() {
  5211. if ((this.Table.ChildRelations["FK_PartnerProducts_Product"] == null)) {
  5212. return new PartnerProductsRow[0];
  5213. }
  5214. else {
  5215. return ((PartnerProductsRow[])(base.GetChildRows(this.Table.ChildRelations["FK_PartnerProducts_Product"])));
  5216. }
  5217. }
  5218. }
  5219. /// <summary>
  5220. ///Represents strongly named DataRow class.
  5221. ///</summary>
  5222. public partial class ProductTypeRow : global::System.Data.DataRow {
  5223. private ProductTypeDataTable tableProductType;
  5224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5226. internal ProductTypeRow(global::System.Data.DataRowBuilder rb) :
  5227. base(rb) {
  5228. this.tableProductType = ((ProductTypeDataTable)(this.Table));
  5229. }
  5230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5232. public int IDProductType {
  5233. get {
  5234. return ((int)(this[this.tableProductType.IDProductTypeColumn]));
  5235. }
  5236. set {
  5237. this[this.tableProductType.IDProductTypeColumn] = value;
  5238. }
  5239. }
  5240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5242. public string ProductType {
  5243. get {
  5244. try {
  5245. return ((string)(this[this.tableProductType.ProductTypeColumn]));
  5246. }
  5247. catch (global::System.InvalidCastException e) {
  5248. throw new global::System.Data.StrongTypingException("The value for column \'ProductType\' in table \'ProductType\' is DBNull.", e);
  5249. }
  5250. }
  5251. set {
  5252. this[this.tableProductType.ProductTypeColumn] = value;
  5253. }
  5254. }
  5255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5257. public double Сoefficient {
  5258. get {
  5259. try {
  5260. return ((double)(this[this.tableProductType.СoefficientColumn]));
  5261. }
  5262. catch (global::System.InvalidCastException e) {
  5263. throw new global::System.Data.StrongTypingException("The value for column \'Сoefficient\' in table \'ProductType\' is DBNull.", e);
  5264. }
  5265. }
  5266. set {
  5267. this[this.tableProductType.СoefficientColumn] = value;
  5268. }
  5269. }
  5270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5271. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5272. public bool IsProductTypeNull() {
  5273. return this.IsNull(this.tableProductType.ProductTypeColumn);
  5274. }
  5275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5277. public void SetProductTypeNull() {
  5278. this[this.tableProductType.ProductTypeColumn] = global::System.Convert.DBNull;
  5279. }
  5280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5282. public bool IsСoefficientNull() {
  5283. return this.IsNull(this.tableProductType.СoefficientColumn);
  5284. }
  5285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5287. public void SetСoefficientNull() {
  5288. this[this.tableProductType.СoefficientColumn] = global::System.Convert.DBNull;
  5289. }
  5290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5291. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5292. public ProductRow[] GetProductRows() {
  5293. if ((this.Table.ChildRelations["FK_Product_ProductType"] == null)) {
  5294. return new ProductRow[0];
  5295. }
  5296. else {
  5297. return ((ProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Product_ProductType"])));
  5298. }
  5299. }
  5300. }
  5301. /// <summary>
  5302. ///Represents strongly named DataRow class.
  5303. ///</summary>
  5304. public partial class RegionRow : global::System.Data.DataRow {
  5305. private RegionDataTable tableRegion;
  5306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5308. internal RegionRow(global::System.Data.DataRowBuilder rb) :
  5309. base(rb) {
  5310. this.tableRegion = ((RegionDataTable)(this.Table));
  5311. }
  5312. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5313. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5314. public int IDRegion {
  5315. get {
  5316. return ((int)(this[this.tableRegion.IDRegionColumn]));
  5317. }
  5318. set {
  5319. this[this.tableRegion.IDRegionColumn] = value;
  5320. }
  5321. }
  5322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5324. public string Region {
  5325. get {
  5326. try {
  5327. return ((string)(this[this.tableRegion.RegionColumn]));
  5328. }
  5329. catch (global::System.InvalidCastException e) {
  5330. throw new global::System.Data.StrongTypingException("The value for column \'Region\' in table \'Region\' is DBNull.", e);
  5331. }
  5332. }
  5333. set {
  5334. this[this.tableRegion.RegionColumn] = value;
  5335. }
  5336. }
  5337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5339. public bool IsRegionNull() {
  5340. return this.IsNull(this.tableRegion.RegionColumn);
  5341. }
  5342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5344. public void SetRegionNull() {
  5345. this[this.tableRegion.RegionColumn] = global::System.Convert.DBNull;
  5346. }
  5347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5349. public PartnerRow[] GetPartnerRows() {
  5350. if ((this.Table.ChildRelations["FK_Partner_Region"] == null)) {
  5351. return new PartnerRow[0];
  5352. }
  5353. else {
  5354. return ((PartnerRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Partner_Region"])));
  5355. }
  5356. }
  5357. }
  5358. /// <summary>
  5359. ///Represents strongly named DataRow class.
  5360. ///</summary>
  5361. public partial class StreetRow : global::System.Data.DataRow {
  5362. private StreetDataTable tableStreet;
  5363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5365. internal StreetRow(global::System.Data.DataRowBuilder rb) :
  5366. base(rb) {
  5367. this.tableStreet = ((StreetDataTable)(this.Table));
  5368. }
  5369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5371. public int IDStreet {
  5372. get {
  5373. return ((int)(this[this.tableStreet.IDStreetColumn]));
  5374. }
  5375. set {
  5376. this[this.tableStreet.IDStreetColumn] = value;
  5377. }
  5378. }
  5379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5381. public string Street {
  5382. get {
  5383. try {
  5384. return ((string)(this[this.tableStreet.StreetColumn]));
  5385. }
  5386. catch (global::System.InvalidCastException e) {
  5387. throw new global::System.Data.StrongTypingException("The value for column \'Street\' in table \'Street\' is DBNull.", e);
  5388. }
  5389. }
  5390. set {
  5391. this[this.tableStreet.StreetColumn] = value;
  5392. }
  5393. }
  5394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5396. public bool IsStreetNull() {
  5397. return this.IsNull(this.tableStreet.StreetColumn);
  5398. }
  5399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5401. public void SetStreetNull() {
  5402. this[this.tableStreet.StreetColumn] = global::System.Convert.DBNull;
  5403. }
  5404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5406. public PartnerRow[] GetPartnerRows() {
  5407. if ((this.Table.ChildRelations["FK_Partner_Street"] == null)) {
  5408. return new PartnerRow[0];
  5409. }
  5410. else {
  5411. return ((PartnerRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Partner_Street"])));
  5412. }
  5413. }
  5414. }
  5415. /// <summary>
  5416. ///Represents strongly named DataRow class.
  5417. ///</summary>
  5418. public partial class TypeMaterialRow : global::System.Data.DataRow {
  5419. private TypeMaterialDataTable tableTypeMaterial;
  5420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5422. internal TypeMaterialRow(global::System.Data.DataRowBuilder rb) :
  5423. base(rb) {
  5424. this.tableTypeMaterial = ((TypeMaterialDataTable)(this.Table));
  5425. }
  5426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5428. public int IDTypeMaterial {
  5429. get {
  5430. return ((int)(this[this.tableTypeMaterial.IDTypeMaterialColumn]));
  5431. }
  5432. set {
  5433. this[this.tableTypeMaterial.IDTypeMaterialColumn] = value;
  5434. }
  5435. }
  5436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5438. public string TypeMaterial {
  5439. get {
  5440. try {
  5441. return ((string)(this[this.tableTypeMaterial.TypeMaterialColumn]));
  5442. }
  5443. catch (global::System.InvalidCastException e) {
  5444. throw new global::System.Data.StrongTypingException("The value for column \'TypeMaterial\' in table \'TypeMaterial\' is DBNull.", e);
  5445. }
  5446. }
  5447. set {
  5448. this[this.tableTypeMaterial.TypeMaterialColumn] = value;
  5449. }
  5450. }
  5451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5453. public double DefectPercent {
  5454. get {
  5455. try {
  5456. return ((double)(this[this.tableTypeMaterial.DefectPercentColumn]));
  5457. }
  5458. catch (global::System.InvalidCastException e) {
  5459. throw new global::System.Data.StrongTypingException("The value for column \'DefectPercent\' in table \'TypeMaterial\' is DBNull.", e);
  5460. }
  5461. }
  5462. set {
  5463. this[this.tableTypeMaterial.DefectPercentColumn] = value;
  5464. }
  5465. }
  5466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5468. public bool IsTypeMaterialNull() {
  5469. return this.IsNull(this.tableTypeMaterial.TypeMaterialColumn);
  5470. }
  5471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5473. public void SetTypeMaterialNull() {
  5474. this[this.tableTypeMaterial.TypeMaterialColumn] = global::System.Convert.DBNull;
  5475. }
  5476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5477. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5478. public bool IsDefectPercentNull() {
  5479. return this.IsNull(this.tableTypeMaterial.DefectPercentColumn);
  5480. }
  5481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5483. public void SetDefectPercentNull() {
  5484. this[this.tableTypeMaterial.DefectPercentColumn] = global::System.Convert.DBNull;
  5485. }
  5486. }
  5487. /// <summary>
  5488. ///Represents strongly named DataRow class.
  5489. ///</summary>
  5490. public partial class TypePartnerRow : global::System.Data.DataRow {
  5491. private TypePartnerDataTable tableTypePartner;
  5492. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5493. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5494. internal TypePartnerRow(global::System.Data.DataRowBuilder rb) :
  5495. base(rb) {
  5496. this.tableTypePartner = ((TypePartnerDataTable)(this.Table));
  5497. }
  5498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5500. public int IDTypePartner {
  5501. get {
  5502. return ((int)(this[this.tableTypePartner.IDTypePartnerColumn]));
  5503. }
  5504. set {
  5505. this[this.tableTypePartner.IDTypePartnerColumn] = value;
  5506. }
  5507. }
  5508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5510. public string TypePartner {
  5511. get {
  5512. try {
  5513. return ((string)(this[this.tableTypePartner.TypePartnerColumn]));
  5514. }
  5515. catch (global::System.InvalidCastException e) {
  5516. throw new global::System.Data.StrongTypingException("The value for column \'TypePartner\' in table \'TypePartner\' is DBNull.", e);
  5517. }
  5518. }
  5519. set {
  5520. this[this.tableTypePartner.TypePartnerColumn] = value;
  5521. }
  5522. }
  5523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5525. public bool IsTypePartnerNull() {
  5526. return this.IsNull(this.tableTypePartner.TypePartnerColumn);
  5527. }
  5528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5530. public void SetTypePartnerNull() {
  5531. this[this.tableTypePartner.TypePartnerColumn] = global::System.Convert.DBNull;
  5532. }
  5533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5535. public PartnerRow[] GetPartnerRows() {
  5536. if ((this.Table.ChildRelations["FK_Partner_TypePartner"] == null)) {
  5537. return new PartnerRow[0];
  5538. }
  5539. else {
  5540. return ((PartnerRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Partner_TypePartner"])));
  5541. }
  5542. }
  5543. }
  5544. /// <summary>
  5545. ///Represents strongly named DataRow class.
  5546. ///</summary>
  5547. public partial class Type4FilterRow : global::System.Data.DataRow {
  5548. private Type4FilterDataTable tableType4Filter;
  5549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5551. internal Type4FilterRow(global::System.Data.DataRowBuilder rb) :
  5552. base(rb) {
  5553. this.tableType4Filter = ((Type4FilterDataTable)(this.Table));
  5554. }
  5555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5557. public string TypePartner {
  5558. get {
  5559. try {
  5560. return ((string)(this[this.tableType4Filter.TypePartnerColumn]));
  5561. }
  5562. catch (global::System.InvalidCastException e) {
  5563. throw new global::System.Data.StrongTypingException("The value for column \'TypePartner\' in table \'Type4Filter\' is DBNull.", e);
  5564. }
  5565. }
  5566. set {
  5567. this[this.tableType4Filter.TypePartnerColumn] = value;
  5568. }
  5569. }
  5570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5572. public bool IsTypePartnerNull() {
  5573. return this.IsNull(this.tableType4Filter.TypePartnerColumn);
  5574. }
  5575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5577. public void SetTypePartnerNull() {
  5578. this[this.tableType4Filter.TypePartnerColumn] = global::System.Convert.DBNull;
  5579. }
  5580. }
  5581. /// <summary>
  5582. ///Represents strongly named DataRow class.
  5583. ///</summary>
  5584. public partial class HistorySaleRow : global::System.Data.DataRow {
  5585. private HistorySaleDataTable tableHistorySale;
  5586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5588. internal HistorySaleRow(global::System.Data.DataRowBuilder rb) :
  5589. base(rb) {
  5590. this.tableHistorySale = ((HistorySaleDataTable)(this.Table));
  5591. }
  5592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5594. public int IDPartner {
  5595. get {
  5596. try {
  5597. return ((int)(this[this.tableHistorySale.IDPartnerColumn]));
  5598. }
  5599. catch (global::System.InvalidCastException e) {
  5600. throw new global::System.Data.StrongTypingException("The value for column \'IDPartner\' in table \'HistorySale\' is DBNull.", e);
  5601. }
  5602. }
  5603. set {
  5604. this[this.tableHistorySale.IDPartnerColumn] = value;
  5605. }
  5606. }
  5607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5609. public string ProductName {
  5610. get {
  5611. try {
  5612. return ((string)(this[this.tableHistorySale.ProductNameColumn]));
  5613. }
  5614. catch (global::System.InvalidCastException e) {
  5615. throw new global::System.Data.StrongTypingException("The value for column \'ProductName\' in table \'HistorySale\' is DBNull.", e);
  5616. }
  5617. }
  5618. set {
  5619. this[this.tableHistorySale.ProductNameColumn] = value;
  5620. }
  5621. }
  5622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5624. public int CountProduct {
  5625. get {
  5626. try {
  5627. return ((int)(this[this.tableHistorySale.CountProductColumn]));
  5628. }
  5629. catch (global::System.InvalidCastException e) {
  5630. throw new global::System.Data.StrongTypingException("The value for column \'CountProduct\' in table \'HistorySale\' is DBNull.", e);
  5631. }
  5632. }
  5633. set {
  5634. this[this.tableHistorySale.CountProductColumn] = value;
  5635. }
  5636. }
  5637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5639. public System.DateTime DateSale {
  5640. get {
  5641. try {
  5642. return ((global::System.DateTime)(this[this.tableHistorySale.DateSaleColumn]));
  5643. }
  5644. catch (global::System.InvalidCastException e) {
  5645. throw new global::System.Data.StrongTypingException("The value for column \'DateSale\' in table \'HistorySale\' is DBNull.", e);
  5646. }
  5647. }
  5648. set {
  5649. this[this.tableHistorySale.DateSaleColumn] = value;
  5650. }
  5651. }
  5652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5654. public PartnerRow PartnerRow {
  5655. get {
  5656. return ((PartnerRow)(this.GetParentRow(this.Table.ParentRelations["FK_PartnerProducts_Partner1"])));
  5657. }
  5658. set {
  5659. this.SetParentRow(value, this.Table.ParentRelations["FK_PartnerProducts_Partner1"]);
  5660. }
  5661. }
  5662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5664. public bool IsIDPartnerNull() {
  5665. return this.IsNull(this.tableHistorySale.IDPartnerColumn);
  5666. }
  5667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5668. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5669. public void SetIDPartnerNull() {
  5670. this[this.tableHistorySale.IDPartnerColumn] = global::System.Convert.DBNull;
  5671. }
  5672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5674. public bool IsProductNameNull() {
  5675. return this.IsNull(this.tableHistorySale.ProductNameColumn);
  5676. }
  5677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5678. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5679. public void SetProductNameNull() {
  5680. this[this.tableHistorySale.ProductNameColumn] = global::System.Convert.DBNull;
  5681. }
  5682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5684. public bool IsCountProductNull() {
  5685. return this.IsNull(this.tableHistorySale.CountProductColumn);
  5686. }
  5687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5689. public void SetCountProductNull() {
  5690. this[this.tableHistorySale.CountProductColumn] = global::System.Convert.DBNull;
  5691. }
  5692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5694. public bool IsDateSaleNull() {
  5695. return this.IsNull(this.tableHistorySale.DateSaleColumn);
  5696. }
  5697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5699. public void SetDateSaleNull() {
  5700. this[this.tableHistorySale.DateSaleColumn] = global::System.Convert.DBNull;
  5701. }
  5702. }
  5703. /// <summary>
  5704. ///Row event argument class
  5705. ///</summary>
  5706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5707. public class CityRowChangeEvent : global::System.EventArgs {
  5708. private CityRow eventRow;
  5709. private global::System.Data.DataRowAction eventAction;
  5710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5711. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5712. public CityRowChangeEvent(CityRow row, global::System.Data.DataRowAction action) {
  5713. this.eventRow = row;
  5714. this.eventAction = action;
  5715. }
  5716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5718. public CityRow Row {
  5719. get {
  5720. return this.eventRow;
  5721. }
  5722. }
  5723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5725. public global::System.Data.DataRowAction Action {
  5726. get {
  5727. return this.eventAction;
  5728. }
  5729. }
  5730. }
  5731. /// <summary>
  5732. ///Row event argument class
  5733. ///</summary>
  5734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5735. public class ManagerRowChangeEvent : global::System.EventArgs {
  5736. private ManagerRow eventRow;
  5737. private global::System.Data.DataRowAction eventAction;
  5738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5740. public ManagerRowChangeEvent(ManagerRow row, global::System.Data.DataRowAction action) {
  5741. this.eventRow = row;
  5742. this.eventAction = action;
  5743. }
  5744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5746. public ManagerRow Row {
  5747. get {
  5748. return this.eventRow;
  5749. }
  5750. }
  5751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5753. public global::System.Data.DataRowAction Action {
  5754. get {
  5755. return this.eventAction;
  5756. }
  5757. }
  5758. }
  5759. /// <summary>
  5760. ///Row event argument class
  5761. ///</summary>
  5762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5763. public class PartnerRowChangeEvent : global::System.EventArgs {
  5764. private PartnerRow eventRow;
  5765. private global::System.Data.DataRowAction eventAction;
  5766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5768. public PartnerRowChangeEvent(PartnerRow row, global::System.Data.DataRowAction action) {
  5769. this.eventRow = row;
  5770. this.eventAction = action;
  5771. }
  5772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5774. public PartnerRow Row {
  5775. get {
  5776. return this.eventRow;
  5777. }
  5778. }
  5779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5781. public global::System.Data.DataRowAction Action {
  5782. get {
  5783. return this.eventAction;
  5784. }
  5785. }
  5786. }
  5787. /// <summary>
  5788. ///Row event argument class
  5789. ///</summary>
  5790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5791. public class PartnerProductsRowChangeEvent : global::System.EventArgs {
  5792. private PartnerProductsRow eventRow;
  5793. private global::System.Data.DataRowAction eventAction;
  5794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5796. public PartnerProductsRowChangeEvent(PartnerProductsRow row, global::System.Data.DataRowAction action) {
  5797. this.eventRow = row;
  5798. this.eventAction = action;
  5799. }
  5800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5802. public PartnerProductsRow Row {
  5803. get {
  5804. return this.eventRow;
  5805. }
  5806. }
  5807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5809. public global::System.Data.DataRowAction Action {
  5810. get {
  5811. return this.eventAction;
  5812. }
  5813. }
  5814. }
  5815. /// <summary>
  5816. ///Row event argument class
  5817. ///</summary>
  5818. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5819. public class PostCodeRowChangeEvent : global::System.EventArgs {
  5820. private PostCodeRow eventRow;
  5821. private global::System.Data.DataRowAction eventAction;
  5822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5824. public PostCodeRowChangeEvent(PostCodeRow row, global::System.Data.DataRowAction action) {
  5825. this.eventRow = row;
  5826. this.eventAction = action;
  5827. }
  5828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5830. public PostCodeRow Row {
  5831. get {
  5832. return this.eventRow;
  5833. }
  5834. }
  5835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5837. public global::System.Data.DataRowAction Action {
  5838. get {
  5839. return this.eventAction;
  5840. }
  5841. }
  5842. }
  5843. /// <summary>
  5844. ///Row event argument class
  5845. ///</summary>
  5846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5847. public class ProductRowChangeEvent : global::System.EventArgs {
  5848. private ProductRow eventRow;
  5849. private global::System.Data.DataRowAction eventAction;
  5850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5852. public ProductRowChangeEvent(ProductRow row, global::System.Data.DataRowAction action) {
  5853. this.eventRow = row;
  5854. this.eventAction = action;
  5855. }
  5856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5858. public ProductRow Row {
  5859. get {
  5860. return this.eventRow;
  5861. }
  5862. }
  5863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5865. public global::System.Data.DataRowAction Action {
  5866. get {
  5867. return this.eventAction;
  5868. }
  5869. }
  5870. }
  5871. /// <summary>
  5872. ///Row event argument class
  5873. ///</summary>
  5874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5875. public class ProductTypeRowChangeEvent : global::System.EventArgs {
  5876. private ProductTypeRow eventRow;
  5877. private global::System.Data.DataRowAction eventAction;
  5878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5880. public ProductTypeRowChangeEvent(ProductTypeRow row, global::System.Data.DataRowAction action) {
  5881. this.eventRow = row;
  5882. this.eventAction = action;
  5883. }
  5884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5886. public ProductTypeRow Row {
  5887. get {
  5888. return this.eventRow;
  5889. }
  5890. }
  5891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5893. public global::System.Data.DataRowAction Action {
  5894. get {
  5895. return this.eventAction;
  5896. }
  5897. }
  5898. }
  5899. /// <summary>
  5900. ///Row event argument class
  5901. ///</summary>
  5902. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5903. public class RegionRowChangeEvent : global::System.EventArgs {
  5904. private RegionRow eventRow;
  5905. private global::System.Data.DataRowAction eventAction;
  5906. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5907. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5908. public RegionRowChangeEvent(RegionRow row, global::System.Data.DataRowAction action) {
  5909. this.eventRow = row;
  5910. this.eventAction = action;
  5911. }
  5912. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5913. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5914. public RegionRow Row {
  5915. get {
  5916. return this.eventRow;
  5917. }
  5918. }
  5919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5921. public global::System.Data.DataRowAction Action {
  5922. get {
  5923. return this.eventAction;
  5924. }
  5925. }
  5926. }
  5927. /// <summary>
  5928. ///Row event argument class
  5929. ///</summary>
  5930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5931. public class StreetRowChangeEvent : global::System.EventArgs {
  5932. private StreetRow eventRow;
  5933. private global::System.Data.DataRowAction eventAction;
  5934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5935. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5936. public StreetRowChangeEvent(StreetRow row, global::System.Data.DataRowAction action) {
  5937. this.eventRow = row;
  5938. this.eventAction = action;
  5939. }
  5940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5942. public StreetRow Row {
  5943. get {
  5944. return this.eventRow;
  5945. }
  5946. }
  5947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5949. public global::System.Data.DataRowAction Action {
  5950. get {
  5951. return this.eventAction;
  5952. }
  5953. }
  5954. }
  5955. /// <summary>
  5956. ///Row event argument class
  5957. ///</summary>
  5958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5959. public class TypeMaterialRowChangeEvent : global::System.EventArgs {
  5960. private TypeMaterialRow eventRow;
  5961. private global::System.Data.DataRowAction eventAction;
  5962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5964. public TypeMaterialRowChangeEvent(TypeMaterialRow row, global::System.Data.DataRowAction action) {
  5965. this.eventRow = row;
  5966. this.eventAction = action;
  5967. }
  5968. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5969. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5970. public TypeMaterialRow Row {
  5971. get {
  5972. return this.eventRow;
  5973. }
  5974. }
  5975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5976. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5977. public global::System.Data.DataRowAction Action {
  5978. get {
  5979. return this.eventAction;
  5980. }
  5981. }
  5982. }
  5983. /// <summary>
  5984. ///Row event argument class
  5985. ///</summary>
  5986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5987. public class TypePartnerRowChangeEvent : global::System.EventArgs {
  5988. private TypePartnerRow eventRow;
  5989. private global::System.Data.DataRowAction eventAction;
  5990. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5991. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5992. public TypePartnerRowChangeEvent(TypePartnerRow row, global::System.Data.DataRowAction action) {
  5993. this.eventRow = row;
  5994. this.eventAction = action;
  5995. }
  5996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5998. public TypePartnerRow Row {
  5999. get {
  6000. return this.eventRow;
  6001. }
  6002. }
  6003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6005. public global::System.Data.DataRowAction Action {
  6006. get {
  6007. return this.eventAction;
  6008. }
  6009. }
  6010. }
  6011. /// <summary>
  6012. ///Row event argument class
  6013. ///</summary>
  6014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6015. public class Type4FilterRowChangeEvent : global::System.EventArgs {
  6016. private Type4FilterRow eventRow;
  6017. private global::System.Data.DataRowAction eventAction;
  6018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6020. public Type4FilterRowChangeEvent(Type4FilterRow row, global::System.Data.DataRowAction action) {
  6021. this.eventRow = row;
  6022. this.eventAction = action;
  6023. }
  6024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6026. public Type4FilterRow Row {
  6027. get {
  6028. return this.eventRow;
  6029. }
  6030. }
  6031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6032. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6033. public global::System.Data.DataRowAction Action {
  6034. get {
  6035. return this.eventAction;
  6036. }
  6037. }
  6038. }
  6039. /// <summary>
  6040. ///Row event argument class
  6041. ///</summary>
  6042. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6043. public class HistorySaleRowChangeEvent : global::System.EventArgs {
  6044. private HistorySaleRow eventRow;
  6045. private global::System.Data.DataRowAction eventAction;
  6046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6048. public HistorySaleRowChangeEvent(HistorySaleRow row, global::System.Data.DataRowAction action) {
  6049. this.eventRow = row;
  6050. this.eventAction = action;
  6051. }
  6052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6054. public HistorySaleRow Row {
  6055. get {
  6056. return this.eventRow;
  6057. }
  6058. }
  6059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6061. public global::System.Data.DataRowAction Action {
  6062. get {
  6063. return this.eventAction;
  6064. }
  6065. }
  6066. }
  6067. }
  6068. }
  6069. namespace СУБД_Альфапол.AlfafloorGDVDataSetTableAdapters {
  6070. /// <summary>
  6071. ///Represents the connection and commands used to retrieve and save data.
  6072. ///</summary>
  6073. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6074. [global::System.ComponentModel.ToolboxItem(true)]
  6075. [global::System.ComponentModel.DataObjectAttribute(true)]
  6076. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6077. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6078. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6079. public partial class CityTableAdapter : global::System.ComponentModel.Component {
  6080. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6081. private global::System.Data.SqlClient.SqlConnection _connection;
  6082. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6083. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6084. private bool _clearBeforeFill;
  6085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6087. public CityTableAdapter() {
  6088. this.ClearBeforeFill = true;
  6089. }
  6090. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6091. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6092. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6093. get {
  6094. if ((this._adapter == null)) {
  6095. this.InitAdapter();
  6096. }
  6097. return this._adapter;
  6098. }
  6099. }
  6100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6101. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6102. internal global::System.Data.SqlClient.SqlConnection Connection {
  6103. get {
  6104. if ((this._connection == null)) {
  6105. this.InitConnection();
  6106. }
  6107. return this._connection;
  6108. }
  6109. set {
  6110. this._connection = value;
  6111. if ((this.Adapter.InsertCommand != null)) {
  6112. this.Adapter.InsertCommand.Connection = value;
  6113. }
  6114. if ((this.Adapter.DeleteCommand != null)) {
  6115. this.Adapter.DeleteCommand.Connection = value;
  6116. }
  6117. if ((this.Adapter.UpdateCommand != null)) {
  6118. this.Adapter.UpdateCommand.Connection = value;
  6119. }
  6120. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6121. if ((this.CommandCollection[i] != null)) {
  6122. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6123. }
  6124. }
  6125. }
  6126. }
  6127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6129. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6130. get {
  6131. return this._transaction;
  6132. }
  6133. set {
  6134. this._transaction = value;
  6135. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6136. this.CommandCollection[i].Transaction = this._transaction;
  6137. }
  6138. if (((this.Adapter != null)
  6139. && (this.Adapter.DeleteCommand != null))) {
  6140. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6141. }
  6142. if (((this.Adapter != null)
  6143. && (this.Adapter.InsertCommand != null))) {
  6144. this.Adapter.InsertCommand.Transaction = this._transaction;
  6145. }
  6146. if (((this.Adapter != null)
  6147. && (this.Adapter.UpdateCommand != null))) {
  6148. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6149. }
  6150. }
  6151. }
  6152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6154. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6155. get {
  6156. if ((this._commandCollection == null)) {
  6157. this.InitCommandCollection();
  6158. }
  6159. return this._commandCollection;
  6160. }
  6161. }
  6162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6164. public bool ClearBeforeFill {
  6165. get {
  6166. return this._clearBeforeFill;
  6167. }
  6168. set {
  6169. this._clearBeforeFill = value;
  6170. }
  6171. }
  6172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6174. private void InitAdapter() {
  6175. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6176. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6177. tableMapping.SourceTable = "Table";
  6178. tableMapping.DataSetTable = "City";
  6179. tableMapping.ColumnMappings.Add("IDCity", "IDCity");
  6180. tableMapping.ColumnMappings.Add("City", "City");
  6181. this._adapter.TableMappings.Add(tableMapping);
  6182. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6183. this._adapter.DeleteCommand.Connection = this.Connection;
  6184. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[City] WHERE (([IDCity] = @Original_IDCity) AND ((@IsNull_City " +
  6185. "= 1 AND [City] IS NULL) OR ([City] = @Original_City)))";
  6186. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6187. 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, "", "", ""));
  6188. 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, "", "", ""));
  6189. 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, "", "", ""));
  6190. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6191. this._adapter.InsertCommand.Connection = this.Connection;
  6192. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[City] ([City]) VALUES (@City);\r\nSELECT IDCity, City FROM City " +
  6193. "WHERE (IDCity = SCOPE_IDENTITY())";
  6194. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6195. 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, "", "", ""));
  6196. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6197. this._adapter.UpdateCommand.Connection = this.Connection;
  6198. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[City] SET [City] = @City WHERE (([IDCity] = @Original_IDCity) AND (" +
  6199. "(@IsNull_City = 1 AND [City] IS NULL) OR ([City] = @Original_City)));\r\nSELECT ID" +
  6200. "City, City FROM City WHERE (IDCity = @IDCity)";
  6201. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6202. 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, "", "", ""));
  6203. 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, "", "", ""));
  6204. 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, "", "", ""));
  6205. 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, "", "", ""));
  6206. 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, "", "", ""));
  6207. }
  6208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6210. private void InitConnection() {
  6211. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6212. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.AlfafloorGDVConnectionString;
  6213. }
  6214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6216. private void InitCommandCollection() {
  6217. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6218. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6219. this._commandCollection[0].Connection = this.Connection;
  6220. this._commandCollection[0].CommandText = "SELECT IDCity, City FROM dbo.City";
  6221. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6222. }
  6223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6225. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6226. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6227. public virtual int Fill(AlfafloorGDVDataSet.CityDataTable dataTable) {
  6228. this.Adapter.SelectCommand = this.CommandCollection[0];
  6229. if ((this.ClearBeforeFill == true)) {
  6230. dataTable.Clear();
  6231. }
  6232. int returnValue = this.Adapter.Fill(dataTable);
  6233. return returnValue;
  6234. }
  6235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6236. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6237. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6238. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6239. public virtual AlfafloorGDVDataSet.CityDataTable GetData() {
  6240. this.Adapter.SelectCommand = this.CommandCollection[0];
  6241. AlfafloorGDVDataSet.CityDataTable dataTable = new AlfafloorGDVDataSet.CityDataTable();
  6242. this.Adapter.Fill(dataTable);
  6243. return dataTable;
  6244. }
  6245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6247. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6248. public virtual int Update(AlfafloorGDVDataSet.CityDataTable dataTable) {
  6249. return this.Adapter.Update(dataTable);
  6250. }
  6251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6253. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6254. public virtual int Update(AlfafloorGDVDataSet dataSet) {
  6255. return this.Adapter.Update(dataSet, "City");
  6256. }
  6257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6259. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6260. public virtual int Update(global::System.Data.DataRow dataRow) {
  6261. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6262. dataRow});
  6263. }
  6264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6265. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6266. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6267. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6268. return this.Adapter.Update(dataRows);
  6269. }
  6270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6271. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6272. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6273. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6274. public virtual int Delete(int Original_IDCity, string Original_City) {
  6275. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IDCity));
  6276. if ((Original_City == null)) {
  6277. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6278. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6279. }
  6280. else {
  6281. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6282. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_City));
  6283. }
  6284. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6285. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6286. != global::System.Data.ConnectionState.Open)) {
  6287. this.Adapter.DeleteCommand.Connection.Open();
  6288. }
  6289. try {
  6290. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6291. return returnValue;
  6292. }
  6293. finally {
  6294. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6295. this.Adapter.DeleteCommand.Connection.Close();
  6296. }
  6297. }
  6298. }
  6299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6301. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6302. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6303. public virtual int Insert(string City) {
  6304. if ((City == null)) {
  6305. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6306. }
  6307. else {
  6308. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(City));
  6309. }
  6310. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6311. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6312. != global::System.Data.ConnectionState.Open)) {
  6313. this.Adapter.InsertCommand.Connection.Open();
  6314. }
  6315. try {
  6316. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6317. return returnValue;
  6318. }
  6319. finally {
  6320. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6321. this.Adapter.InsertCommand.Connection.Close();
  6322. }
  6323. }
  6324. }
  6325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6327. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6328. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6329. public virtual int Update(string City, int Original_IDCity, string Original_City, int IDCity) {
  6330. if ((City == null)) {
  6331. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6332. }
  6333. else {
  6334. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(City));
  6335. }
  6336. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_IDCity));
  6337. if ((Original_City == null)) {
  6338. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  6339. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6340. }
  6341. else {
  6342. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  6343. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_City));
  6344. }
  6345. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(IDCity));
  6346. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6347. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6348. != global::System.Data.ConnectionState.Open)) {
  6349. this.Adapter.UpdateCommand.Connection.Open();
  6350. }
  6351. try {
  6352. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6353. return returnValue;
  6354. }
  6355. finally {
  6356. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6357. this.Adapter.UpdateCommand.Connection.Close();
  6358. }
  6359. }
  6360. }
  6361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6363. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6364. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6365. public virtual int Update(string City, int Original_IDCity, string Original_City) {
  6366. return this.Update(City, Original_IDCity, Original_City, Original_IDCity);
  6367. }
  6368. }
  6369. /// <summary>
  6370. ///Represents the connection and commands used to retrieve and save data.
  6371. ///</summary>
  6372. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6373. [global::System.ComponentModel.ToolboxItem(true)]
  6374. [global::System.ComponentModel.DataObjectAttribute(true)]
  6375. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6376. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6377. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6378. public partial class ManagerTableAdapter : global::System.ComponentModel.Component {
  6379. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6380. private global::System.Data.SqlClient.SqlConnection _connection;
  6381. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6382. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6383. private bool _clearBeforeFill;
  6384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6386. public ManagerTableAdapter() {
  6387. this.ClearBeforeFill = true;
  6388. }
  6389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6391. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6392. get {
  6393. if ((this._adapter == null)) {
  6394. this.InitAdapter();
  6395. }
  6396. return this._adapter;
  6397. }
  6398. }
  6399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6401. internal global::System.Data.SqlClient.SqlConnection Connection {
  6402. get {
  6403. if ((this._connection == null)) {
  6404. this.InitConnection();
  6405. }
  6406. return this._connection;
  6407. }
  6408. set {
  6409. this._connection = value;
  6410. if ((this.Adapter.InsertCommand != null)) {
  6411. this.Adapter.InsertCommand.Connection = value;
  6412. }
  6413. if ((this.Adapter.DeleteCommand != null)) {
  6414. this.Adapter.DeleteCommand.Connection = value;
  6415. }
  6416. if ((this.Adapter.UpdateCommand != null)) {
  6417. this.Adapter.UpdateCommand.Connection = value;
  6418. }
  6419. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6420. if ((this.CommandCollection[i] != null)) {
  6421. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6422. }
  6423. }
  6424. }
  6425. }
  6426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6428. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6429. get {
  6430. return this._transaction;
  6431. }
  6432. set {
  6433. this._transaction = value;
  6434. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6435. this.CommandCollection[i].Transaction = this._transaction;
  6436. }
  6437. if (((this.Adapter != null)
  6438. && (this.Adapter.DeleteCommand != null))) {
  6439. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6440. }
  6441. if (((this.Adapter != null)
  6442. && (this.Adapter.InsertCommand != null))) {
  6443. this.Adapter.InsertCommand.Transaction = this._transaction;
  6444. }
  6445. if (((this.Adapter != null)
  6446. && (this.Adapter.UpdateCommand != null))) {
  6447. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6448. }
  6449. }
  6450. }
  6451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6453. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6454. get {
  6455. if ((this._commandCollection == null)) {
  6456. this.InitCommandCollection();
  6457. }
  6458. return this._commandCollection;
  6459. }
  6460. }
  6461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6463. public bool ClearBeforeFill {
  6464. get {
  6465. return this._clearBeforeFill;
  6466. }
  6467. set {
  6468. this._clearBeforeFill = value;
  6469. }
  6470. }
  6471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6473. private void InitAdapter() {
  6474. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6475. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6476. tableMapping.SourceTable = "Table";
  6477. tableMapping.DataSetTable = "Manager";
  6478. tableMapping.ColumnMappings.Add("IDManager", "IDManager");
  6479. tableMapping.ColumnMappings.Add("Surname", "Surname");
  6480. tableMapping.ColumnMappings.Add("Name", "Name");
  6481. tableMapping.ColumnMappings.Add("Patronomyc", "Patronomyc");
  6482. tableMapping.ColumnMappings.Add("Login", "Login");
  6483. tableMapping.ColumnMappings.Add("Password", "Password");
  6484. tableMapping.ColumnMappings.Add("Photo", "Photo");
  6485. this._adapter.TableMappings.Add(tableMapping);
  6486. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6487. this._adapter.DeleteCommand.Connection = this.Connection;
  6488. 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)))";
  6489. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6490. 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, "", "", ""));
  6491. 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, "", "", ""));
  6492. 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, "", "", ""));
  6493. 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, "", "", ""));
  6494. 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, "", "", ""));
  6495. 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, "", "", ""));
  6496. 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, "", "", ""));
  6497. 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, "", "", ""));
  6498. 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, "", "", ""));
  6499. 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, "", "", ""));
  6500. 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, "", "", ""));
  6501. 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, "", "", ""));
  6502. 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, "", "", ""));
  6503. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6504. this._adapter.InsertCommand.Connection = this.Connection;
  6505. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Manager] ([Surname], [Name], [Patronomyc], [Login], [Password], [Photo]) VALUES (@Surname, @Name, @Patronomyc, @Login, @Password, @Photo);
  6506. SELECT IDManager, Surname, Name, Patronomyc, Login, Password, Photo FROM Manager WHERE (IDManager = SCOPE_IDENTITY())";
  6507. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6508. 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, "", "", ""));
  6509. 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, "", "", ""));
  6510. 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, "", "", ""));
  6511. 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, "", "", ""));
  6512. 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, "", "", ""));
  6513. 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, "", "", ""));
  6514. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6515. this._adapter.UpdateCommand.Connection = this.Connection;
  6516. 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)));
  6517. SELECT IDManager, Surname, Name, Patronomyc, Login, Password, Photo FROM Manager WHERE (IDManager = @IDManager)";
  6518. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6519. 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, "", "", ""));
  6520. 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, "", "", ""));
  6521. 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, "", "", ""));
  6522. 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, "", "", ""));
  6523. 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, "", "", ""));
  6524. 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, "", "", ""));
  6525. 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, "", "", ""));
  6526. 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, "", "", ""));
  6527. 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, "", "", ""));
  6528. 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, "", "", ""));
  6529. 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, "", "", ""));
  6530. 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, "", "", ""));
  6531. 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, "", "", ""));
  6532. 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, "", "", ""));
  6533. 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, "", "", ""));
  6534. 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, "", "", ""));
  6535. 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, "", "", ""));
  6536. 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, "", "", ""));
  6537. 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, "", "", ""));
  6538. 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, "", "", ""));
  6539. }
  6540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6542. private void InitConnection() {
  6543. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6544. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.AlfafloorGDVConnectionString;
  6545. }
  6546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6548. private void InitCommandCollection() {
  6549. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6550. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6551. this._commandCollection[0].Connection = this.Connection;
  6552. this._commandCollection[0].CommandText = "SELECT IDManager, Surname, Name, Patronomyc, Login, Password, Photo FROM dbo.Mana" +
  6553. "ger";
  6554. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6555. }
  6556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6558. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6559. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6560. public virtual int Fill(AlfafloorGDVDataSet.ManagerDataTable dataTable) {
  6561. this.Adapter.SelectCommand = this.CommandCollection[0];
  6562. if ((this.ClearBeforeFill == true)) {
  6563. dataTable.Clear();
  6564. }
  6565. int returnValue = this.Adapter.Fill(dataTable);
  6566. return returnValue;
  6567. }
  6568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6570. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6571. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6572. public virtual AlfafloorGDVDataSet.ManagerDataTable GetData() {
  6573. this.Adapter.SelectCommand = this.CommandCollection[0];
  6574. AlfafloorGDVDataSet.ManagerDataTable dataTable = new AlfafloorGDVDataSet.ManagerDataTable();
  6575. this.Adapter.Fill(dataTable);
  6576. return dataTable;
  6577. }
  6578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6580. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6581. public virtual int Update(AlfafloorGDVDataSet.ManagerDataTable dataTable) {
  6582. return this.Adapter.Update(dataTable);
  6583. }
  6584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6586. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6587. public virtual int Update(AlfafloorGDVDataSet dataSet) {
  6588. return this.Adapter.Update(dataSet, "Manager");
  6589. }
  6590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6592. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6593. public virtual int Update(global::System.Data.DataRow dataRow) {
  6594. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6595. dataRow});
  6596. }
  6597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6599. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6600. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6601. return this.Adapter.Update(dataRows);
  6602. }
  6603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6605. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6606. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6607. 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) {
  6608. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IDManager));
  6609. if ((Original_Surname == null)) {
  6610. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6611. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6612. }
  6613. else {
  6614. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6615. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Surname));
  6616. }
  6617. if ((Original_Name == null)) {
  6618. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  6619. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  6620. }
  6621. else {
  6622. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  6623. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Name));
  6624. }
  6625. if ((Original_Patronomyc == null)) {
  6626. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  6627. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  6628. }
  6629. else {
  6630. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  6631. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Patronomyc));
  6632. }
  6633. if ((Original_Login == null)) {
  6634. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  6635. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  6636. }
  6637. else {
  6638. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  6639. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Login));
  6640. }
  6641. if ((Original_Password == null)) {
  6642. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  6643. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  6644. }
  6645. else {
  6646. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  6647. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Password));
  6648. }
  6649. if ((Original_Photo == null)) {
  6650. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  6651. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  6652. }
  6653. else {
  6654. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  6655. this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_Photo));
  6656. }
  6657. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6658. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6659. != global::System.Data.ConnectionState.Open)) {
  6660. this.Adapter.DeleteCommand.Connection.Open();
  6661. }
  6662. try {
  6663. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6664. return returnValue;
  6665. }
  6666. finally {
  6667. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6668. this.Adapter.DeleteCommand.Connection.Close();
  6669. }
  6670. }
  6671. }
  6672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6674. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6675. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6676. public virtual int Insert(string Surname, string Name, string Patronomyc, string Login, string Password, string Photo) {
  6677. if ((Surname == null)) {
  6678. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6679. }
  6680. else {
  6681. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Surname));
  6682. }
  6683. if ((Name == null)) {
  6684. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  6685. }
  6686. else {
  6687. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Name));
  6688. }
  6689. if ((Patronomyc == null)) {
  6690. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6691. }
  6692. else {
  6693. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Patronomyc));
  6694. }
  6695. if ((Login == null)) {
  6696. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  6697. }
  6698. else {
  6699. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Login));
  6700. }
  6701. if ((Password == null)) {
  6702. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  6703. }
  6704. else {
  6705. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Password));
  6706. }
  6707. if ((Photo == null)) {
  6708. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  6709. }
  6710. else {
  6711. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Photo));
  6712. }
  6713. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6714. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6715. != global::System.Data.ConnectionState.Open)) {
  6716. this.Adapter.InsertCommand.Connection.Open();
  6717. }
  6718. try {
  6719. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6720. return returnValue;
  6721. }
  6722. finally {
  6723. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6724. this.Adapter.InsertCommand.Connection.Close();
  6725. }
  6726. }
  6727. }
  6728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6730. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6731. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6732. 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) {
  6733. if ((Surname == null)) {
  6734. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6735. }
  6736. else {
  6737. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Surname));
  6738. }
  6739. if ((Name == null)) {
  6740. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  6741. }
  6742. else {
  6743. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Name));
  6744. }
  6745. if ((Patronomyc == null)) {
  6746. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  6747. }
  6748. else {
  6749. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Patronomyc));
  6750. }
  6751. if ((Login == null)) {
  6752. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6753. }
  6754. else {
  6755. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Login));
  6756. }
  6757. if ((Password == null)) {
  6758. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  6759. }
  6760. else {
  6761. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Password));
  6762. }
  6763. if ((Photo == null)) {
  6764. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  6765. }
  6766. else {
  6767. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Photo));
  6768. }
  6769. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_IDManager));
  6770. if ((Original_Surname == null)) {
  6771. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  6772. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  6773. }
  6774. else {
  6775. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  6776. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Surname));
  6777. }
  6778. if ((Original_Name == null)) {
  6779. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  6780. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  6781. }
  6782. else {
  6783. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  6784. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Name));
  6785. }
  6786. if ((Original_Patronomyc == null)) {
  6787. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  6788. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  6789. }
  6790. else {
  6791. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  6792. this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_Patronomyc));
  6793. }
  6794. if ((Original_Login == null)) {
  6795. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  6796. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  6797. }
  6798. else {
  6799. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  6800. this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_Login));
  6801. }
  6802. if ((Original_Password == null)) {
  6803. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  6804. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  6805. }
  6806. else {
  6807. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  6808. this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_Password));
  6809. }
  6810. if ((Original_Photo == null)) {
  6811. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
  6812. this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
  6813. }
  6814. else {
  6815. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
  6816. this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_Photo));
  6817. }
  6818. this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(IDManager));
  6819. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6820. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6821. != global::System.Data.ConnectionState.Open)) {
  6822. this.Adapter.UpdateCommand.Connection.Open();
  6823. }
  6824. try {
  6825. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6826. return returnValue;
  6827. }
  6828. finally {
  6829. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6830. this.Adapter.UpdateCommand.Connection.Close();
  6831. }
  6832. }
  6833. }
  6834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6836. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6837. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6838. 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) {
  6839. 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);
  6840. }
  6841. }
  6842. /// <summary>
  6843. ///Represents the connection and commands used to retrieve and save data.
  6844. ///</summary>
  6845. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6846. [global::System.ComponentModel.ToolboxItem(true)]
  6847. [global::System.ComponentModel.DataObjectAttribute(true)]
  6848. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6849. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6850. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6851. public partial class PartnerTableAdapter : global::System.ComponentModel.Component {
  6852. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6853. private global::System.Data.SqlClient.SqlConnection _connection;
  6854. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6855. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6856. private bool _clearBeforeFill;
  6857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6859. public PartnerTableAdapter() {
  6860. this.ClearBeforeFill = true;
  6861. }
  6862. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6863. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6864. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6865. get {
  6866. if ((this._adapter == null)) {
  6867. this.InitAdapter();
  6868. }
  6869. return this._adapter;
  6870. }
  6871. }
  6872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6874. internal global::System.Data.SqlClient.SqlConnection Connection {
  6875. get {
  6876. if ((this._connection == null)) {
  6877. this.InitConnection();
  6878. }
  6879. return this._connection;
  6880. }
  6881. set {
  6882. this._connection = value;
  6883. if ((this.Adapter.InsertCommand != null)) {
  6884. this.Adapter.InsertCommand.Connection = value;
  6885. }
  6886. if ((this.Adapter.DeleteCommand != null)) {
  6887. this.Adapter.DeleteCommand.Connection = value;
  6888. }
  6889. if ((this.Adapter.UpdateCommand != null)) {
  6890. this.Adapter.UpdateCommand.Connection = value;
  6891. }
  6892. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6893. if ((this.CommandCollection[i] != null)) {
  6894. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6895. }
  6896. }
  6897. }
  6898. }
  6899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6901. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6902. get {
  6903. return this._transaction;
  6904. }
  6905. set {
  6906. this._transaction = value;
  6907. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6908. this.CommandCollection[i].Transaction = this._transaction;
  6909. }
  6910. if (((this.Adapter != null)
  6911. && (this.Adapter.DeleteCommand != null))) {
  6912. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6913. }
  6914. if (((this.Adapter != null)
  6915. && (this.Adapter.InsertCommand != null))) {
  6916. this.Adapter.InsertCommand.Transaction = this._transaction;
  6917. }
  6918. if (((this.Adapter != null)
  6919. && (this.Adapter.UpdateCommand != null))) {
  6920. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6921. }
  6922. }
  6923. }
  6924. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6925. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6926. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6927. get {
  6928. if ((this._commandCollection == null)) {
  6929. this.InitCommandCollection();
  6930. }
  6931. return this._commandCollection;
  6932. }
  6933. }
  6934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6935. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6936. public bool ClearBeforeFill {
  6937. get {
  6938. return this._clearBeforeFill;
  6939. }
  6940. set {
  6941. this._clearBeforeFill = value;
  6942. }
  6943. }
  6944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6946. private void InitAdapter() {
  6947. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6948. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6949. tableMapping.SourceTable = "Table";
  6950. tableMapping.DataSetTable = "Partner";
  6951. tableMapping.ColumnMappings.Add("IDPartner", "IDPartner");
  6952. tableMapping.ColumnMappings.Add("IDTypePartner", "IDTypePartner");
  6953. tableMapping.ColumnMappings.Add("Namepartner", "Namepartner");
  6954. tableMapping.ColumnMappings.Add("Surname", "Surname");
  6955. tableMapping.ColumnMappings.Add("Name", "Name");
  6956. tableMapping.ColumnMappings.Add("Patronomyc", "Patronomyc");
  6957. tableMapping.ColumnMappings.Add("Email", "Email");
  6958. tableMapping.ColumnMappings.Add("Phone", "Phone");
  6959. tableMapping.ColumnMappings.Add("IDPostCode", "IDPostCode");
  6960. tableMapping.ColumnMappings.Add("IDRegion", "IDRegion");
  6961. tableMapping.ColumnMappings.Add("IDCity", "IDCity");
  6962. tableMapping.ColumnMappings.Add("IDStreet", "IDStreet");
  6963. tableMapping.ColumnMappings.Add("House", "House");
  6964. tableMapping.ColumnMappings.Add("INN", "INN");
  6965. tableMapping.ColumnMappings.Add("Rating", "Rating");
  6966. this._adapter.TableMappings.Add(tableMapping);
  6967. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6968. this._adapter.DeleteCommand.Connection = this.Connection;
  6969. 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)))";
  6970. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6971. 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, "", "", ""));
  6972. 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, "", "", ""));
  6973. 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, "", "", ""));
  6974. 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, "", "", ""));
  6975. 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, "", "", ""));
  6976. 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, "", "", ""));
  6977. 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, "", "", ""));
  6978. 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, "", "", ""));
  6979. 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, "", "", ""));
  6980. 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, "", "", ""));
  6981. 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, "", "", ""));
  6982. 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, "", "", ""));
  6983. 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, "", "", ""));
  6984. 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, "", "", ""));
  6985. 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, "", "", ""));
  6986. 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, "", "", ""));
  6987. 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, "", "", ""));
  6988. 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, "", "", ""));
  6989. 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, "", "", ""));
  6990. 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, "", "", ""));
  6991. 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, "", "", ""));
  6992. 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, "", "", ""));
  6993. 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, "", "", ""));
  6994. 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, "", "", ""));
  6995. 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, "", "", ""));
  6996. 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, "", "", ""));
  6997. 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, "", "", ""));
  6998. 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, "", "", ""));
  6999. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7000. this._adapter.InsertCommand.Connection = this.Connection;
  7001. 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);
  7002. SELECT IDPartner, IDTypePartner, Namepartner, Surname, Name, Patronomyc, Email, Phone, IDPostCode, IDRegion, IDCity, IDStreet, House, INN, Rating FROM Partner WHERE (IDPartner = SCOPE_IDENTITY())";
  7003. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7004. 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, "", "", ""));
  7005. 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, "", "", ""));
  7006. 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, "", "", ""));
  7007. 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, "", "", ""));
  7008. 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, "", "", ""));
  7009. 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, "", "", ""));
  7010. 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, "", "", ""));
  7011. 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, "", "", ""));
  7012. 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, "", "", ""));
  7013. 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, "", "", ""));
  7014. 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, "", "", ""));
  7015. 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, "", "", ""));
  7016. 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, "", "", ""));
  7017. 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, "", "", ""));
  7018. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7019. this._adapter.UpdateCommand.Connection = this.Connection;
  7020. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Partner] SET [IDTypePartner] = @IDTypePartner, [Namepartner] = @Nam" +
  7021. "epartner, [Surname] = @Surname, [Name] = @Name, [Patronomyc] = @Patronomyc, [Ema" +
  7022. "il] = @Email, [Phone] = @Phone, [IDPostCode] = @IDPostCode, [IDRegion] = @IDRegi" +
  7023. "on, [IDCity] = @IDCity, [IDStreet] = @IDStreet, [House] = @House, [INN] = @INN, " +
  7024. "[Rating] = @Rating WHERE (([IDPartner] = @Original_IDPartner) AND ([IDTypePartne" +
  7025. "r] = @Original_IDTypePartner) AND ((@IsNull_Namepartner = 1 AND [Namepartner] IS" +
  7026. " NULL) OR ([Namepartner] = @Original_Namepartner)) AND ((@IsNull_Surname = 1 AND" +
  7027. " [Surname] IS NULL) OR ([Surname] = @Original_Surname)) AND ((@IsNull_Name = 1 A" +
  7028. "ND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_Patronomyc = 1 AN" +
  7029. "D [Patronomyc] IS NULL) OR ([Patronomyc] = @Original_Patronomyc)) AND ((@IsNull_" +
  7030. "Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ((@IsNull_Pho" +
  7031. "ne = 1 AND [Phone] IS NULL) OR ([Phone] = @Original_Phone)) AND ((@IsNull_IDPost" +
  7032. "Code = 1 AND [IDPostCode] IS NULL) OR ([IDPostCode] = @Original_IDPostCode)) AND" +
  7033. " ((@IsNull_IDRegion = 1 AND [IDRegion] IS NULL) OR ([IDRegion] = @Original_IDReg" +
  7034. "ion)) AND ((@IsNull_IDCity = 1 AND [IDCity] IS NULL) OR ([IDCity] = @Original_ID" +
  7035. "City)) AND ((@IsNull_IDStreet = 1 AND [IDStreet] IS NULL) OR ([IDStreet] = @Orig" +
  7036. "inal_IDStreet)) AND ((@IsNull_House = 1 AND [House] IS NULL) OR ([House] = @Orig" +
  7037. "inal_House)) AND ((@IsNull_INN = 1 AND [INN] IS NULL) OR ([INN] = @Original_INN)" +
  7038. ") AND ((@IsNull_Rating = 1 AND [Rating] IS NULL) OR ([Rating] = @Original_Rating" +
  7039. ")));\r\nSELECT IDPartner, IDTypePartner, Namepartner, Surname, Name, Patronomyc, E" +
  7040. "mail, Phone, IDPostCode, IDRegion, IDCity, IDStreet, House, INN, Rating FROM Par" +
  7041. "tner WHERE (IDPartner = @IDPartner)";
  7042. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7043. 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, "", "", ""));
  7044. 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, "", "", ""));
  7045. 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, "", "", ""));
  7046. 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, "", "", ""));
  7047. 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, "", "", ""));
  7048. 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, "", "", ""));
  7049. 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, "", "", ""));
  7050. 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, "", "", ""));
  7051. 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, "", "", ""));
  7052. 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, "", "", ""));
  7053. 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, "", "", ""));
  7054. 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, "", "", ""));
  7055. 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, "", "", ""));
  7056. 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, "", "", ""));
  7057. 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, "", "", ""));
  7058. 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, "", "", ""));
  7059. 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, "", "", ""));
  7060. 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, "", "", ""));
  7061. 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, "", "", ""));
  7062. 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, "", "", ""));
  7063. 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, "", "", ""));
  7064. 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, "", "", ""));
  7065. 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, "", "", ""));
  7066. 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, "", "", ""));
  7067. 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, "", "", ""));
  7068. 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, "", "", ""));
  7069. 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, "", "", ""));
  7070. 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, "", "", ""));
  7071. 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, "", "", ""));
  7072. 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, "", "", ""));
  7073. 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, "", "", ""));
  7074. 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, "", "", ""));
  7075. 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, "", "", ""));
  7076. 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, "", "", ""));
  7077. 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, "", "", ""));
  7078. 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, "", "", ""));
  7079. 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, "", "", ""));
  7080. 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, "", "", ""));
  7081. 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, "", "", ""));
  7082. 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, "", "", ""));
  7083. 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, "", "", ""));
  7084. 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, "", "", ""));
  7085. 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, "", "", ""));
  7086. }
  7087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7089. private void InitConnection() {
  7090. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7091. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.AlfafloorGDVConnectionString;
  7092. }
  7093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7095. private void InitCommandCollection() {
  7096. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7097. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7098. this._commandCollection[0].Connection = this.Connection;
  7099. this._commandCollection[0].CommandText = "SELECT IDPartner, IDTypePartner, Namepartner, Surname, Name, Patronomyc, Email, P" +
  7100. "hone, IDPostCode, IDRegion, IDCity, IDStreet, House, INN, Rating FROM dbo.Partne" +
  7101. "r";
  7102. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7103. }
  7104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7106. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7107. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7108. public virtual int Fill(AlfafloorGDVDataSet.PartnerDataTable dataTable) {
  7109. this.Adapter.SelectCommand = this.CommandCollection[0];
  7110. if ((this.ClearBeforeFill == true)) {
  7111. dataTable.Clear();
  7112. }
  7113. int returnValue = this.Adapter.Fill(dataTable);
  7114. return returnValue;
  7115. }
  7116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7118. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7119. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7120. public virtual AlfafloorGDVDataSet.PartnerDataTable GetData() {
  7121. this.Adapter.SelectCommand = this.CommandCollection[0];
  7122. AlfafloorGDVDataSet.PartnerDataTable dataTable = new AlfafloorGDVDataSet.PartnerDataTable();
  7123. this.Adapter.Fill(dataTable);
  7124. return dataTable;
  7125. }
  7126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7128. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7129. public virtual int Update(AlfafloorGDVDataSet.PartnerDataTable dataTable) {
  7130. return this.Adapter.Update(dataTable);
  7131. }
  7132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7133. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7134. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7135. public virtual int Update(AlfafloorGDVDataSet dataSet) {
  7136. return this.Adapter.Update(dataSet, "Partner");
  7137. }
  7138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7140. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7141. public virtual int Update(global::System.Data.DataRow dataRow) {
  7142. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7143. dataRow});
  7144. }
  7145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7147. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7148. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7149. return this.Adapter.Update(dataRows);
  7150. }
  7151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7153. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7154. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7155. 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) {
  7156. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IDPartner));
  7157. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_IDTypePartner));
  7158. if ((Original_Namepartner == null)) {
  7159. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  7160. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  7161. }
  7162. else {
  7163. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  7164. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_Namepartner));
  7165. }
  7166. if ((Original_Surname == null)) {
  7167. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  7168. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  7169. }
  7170. else {
  7171. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  7172. this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_Surname));
  7173. }
  7174. if ((Original_Name == null)) {
  7175. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
  7176. this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
  7177. }
  7178. else {
  7179. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
  7180. this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_Name));
  7181. }
  7182. if ((Original_Patronomyc == null)) {
  7183. this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(1));
  7184. this.Adapter.DeleteCommand.Parameters[9].Value = global::System.DBNull.Value;
  7185. }
  7186. else {
  7187. this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(0));
  7188. this.Adapter.DeleteCommand.Parameters[9].Value = ((string)(Original_Patronomyc));
  7189. }
  7190. if ((Original_Email == null)) {
  7191. this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(1));
  7192. this.Adapter.DeleteCommand.Parameters[11].Value = global::System.DBNull.Value;
  7193. }
  7194. else {
  7195. this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(0));
  7196. this.Adapter.DeleteCommand.Parameters[11].Value = ((string)(Original_Email));
  7197. }
  7198. if ((Original_Phone == null)) {
  7199. this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(1));
  7200. this.Adapter.DeleteCommand.Parameters[13].Value = global::System.DBNull.Value;
  7201. }
  7202. else {
  7203. this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(0));
  7204. this.Adapter.DeleteCommand.Parameters[13].Value = ((string)(Original_Phone));
  7205. }
  7206. if ((Original_IDPostCode.HasValue == true)) {
  7207. this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(0));
  7208. this.Adapter.DeleteCommand.Parameters[15].Value = ((int)(Original_IDPostCode.Value));
  7209. }
  7210. else {
  7211. this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(1));
  7212. this.Adapter.DeleteCommand.Parameters[15].Value = global::System.DBNull.Value;
  7213. }
  7214. if ((Original_IDRegion.HasValue == true)) {
  7215. this.Adapter.DeleteCommand.Parameters[16].Value = ((object)(0));
  7216. this.Adapter.DeleteCommand.Parameters[17].Value = ((int)(Original_IDRegion.Value));
  7217. }
  7218. else {
  7219. this.Adapter.DeleteCommand.Parameters[16].Value = ((object)(1));
  7220. this.Adapter.DeleteCommand.Parameters[17].Value = global::System.DBNull.Value;
  7221. }
  7222. if ((Original_IDCity.HasValue == true)) {
  7223. this.Adapter.DeleteCommand.Parameters[18].Value = ((object)(0));
  7224. this.Adapter.DeleteCommand.Parameters[19].Value = ((int)(Original_IDCity.Value));
  7225. }
  7226. else {
  7227. this.Adapter.DeleteCommand.Parameters[18].Value = ((object)(1));
  7228. this.Adapter.DeleteCommand.Parameters[19].Value = global::System.DBNull.Value;
  7229. }
  7230. if ((Original_IDStreet.HasValue == true)) {
  7231. this.Adapter.DeleteCommand.Parameters[20].Value = ((object)(0));
  7232. this.Adapter.DeleteCommand.Parameters[21].Value = ((int)(Original_IDStreet.Value));
  7233. }
  7234. else {
  7235. this.Adapter.DeleteCommand.Parameters[20].Value = ((object)(1));
  7236. this.Adapter.DeleteCommand.Parameters[21].Value = global::System.DBNull.Value;
  7237. }
  7238. if ((Original_House.HasValue == true)) {
  7239. this.Adapter.DeleteCommand.Parameters[22].Value = ((object)(0));
  7240. this.Adapter.DeleteCommand.Parameters[23].Value = ((int)(Original_House.Value));
  7241. }
  7242. else {
  7243. this.Adapter.DeleteCommand.Parameters[22].Value = ((object)(1));
  7244. this.Adapter.DeleteCommand.Parameters[23].Value = global::System.DBNull.Value;
  7245. }
  7246. if ((Original_INN == null)) {
  7247. this.Adapter.DeleteCommand.Parameters[24].Value = ((object)(1));
  7248. this.Adapter.DeleteCommand.Parameters[25].Value = global::System.DBNull.Value;
  7249. }
  7250. else {
  7251. this.Adapter.DeleteCommand.Parameters[24].Value = ((object)(0));
  7252. this.Adapter.DeleteCommand.Parameters[25].Value = ((string)(Original_INN));
  7253. }
  7254. if ((Original_Rating.HasValue == true)) {
  7255. this.Adapter.DeleteCommand.Parameters[26].Value = ((object)(0));
  7256. this.Adapter.DeleteCommand.Parameters[27].Value = ((int)(Original_Rating.Value));
  7257. }
  7258. else {
  7259. this.Adapter.DeleteCommand.Parameters[26].Value = ((object)(1));
  7260. this.Adapter.DeleteCommand.Parameters[27].Value = global::System.DBNull.Value;
  7261. }
  7262. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7263. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7264. != global::System.Data.ConnectionState.Open)) {
  7265. this.Adapter.DeleteCommand.Connection.Open();
  7266. }
  7267. try {
  7268. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7269. return returnValue;
  7270. }
  7271. finally {
  7272. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7273. this.Adapter.DeleteCommand.Connection.Close();
  7274. }
  7275. }
  7276. }
  7277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7279. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7280. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7281. 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) {
  7282. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IDTypePartner));
  7283. if ((Namepartner == null)) {
  7284. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7285. }
  7286. else {
  7287. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Namepartner));
  7288. }
  7289. if ((Surname == null)) {
  7290. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  7291. }
  7292. else {
  7293. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Surname));
  7294. }
  7295. if ((Name == null)) {
  7296. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  7297. }
  7298. else {
  7299. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Name));
  7300. }
  7301. if ((Patronomyc == null)) {
  7302. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  7303. }
  7304. else {
  7305. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Patronomyc));
  7306. }
  7307. if ((Email == null)) {
  7308. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  7309. }
  7310. else {
  7311. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Email));
  7312. }
  7313. if ((Phone == null)) {
  7314. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  7315. }
  7316. else {
  7317. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Phone));
  7318. }
  7319. if ((IDPostCode.HasValue == true)) {
  7320. this.Adapter.InsertCommand.Parameters[7].Value = ((int)(IDPostCode.Value));
  7321. }
  7322. else {
  7323. this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
  7324. }
  7325. if ((IDRegion.HasValue == true)) {
  7326. this.Adapter.InsertCommand.Parameters[8].Value = ((int)(IDRegion.Value));
  7327. }
  7328. else {
  7329. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  7330. }
  7331. if ((IDCity.HasValue == true)) {
  7332. this.Adapter.InsertCommand.Parameters[9].Value = ((int)(IDCity.Value));
  7333. }
  7334. else {
  7335. this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value;
  7336. }
  7337. if ((IDStreet.HasValue == true)) {
  7338. this.Adapter.InsertCommand.Parameters[10].Value = ((int)(IDStreet.Value));
  7339. }
  7340. else {
  7341. this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value;
  7342. }
  7343. if ((House.HasValue == true)) {
  7344. this.Adapter.InsertCommand.Parameters[11].Value = ((int)(House.Value));
  7345. }
  7346. else {
  7347. this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value;
  7348. }
  7349. if ((INN == null)) {
  7350. this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value;
  7351. }
  7352. else {
  7353. this.Adapter.InsertCommand.Parameters[12].Value = ((string)(INN));
  7354. }
  7355. if ((Rating.HasValue == true)) {
  7356. this.Adapter.InsertCommand.Parameters[13].Value = ((int)(Rating.Value));
  7357. }
  7358. else {
  7359. this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value;
  7360. }
  7361. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7362. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7363. != global::System.Data.ConnectionState.Open)) {
  7364. this.Adapter.InsertCommand.Connection.Open();
  7365. }
  7366. try {
  7367. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7368. return returnValue;
  7369. }
  7370. finally {
  7371. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7372. this.Adapter.InsertCommand.Connection.Close();
  7373. }
  7374. }
  7375. }
  7376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7378. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7379. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7380. public virtual int Update(
  7381. int IDTypePartner,
  7382. string Namepartner,
  7383. string Surname,
  7384. string Name,
  7385. string Patronomyc,
  7386. string Email,
  7387. string Phone,
  7388. global::System.Nullable<int> IDPostCode,
  7389. global::System.Nullable<int> IDRegion,
  7390. global::System.Nullable<int> IDCity,
  7391. global::System.Nullable<int> IDStreet,
  7392. global::System.Nullable<int> House,
  7393. string INN,
  7394. global::System.Nullable<int> Rating,
  7395. int Original_IDPartner,
  7396. int Original_IDTypePartner,
  7397. string Original_Namepartner,
  7398. string Original_Surname,
  7399. string Original_Name,
  7400. string Original_Patronomyc,
  7401. string Original_Email,
  7402. string Original_Phone,
  7403. global::System.Nullable<int> Original_IDPostCode,
  7404. global::System.Nullable<int> Original_IDRegion,
  7405. global::System.Nullable<int> Original_IDCity,
  7406. global::System.Nullable<int> Original_IDStreet,
  7407. global::System.Nullable<int> Original_House,
  7408. string Original_INN,
  7409. global::System.Nullable<int> Original_Rating,
  7410. int IDPartner) {
  7411. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IDTypePartner));
  7412. if ((Namepartner == null)) {
  7413. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7414. }
  7415. else {
  7416. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Namepartner));
  7417. }
  7418. if ((Surname == null)) {
  7419. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  7420. }
  7421. else {
  7422. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Surname));
  7423. }
  7424. if ((Name == null)) {
  7425. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  7426. }
  7427. else {
  7428. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Name));
  7429. }
  7430. if ((Patronomyc == null)) {
  7431. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  7432. }
  7433. else {
  7434. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Patronomyc));
  7435. }
  7436. if ((Email == null)) {
  7437. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  7438. }
  7439. else {
  7440. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Email));
  7441. }
  7442. if ((Phone == null)) {
  7443. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  7444. }
  7445. else {
  7446. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Phone));
  7447. }
  7448. if ((IDPostCode.HasValue == true)) {
  7449. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(IDPostCode.Value));
  7450. }
  7451. else {
  7452. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  7453. }
  7454. if ((IDRegion.HasValue == true)) {
  7455. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(IDRegion.Value));
  7456. }
  7457. else {
  7458. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  7459. }
  7460. if ((IDCity.HasValue == true)) {
  7461. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(IDCity.Value));
  7462. }
  7463. else {
  7464. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  7465. }
  7466. if ((IDStreet.HasValue == true)) {
  7467. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(IDStreet.Value));
  7468. }
  7469. else {
  7470. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  7471. }
  7472. if ((House.HasValue == true)) {
  7473. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(House.Value));
  7474. }
  7475. else {
  7476. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  7477. }
  7478. if ((INN == null)) {
  7479. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  7480. }
  7481. else {
  7482. this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(INN));
  7483. }
  7484. if ((Rating.HasValue == true)) {
  7485. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Rating.Value));
  7486. }
  7487. else {
  7488. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  7489. }
  7490. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(Original_IDPartner));
  7491. this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_IDTypePartner));
  7492. if ((Original_Namepartner == null)) {
  7493. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
  7494. this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
  7495. }
  7496. else {
  7497. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
  7498. this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_Namepartner));
  7499. }
  7500. if ((Original_Surname == null)) {
  7501. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
  7502. this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
  7503. }
  7504. else {
  7505. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
  7506. this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_Surname));
  7507. }
  7508. if ((Original_Name == null)) {
  7509. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
  7510. this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
  7511. }
  7512. else {
  7513. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
  7514. this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_Name));
  7515. }
  7516. if ((Original_Patronomyc == null)) {
  7517. this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
  7518. this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
  7519. }
  7520. else {
  7521. this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
  7522. this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_Patronomyc));
  7523. }
  7524. if ((Original_Email == null)) {
  7525. this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1));
  7526. this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value;
  7527. }
  7528. else {
  7529. this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0));
  7530. this.Adapter.UpdateCommand.Parameters[25].Value = ((string)(Original_Email));
  7531. }
  7532. if ((Original_Phone == null)) {
  7533. this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(1));
  7534. this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value;
  7535. }
  7536. else {
  7537. this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(0));
  7538. this.Adapter.UpdateCommand.Parameters[27].Value = ((string)(Original_Phone));
  7539. }
  7540. if ((Original_IDPostCode.HasValue == true)) {
  7541. this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(0));
  7542. this.Adapter.UpdateCommand.Parameters[29].Value = ((int)(Original_IDPostCode.Value));
  7543. }
  7544. else {
  7545. this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(1));
  7546. this.Adapter.UpdateCommand.Parameters[29].Value = global::System.DBNull.Value;
  7547. }
  7548. if ((Original_IDRegion.HasValue == true)) {
  7549. this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(0));
  7550. this.Adapter.UpdateCommand.Parameters[31].Value = ((int)(Original_IDRegion.Value));
  7551. }
  7552. else {
  7553. this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(1));
  7554. this.Adapter.UpdateCommand.Parameters[31].Value = global::System.DBNull.Value;
  7555. }
  7556. if ((Original_IDCity.HasValue == true)) {
  7557. this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(0));
  7558. this.Adapter.UpdateCommand.Parameters[33].Value = ((int)(Original_IDCity.Value));
  7559. }
  7560. else {
  7561. this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(1));
  7562. this.Adapter.UpdateCommand.Parameters[33].Value = global::System.DBNull.Value;
  7563. }
  7564. if ((Original_IDStreet.HasValue == true)) {
  7565. this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(0));
  7566. this.Adapter.UpdateCommand.Parameters[35].Value = ((int)(Original_IDStreet.Value));
  7567. }
  7568. else {
  7569. this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(1));
  7570. this.Adapter.UpdateCommand.Parameters[35].Value = global::System.DBNull.Value;
  7571. }
  7572. if ((Original_House.HasValue == true)) {
  7573. this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(0));
  7574. this.Adapter.UpdateCommand.Parameters[37].Value = ((int)(Original_House.Value));
  7575. }
  7576. else {
  7577. this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(1));
  7578. this.Adapter.UpdateCommand.Parameters[37].Value = global::System.DBNull.Value;
  7579. }
  7580. if ((Original_INN == null)) {
  7581. this.Adapter.UpdateCommand.Parameters[38].Value = ((object)(1));
  7582. this.Adapter.UpdateCommand.Parameters[39].Value = global::System.DBNull.Value;
  7583. }
  7584. else {
  7585. this.Adapter.UpdateCommand.Parameters[38].Value = ((object)(0));
  7586. this.Adapter.UpdateCommand.Parameters[39].Value = ((string)(Original_INN));
  7587. }
  7588. if ((Original_Rating.HasValue == true)) {
  7589. this.Adapter.UpdateCommand.Parameters[40].Value = ((object)(0));
  7590. this.Adapter.UpdateCommand.Parameters[41].Value = ((int)(Original_Rating.Value));
  7591. }
  7592. else {
  7593. this.Adapter.UpdateCommand.Parameters[40].Value = ((object)(1));
  7594. this.Adapter.UpdateCommand.Parameters[41].Value = global::System.DBNull.Value;
  7595. }
  7596. this.Adapter.UpdateCommand.Parameters[42].Value = ((int)(IDPartner));
  7597. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7598. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7599. != global::System.Data.ConnectionState.Open)) {
  7600. this.Adapter.UpdateCommand.Connection.Open();
  7601. }
  7602. try {
  7603. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7604. return returnValue;
  7605. }
  7606. finally {
  7607. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7608. this.Adapter.UpdateCommand.Connection.Close();
  7609. }
  7610. }
  7611. }
  7612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7614. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7615. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7616. public virtual int Update(
  7617. int IDTypePartner,
  7618. string Namepartner,
  7619. string Surname,
  7620. string Name,
  7621. string Patronomyc,
  7622. string Email,
  7623. string Phone,
  7624. global::System.Nullable<int> IDPostCode,
  7625. global::System.Nullable<int> IDRegion,
  7626. global::System.Nullable<int> IDCity,
  7627. global::System.Nullable<int> IDStreet,
  7628. global::System.Nullable<int> House,
  7629. string INN,
  7630. global::System.Nullable<int> Rating,
  7631. int Original_IDPartner,
  7632. int Original_IDTypePartner,
  7633. string Original_Namepartner,
  7634. string Original_Surname,
  7635. string Original_Name,
  7636. string Original_Patronomyc,
  7637. string Original_Email,
  7638. string Original_Phone,
  7639. global::System.Nullable<int> Original_IDPostCode,
  7640. global::System.Nullable<int> Original_IDRegion,
  7641. global::System.Nullable<int> Original_IDCity,
  7642. global::System.Nullable<int> Original_IDStreet,
  7643. global::System.Nullable<int> Original_House,
  7644. string Original_INN,
  7645. global::System.Nullable<int> Original_Rating) {
  7646. 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);
  7647. }
  7648. }
  7649. /// <summary>
  7650. ///Represents the connection and commands used to retrieve and save data.
  7651. ///</summary>
  7652. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7653. [global::System.ComponentModel.ToolboxItem(true)]
  7654. [global::System.ComponentModel.DataObjectAttribute(true)]
  7655. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7656. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7657. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7658. public partial class PartnerProductsTableAdapter : global::System.ComponentModel.Component {
  7659. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7660. private global::System.Data.SqlClient.SqlConnection _connection;
  7661. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7662. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7663. private bool _clearBeforeFill;
  7664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7666. public PartnerProductsTableAdapter() {
  7667. this.ClearBeforeFill = true;
  7668. }
  7669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7671. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7672. get {
  7673. if ((this._adapter == null)) {
  7674. this.InitAdapter();
  7675. }
  7676. return this._adapter;
  7677. }
  7678. }
  7679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7681. internal global::System.Data.SqlClient.SqlConnection Connection {
  7682. get {
  7683. if ((this._connection == null)) {
  7684. this.InitConnection();
  7685. }
  7686. return this._connection;
  7687. }
  7688. set {
  7689. this._connection = value;
  7690. if ((this.Adapter.InsertCommand != null)) {
  7691. this.Adapter.InsertCommand.Connection = value;
  7692. }
  7693. if ((this.Adapter.DeleteCommand != null)) {
  7694. this.Adapter.DeleteCommand.Connection = value;
  7695. }
  7696. if ((this.Adapter.UpdateCommand != null)) {
  7697. this.Adapter.UpdateCommand.Connection = value;
  7698. }
  7699. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7700. if ((this.CommandCollection[i] != null)) {
  7701. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7702. }
  7703. }
  7704. }
  7705. }
  7706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7708. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7709. get {
  7710. return this._transaction;
  7711. }
  7712. set {
  7713. this._transaction = value;
  7714. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7715. this.CommandCollection[i].Transaction = this._transaction;
  7716. }
  7717. if (((this.Adapter != null)
  7718. && (this.Adapter.DeleteCommand != null))) {
  7719. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7720. }
  7721. if (((this.Adapter != null)
  7722. && (this.Adapter.InsertCommand != null))) {
  7723. this.Adapter.InsertCommand.Transaction = this._transaction;
  7724. }
  7725. if (((this.Adapter != null)
  7726. && (this.Adapter.UpdateCommand != null))) {
  7727. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7728. }
  7729. }
  7730. }
  7731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7733. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7734. get {
  7735. if ((this._commandCollection == null)) {
  7736. this.InitCommandCollection();
  7737. }
  7738. return this._commandCollection;
  7739. }
  7740. }
  7741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7742. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7743. public bool ClearBeforeFill {
  7744. get {
  7745. return this._clearBeforeFill;
  7746. }
  7747. set {
  7748. this._clearBeforeFill = value;
  7749. }
  7750. }
  7751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7753. private void InitAdapter() {
  7754. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7755. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7756. tableMapping.SourceTable = "Table";
  7757. tableMapping.DataSetTable = "PartnerProducts";
  7758. tableMapping.ColumnMappings.Add("IDPartnerProduct", "IDPartnerProduct");
  7759. tableMapping.ColumnMappings.Add("IDProduct", "IDProduct");
  7760. tableMapping.ColumnMappings.Add("IDPartner", "IDPartner");
  7761. tableMapping.ColumnMappings.Add("CountProduct", "CountProduct");
  7762. tableMapping.ColumnMappings.Add("DateSale", "DateSale");
  7763. this._adapter.TableMappings.Add(tableMapping);
  7764. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7765. this._adapter.DeleteCommand.Connection = this.Connection;
  7766. 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)))";
  7767. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7768. 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, "", "", ""));
  7769. 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, "", "", ""));
  7770. 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, "", "", ""));
  7771. 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, "", "", ""));
  7772. 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, "", "", ""));
  7773. 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, "", "", ""));
  7774. 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, "", "", ""));
  7775. 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, "", "", ""));
  7776. 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, "", "", ""));
  7777. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7778. this._adapter.InsertCommand.Connection = this.Connection;
  7779. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[PartnerProducts] ([IDProduct], [IDPartner], [CountProduct], [DateSale]) VALUES (@IDProduct, @IDPartner, @CountProduct, @DateSale);
  7780. SELECT IDPartnerProduct, IDProduct, IDPartner, CountProduct, DateSale FROM PartnerProducts WHERE (IDPartnerProduct = SCOPE_IDENTITY())";
  7781. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7782. 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, "", "", ""));
  7783. 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, "", "", ""));
  7784. 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, "", "", ""));
  7785. 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, "", "", ""));
  7786. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7787. this._adapter.UpdateCommand.Connection = this.Connection;
  7788. 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)));
  7789. SELECT IDPartnerProduct, IDProduct, IDPartner, CountProduct, DateSale FROM PartnerProducts WHERE (IDPartnerProduct = @IDPartnerProduct)";
  7790. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7791. 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, "", "", ""));
  7792. 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, "", "", ""));
  7793. 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, "", "", ""));
  7794. 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, "", "", ""));
  7795. 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, "", "", ""));
  7796. 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, "", "", ""));
  7797. 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, "", "", ""));
  7798. 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, "", "", ""));
  7799. 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, "", "", ""));
  7800. 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, "", "", ""));
  7801. 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, "", "", ""));
  7802. 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, "", "", ""));
  7803. 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, "", "", ""));
  7804. 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, "", "", ""));
  7805. }
  7806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7808. private void InitConnection() {
  7809. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7810. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.AlfafloorGDVConnectionString;
  7811. }
  7812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7814. private void InitCommandCollection() {
  7815. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7816. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7817. this._commandCollection[0].Connection = this.Connection;
  7818. this._commandCollection[0].CommandText = "SELECT IDPartnerProduct, IDProduct, IDPartner, CountProduct, DateSale FROM dbo.Pa" +
  7819. "rtnerProducts";
  7820. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7821. }
  7822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7824. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7825. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7826. public virtual int Fill(AlfafloorGDVDataSet.PartnerProductsDataTable dataTable) {
  7827. this.Adapter.SelectCommand = this.CommandCollection[0];
  7828. if ((this.ClearBeforeFill == true)) {
  7829. dataTable.Clear();
  7830. }
  7831. int returnValue = this.Adapter.Fill(dataTable);
  7832. return returnValue;
  7833. }
  7834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7836. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7837. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7838. public virtual AlfafloorGDVDataSet.PartnerProductsDataTable GetData() {
  7839. this.Adapter.SelectCommand = this.CommandCollection[0];
  7840. AlfafloorGDVDataSet.PartnerProductsDataTable dataTable = new AlfafloorGDVDataSet.PartnerProductsDataTable();
  7841. this.Adapter.Fill(dataTable);
  7842. return dataTable;
  7843. }
  7844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7846. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7847. public virtual int Update(AlfafloorGDVDataSet.PartnerProductsDataTable dataTable) {
  7848. return this.Adapter.Update(dataTable);
  7849. }
  7850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7852. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7853. public virtual int Update(AlfafloorGDVDataSet dataSet) {
  7854. return this.Adapter.Update(dataSet, "PartnerProducts");
  7855. }
  7856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7858. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7859. public virtual int Update(global::System.Data.DataRow dataRow) {
  7860. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7861. dataRow});
  7862. }
  7863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7865. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7866. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7867. return this.Adapter.Update(dataRows);
  7868. }
  7869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7871. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7872. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7873. 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) {
  7874. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IDPartnerProduct));
  7875. if ((Original_IDProduct.HasValue == true)) {
  7876. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7877. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_IDProduct.Value));
  7878. }
  7879. else {
  7880. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7881. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7882. }
  7883. if ((Original_IDPartner.HasValue == true)) {
  7884. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  7885. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_IDPartner.Value));
  7886. }
  7887. else {
  7888. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  7889. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  7890. }
  7891. if ((Original_CountProduct.HasValue == true)) {
  7892. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  7893. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_CountProduct.Value));
  7894. }
  7895. else {
  7896. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  7897. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  7898. }
  7899. if ((Original_DateSale.HasValue == true)) {
  7900. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  7901. this.Adapter.DeleteCommand.Parameters[8].Value = ((System.DateTime)(Original_DateSale.Value));
  7902. }
  7903. else {
  7904. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  7905. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  7906. }
  7907. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7908. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7909. != global::System.Data.ConnectionState.Open)) {
  7910. this.Adapter.DeleteCommand.Connection.Open();
  7911. }
  7912. try {
  7913. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7914. return returnValue;
  7915. }
  7916. finally {
  7917. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7918. this.Adapter.DeleteCommand.Connection.Close();
  7919. }
  7920. }
  7921. }
  7922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7923. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7924. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7925. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7926. 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) {
  7927. if ((IDProduct.HasValue == true)) {
  7928. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IDProduct.Value));
  7929. }
  7930. else {
  7931. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  7932. }
  7933. if ((IDPartner.HasValue == true)) {
  7934. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(IDPartner.Value));
  7935. }
  7936. else {
  7937. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7938. }
  7939. if ((CountProduct.HasValue == true)) {
  7940. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(CountProduct.Value));
  7941. }
  7942. else {
  7943. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  7944. }
  7945. if ((DateSale.HasValue == true)) {
  7946. this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(DateSale.Value));
  7947. }
  7948. else {
  7949. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  7950. }
  7951. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7952. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7953. != global::System.Data.ConnectionState.Open)) {
  7954. this.Adapter.InsertCommand.Connection.Open();
  7955. }
  7956. try {
  7957. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7958. return returnValue;
  7959. }
  7960. finally {
  7961. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7962. this.Adapter.InsertCommand.Connection.Close();
  7963. }
  7964. }
  7965. }
  7966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7968. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7969. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7970. 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) {
  7971. if ((IDProduct.HasValue == true)) {
  7972. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IDProduct.Value));
  7973. }
  7974. else {
  7975. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  7976. }
  7977. if ((IDPartner.HasValue == true)) {
  7978. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(IDPartner.Value));
  7979. }
  7980. else {
  7981. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7982. }
  7983. if ((CountProduct.HasValue == true)) {
  7984. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(CountProduct.Value));
  7985. }
  7986. else {
  7987. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  7988. }
  7989. if ((DateSale.HasValue == true)) {
  7990. this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(DateSale.Value));
  7991. }
  7992. else {
  7993. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  7994. }
  7995. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_IDPartnerProduct));
  7996. if ((Original_IDProduct.HasValue == true)) {
  7997. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  7998. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_IDProduct.Value));
  7999. }
  8000. else {
  8001. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  8002. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  8003. }
  8004. if ((Original_IDPartner.HasValue == true)) {
  8005. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  8006. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_IDPartner.Value));
  8007. }
  8008. else {
  8009. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  8010. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  8011. }
  8012. if ((Original_CountProduct.HasValue == true)) {
  8013. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  8014. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_CountProduct.Value));
  8015. }
  8016. else {
  8017. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  8018. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  8019. }
  8020. if ((Original_DateSale.HasValue == true)) {
  8021. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  8022. this.Adapter.UpdateCommand.Parameters[12].Value = ((System.DateTime)(Original_DateSale.Value));
  8023. }
  8024. else {
  8025. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  8026. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  8027. }
  8028. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(IDPartnerProduct));
  8029. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8030. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8031. != global::System.Data.ConnectionState.Open)) {
  8032. this.Adapter.UpdateCommand.Connection.Open();
  8033. }
  8034. try {
  8035. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8036. return returnValue;
  8037. }
  8038. finally {
  8039. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8040. this.Adapter.UpdateCommand.Connection.Close();
  8041. }
  8042. }
  8043. }
  8044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8046. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8047. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8048. 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) {
  8049. return this.Update(IDProduct, IDPartner, CountProduct, DateSale, Original_IDPartnerProduct, Original_IDProduct, Original_IDPartner, Original_CountProduct, Original_DateSale, Original_IDPartnerProduct);
  8050. }
  8051. }
  8052. /// <summary>
  8053. ///Represents the connection and commands used to retrieve and save data.
  8054. ///</summary>
  8055. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8056. [global::System.ComponentModel.ToolboxItem(true)]
  8057. [global::System.ComponentModel.DataObjectAttribute(true)]
  8058. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8059. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8060. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8061. public partial class PostCodeTableAdapter : global::System.ComponentModel.Component {
  8062. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8063. private global::System.Data.SqlClient.SqlConnection _connection;
  8064. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8065. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8066. private bool _clearBeforeFill;
  8067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8069. public PostCodeTableAdapter() {
  8070. this.ClearBeforeFill = true;
  8071. }
  8072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8074. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8075. get {
  8076. if ((this._adapter == null)) {
  8077. this.InitAdapter();
  8078. }
  8079. return this._adapter;
  8080. }
  8081. }
  8082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8084. internal global::System.Data.SqlClient.SqlConnection Connection {
  8085. get {
  8086. if ((this._connection == null)) {
  8087. this.InitConnection();
  8088. }
  8089. return this._connection;
  8090. }
  8091. set {
  8092. this._connection = value;
  8093. if ((this.Adapter.InsertCommand != null)) {
  8094. this.Adapter.InsertCommand.Connection = value;
  8095. }
  8096. if ((this.Adapter.DeleteCommand != null)) {
  8097. this.Adapter.DeleteCommand.Connection = value;
  8098. }
  8099. if ((this.Adapter.UpdateCommand != null)) {
  8100. this.Adapter.UpdateCommand.Connection = value;
  8101. }
  8102. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8103. if ((this.CommandCollection[i] != null)) {
  8104. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8105. }
  8106. }
  8107. }
  8108. }
  8109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8110. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8111. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8112. get {
  8113. return this._transaction;
  8114. }
  8115. set {
  8116. this._transaction = value;
  8117. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8118. this.CommandCollection[i].Transaction = this._transaction;
  8119. }
  8120. if (((this.Adapter != null)
  8121. && (this.Adapter.DeleteCommand != null))) {
  8122. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8123. }
  8124. if (((this.Adapter != null)
  8125. && (this.Adapter.InsertCommand != null))) {
  8126. this.Adapter.InsertCommand.Transaction = this._transaction;
  8127. }
  8128. if (((this.Adapter != null)
  8129. && (this.Adapter.UpdateCommand != null))) {
  8130. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8131. }
  8132. }
  8133. }
  8134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8136. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8137. get {
  8138. if ((this._commandCollection == null)) {
  8139. this.InitCommandCollection();
  8140. }
  8141. return this._commandCollection;
  8142. }
  8143. }
  8144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8146. public bool ClearBeforeFill {
  8147. get {
  8148. return this._clearBeforeFill;
  8149. }
  8150. set {
  8151. this._clearBeforeFill = value;
  8152. }
  8153. }
  8154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8156. private void InitAdapter() {
  8157. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8158. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8159. tableMapping.SourceTable = "Table";
  8160. tableMapping.DataSetTable = "PostCode";
  8161. tableMapping.ColumnMappings.Add("IDPostCode", "IDPostCode");
  8162. tableMapping.ColumnMappings.Add("PostCode", "PostCode");
  8163. this._adapter.TableMappings.Add(tableMapping);
  8164. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8165. this._adapter.DeleteCommand.Connection = this.Connection;
  8166. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[PostCode] WHERE (([IDPostCode] = @Original_IDPostCode) AND ((@" +
  8167. "IsNull_PostCode = 1 AND [PostCode] IS NULL) OR ([PostCode] = @Original_PostCode)" +
  8168. "))";
  8169. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8170. 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, "", "", ""));
  8171. 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, "", "", ""));
  8172. 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, "", "", ""));
  8173. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8174. this._adapter.InsertCommand.Connection = this.Connection;
  8175. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[PostCode] ([PostCode]) VALUES (@PostCode);\r\nSELECT IDPostCode," +
  8176. " PostCode FROM PostCode WHERE (IDPostCode = SCOPE_IDENTITY())";
  8177. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8178. 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, "", "", ""));
  8179. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8180. this._adapter.UpdateCommand.Connection = this.Connection;
  8181. 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)));
  8182. SELECT IDPostCode, PostCode FROM PostCode WHERE (IDPostCode = @IDPostCode)";
  8183. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8184. 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, "", "", ""));
  8185. 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, "", "", ""));
  8186. 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, "", "", ""));
  8187. 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, "", "", ""));
  8188. 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, "", "", ""));
  8189. }
  8190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8191. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8192. private void InitConnection() {
  8193. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8194. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.AlfafloorGDVConnectionString;
  8195. }
  8196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8198. private void InitCommandCollection() {
  8199. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8200. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8201. this._commandCollection[0].Connection = this.Connection;
  8202. this._commandCollection[0].CommandText = "SELECT IDPostCode, PostCode FROM dbo.PostCode";
  8203. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8204. }
  8205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8207. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8208. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8209. public virtual int Fill(AlfafloorGDVDataSet.PostCodeDataTable dataTable) {
  8210. this.Adapter.SelectCommand = this.CommandCollection[0];
  8211. if ((this.ClearBeforeFill == true)) {
  8212. dataTable.Clear();
  8213. }
  8214. int returnValue = this.Adapter.Fill(dataTable);
  8215. return returnValue;
  8216. }
  8217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8219. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8220. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8221. public virtual AlfafloorGDVDataSet.PostCodeDataTable GetData() {
  8222. this.Adapter.SelectCommand = this.CommandCollection[0];
  8223. AlfafloorGDVDataSet.PostCodeDataTable dataTable = new AlfafloorGDVDataSet.PostCodeDataTable();
  8224. this.Adapter.Fill(dataTable);
  8225. return dataTable;
  8226. }
  8227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8229. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8230. public virtual int Update(AlfafloorGDVDataSet.PostCodeDataTable dataTable) {
  8231. return this.Adapter.Update(dataTable);
  8232. }
  8233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8235. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8236. public virtual int Update(AlfafloorGDVDataSet dataSet) {
  8237. return this.Adapter.Update(dataSet, "PostCode");
  8238. }
  8239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8241. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8242. public virtual int Update(global::System.Data.DataRow dataRow) {
  8243. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8244. dataRow});
  8245. }
  8246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8248. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8249. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8250. return this.Adapter.Update(dataRows);
  8251. }
  8252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8254. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8255. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8256. public virtual int Delete(int Original_IDPostCode, global::System.Nullable<int> Original_PostCode) {
  8257. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IDPostCode));
  8258. if ((Original_PostCode.HasValue == true)) {
  8259. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  8260. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_PostCode.Value));
  8261. }
  8262. else {
  8263. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  8264. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  8265. }
  8266. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8267. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8268. != global::System.Data.ConnectionState.Open)) {
  8269. this.Adapter.DeleteCommand.Connection.Open();
  8270. }
  8271. try {
  8272. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8273. return returnValue;
  8274. }
  8275. finally {
  8276. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8277. this.Adapter.DeleteCommand.Connection.Close();
  8278. }
  8279. }
  8280. }
  8281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8282. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8283. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8284. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8285. public virtual int Insert(global::System.Nullable<int> PostCode) {
  8286. if ((PostCode.HasValue == true)) {
  8287. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(PostCode.Value));
  8288. }
  8289. else {
  8290. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  8291. }
  8292. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8293. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8294. != global::System.Data.ConnectionState.Open)) {
  8295. this.Adapter.InsertCommand.Connection.Open();
  8296. }
  8297. try {
  8298. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8299. return returnValue;
  8300. }
  8301. finally {
  8302. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8303. this.Adapter.InsertCommand.Connection.Close();
  8304. }
  8305. }
  8306. }
  8307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8309. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8310. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8311. public virtual int Update(global::System.Nullable<int> PostCode, int Original_IDPostCode, global::System.Nullable<int> Original_PostCode, int IDPostCode) {
  8312. if ((PostCode.HasValue == true)) {
  8313. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(PostCode.Value));
  8314. }
  8315. else {
  8316. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  8317. }
  8318. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_IDPostCode));
  8319. if ((Original_PostCode.HasValue == true)) {
  8320. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  8321. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_PostCode.Value));
  8322. }
  8323. else {
  8324. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  8325. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8326. }
  8327. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(IDPostCode));
  8328. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8329. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8330. != global::System.Data.ConnectionState.Open)) {
  8331. this.Adapter.UpdateCommand.Connection.Open();
  8332. }
  8333. try {
  8334. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8335. return returnValue;
  8336. }
  8337. finally {
  8338. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8339. this.Adapter.UpdateCommand.Connection.Close();
  8340. }
  8341. }
  8342. }
  8343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8344. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8345. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8346. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8347. public virtual int Update(global::System.Nullable<int> PostCode, int Original_IDPostCode, global::System.Nullable<int> Original_PostCode) {
  8348. return this.Update(PostCode, Original_IDPostCode, Original_PostCode, Original_IDPostCode);
  8349. }
  8350. }
  8351. /// <summary>
  8352. ///Represents the connection and commands used to retrieve and save data.
  8353. ///</summary>
  8354. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8355. [global::System.ComponentModel.ToolboxItem(true)]
  8356. [global::System.ComponentModel.DataObjectAttribute(true)]
  8357. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8358. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8359. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8360. public partial class ProductTableAdapter : global::System.ComponentModel.Component {
  8361. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8362. private global::System.Data.SqlClient.SqlConnection _connection;
  8363. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8364. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8365. private bool _clearBeforeFill;
  8366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8367. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8368. public ProductTableAdapter() {
  8369. this.ClearBeforeFill = true;
  8370. }
  8371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8372. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8373. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8374. get {
  8375. if ((this._adapter == null)) {
  8376. this.InitAdapter();
  8377. }
  8378. return this._adapter;
  8379. }
  8380. }
  8381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8383. internal global::System.Data.SqlClient.SqlConnection Connection {
  8384. get {
  8385. if ((this._connection == null)) {
  8386. this.InitConnection();
  8387. }
  8388. return this._connection;
  8389. }
  8390. set {
  8391. this._connection = value;
  8392. if ((this.Adapter.InsertCommand != null)) {
  8393. this.Adapter.InsertCommand.Connection = value;
  8394. }
  8395. if ((this.Adapter.DeleteCommand != null)) {
  8396. this.Adapter.DeleteCommand.Connection = value;
  8397. }
  8398. if ((this.Adapter.UpdateCommand != null)) {
  8399. this.Adapter.UpdateCommand.Connection = value;
  8400. }
  8401. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8402. if ((this.CommandCollection[i] != null)) {
  8403. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8404. }
  8405. }
  8406. }
  8407. }
  8408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8410. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8411. get {
  8412. return this._transaction;
  8413. }
  8414. set {
  8415. this._transaction = value;
  8416. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8417. this.CommandCollection[i].Transaction = this._transaction;
  8418. }
  8419. if (((this.Adapter != null)
  8420. && (this.Adapter.DeleteCommand != null))) {
  8421. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8422. }
  8423. if (((this.Adapter != null)
  8424. && (this.Adapter.InsertCommand != null))) {
  8425. this.Adapter.InsertCommand.Transaction = this._transaction;
  8426. }
  8427. if (((this.Adapter != null)
  8428. && (this.Adapter.UpdateCommand != null))) {
  8429. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8430. }
  8431. }
  8432. }
  8433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8434. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8435. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8436. get {
  8437. if ((this._commandCollection == null)) {
  8438. this.InitCommandCollection();
  8439. }
  8440. return this._commandCollection;
  8441. }
  8442. }
  8443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8444. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8445. public bool ClearBeforeFill {
  8446. get {
  8447. return this._clearBeforeFill;
  8448. }
  8449. set {
  8450. this._clearBeforeFill = value;
  8451. }
  8452. }
  8453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8454. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8455. private void InitAdapter() {
  8456. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8457. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8458. tableMapping.SourceTable = "Table";
  8459. tableMapping.DataSetTable = "Product";
  8460. tableMapping.ColumnMappings.Add("IDProduct", "IDProduct");
  8461. tableMapping.ColumnMappings.Add("IDProductType", "IDProductType");
  8462. tableMapping.ColumnMappings.Add("ProductName", "ProductName");
  8463. tableMapping.ColumnMappings.Add("Article", "Article");
  8464. tableMapping.ColumnMappings.Add("Cost", "Cost");
  8465. this._adapter.TableMappings.Add(tableMapping);
  8466. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8467. this._adapter.DeleteCommand.Connection = this.Connection;
  8468. 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)))";
  8469. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8470. 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, "", "", ""));
  8471. 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, "", "", ""));
  8472. 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, "", "", ""));
  8473. 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, "", "", ""));
  8474. 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, "", "", ""));
  8475. 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, "", "", ""));
  8476. 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, "", "", ""));
  8477. 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, "", "", ""));
  8478. 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, "", "", ""));
  8479. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8480. this._adapter.InsertCommand.Connection = this.Connection;
  8481. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Product] ([IDProductType], [ProductName], [Article], [Cost]) V" +
  8482. "ALUES (@IDProductType, @ProductName, @Article, @Cost);\r\nSELECT IDProduct, IDProd" +
  8483. "uctType, ProductName, Article, Cost FROM Product WHERE (IDProduct = SCOPE_IDENTI" +
  8484. "TY())";
  8485. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8486. 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, "", "", ""));
  8487. 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, "", "", ""));
  8488. 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, "", "", ""));
  8489. 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, "", "", ""));
  8490. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8491. this._adapter.UpdateCommand.Connection = this.Connection;
  8492. 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)));
  8493. SELECT IDProduct, IDProductType, ProductName, Article, Cost FROM Product WHERE (IDProduct = @IDProduct)";
  8494. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8495. 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, "", "", ""));
  8496. 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, "", "", ""));
  8497. 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, "", "", ""));
  8498. 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, "", "", ""));
  8499. 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, "", "", ""));
  8500. 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, "", "", ""));
  8501. 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, "", "", ""));
  8502. 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, "", "", ""));
  8503. 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, "", "", ""));
  8504. 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, "", "", ""));
  8505. 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, "", "", ""));
  8506. 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, "", "", ""));
  8507. 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, "", "", ""));
  8508. 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, "", "", ""));
  8509. }
  8510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8512. private void InitConnection() {
  8513. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8514. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.AlfafloorGDVConnectionString;
  8515. }
  8516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8518. private void InitCommandCollection() {
  8519. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8520. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8521. this._commandCollection[0].Connection = this.Connection;
  8522. this._commandCollection[0].CommandText = "SELECT IDProduct, IDProductType, ProductName, Article, Cost FROM dbo.Product";
  8523. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8524. }
  8525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8526. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8527. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8528. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8529. public virtual int Fill(AlfafloorGDVDataSet.ProductDataTable dataTable) {
  8530. this.Adapter.SelectCommand = this.CommandCollection[0];
  8531. if ((this.ClearBeforeFill == true)) {
  8532. dataTable.Clear();
  8533. }
  8534. int returnValue = this.Adapter.Fill(dataTable);
  8535. return returnValue;
  8536. }
  8537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8539. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8540. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8541. public virtual AlfafloorGDVDataSet.ProductDataTable GetData() {
  8542. this.Adapter.SelectCommand = this.CommandCollection[0];
  8543. AlfafloorGDVDataSet.ProductDataTable dataTable = new AlfafloorGDVDataSet.ProductDataTable();
  8544. this.Adapter.Fill(dataTable);
  8545. return dataTable;
  8546. }
  8547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8549. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8550. public virtual int Update(AlfafloorGDVDataSet.ProductDataTable dataTable) {
  8551. return this.Adapter.Update(dataTable);
  8552. }
  8553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8555. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8556. public virtual int Update(AlfafloorGDVDataSet dataSet) {
  8557. return this.Adapter.Update(dataSet, "Product");
  8558. }
  8559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8561. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8562. public virtual int Update(global::System.Data.DataRow dataRow) {
  8563. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8564. dataRow});
  8565. }
  8566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8568. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8569. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8570. return this.Adapter.Update(dataRows);
  8571. }
  8572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8574. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8575. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8576. 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) {
  8577. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IDProduct));
  8578. if ((Original_IDProductType.HasValue == true)) {
  8579. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  8580. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_IDProductType.Value));
  8581. }
  8582. else {
  8583. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  8584. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  8585. }
  8586. if ((Original_ProductName == null)) {
  8587. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  8588. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  8589. }
  8590. else {
  8591. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  8592. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_ProductName));
  8593. }
  8594. if ((Original_Article == null)) {
  8595. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  8596. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  8597. }
  8598. else {
  8599. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  8600. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Article));
  8601. }
  8602. if ((Original_Cost.HasValue == true)) {
  8603. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  8604. this.Adapter.DeleteCommand.Parameters[8].Value = ((decimal)(Original_Cost.Value));
  8605. }
  8606. else {
  8607. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  8608. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  8609. }
  8610. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8611. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8612. != global::System.Data.ConnectionState.Open)) {
  8613. this.Adapter.DeleteCommand.Connection.Open();
  8614. }
  8615. try {
  8616. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8617. return returnValue;
  8618. }
  8619. finally {
  8620. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8621. this.Adapter.DeleteCommand.Connection.Close();
  8622. }
  8623. }
  8624. }
  8625. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8626. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8627. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8628. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8629. public virtual int Insert(global::System.Nullable<int> IDProductType, string ProductName, string Article, global::System.Nullable<decimal> Cost) {
  8630. if ((IDProductType.HasValue == true)) {
  8631. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IDProductType.Value));
  8632. }
  8633. else {
  8634. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  8635. }
  8636. if ((ProductName == null)) {
  8637. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  8638. }
  8639. else {
  8640. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(ProductName));
  8641. }
  8642. if ((Article == null)) {
  8643. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  8644. }
  8645. else {
  8646. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Article));
  8647. }
  8648. if ((Cost.HasValue == true)) {
  8649. this.Adapter.InsertCommand.Parameters[3].Value = ((decimal)(Cost.Value));
  8650. }
  8651. else {
  8652. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  8653. }
  8654. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8655. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8656. != global::System.Data.ConnectionState.Open)) {
  8657. this.Adapter.InsertCommand.Connection.Open();
  8658. }
  8659. try {
  8660. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8661. return returnValue;
  8662. }
  8663. finally {
  8664. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8665. this.Adapter.InsertCommand.Connection.Close();
  8666. }
  8667. }
  8668. }
  8669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8671. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8672. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8673. 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) {
  8674. if ((IDProductType.HasValue == true)) {
  8675. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IDProductType.Value));
  8676. }
  8677. else {
  8678. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  8679. }
  8680. if ((ProductName == null)) {
  8681. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  8682. }
  8683. else {
  8684. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(ProductName));
  8685. }
  8686. if ((Article == null)) {
  8687. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  8688. }
  8689. else {
  8690. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Article));
  8691. }
  8692. if ((Cost.HasValue == true)) {
  8693. this.Adapter.UpdateCommand.Parameters[3].Value = ((decimal)(Cost.Value));
  8694. }
  8695. else {
  8696. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8697. }
  8698. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_IDProduct));
  8699. if ((Original_IDProductType.HasValue == true)) {
  8700. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  8701. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_IDProductType.Value));
  8702. }
  8703. else {
  8704. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  8705. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  8706. }
  8707. if ((Original_ProductName == null)) {
  8708. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  8709. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  8710. }
  8711. else {
  8712. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  8713. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_ProductName));
  8714. }
  8715. if ((Original_Article == null)) {
  8716. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  8717. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  8718. }
  8719. else {
  8720. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  8721. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Article));
  8722. }
  8723. if ((Original_Cost.HasValue == true)) {
  8724. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  8725. this.Adapter.UpdateCommand.Parameters[12].Value = ((decimal)(Original_Cost.Value));
  8726. }
  8727. else {
  8728. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  8729. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  8730. }
  8731. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(IDProduct));
  8732. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8733. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8734. != global::System.Data.ConnectionState.Open)) {
  8735. this.Adapter.UpdateCommand.Connection.Open();
  8736. }
  8737. try {
  8738. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8739. return returnValue;
  8740. }
  8741. finally {
  8742. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8743. this.Adapter.UpdateCommand.Connection.Close();
  8744. }
  8745. }
  8746. }
  8747. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8748. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8749. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8750. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8751. 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) {
  8752. return this.Update(IDProductType, ProductName, Article, Cost, Original_IDProduct, Original_IDProductType, Original_ProductName, Original_Article, Original_Cost, Original_IDProduct);
  8753. }
  8754. }
  8755. /// <summary>
  8756. ///Represents the connection and commands used to retrieve and save data.
  8757. ///</summary>
  8758. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8759. [global::System.ComponentModel.ToolboxItem(true)]
  8760. [global::System.ComponentModel.DataObjectAttribute(true)]
  8761. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8762. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8763. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8764. public partial class ProductTypeTableAdapter : global::System.ComponentModel.Component {
  8765. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8766. private global::System.Data.SqlClient.SqlConnection _connection;
  8767. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8768. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8769. private bool _clearBeforeFill;
  8770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8772. public ProductTypeTableAdapter() {
  8773. this.ClearBeforeFill = true;
  8774. }
  8775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8776. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8777. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8778. get {
  8779. if ((this._adapter == null)) {
  8780. this.InitAdapter();
  8781. }
  8782. return this._adapter;
  8783. }
  8784. }
  8785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8786. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8787. internal global::System.Data.SqlClient.SqlConnection Connection {
  8788. get {
  8789. if ((this._connection == null)) {
  8790. this.InitConnection();
  8791. }
  8792. return this._connection;
  8793. }
  8794. set {
  8795. this._connection = value;
  8796. if ((this.Adapter.InsertCommand != null)) {
  8797. this.Adapter.InsertCommand.Connection = value;
  8798. }
  8799. if ((this.Adapter.DeleteCommand != null)) {
  8800. this.Adapter.DeleteCommand.Connection = value;
  8801. }
  8802. if ((this.Adapter.UpdateCommand != null)) {
  8803. this.Adapter.UpdateCommand.Connection = value;
  8804. }
  8805. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8806. if ((this.CommandCollection[i] != null)) {
  8807. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8808. }
  8809. }
  8810. }
  8811. }
  8812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8814. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8815. get {
  8816. return this._transaction;
  8817. }
  8818. set {
  8819. this._transaction = value;
  8820. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8821. this.CommandCollection[i].Transaction = this._transaction;
  8822. }
  8823. if (((this.Adapter != null)
  8824. && (this.Adapter.DeleteCommand != null))) {
  8825. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8826. }
  8827. if (((this.Adapter != null)
  8828. && (this.Adapter.InsertCommand != null))) {
  8829. this.Adapter.InsertCommand.Transaction = this._transaction;
  8830. }
  8831. if (((this.Adapter != null)
  8832. && (this.Adapter.UpdateCommand != null))) {
  8833. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8834. }
  8835. }
  8836. }
  8837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8839. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8840. get {
  8841. if ((this._commandCollection == null)) {
  8842. this.InitCommandCollection();
  8843. }
  8844. return this._commandCollection;
  8845. }
  8846. }
  8847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8849. public bool ClearBeforeFill {
  8850. get {
  8851. return this._clearBeforeFill;
  8852. }
  8853. set {
  8854. this._clearBeforeFill = value;
  8855. }
  8856. }
  8857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8859. private void InitAdapter() {
  8860. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8861. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8862. tableMapping.SourceTable = "Table";
  8863. tableMapping.DataSetTable = "ProductType";
  8864. tableMapping.ColumnMappings.Add("IDProductType", "IDProductType");
  8865. tableMapping.ColumnMappings.Add("ProductType", "ProductType");
  8866. tableMapping.ColumnMappings.Add("Сoefficient", "Сoefficient");
  8867. this._adapter.TableMappings.Add(tableMapping);
  8868. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8869. this._adapter.DeleteCommand.Connection = this.Connection;
  8870. 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)))";
  8871. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8872. 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, "", "", ""));
  8873. 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, "", "", ""));
  8874. 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, "", "", ""));
  8875. 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, "", "", ""));
  8876. 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, "", "", ""));
  8877. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8878. this._adapter.InsertCommand.Connection = this.Connection;
  8879. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ProductType] ([ProductType], [Сoefficient]) VALUES (@ProductTy" +
  8880. "pe, @Сoefficient);\r\nSELECT IDProductType, ProductType, Сoefficient FROM ProductT" +
  8881. "ype WHERE (IDProductType = SCOPE_IDENTITY())";
  8882. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8883. 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, "", "", ""));
  8884. 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, "", "", ""));
  8885. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8886. this._adapter.UpdateCommand.Connection = this.Connection;
  8887. 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)));
  8888. SELECT IDProductType, ProductType, Сoefficient FROM ProductType WHERE (IDProductType = @IDProductType)";
  8889. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8890. 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, "", "", ""));
  8891. 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, "", "", ""));
  8892. 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, "", "", ""));
  8893. 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, "", "", ""));
  8894. 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, "", "", ""));
  8895. 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, "", "", ""));
  8896. 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, "", "", ""));
  8897. 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, "", "", ""));
  8898. }
  8899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8901. private void InitConnection() {
  8902. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8903. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.AlfafloorGDVConnectionString;
  8904. }
  8905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8907. private void InitCommandCollection() {
  8908. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8909. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8910. this._commandCollection[0].Connection = this.Connection;
  8911. this._commandCollection[0].CommandText = "SELECT IDProductType, ProductType, Сoefficient FROM dbo.ProductType";
  8912. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8913. }
  8914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8915. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8916. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8917. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8918. public virtual int Fill(AlfafloorGDVDataSet.ProductTypeDataTable dataTable) {
  8919. this.Adapter.SelectCommand = this.CommandCollection[0];
  8920. if ((this.ClearBeforeFill == true)) {
  8921. dataTable.Clear();
  8922. }
  8923. int returnValue = this.Adapter.Fill(dataTable);
  8924. return returnValue;
  8925. }
  8926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8928. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8929. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8930. public virtual AlfafloorGDVDataSet.ProductTypeDataTable GetData() {
  8931. this.Adapter.SelectCommand = this.CommandCollection[0];
  8932. AlfafloorGDVDataSet.ProductTypeDataTable dataTable = new AlfafloorGDVDataSet.ProductTypeDataTable();
  8933. this.Adapter.Fill(dataTable);
  8934. return dataTable;
  8935. }
  8936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8938. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8939. public virtual int Update(AlfafloorGDVDataSet.ProductTypeDataTable dataTable) {
  8940. return this.Adapter.Update(dataTable);
  8941. }
  8942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8944. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8945. public virtual int Update(AlfafloorGDVDataSet dataSet) {
  8946. return this.Adapter.Update(dataSet, "ProductType");
  8947. }
  8948. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8949. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8950. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8951. public virtual int Update(global::System.Data.DataRow dataRow) {
  8952. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8953. dataRow});
  8954. }
  8955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8956. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8957. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8958. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8959. return this.Adapter.Update(dataRows);
  8960. }
  8961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8963. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8964. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8965. public virtual int Delete(int Original_IDProductType, string Original_ProductType, global::System.Nullable<double> Original_Сoefficient) {
  8966. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IDProductType));
  8967. if ((Original_ProductType == null)) {
  8968. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  8969. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  8970. }
  8971. else {
  8972. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  8973. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_ProductType));
  8974. }
  8975. if ((Original_Сoefficient.HasValue == true)) {
  8976. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  8977. this.Adapter.DeleteCommand.Parameters[4].Value = ((double)(Original_Сoefficient.Value));
  8978. }
  8979. else {
  8980. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  8981. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  8982. }
  8983. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8984. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8985. != global::System.Data.ConnectionState.Open)) {
  8986. this.Adapter.DeleteCommand.Connection.Open();
  8987. }
  8988. try {
  8989. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8990. return returnValue;
  8991. }
  8992. finally {
  8993. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8994. this.Adapter.DeleteCommand.Connection.Close();
  8995. }
  8996. }
  8997. }
  8998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9000. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9001. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9002. public virtual int Insert(string ProductType, global::System.Nullable<double> Сoefficient) {
  9003. if ((ProductType == null)) {
  9004. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  9005. }
  9006. else {
  9007. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(ProductType));
  9008. }
  9009. if ((Сoefficient.HasValue == true)) {
  9010. this.Adapter.InsertCommand.Parameters[1].Value = ((double)(Сoefficient.Value));
  9011. }
  9012. else {
  9013. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  9014. }
  9015. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9016. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9017. != global::System.Data.ConnectionState.Open)) {
  9018. this.Adapter.InsertCommand.Connection.Open();
  9019. }
  9020. try {
  9021. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9022. return returnValue;
  9023. }
  9024. finally {
  9025. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9026. this.Adapter.InsertCommand.Connection.Close();
  9027. }
  9028. }
  9029. }
  9030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9032. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9033. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9034. 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) {
  9035. if ((ProductType == null)) {
  9036. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  9037. }
  9038. else {
  9039. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(ProductType));
  9040. }
  9041. if ((Сoefficient.HasValue == true)) {
  9042. this.Adapter.UpdateCommand.Parameters[1].Value = ((double)(Сoefficient.Value));
  9043. }
  9044. else {
  9045. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  9046. }
  9047. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_IDProductType));
  9048. if ((Original_ProductType == null)) {
  9049. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  9050. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  9051. }
  9052. else {
  9053. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  9054. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_ProductType));
  9055. }
  9056. if ((Original_Сoefficient.HasValue == true)) {
  9057. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  9058. this.Adapter.UpdateCommand.Parameters[6].Value = ((double)(Original_Сoefficient.Value));
  9059. }
  9060. else {
  9061. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  9062. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  9063. }
  9064. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(IDProductType));
  9065. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9066. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9067. != global::System.Data.ConnectionState.Open)) {
  9068. this.Adapter.UpdateCommand.Connection.Open();
  9069. }
  9070. try {
  9071. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9072. return returnValue;
  9073. }
  9074. finally {
  9075. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9076. this.Adapter.UpdateCommand.Connection.Close();
  9077. }
  9078. }
  9079. }
  9080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9082. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9083. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9084. public virtual int Update(string ProductType, global::System.Nullable<double> Сoefficient, int Original_IDProductType, string Original_ProductType, global::System.Nullable<double> Original_Сoefficient) {
  9085. return this.Update(ProductType, Сoefficient, Original_IDProductType, Original_ProductType, Original_Сoefficient, Original_IDProductType);
  9086. }
  9087. }
  9088. /// <summary>
  9089. ///Represents the connection and commands used to retrieve and save data.
  9090. ///</summary>
  9091. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9092. [global::System.ComponentModel.ToolboxItem(true)]
  9093. [global::System.ComponentModel.DataObjectAttribute(true)]
  9094. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9095. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9096. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9097. public partial class RegionTableAdapter : global::System.ComponentModel.Component {
  9098. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9099. private global::System.Data.SqlClient.SqlConnection _connection;
  9100. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9101. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9102. private bool _clearBeforeFill;
  9103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9105. public RegionTableAdapter() {
  9106. this.ClearBeforeFill = true;
  9107. }
  9108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9110. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9111. get {
  9112. if ((this._adapter == null)) {
  9113. this.InitAdapter();
  9114. }
  9115. return this._adapter;
  9116. }
  9117. }
  9118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9120. internal global::System.Data.SqlClient.SqlConnection Connection {
  9121. get {
  9122. if ((this._connection == null)) {
  9123. this.InitConnection();
  9124. }
  9125. return this._connection;
  9126. }
  9127. set {
  9128. this._connection = value;
  9129. if ((this.Adapter.InsertCommand != null)) {
  9130. this.Adapter.InsertCommand.Connection = value;
  9131. }
  9132. if ((this.Adapter.DeleteCommand != null)) {
  9133. this.Adapter.DeleteCommand.Connection = value;
  9134. }
  9135. if ((this.Adapter.UpdateCommand != null)) {
  9136. this.Adapter.UpdateCommand.Connection = value;
  9137. }
  9138. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9139. if ((this.CommandCollection[i] != null)) {
  9140. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9141. }
  9142. }
  9143. }
  9144. }
  9145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9147. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9148. get {
  9149. return this._transaction;
  9150. }
  9151. set {
  9152. this._transaction = value;
  9153. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9154. this.CommandCollection[i].Transaction = this._transaction;
  9155. }
  9156. if (((this.Adapter != null)
  9157. && (this.Adapter.DeleteCommand != null))) {
  9158. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9159. }
  9160. if (((this.Adapter != null)
  9161. && (this.Adapter.InsertCommand != null))) {
  9162. this.Adapter.InsertCommand.Transaction = this._transaction;
  9163. }
  9164. if (((this.Adapter != null)
  9165. && (this.Adapter.UpdateCommand != null))) {
  9166. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9167. }
  9168. }
  9169. }
  9170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9171. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9172. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9173. get {
  9174. if ((this._commandCollection == null)) {
  9175. this.InitCommandCollection();
  9176. }
  9177. return this._commandCollection;
  9178. }
  9179. }
  9180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9182. public bool ClearBeforeFill {
  9183. get {
  9184. return this._clearBeforeFill;
  9185. }
  9186. set {
  9187. this._clearBeforeFill = value;
  9188. }
  9189. }
  9190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9191. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9192. private void InitAdapter() {
  9193. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9194. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9195. tableMapping.SourceTable = "Table";
  9196. tableMapping.DataSetTable = "Region";
  9197. tableMapping.ColumnMappings.Add("IDRegion", "IDRegion");
  9198. tableMapping.ColumnMappings.Add("Region", "Region");
  9199. this._adapter.TableMappings.Add(tableMapping);
  9200. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9201. this._adapter.DeleteCommand.Connection = this.Connection;
  9202. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Region] WHERE (([IDRegion] = @Original_IDRegion) AND ((@IsNull" +
  9203. "_Region = 1 AND [Region] IS NULL) OR ([Region] = @Original_Region)))";
  9204. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9205. 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, "", "", ""));
  9206. 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, "", "", ""));
  9207. 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, "", "", ""));
  9208. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9209. this._adapter.InsertCommand.Connection = this.Connection;
  9210. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Region] ([Region]) VALUES (@Region);\r\nSELECT IDRegion, Region " +
  9211. "FROM Region WHERE (IDRegion = SCOPE_IDENTITY())";
  9212. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9213. 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, "", "", ""));
  9214. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9215. this._adapter.UpdateCommand.Connection = this.Connection;
  9216. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Region] SET [Region] = @Region WHERE (([IDRegion] = @Original_IDReg" +
  9217. "ion) AND ((@IsNull_Region = 1 AND [Region] IS NULL) OR ([Region] = @Original_Reg" +
  9218. "ion)));\r\nSELECT IDRegion, Region FROM Region WHERE (IDRegion = @IDRegion)";
  9219. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9220. 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, "", "", ""));
  9221. 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, "", "", ""));
  9222. 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, "", "", ""));
  9223. 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, "", "", ""));
  9224. 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, "", "", ""));
  9225. }
  9226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9228. private void InitConnection() {
  9229. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9230. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.AlfafloorGDVConnectionString;
  9231. }
  9232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9234. private void InitCommandCollection() {
  9235. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9236. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9237. this._commandCollection[0].Connection = this.Connection;
  9238. this._commandCollection[0].CommandText = "SELECT IDRegion, Region FROM dbo.Region";
  9239. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9240. }
  9241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9243. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9244. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9245. public virtual int Fill(AlfafloorGDVDataSet.RegionDataTable dataTable) {
  9246. this.Adapter.SelectCommand = this.CommandCollection[0];
  9247. if ((this.ClearBeforeFill == true)) {
  9248. dataTable.Clear();
  9249. }
  9250. int returnValue = this.Adapter.Fill(dataTable);
  9251. return returnValue;
  9252. }
  9253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9255. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9256. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9257. public virtual AlfafloorGDVDataSet.RegionDataTable GetData() {
  9258. this.Adapter.SelectCommand = this.CommandCollection[0];
  9259. AlfafloorGDVDataSet.RegionDataTable dataTable = new AlfafloorGDVDataSet.RegionDataTable();
  9260. this.Adapter.Fill(dataTable);
  9261. return dataTable;
  9262. }
  9263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9265. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9266. public virtual int Update(AlfafloorGDVDataSet.RegionDataTable dataTable) {
  9267. return this.Adapter.Update(dataTable);
  9268. }
  9269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9270. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9271. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9272. public virtual int Update(AlfafloorGDVDataSet dataSet) {
  9273. return this.Adapter.Update(dataSet, "Region");
  9274. }
  9275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9277. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9278. public virtual int Update(global::System.Data.DataRow dataRow) {
  9279. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9280. dataRow});
  9281. }
  9282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9284. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9285. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9286. return this.Adapter.Update(dataRows);
  9287. }
  9288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9290. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9291. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9292. public virtual int Delete(int Original_IDRegion, string Original_Region) {
  9293. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IDRegion));
  9294. if ((Original_Region == null)) {
  9295. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  9296. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  9297. }
  9298. else {
  9299. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  9300. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Region));
  9301. }
  9302. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9303. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9304. != global::System.Data.ConnectionState.Open)) {
  9305. this.Adapter.DeleteCommand.Connection.Open();
  9306. }
  9307. try {
  9308. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9309. return returnValue;
  9310. }
  9311. finally {
  9312. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9313. this.Adapter.DeleteCommand.Connection.Close();
  9314. }
  9315. }
  9316. }
  9317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9319. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9320. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9321. public virtual int Insert(string Region) {
  9322. if ((Region == null)) {
  9323. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  9324. }
  9325. else {
  9326. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Region));
  9327. }
  9328. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9329. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9330. != global::System.Data.ConnectionState.Open)) {
  9331. this.Adapter.InsertCommand.Connection.Open();
  9332. }
  9333. try {
  9334. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9335. return returnValue;
  9336. }
  9337. finally {
  9338. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9339. this.Adapter.InsertCommand.Connection.Close();
  9340. }
  9341. }
  9342. }
  9343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9344. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9345. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9346. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9347. public virtual int Update(string Region, int Original_IDRegion, string Original_Region, int IDRegion) {
  9348. if ((Region == null)) {
  9349. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  9350. }
  9351. else {
  9352. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Region));
  9353. }
  9354. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_IDRegion));
  9355. if ((Original_Region == null)) {
  9356. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  9357. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  9358. }
  9359. else {
  9360. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  9361. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Region));
  9362. }
  9363. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(IDRegion));
  9364. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9365. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9366. != global::System.Data.ConnectionState.Open)) {
  9367. this.Adapter.UpdateCommand.Connection.Open();
  9368. }
  9369. try {
  9370. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9371. return returnValue;
  9372. }
  9373. finally {
  9374. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9375. this.Adapter.UpdateCommand.Connection.Close();
  9376. }
  9377. }
  9378. }
  9379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9381. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9382. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9383. public virtual int Update(string Region, int Original_IDRegion, string Original_Region) {
  9384. return this.Update(Region, Original_IDRegion, Original_Region, Original_IDRegion);
  9385. }
  9386. }
  9387. /// <summary>
  9388. ///Represents the connection and commands used to retrieve and save data.
  9389. ///</summary>
  9390. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9391. [global::System.ComponentModel.ToolboxItem(true)]
  9392. [global::System.ComponentModel.DataObjectAttribute(true)]
  9393. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9394. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9395. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9396. public partial class StreetTableAdapter : global::System.ComponentModel.Component {
  9397. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9398. private global::System.Data.SqlClient.SqlConnection _connection;
  9399. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9400. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9401. private bool _clearBeforeFill;
  9402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9403. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9404. public StreetTableAdapter() {
  9405. this.ClearBeforeFill = true;
  9406. }
  9407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9408. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9409. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9410. get {
  9411. if ((this._adapter == null)) {
  9412. this.InitAdapter();
  9413. }
  9414. return this._adapter;
  9415. }
  9416. }
  9417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9419. internal global::System.Data.SqlClient.SqlConnection Connection {
  9420. get {
  9421. if ((this._connection == null)) {
  9422. this.InitConnection();
  9423. }
  9424. return this._connection;
  9425. }
  9426. set {
  9427. this._connection = value;
  9428. if ((this.Adapter.InsertCommand != null)) {
  9429. this.Adapter.InsertCommand.Connection = value;
  9430. }
  9431. if ((this.Adapter.DeleteCommand != null)) {
  9432. this.Adapter.DeleteCommand.Connection = value;
  9433. }
  9434. if ((this.Adapter.UpdateCommand != null)) {
  9435. this.Adapter.UpdateCommand.Connection = value;
  9436. }
  9437. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9438. if ((this.CommandCollection[i] != null)) {
  9439. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9440. }
  9441. }
  9442. }
  9443. }
  9444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9446. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9447. get {
  9448. return this._transaction;
  9449. }
  9450. set {
  9451. this._transaction = value;
  9452. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9453. this.CommandCollection[i].Transaction = this._transaction;
  9454. }
  9455. if (((this.Adapter != null)
  9456. && (this.Adapter.DeleteCommand != null))) {
  9457. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9458. }
  9459. if (((this.Adapter != null)
  9460. && (this.Adapter.InsertCommand != null))) {
  9461. this.Adapter.InsertCommand.Transaction = this._transaction;
  9462. }
  9463. if (((this.Adapter != null)
  9464. && (this.Adapter.UpdateCommand != null))) {
  9465. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9466. }
  9467. }
  9468. }
  9469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9471. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9472. get {
  9473. if ((this._commandCollection == null)) {
  9474. this.InitCommandCollection();
  9475. }
  9476. return this._commandCollection;
  9477. }
  9478. }
  9479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9480. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9481. public bool ClearBeforeFill {
  9482. get {
  9483. return this._clearBeforeFill;
  9484. }
  9485. set {
  9486. this._clearBeforeFill = value;
  9487. }
  9488. }
  9489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9491. private void InitAdapter() {
  9492. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9493. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9494. tableMapping.SourceTable = "Table";
  9495. tableMapping.DataSetTable = "Street";
  9496. tableMapping.ColumnMappings.Add("IDStreet", "IDStreet");
  9497. tableMapping.ColumnMappings.Add("Street", "Street");
  9498. this._adapter.TableMappings.Add(tableMapping);
  9499. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9500. this._adapter.DeleteCommand.Connection = this.Connection;
  9501. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Street] WHERE (([IDStreet] = @Original_IDStreet) AND ((@IsNull" +
  9502. "_Street = 1 AND [Street] IS NULL) OR ([Street] = @Original_Street)))";
  9503. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9504. 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, "", "", ""));
  9505. 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, "", "", ""));
  9506. 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, "", "", ""));
  9507. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9508. this._adapter.InsertCommand.Connection = this.Connection;
  9509. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Street] ([Street]) VALUES (@Street);\r\nSELECT IDStreet, Street " +
  9510. "FROM Street WHERE (IDStreet = SCOPE_IDENTITY())";
  9511. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9512. 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, "", "", ""));
  9513. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9514. this._adapter.UpdateCommand.Connection = this.Connection;
  9515. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Street] SET [Street] = @Street WHERE (([IDStreet] = @Original_IDStr" +
  9516. "eet) AND ((@IsNull_Street = 1 AND [Street] IS NULL) OR ([Street] = @Original_Str" +
  9517. "eet)));\r\nSELECT IDStreet, Street FROM Street WHERE (IDStreet = @IDStreet)";
  9518. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9519. 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, "", "", ""));
  9520. 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, "", "", ""));
  9521. 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, "", "", ""));
  9522. 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, "", "", ""));
  9523. 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, "", "", ""));
  9524. }
  9525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9526. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9527. private void InitConnection() {
  9528. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9529. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.AlfafloorGDVConnectionString;
  9530. }
  9531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9533. private void InitCommandCollection() {
  9534. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9535. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9536. this._commandCollection[0].Connection = this.Connection;
  9537. this._commandCollection[0].CommandText = "SELECT IDStreet, Street FROM dbo.Street";
  9538. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9539. }
  9540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9542. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9543. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9544. public virtual int Fill(AlfafloorGDVDataSet.StreetDataTable dataTable) {
  9545. this.Adapter.SelectCommand = this.CommandCollection[0];
  9546. if ((this.ClearBeforeFill == true)) {
  9547. dataTable.Clear();
  9548. }
  9549. int returnValue = this.Adapter.Fill(dataTable);
  9550. return returnValue;
  9551. }
  9552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9554. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9555. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9556. public virtual AlfafloorGDVDataSet.StreetDataTable GetData() {
  9557. this.Adapter.SelectCommand = this.CommandCollection[0];
  9558. AlfafloorGDVDataSet.StreetDataTable dataTable = new AlfafloorGDVDataSet.StreetDataTable();
  9559. this.Adapter.Fill(dataTable);
  9560. return dataTable;
  9561. }
  9562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9564. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9565. public virtual int Update(AlfafloorGDVDataSet.StreetDataTable dataTable) {
  9566. return this.Adapter.Update(dataTable);
  9567. }
  9568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9570. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9571. public virtual int Update(AlfafloorGDVDataSet dataSet) {
  9572. return this.Adapter.Update(dataSet, "Street");
  9573. }
  9574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9576. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9577. public virtual int Update(global::System.Data.DataRow dataRow) {
  9578. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9579. dataRow});
  9580. }
  9581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9583. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9584. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9585. return this.Adapter.Update(dataRows);
  9586. }
  9587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9589. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9590. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9591. public virtual int Delete(int Original_IDStreet, string Original_Street) {
  9592. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IDStreet));
  9593. if ((Original_Street == null)) {
  9594. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  9595. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  9596. }
  9597. else {
  9598. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  9599. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Street));
  9600. }
  9601. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9602. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9603. != global::System.Data.ConnectionState.Open)) {
  9604. this.Adapter.DeleteCommand.Connection.Open();
  9605. }
  9606. try {
  9607. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9608. return returnValue;
  9609. }
  9610. finally {
  9611. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9612. this.Adapter.DeleteCommand.Connection.Close();
  9613. }
  9614. }
  9615. }
  9616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9618. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9619. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9620. public virtual int Insert(string Street) {
  9621. if ((Street == null)) {
  9622. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  9623. }
  9624. else {
  9625. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Street));
  9626. }
  9627. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9628. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9629. != global::System.Data.ConnectionState.Open)) {
  9630. this.Adapter.InsertCommand.Connection.Open();
  9631. }
  9632. try {
  9633. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9634. return returnValue;
  9635. }
  9636. finally {
  9637. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9638. this.Adapter.InsertCommand.Connection.Close();
  9639. }
  9640. }
  9641. }
  9642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9644. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9645. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9646. public virtual int Update(string Street, int Original_IDStreet, string Original_Street, int IDStreet) {
  9647. if ((Street == null)) {
  9648. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  9649. }
  9650. else {
  9651. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Street));
  9652. }
  9653. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_IDStreet));
  9654. if ((Original_Street == null)) {
  9655. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  9656. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  9657. }
  9658. else {
  9659. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  9660. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Street));
  9661. }
  9662. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(IDStreet));
  9663. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9664. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9665. != global::System.Data.ConnectionState.Open)) {
  9666. this.Adapter.UpdateCommand.Connection.Open();
  9667. }
  9668. try {
  9669. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9670. return returnValue;
  9671. }
  9672. finally {
  9673. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9674. this.Adapter.UpdateCommand.Connection.Close();
  9675. }
  9676. }
  9677. }
  9678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9680. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9681. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9682. public virtual int Update(string Street, int Original_IDStreet, string Original_Street) {
  9683. return this.Update(Street, Original_IDStreet, Original_Street, Original_IDStreet);
  9684. }
  9685. }
  9686. /// <summary>
  9687. ///Represents the connection and commands used to retrieve and save data.
  9688. ///</summary>
  9689. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9690. [global::System.ComponentModel.ToolboxItem(true)]
  9691. [global::System.ComponentModel.DataObjectAttribute(true)]
  9692. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9693. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9694. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9695. public partial class TypeMaterialTableAdapter : global::System.ComponentModel.Component {
  9696. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9697. private global::System.Data.SqlClient.SqlConnection _connection;
  9698. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9699. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9700. private bool _clearBeforeFill;
  9701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9703. public TypeMaterialTableAdapter() {
  9704. this.ClearBeforeFill = true;
  9705. }
  9706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9708. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9709. get {
  9710. if ((this._adapter == null)) {
  9711. this.InitAdapter();
  9712. }
  9713. return this._adapter;
  9714. }
  9715. }
  9716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9718. internal global::System.Data.SqlClient.SqlConnection Connection {
  9719. get {
  9720. if ((this._connection == null)) {
  9721. this.InitConnection();
  9722. }
  9723. return this._connection;
  9724. }
  9725. set {
  9726. this._connection = value;
  9727. if ((this.Adapter.InsertCommand != null)) {
  9728. this.Adapter.InsertCommand.Connection = value;
  9729. }
  9730. if ((this.Adapter.DeleteCommand != null)) {
  9731. this.Adapter.DeleteCommand.Connection = value;
  9732. }
  9733. if ((this.Adapter.UpdateCommand != null)) {
  9734. this.Adapter.UpdateCommand.Connection = value;
  9735. }
  9736. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9737. if ((this.CommandCollection[i] != null)) {
  9738. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9739. }
  9740. }
  9741. }
  9742. }
  9743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9745. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9746. get {
  9747. return this._transaction;
  9748. }
  9749. set {
  9750. this._transaction = value;
  9751. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9752. this.CommandCollection[i].Transaction = this._transaction;
  9753. }
  9754. if (((this.Adapter != null)
  9755. && (this.Adapter.DeleteCommand != null))) {
  9756. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9757. }
  9758. if (((this.Adapter != null)
  9759. && (this.Adapter.InsertCommand != null))) {
  9760. this.Adapter.InsertCommand.Transaction = this._transaction;
  9761. }
  9762. if (((this.Adapter != null)
  9763. && (this.Adapter.UpdateCommand != null))) {
  9764. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9765. }
  9766. }
  9767. }
  9768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9770. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9771. get {
  9772. if ((this._commandCollection == null)) {
  9773. this.InitCommandCollection();
  9774. }
  9775. return this._commandCollection;
  9776. }
  9777. }
  9778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9780. public bool ClearBeforeFill {
  9781. get {
  9782. return this._clearBeforeFill;
  9783. }
  9784. set {
  9785. this._clearBeforeFill = value;
  9786. }
  9787. }
  9788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9790. private void InitAdapter() {
  9791. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9792. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9793. tableMapping.SourceTable = "Table";
  9794. tableMapping.DataSetTable = "TypeMaterial";
  9795. tableMapping.ColumnMappings.Add("IDTypeMaterial", "IDTypeMaterial");
  9796. tableMapping.ColumnMappings.Add("TypeMaterial", "TypeMaterial");
  9797. tableMapping.ColumnMappings.Add("DefectPercent", "DefectPercent");
  9798. this._adapter.TableMappings.Add(tableMapping);
  9799. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9800. this._adapter.DeleteCommand.Connection = this.Connection;
  9801. 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)))";
  9802. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9803. 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, "", "", ""));
  9804. 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, "", "", ""));
  9805. 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, "", "", ""));
  9806. 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, "", "", ""));
  9807. 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, "", "", ""));
  9808. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9809. this._adapter.InsertCommand.Connection = this.Connection;
  9810. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[TypeMaterial] ([TypeMaterial], [DefectPercent]) VALUES (@TypeM" +
  9811. "aterial, @DefectPercent);\r\nSELECT IDTypeMaterial, TypeMaterial, DefectPercent FR" +
  9812. "OM TypeMaterial WHERE (IDTypeMaterial = SCOPE_IDENTITY())";
  9813. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9814. 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, "", "", ""));
  9815. 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, "", "", ""));
  9816. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9817. this._adapter.UpdateCommand.Connection = this.Connection;
  9818. 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)));
  9819. SELECT IDTypeMaterial, TypeMaterial, DefectPercent FROM TypeMaterial WHERE (IDTypeMaterial = @IDTypeMaterial)";
  9820. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9821. 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, "", "", ""));
  9822. 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, "", "", ""));
  9823. 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, "", "", ""));
  9824. 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, "", "", ""));
  9825. 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, "", "", ""));
  9826. 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, "", "", ""));
  9827. 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, "", "", ""));
  9828. 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, "", "", ""));
  9829. }
  9830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9831. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9832. private void InitConnection() {
  9833. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9834. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.AlfafloorGDVConnectionString;
  9835. }
  9836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9837. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9838. private void InitCommandCollection() {
  9839. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9840. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9841. this._commandCollection[0].Connection = this.Connection;
  9842. this._commandCollection[0].CommandText = "SELECT IDTypeMaterial, TypeMaterial, DefectPercent FROM dbo.TypeMaterial";
  9843. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9844. }
  9845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9847. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9848. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9849. public virtual int Fill(AlfafloorGDVDataSet.TypeMaterialDataTable dataTable) {
  9850. this.Adapter.SelectCommand = this.CommandCollection[0];
  9851. if ((this.ClearBeforeFill == true)) {
  9852. dataTable.Clear();
  9853. }
  9854. int returnValue = this.Adapter.Fill(dataTable);
  9855. return returnValue;
  9856. }
  9857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9859. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9860. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9861. public virtual AlfafloorGDVDataSet.TypeMaterialDataTable GetData() {
  9862. this.Adapter.SelectCommand = this.CommandCollection[0];
  9863. AlfafloorGDVDataSet.TypeMaterialDataTable dataTable = new AlfafloorGDVDataSet.TypeMaterialDataTable();
  9864. this.Adapter.Fill(dataTable);
  9865. return dataTable;
  9866. }
  9867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9868. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9869. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9870. public virtual int Update(AlfafloorGDVDataSet.TypeMaterialDataTable dataTable) {
  9871. return this.Adapter.Update(dataTable);
  9872. }
  9873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9875. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9876. public virtual int Update(AlfafloorGDVDataSet dataSet) {
  9877. return this.Adapter.Update(dataSet, "TypeMaterial");
  9878. }
  9879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9881. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9882. public virtual int Update(global::System.Data.DataRow dataRow) {
  9883. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9884. dataRow});
  9885. }
  9886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9888. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9889. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9890. return this.Adapter.Update(dataRows);
  9891. }
  9892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9894. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9895. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9896. public virtual int Delete(int Original_IDTypeMaterial, string Original_TypeMaterial, global::System.Nullable<double> Original_DefectPercent) {
  9897. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IDTypeMaterial));
  9898. if ((Original_TypeMaterial == null)) {
  9899. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  9900. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  9901. }
  9902. else {
  9903. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  9904. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_TypeMaterial));
  9905. }
  9906. if ((Original_DefectPercent.HasValue == true)) {
  9907. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  9908. this.Adapter.DeleteCommand.Parameters[4].Value = ((double)(Original_DefectPercent.Value));
  9909. }
  9910. else {
  9911. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  9912. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  9913. }
  9914. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9915. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9916. != global::System.Data.ConnectionState.Open)) {
  9917. this.Adapter.DeleteCommand.Connection.Open();
  9918. }
  9919. try {
  9920. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9921. return returnValue;
  9922. }
  9923. finally {
  9924. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9925. this.Adapter.DeleteCommand.Connection.Close();
  9926. }
  9927. }
  9928. }
  9929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9931. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9932. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9933. public virtual int Insert(string TypeMaterial, global::System.Nullable<double> DefectPercent) {
  9934. if ((TypeMaterial == null)) {
  9935. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  9936. }
  9937. else {
  9938. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(TypeMaterial));
  9939. }
  9940. if ((DefectPercent.HasValue == true)) {
  9941. this.Adapter.InsertCommand.Parameters[1].Value = ((double)(DefectPercent.Value));
  9942. }
  9943. else {
  9944. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  9945. }
  9946. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9947. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9948. != global::System.Data.ConnectionState.Open)) {
  9949. this.Adapter.InsertCommand.Connection.Open();
  9950. }
  9951. try {
  9952. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9953. return returnValue;
  9954. }
  9955. finally {
  9956. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9957. this.Adapter.InsertCommand.Connection.Close();
  9958. }
  9959. }
  9960. }
  9961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9963. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9964. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9965. 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) {
  9966. if ((TypeMaterial == null)) {
  9967. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  9968. }
  9969. else {
  9970. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(TypeMaterial));
  9971. }
  9972. if ((DefectPercent.HasValue == true)) {
  9973. this.Adapter.UpdateCommand.Parameters[1].Value = ((double)(DefectPercent.Value));
  9974. }
  9975. else {
  9976. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  9977. }
  9978. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_IDTypeMaterial));
  9979. if ((Original_TypeMaterial == null)) {
  9980. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  9981. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  9982. }
  9983. else {
  9984. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  9985. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_TypeMaterial));
  9986. }
  9987. if ((Original_DefectPercent.HasValue == true)) {
  9988. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  9989. this.Adapter.UpdateCommand.Parameters[6].Value = ((double)(Original_DefectPercent.Value));
  9990. }
  9991. else {
  9992. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  9993. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  9994. }
  9995. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(IDTypeMaterial));
  9996. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9997. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9998. != global::System.Data.ConnectionState.Open)) {
  9999. this.Adapter.UpdateCommand.Connection.Open();
  10000. }
  10001. try {
  10002. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10003. return returnValue;
  10004. }
  10005. finally {
  10006. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10007. this.Adapter.UpdateCommand.Connection.Close();
  10008. }
  10009. }
  10010. }
  10011. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10012. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10013. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10014. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10015. public virtual int Update(string TypeMaterial, global::System.Nullable<double> DefectPercent, int Original_IDTypeMaterial, string Original_TypeMaterial, global::System.Nullable<double> Original_DefectPercent) {
  10016. return this.Update(TypeMaterial, DefectPercent, Original_IDTypeMaterial, Original_TypeMaterial, Original_DefectPercent, Original_IDTypeMaterial);
  10017. }
  10018. }
  10019. /// <summary>
  10020. ///Represents the connection and commands used to retrieve and save data.
  10021. ///</summary>
  10022. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10023. [global::System.ComponentModel.ToolboxItem(true)]
  10024. [global::System.ComponentModel.DataObjectAttribute(true)]
  10025. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  10026. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10027. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10028. public partial class TypePartnerTableAdapter : global::System.ComponentModel.Component {
  10029. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  10030. private global::System.Data.SqlClient.SqlConnection _connection;
  10031. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10032. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10033. private bool _clearBeforeFill;
  10034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10036. public TypePartnerTableAdapter() {
  10037. this.ClearBeforeFill = true;
  10038. }
  10039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10041. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10042. get {
  10043. if ((this._adapter == null)) {
  10044. this.InitAdapter();
  10045. }
  10046. return this._adapter;
  10047. }
  10048. }
  10049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10051. internal global::System.Data.SqlClient.SqlConnection Connection {
  10052. get {
  10053. if ((this._connection == null)) {
  10054. this.InitConnection();
  10055. }
  10056. return this._connection;
  10057. }
  10058. set {
  10059. this._connection = value;
  10060. if ((this.Adapter.InsertCommand != null)) {
  10061. this.Adapter.InsertCommand.Connection = value;
  10062. }
  10063. if ((this.Adapter.DeleteCommand != null)) {
  10064. this.Adapter.DeleteCommand.Connection = value;
  10065. }
  10066. if ((this.Adapter.UpdateCommand != null)) {
  10067. this.Adapter.UpdateCommand.Connection = value;
  10068. }
  10069. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10070. if ((this.CommandCollection[i] != null)) {
  10071. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10072. }
  10073. }
  10074. }
  10075. }
  10076. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10077. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10078. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10079. get {
  10080. return this._transaction;
  10081. }
  10082. set {
  10083. this._transaction = value;
  10084. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10085. this.CommandCollection[i].Transaction = this._transaction;
  10086. }
  10087. if (((this.Adapter != null)
  10088. && (this.Adapter.DeleteCommand != null))) {
  10089. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10090. }
  10091. if (((this.Adapter != null)
  10092. && (this.Adapter.InsertCommand != null))) {
  10093. this.Adapter.InsertCommand.Transaction = this._transaction;
  10094. }
  10095. if (((this.Adapter != null)
  10096. && (this.Adapter.UpdateCommand != null))) {
  10097. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10098. }
  10099. }
  10100. }
  10101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10103. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10104. get {
  10105. if ((this._commandCollection == null)) {
  10106. this.InitCommandCollection();
  10107. }
  10108. return this._commandCollection;
  10109. }
  10110. }
  10111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10113. public bool ClearBeforeFill {
  10114. get {
  10115. return this._clearBeforeFill;
  10116. }
  10117. set {
  10118. this._clearBeforeFill = value;
  10119. }
  10120. }
  10121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10123. private void InitAdapter() {
  10124. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10125. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10126. tableMapping.SourceTable = "Table";
  10127. tableMapping.DataSetTable = "TypePartner";
  10128. tableMapping.ColumnMappings.Add("IDTypePartner", "IDTypePartner");
  10129. tableMapping.ColumnMappings.Add("TypePartner", "TypePartner");
  10130. this._adapter.TableMappings.Add(tableMapping);
  10131. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  10132. this._adapter.DeleteCommand.Connection = this.Connection;
  10133. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[TypePartner] WHERE (([IDTypePartner] = @Original_IDTypePartner" +
  10134. ") AND ((@IsNull_TypePartner = 1 AND [TypePartner] IS NULL) OR ([TypePartner] = @" +
  10135. "Original_TypePartner)))";
  10136. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  10137. 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, "", "", ""));
  10138. 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, "", "", ""));
  10139. 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, "", "", ""));
  10140. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  10141. this._adapter.InsertCommand.Connection = this.Connection;
  10142. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[TypePartner] ([TypePartner]) VALUES (@TypePartner);\r\nSELECT ID" +
  10143. "TypePartner, TypePartner FROM TypePartner WHERE (IDTypePartner = SCOPE_IDENTITY(" +
  10144. "))";
  10145. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  10146. 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, "", "", ""));
  10147. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  10148. this._adapter.UpdateCommand.Connection = this.Connection;
  10149. 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)));
  10150. SELECT IDTypePartner, TypePartner FROM TypePartner WHERE (IDTypePartner = @IDTypePartner)";
  10151. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  10152. 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, "", "", ""));
  10153. 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, "", "", ""));
  10154. 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, "", "", ""));
  10155. 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, "", "", ""));
  10156. 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, "", "", ""));
  10157. }
  10158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10160. private void InitConnection() {
  10161. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10162. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.AlfafloorGDVConnectionString;
  10163. }
  10164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10166. private void InitCommandCollection() {
  10167. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10168. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10169. this._commandCollection[0].Connection = this.Connection;
  10170. this._commandCollection[0].CommandText = "SELECT IDTypePartner, TypePartner FROM dbo.TypePartner";
  10171. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10172. }
  10173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10175. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10176. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10177. public virtual int Fill(AlfafloorGDVDataSet.TypePartnerDataTable dataTable) {
  10178. this.Adapter.SelectCommand = this.CommandCollection[0];
  10179. if ((this.ClearBeforeFill == true)) {
  10180. dataTable.Clear();
  10181. }
  10182. int returnValue = this.Adapter.Fill(dataTable);
  10183. return returnValue;
  10184. }
  10185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10187. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10188. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10189. public virtual AlfafloorGDVDataSet.TypePartnerDataTable GetData() {
  10190. this.Adapter.SelectCommand = this.CommandCollection[0];
  10191. AlfafloorGDVDataSet.TypePartnerDataTable dataTable = new AlfafloorGDVDataSet.TypePartnerDataTable();
  10192. this.Adapter.Fill(dataTable);
  10193. return dataTable;
  10194. }
  10195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10197. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10198. public virtual int Update(AlfafloorGDVDataSet.TypePartnerDataTable dataTable) {
  10199. return this.Adapter.Update(dataTable);
  10200. }
  10201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10203. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10204. public virtual int Update(AlfafloorGDVDataSet dataSet) {
  10205. return this.Adapter.Update(dataSet, "TypePartner");
  10206. }
  10207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10209. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10210. public virtual int Update(global::System.Data.DataRow dataRow) {
  10211. return this.Adapter.Update(new global::System.Data.DataRow[] {
  10212. dataRow});
  10213. }
  10214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10216. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10217. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  10218. return this.Adapter.Update(dataRows);
  10219. }
  10220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10222. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10223. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  10224. public virtual int Delete(int Original_IDTypePartner, string Original_TypePartner) {
  10225. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IDTypePartner));
  10226. if ((Original_TypePartner == null)) {
  10227. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  10228. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  10229. }
  10230. else {
  10231. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  10232. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_TypePartner));
  10233. }
  10234. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  10235. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10236. != global::System.Data.ConnectionState.Open)) {
  10237. this.Adapter.DeleteCommand.Connection.Open();
  10238. }
  10239. try {
  10240. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  10241. return returnValue;
  10242. }
  10243. finally {
  10244. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10245. this.Adapter.DeleteCommand.Connection.Close();
  10246. }
  10247. }
  10248. }
  10249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10251. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10252. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10253. public virtual int Insert(string TypePartner) {
  10254. if ((TypePartner == null)) {
  10255. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  10256. }
  10257. else {
  10258. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(TypePartner));
  10259. }
  10260. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10261. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10262. != global::System.Data.ConnectionState.Open)) {
  10263. this.Adapter.InsertCommand.Connection.Open();
  10264. }
  10265. try {
  10266. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10267. return returnValue;
  10268. }
  10269. finally {
  10270. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10271. this.Adapter.InsertCommand.Connection.Close();
  10272. }
  10273. }
  10274. }
  10275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10277. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10278. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10279. public virtual int Update(string TypePartner, int Original_IDTypePartner, string Original_TypePartner, int IDTypePartner) {
  10280. if ((TypePartner == null)) {
  10281. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  10282. }
  10283. else {
  10284. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(TypePartner));
  10285. }
  10286. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_IDTypePartner));
  10287. if ((Original_TypePartner == null)) {
  10288. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  10289. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  10290. }
  10291. else {
  10292. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  10293. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_TypePartner));
  10294. }
  10295. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(IDTypePartner));
  10296. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10297. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10298. != global::System.Data.ConnectionState.Open)) {
  10299. this.Adapter.UpdateCommand.Connection.Open();
  10300. }
  10301. try {
  10302. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10303. return returnValue;
  10304. }
  10305. finally {
  10306. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10307. this.Adapter.UpdateCommand.Connection.Close();
  10308. }
  10309. }
  10310. }
  10311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10313. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10314. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10315. public virtual int Update(string TypePartner, int Original_IDTypePartner, string Original_TypePartner) {
  10316. return this.Update(TypePartner, Original_IDTypePartner, Original_TypePartner, Original_IDTypePartner);
  10317. }
  10318. }
  10319. /// <summary>
  10320. ///Represents the connection and commands used to retrieve and save data.
  10321. ///</summary>
  10322. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10323. [global::System.ComponentModel.ToolboxItem(true)]
  10324. [global::System.ComponentModel.DataObjectAttribute(true)]
  10325. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  10326. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10327. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10328. public partial class Type4FilterTableAdapter : global::System.ComponentModel.Component {
  10329. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  10330. private global::System.Data.SqlClient.SqlConnection _connection;
  10331. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10332. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10333. private bool _clearBeforeFill;
  10334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10336. public Type4FilterTableAdapter() {
  10337. this.ClearBeforeFill = true;
  10338. }
  10339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10341. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10342. get {
  10343. if ((this._adapter == null)) {
  10344. this.InitAdapter();
  10345. }
  10346. return this._adapter;
  10347. }
  10348. }
  10349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10351. internal global::System.Data.SqlClient.SqlConnection Connection {
  10352. get {
  10353. if ((this._connection == null)) {
  10354. this.InitConnection();
  10355. }
  10356. return this._connection;
  10357. }
  10358. set {
  10359. this._connection = value;
  10360. if ((this.Adapter.InsertCommand != null)) {
  10361. this.Adapter.InsertCommand.Connection = value;
  10362. }
  10363. if ((this.Adapter.DeleteCommand != null)) {
  10364. this.Adapter.DeleteCommand.Connection = value;
  10365. }
  10366. if ((this.Adapter.UpdateCommand != null)) {
  10367. this.Adapter.UpdateCommand.Connection = value;
  10368. }
  10369. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10370. if ((this.CommandCollection[i] != null)) {
  10371. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10372. }
  10373. }
  10374. }
  10375. }
  10376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10378. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10379. get {
  10380. return this._transaction;
  10381. }
  10382. set {
  10383. this._transaction = value;
  10384. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10385. this.CommandCollection[i].Transaction = this._transaction;
  10386. }
  10387. if (((this.Adapter != null)
  10388. && (this.Adapter.DeleteCommand != null))) {
  10389. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10390. }
  10391. if (((this.Adapter != null)
  10392. && (this.Adapter.InsertCommand != null))) {
  10393. this.Adapter.InsertCommand.Transaction = this._transaction;
  10394. }
  10395. if (((this.Adapter != null)
  10396. && (this.Adapter.UpdateCommand != null))) {
  10397. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10398. }
  10399. }
  10400. }
  10401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10403. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10404. get {
  10405. if ((this._commandCollection == null)) {
  10406. this.InitCommandCollection();
  10407. }
  10408. return this._commandCollection;
  10409. }
  10410. }
  10411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10413. public bool ClearBeforeFill {
  10414. get {
  10415. return this._clearBeforeFill;
  10416. }
  10417. set {
  10418. this._clearBeforeFill = value;
  10419. }
  10420. }
  10421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10423. private void InitAdapter() {
  10424. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10425. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10426. tableMapping.SourceTable = "Table";
  10427. tableMapping.DataSetTable = "Type4Filter";
  10428. tableMapping.ColumnMappings.Add("Column1", "TypePartner");
  10429. this._adapter.TableMappings.Add(tableMapping);
  10430. }
  10431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10433. private void InitConnection() {
  10434. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10435. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.AlfafloorGDVConnectionString;
  10436. }
  10437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10439. private void InitCommandCollection() {
  10440. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10441. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10442. this._commandCollection[0].Connection = this.Connection;
  10443. this._commandCollection[0].CommandText = "select \'Все типы\' \r\nunion all\r\nSELECT TypePartner\r\nFROM TypePa" +
  10444. "rtner";
  10445. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10446. }
  10447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10448. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10449. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10450. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10451. public virtual int Fill(AlfafloorGDVDataSet.Type4FilterDataTable dataTable) {
  10452. this.Adapter.SelectCommand = this.CommandCollection[0];
  10453. if ((this.ClearBeforeFill == true)) {
  10454. dataTable.Clear();
  10455. }
  10456. int returnValue = this.Adapter.Fill(dataTable);
  10457. return returnValue;
  10458. }
  10459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10461. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10462. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10463. public virtual AlfafloorGDVDataSet.Type4FilterDataTable GetData() {
  10464. this.Adapter.SelectCommand = this.CommandCollection[0];
  10465. AlfafloorGDVDataSet.Type4FilterDataTable dataTable = new AlfafloorGDVDataSet.Type4FilterDataTable();
  10466. this.Adapter.Fill(dataTable);
  10467. return dataTable;
  10468. }
  10469. }
  10470. /// <summary>
  10471. ///Represents the connection and commands used to retrieve and save data.
  10472. ///</summary>
  10473. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10474. [global::System.ComponentModel.ToolboxItem(true)]
  10475. [global::System.ComponentModel.DataObjectAttribute(true)]
  10476. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  10477. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10478. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10479. public partial class HistorySaleTableAdapter : global::System.ComponentModel.Component {
  10480. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  10481. private global::System.Data.SqlClient.SqlConnection _connection;
  10482. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10483. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10484. private bool _clearBeforeFill;
  10485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10487. public HistorySaleTableAdapter() {
  10488. this.ClearBeforeFill = true;
  10489. }
  10490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10492. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10493. get {
  10494. if ((this._adapter == null)) {
  10495. this.InitAdapter();
  10496. }
  10497. return this._adapter;
  10498. }
  10499. }
  10500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10502. internal global::System.Data.SqlClient.SqlConnection Connection {
  10503. get {
  10504. if ((this._connection == null)) {
  10505. this.InitConnection();
  10506. }
  10507. return this._connection;
  10508. }
  10509. set {
  10510. this._connection = value;
  10511. if ((this.Adapter.InsertCommand != null)) {
  10512. this.Adapter.InsertCommand.Connection = value;
  10513. }
  10514. if ((this.Adapter.DeleteCommand != null)) {
  10515. this.Adapter.DeleteCommand.Connection = value;
  10516. }
  10517. if ((this.Adapter.UpdateCommand != null)) {
  10518. this.Adapter.UpdateCommand.Connection = value;
  10519. }
  10520. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10521. if ((this.CommandCollection[i] != null)) {
  10522. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10523. }
  10524. }
  10525. }
  10526. }
  10527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10529. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10530. get {
  10531. return this._transaction;
  10532. }
  10533. set {
  10534. this._transaction = value;
  10535. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10536. this.CommandCollection[i].Transaction = this._transaction;
  10537. }
  10538. if (((this.Adapter != null)
  10539. && (this.Adapter.DeleteCommand != null))) {
  10540. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10541. }
  10542. if (((this.Adapter != null)
  10543. && (this.Adapter.InsertCommand != null))) {
  10544. this.Adapter.InsertCommand.Transaction = this._transaction;
  10545. }
  10546. if (((this.Adapter != null)
  10547. && (this.Adapter.UpdateCommand != null))) {
  10548. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10549. }
  10550. }
  10551. }
  10552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10554. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10555. get {
  10556. if ((this._commandCollection == null)) {
  10557. this.InitCommandCollection();
  10558. }
  10559. return this._commandCollection;
  10560. }
  10561. }
  10562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10564. public bool ClearBeforeFill {
  10565. get {
  10566. return this._clearBeforeFill;
  10567. }
  10568. set {
  10569. this._clearBeforeFill = value;
  10570. }
  10571. }
  10572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10574. private void InitAdapter() {
  10575. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10576. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10577. tableMapping.SourceTable = "Table";
  10578. tableMapping.DataSetTable = "HistorySale";
  10579. tableMapping.ColumnMappings.Add("IDPartner", "IDPartner");
  10580. tableMapping.ColumnMappings.Add("ProductName", "ProductName");
  10581. tableMapping.ColumnMappings.Add("CountProduct", "CountProduct");
  10582. tableMapping.ColumnMappings.Add("DateSale", "DateSale");
  10583. this._adapter.TableMappings.Add(tableMapping);
  10584. }
  10585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10587. private void InitConnection() {
  10588. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10589. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.AlfafloorGDVConnectionString;
  10590. }
  10591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10593. private void InitCommandCollection() {
  10594. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10595. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10596. this._commandCollection[0].Connection = this.Connection;
  10597. this._commandCollection[0].CommandText = "SELECT PartnerProducts.IDPartner,Product.ProductName, PartnerProducts.Coun" +
  10598. "tProduct, PartnerProducts.DateSale\r\nFROM PartnerProducts INNER JOIN\r\n" +
  10599. " Product ON PartnerProducts.IDProduct = Product.IDProduc" +
  10600. "t";
  10601. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10602. }
  10603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10605. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10606. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10607. public virtual int Fill(AlfafloorGDVDataSet.HistorySaleDataTable dataTable) {
  10608. this.Adapter.SelectCommand = this.CommandCollection[0];
  10609. if ((this.ClearBeforeFill == true)) {
  10610. dataTable.Clear();
  10611. }
  10612. int returnValue = this.Adapter.Fill(dataTable);
  10613. return returnValue;
  10614. }
  10615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10617. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10618. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10619. public virtual AlfafloorGDVDataSet.HistorySaleDataTable GetData() {
  10620. this.Adapter.SelectCommand = this.CommandCollection[0];
  10621. AlfafloorGDVDataSet.HistorySaleDataTable dataTable = new AlfafloorGDVDataSet.HistorySaleDataTable();
  10622. this.Adapter.Fill(dataTable);
  10623. return dataTable;
  10624. }
  10625. }
  10626. /// <summary>
  10627. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  10628. ///</summary>
  10629. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10630. [global::System.ComponentModel.ToolboxItem(true)]
  10631. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  10632. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10633. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  10634. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  10635. private UpdateOrderOption _updateOrder;
  10636. private CityTableAdapter _cityTableAdapter;
  10637. private ManagerTableAdapter _managerTableAdapter;
  10638. private PartnerTableAdapter _partnerTableAdapter;
  10639. private PartnerProductsTableAdapter _partnerProductsTableAdapter;
  10640. private PostCodeTableAdapter _postCodeTableAdapter;
  10641. private ProductTableAdapter _productTableAdapter;
  10642. private ProductTypeTableAdapter _productTypeTableAdapter;
  10643. private RegionTableAdapter _regionTableAdapter;
  10644. private StreetTableAdapter _streetTableAdapter;
  10645. private TypeMaterialTableAdapter _typeMaterialTableAdapter;
  10646. private TypePartnerTableAdapter _typePartnerTableAdapter;
  10647. private bool _backupDataSetBeforeUpdate;
  10648. private global::System.Data.IDbConnection _connection;
  10649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10651. public UpdateOrderOption UpdateOrder {
  10652. get {
  10653. return this._updateOrder;
  10654. }
  10655. set {
  10656. this._updateOrder = value;
  10657. }
  10658. }
  10659. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10660. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10661. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10662. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10663. "a", "System.Drawing.Design.UITypeEditor")]
  10664. public CityTableAdapter CityTableAdapter {
  10665. get {
  10666. return this._cityTableAdapter;
  10667. }
  10668. set {
  10669. this._cityTableAdapter = value;
  10670. }
  10671. }
  10672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10674. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10675. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10676. "a", "System.Drawing.Design.UITypeEditor")]
  10677. public ManagerTableAdapter ManagerTableAdapter {
  10678. get {
  10679. return this._managerTableAdapter;
  10680. }
  10681. set {
  10682. this._managerTableAdapter = value;
  10683. }
  10684. }
  10685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10687. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10688. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10689. "a", "System.Drawing.Design.UITypeEditor")]
  10690. public PartnerTableAdapter PartnerTableAdapter {
  10691. get {
  10692. return this._partnerTableAdapter;
  10693. }
  10694. set {
  10695. this._partnerTableAdapter = value;
  10696. }
  10697. }
  10698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10700. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10701. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10702. "a", "System.Drawing.Design.UITypeEditor")]
  10703. public PartnerProductsTableAdapter PartnerProductsTableAdapter {
  10704. get {
  10705. return this._partnerProductsTableAdapter;
  10706. }
  10707. set {
  10708. this._partnerProductsTableAdapter = value;
  10709. }
  10710. }
  10711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10712. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10713. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10714. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10715. "a", "System.Drawing.Design.UITypeEditor")]
  10716. public PostCodeTableAdapter PostCodeTableAdapter {
  10717. get {
  10718. return this._postCodeTableAdapter;
  10719. }
  10720. set {
  10721. this._postCodeTableAdapter = value;
  10722. }
  10723. }
  10724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10725. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10726. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10727. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10728. "a", "System.Drawing.Design.UITypeEditor")]
  10729. public ProductTableAdapter ProductTableAdapter {
  10730. get {
  10731. return this._productTableAdapter;
  10732. }
  10733. set {
  10734. this._productTableAdapter = value;
  10735. }
  10736. }
  10737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10739. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10740. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10741. "a", "System.Drawing.Design.UITypeEditor")]
  10742. public ProductTypeTableAdapter ProductTypeTableAdapter {
  10743. get {
  10744. return this._productTypeTableAdapter;
  10745. }
  10746. set {
  10747. this._productTypeTableAdapter = value;
  10748. }
  10749. }
  10750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10752. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10753. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10754. "a", "System.Drawing.Design.UITypeEditor")]
  10755. public RegionTableAdapter RegionTableAdapter {
  10756. get {
  10757. return this._regionTableAdapter;
  10758. }
  10759. set {
  10760. this._regionTableAdapter = value;
  10761. }
  10762. }
  10763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10765. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10766. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10767. "a", "System.Drawing.Design.UITypeEditor")]
  10768. public StreetTableAdapter StreetTableAdapter {
  10769. get {
  10770. return this._streetTableAdapter;
  10771. }
  10772. set {
  10773. this._streetTableAdapter = value;
  10774. }
  10775. }
  10776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10778. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10779. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10780. "a", "System.Drawing.Design.UITypeEditor")]
  10781. public TypeMaterialTableAdapter TypeMaterialTableAdapter {
  10782. get {
  10783. return this._typeMaterialTableAdapter;
  10784. }
  10785. set {
  10786. this._typeMaterialTableAdapter = value;
  10787. }
  10788. }
  10789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10791. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10792. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10793. "a", "System.Drawing.Design.UITypeEditor")]
  10794. public TypePartnerTableAdapter TypePartnerTableAdapter {
  10795. get {
  10796. return this._typePartnerTableAdapter;
  10797. }
  10798. set {
  10799. this._typePartnerTableAdapter = value;
  10800. }
  10801. }
  10802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10804. public bool BackupDataSetBeforeUpdate {
  10805. get {
  10806. return this._backupDataSetBeforeUpdate;
  10807. }
  10808. set {
  10809. this._backupDataSetBeforeUpdate = value;
  10810. }
  10811. }
  10812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10814. [global::System.ComponentModel.Browsable(false)]
  10815. public global::System.Data.IDbConnection Connection {
  10816. get {
  10817. if ((this._connection != null)) {
  10818. return this._connection;
  10819. }
  10820. if (((this._cityTableAdapter != null)
  10821. && (this._cityTableAdapter.Connection != null))) {
  10822. return this._cityTableAdapter.Connection;
  10823. }
  10824. if (((this._managerTableAdapter != null)
  10825. && (this._managerTableAdapter.Connection != null))) {
  10826. return this._managerTableAdapter.Connection;
  10827. }
  10828. if (((this._partnerTableAdapter != null)
  10829. && (this._partnerTableAdapter.Connection != null))) {
  10830. return this._partnerTableAdapter.Connection;
  10831. }
  10832. if (((this._partnerProductsTableAdapter != null)
  10833. && (this._partnerProductsTableAdapter.Connection != null))) {
  10834. return this._partnerProductsTableAdapter.Connection;
  10835. }
  10836. if (((this._postCodeTableAdapter != null)
  10837. && (this._postCodeTableAdapter.Connection != null))) {
  10838. return this._postCodeTableAdapter.Connection;
  10839. }
  10840. if (((this._productTableAdapter != null)
  10841. && (this._productTableAdapter.Connection != null))) {
  10842. return this._productTableAdapter.Connection;
  10843. }
  10844. if (((this._productTypeTableAdapter != null)
  10845. && (this._productTypeTableAdapter.Connection != null))) {
  10846. return this._productTypeTableAdapter.Connection;
  10847. }
  10848. if (((this._regionTableAdapter != null)
  10849. && (this._regionTableAdapter.Connection != null))) {
  10850. return this._regionTableAdapter.Connection;
  10851. }
  10852. if (((this._streetTableAdapter != null)
  10853. && (this._streetTableAdapter.Connection != null))) {
  10854. return this._streetTableAdapter.Connection;
  10855. }
  10856. if (((this._typeMaterialTableAdapter != null)
  10857. && (this._typeMaterialTableAdapter.Connection != null))) {
  10858. return this._typeMaterialTableAdapter.Connection;
  10859. }
  10860. if (((this._typePartnerTableAdapter != null)
  10861. && (this._typePartnerTableAdapter.Connection != null))) {
  10862. return this._typePartnerTableAdapter.Connection;
  10863. }
  10864. return null;
  10865. }
  10866. set {
  10867. this._connection = value;
  10868. }
  10869. }
  10870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10872. [global::System.ComponentModel.Browsable(false)]
  10873. public int TableAdapterInstanceCount {
  10874. get {
  10875. int count = 0;
  10876. if ((this._cityTableAdapter != null)) {
  10877. count = (count + 1);
  10878. }
  10879. if ((this._managerTableAdapter != null)) {
  10880. count = (count + 1);
  10881. }
  10882. if ((this._partnerTableAdapter != null)) {
  10883. count = (count + 1);
  10884. }
  10885. if ((this._partnerProductsTableAdapter != null)) {
  10886. count = (count + 1);
  10887. }
  10888. if ((this._postCodeTableAdapter != null)) {
  10889. count = (count + 1);
  10890. }
  10891. if ((this._productTableAdapter != null)) {
  10892. count = (count + 1);
  10893. }
  10894. if ((this._productTypeTableAdapter != null)) {
  10895. count = (count + 1);
  10896. }
  10897. if ((this._regionTableAdapter != null)) {
  10898. count = (count + 1);
  10899. }
  10900. if ((this._streetTableAdapter != null)) {
  10901. count = (count + 1);
  10902. }
  10903. if ((this._typeMaterialTableAdapter != null)) {
  10904. count = (count + 1);
  10905. }
  10906. if ((this._typePartnerTableAdapter != null)) {
  10907. count = (count + 1);
  10908. }
  10909. return count;
  10910. }
  10911. }
  10912. /// <summary>
  10913. ///Update rows in top-down order.
  10914. ///</summary>
  10915. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10916. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10917. 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) {
  10918. int result = 0;
  10919. if ((this._cityTableAdapter != null)) {
  10920. global::System.Data.DataRow[] updatedRows = dataSet.City.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10921. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10922. if (((updatedRows != null)
  10923. && (0 < updatedRows.Length))) {
  10924. result = (result + this._cityTableAdapter.Update(updatedRows));
  10925. allChangedRows.AddRange(updatedRows);
  10926. }
  10927. }
  10928. if ((this._postCodeTableAdapter != null)) {
  10929. global::System.Data.DataRow[] updatedRows = dataSet.PostCode.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10930. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10931. if (((updatedRows != null)
  10932. && (0 < updatedRows.Length))) {
  10933. result = (result + this._postCodeTableAdapter.Update(updatedRows));
  10934. allChangedRows.AddRange(updatedRows);
  10935. }
  10936. }
  10937. if ((this._productTypeTableAdapter != null)) {
  10938. global::System.Data.DataRow[] updatedRows = dataSet.ProductType.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10939. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10940. if (((updatedRows != null)
  10941. && (0 < updatedRows.Length))) {
  10942. result = (result + this._productTypeTableAdapter.Update(updatedRows));
  10943. allChangedRows.AddRange(updatedRows);
  10944. }
  10945. }
  10946. if ((this._regionTableAdapter != null)) {
  10947. global::System.Data.DataRow[] updatedRows = dataSet.Region.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10948. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10949. if (((updatedRows != null)
  10950. && (0 < updatedRows.Length))) {
  10951. result = (result + this._regionTableAdapter.Update(updatedRows));
  10952. allChangedRows.AddRange(updatedRows);
  10953. }
  10954. }
  10955. if ((this._streetTableAdapter != null)) {
  10956. global::System.Data.DataRow[] updatedRows = dataSet.Street.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10957. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10958. if (((updatedRows != null)
  10959. && (0 < updatedRows.Length))) {
  10960. result = (result + this._streetTableAdapter.Update(updatedRows));
  10961. allChangedRows.AddRange(updatedRows);
  10962. }
  10963. }
  10964. if ((this._typePartnerTableAdapter != null)) {
  10965. global::System.Data.DataRow[] updatedRows = dataSet.TypePartner.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10966. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10967. if (((updatedRows != null)
  10968. && (0 < updatedRows.Length))) {
  10969. result = (result + this._typePartnerTableAdapter.Update(updatedRows));
  10970. allChangedRows.AddRange(updatedRows);
  10971. }
  10972. }
  10973. if ((this._partnerTableAdapter != null)) {
  10974. global::System.Data.DataRow[] updatedRows = dataSet.Partner.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10975. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10976. if (((updatedRows != null)
  10977. && (0 < updatedRows.Length))) {
  10978. result = (result + this._partnerTableAdapter.Update(updatedRows));
  10979. allChangedRows.AddRange(updatedRows);
  10980. }
  10981. }
  10982. if ((this._productTableAdapter != null)) {
  10983. global::System.Data.DataRow[] updatedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10984. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10985. if (((updatedRows != null)
  10986. && (0 < updatedRows.Length))) {
  10987. result = (result + this._productTableAdapter.Update(updatedRows));
  10988. allChangedRows.AddRange(updatedRows);
  10989. }
  10990. }
  10991. if ((this._managerTableAdapter != null)) {
  10992. global::System.Data.DataRow[] updatedRows = dataSet.Manager.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10993. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10994. if (((updatedRows != null)
  10995. && (0 < updatedRows.Length))) {
  10996. result = (result + this._managerTableAdapter.Update(updatedRows));
  10997. allChangedRows.AddRange(updatedRows);
  10998. }
  10999. }
  11000. if ((this._partnerProductsTableAdapter != null)) {
  11001. global::System.Data.DataRow[] updatedRows = dataSet.PartnerProducts.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11002. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11003. if (((updatedRows != null)
  11004. && (0 < updatedRows.Length))) {
  11005. result = (result + this._partnerProductsTableAdapter.Update(updatedRows));
  11006. allChangedRows.AddRange(updatedRows);
  11007. }
  11008. }
  11009. if ((this._typeMaterialTableAdapter != null)) {
  11010. global::System.Data.DataRow[] updatedRows = dataSet.TypeMaterial.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11011. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11012. if (((updatedRows != null)
  11013. && (0 < updatedRows.Length))) {
  11014. result = (result + this._typeMaterialTableAdapter.Update(updatedRows));
  11015. allChangedRows.AddRange(updatedRows);
  11016. }
  11017. }
  11018. return result;
  11019. }
  11020. /// <summary>
  11021. ///Insert rows in top-down order.
  11022. ///</summary>
  11023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  11025. private int UpdateInsertedRows(AlfafloorGDVDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  11026. int result = 0;
  11027. if ((this._cityTableAdapter != null)) {
  11028. global::System.Data.DataRow[] addedRows = dataSet.City.Select(null, null, global::System.Data.DataViewRowState.Added);
  11029. if (((addedRows != null)
  11030. && (0 < addedRows.Length))) {
  11031. result = (result + this._cityTableAdapter.Update(addedRows));
  11032. allAddedRows.AddRange(addedRows);
  11033. }
  11034. }
  11035. if ((this._postCodeTableAdapter != null)) {
  11036. global::System.Data.DataRow[] addedRows = dataSet.PostCode.Select(null, null, global::System.Data.DataViewRowState.Added);
  11037. if (((addedRows != null)
  11038. && (0 < addedRows.Length))) {
  11039. result = (result + this._postCodeTableAdapter.Update(addedRows));
  11040. allAddedRows.AddRange(addedRows);
  11041. }
  11042. }
  11043. if ((this._productTypeTableAdapter != null)) {
  11044. global::System.Data.DataRow[] addedRows = dataSet.ProductType.Select(null, null, global::System.Data.DataViewRowState.Added);
  11045. if (((addedRows != null)
  11046. && (0 < addedRows.Length))) {
  11047. result = (result + this._productTypeTableAdapter.Update(addedRows));
  11048. allAddedRows.AddRange(addedRows);
  11049. }
  11050. }
  11051. if ((this._regionTableAdapter != null)) {
  11052. global::System.Data.DataRow[] addedRows = dataSet.Region.Select(null, null, global::System.Data.DataViewRowState.Added);
  11053. if (((addedRows != null)
  11054. && (0 < addedRows.Length))) {
  11055. result = (result + this._regionTableAdapter.Update(addedRows));
  11056. allAddedRows.AddRange(addedRows);
  11057. }
  11058. }
  11059. if ((this._streetTableAdapter != null)) {
  11060. global::System.Data.DataRow[] addedRows = dataSet.Street.Select(null, null, global::System.Data.DataViewRowState.Added);
  11061. if (((addedRows != null)
  11062. && (0 < addedRows.Length))) {
  11063. result = (result + this._streetTableAdapter.Update(addedRows));
  11064. allAddedRows.AddRange(addedRows);
  11065. }
  11066. }
  11067. if ((this._typePartnerTableAdapter != null)) {
  11068. global::System.Data.DataRow[] addedRows = dataSet.TypePartner.Select(null, null, global::System.Data.DataViewRowState.Added);
  11069. if (((addedRows != null)
  11070. && (0 < addedRows.Length))) {
  11071. result = (result + this._typePartnerTableAdapter.Update(addedRows));
  11072. allAddedRows.AddRange(addedRows);
  11073. }
  11074. }
  11075. if ((this._partnerTableAdapter != null)) {
  11076. global::System.Data.DataRow[] addedRows = dataSet.Partner.Select(null, null, global::System.Data.DataViewRowState.Added);
  11077. if (((addedRows != null)
  11078. && (0 < addedRows.Length))) {
  11079. result = (result + this._partnerTableAdapter.Update(addedRows));
  11080. allAddedRows.AddRange(addedRows);
  11081. }
  11082. }
  11083. if ((this._productTableAdapter != null)) {
  11084. global::System.Data.DataRow[] addedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Added);
  11085. if (((addedRows != null)
  11086. && (0 < addedRows.Length))) {
  11087. result = (result + this._productTableAdapter.Update(addedRows));
  11088. allAddedRows.AddRange(addedRows);
  11089. }
  11090. }
  11091. if ((this._managerTableAdapter != null)) {
  11092. global::System.Data.DataRow[] addedRows = dataSet.Manager.Select(null, null, global::System.Data.DataViewRowState.Added);
  11093. if (((addedRows != null)
  11094. && (0 < addedRows.Length))) {
  11095. result = (result + this._managerTableAdapter.Update(addedRows));
  11096. allAddedRows.AddRange(addedRows);
  11097. }
  11098. }
  11099. if ((this._partnerProductsTableAdapter != null)) {
  11100. global::System.Data.DataRow[] addedRows = dataSet.PartnerProducts.Select(null, null, global::System.Data.DataViewRowState.Added);
  11101. if (((addedRows != null)
  11102. && (0 < addedRows.Length))) {
  11103. result = (result + this._partnerProductsTableAdapter.Update(addedRows));
  11104. allAddedRows.AddRange(addedRows);
  11105. }
  11106. }
  11107. if ((this._typeMaterialTableAdapter != null)) {
  11108. global::System.Data.DataRow[] addedRows = dataSet.TypeMaterial.Select(null, null, global::System.Data.DataViewRowState.Added);
  11109. if (((addedRows != null)
  11110. && (0 < addedRows.Length))) {
  11111. result = (result + this._typeMaterialTableAdapter.Update(addedRows));
  11112. allAddedRows.AddRange(addedRows);
  11113. }
  11114. }
  11115. return result;
  11116. }
  11117. /// <summary>
  11118. ///Delete rows in bottom-up order.
  11119. ///</summary>
  11120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  11122. private int UpdateDeletedRows(AlfafloorGDVDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  11123. int result = 0;
  11124. if ((this._typeMaterialTableAdapter != null)) {
  11125. global::System.Data.DataRow[] deletedRows = dataSet.TypeMaterial.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11126. if (((deletedRows != null)
  11127. && (0 < deletedRows.Length))) {
  11128. result = (result + this._typeMaterialTableAdapter.Update(deletedRows));
  11129. allChangedRows.AddRange(deletedRows);
  11130. }
  11131. }
  11132. if ((this._partnerProductsTableAdapter != null)) {
  11133. global::System.Data.DataRow[] deletedRows = dataSet.PartnerProducts.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11134. if (((deletedRows != null)
  11135. && (0 < deletedRows.Length))) {
  11136. result = (result + this._partnerProductsTableAdapter.Update(deletedRows));
  11137. allChangedRows.AddRange(deletedRows);
  11138. }
  11139. }
  11140. if ((this._managerTableAdapter != null)) {
  11141. global::System.Data.DataRow[] deletedRows = dataSet.Manager.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11142. if (((deletedRows != null)
  11143. && (0 < deletedRows.Length))) {
  11144. result = (result + this._managerTableAdapter.Update(deletedRows));
  11145. allChangedRows.AddRange(deletedRows);
  11146. }
  11147. }
  11148. if ((this._productTableAdapter != null)) {
  11149. global::System.Data.DataRow[] deletedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11150. if (((deletedRows != null)
  11151. && (0 < deletedRows.Length))) {
  11152. result = (result + this._productTableAdapter.Update(deletedRows));
  11153. allChangedRows.AddRange(deletedRows);
  11154. }
  11155. }
  11156. if ((this._partnerTableAdapter != null)) {
  11157. global::System.Data.DataRow[] deletedRows = dataSet.Partner.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11158. if (((deletedRows != null)
  11159. && (0 < deletedRows.Length))) {
  11160. result = (result + this._partnerTableAdapter.Update(deletedRows));
  11161. allChangedRows.AddRange(deletedRows);
  11162. }
  11163. }
  11164. if ((this._typePartnerTableAdapter != null)) {
  11165. global::System.Data.DataRow[] deletedRows = dataSet.TypePartner.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11166. if (((deletedRows != null)
  11167. && (0 < deletedRows.Length))) {
  11168. result = (result + this._typePartnerTableAdapter.Update(deletedRows));
  11169. allChangedRows.AddRange(deletedRows);
  11170. }
  11171. }
  11172. if ((this._streetTableAdapter != null)) {
  11173. global::System.Data.DataRow[] deletedRows = dataSet.Street.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11174. if (((deletedRows != null)
  11175. && (0 < deletedRows.Length))) {
  11176. result = (result + this._streetTableAdapter.Update(deletedRows));
  11177. allChangedRows.AddRange(deletedRows);
  11178. }
  11179. }
  11180. if ((this._regionTableAdapter != null)) {
  11181. global::System.Data.DataRow[] deletedRows = dataSet.Region.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11182. if (((deletedRows != null)
  11183. && (0 < deletedRows.Length))) {
  11184. result = (result + this._regionTableAdapter.Update(deletedRows));
  11185. allChangedRows.AddRange(deletedRows);
  11186. }
  11187. }
  11188. if ((this._productTypeTableAdapter != null)) {
  11189. global::System.Data.DataRow[] deletedRows = dataSet.ProductType.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11190. if (((deletedRows != null)
  11191. && (0 < deletedRows.Length))) {
  11192. result = (result + this._productTypeTableAdapter.Update(deletedRows));
  11193. allChangedRows.AddRange(deletedRows);
  11194. }
  11195. }
  11196. if ((this._postCodeTableAdapter != null)) {
  11197. global::System.Data.DataRow[] deletedRows = dataSet.PostCode.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11198. if (((deletedRows != null)
  11199. && (0 < deletedRows.Length))) {
  11200. result = (result + this._postCodeTableAdapter.Update(deletedRows));
  11201. allChangedRows.AddRange(deletedRows);
  11202. }
  11203. }
  11204. if ((this._cityTableAdapter != null)) {
  11205. global::System.Data.DataRow[] deletedRows = dataSet.City.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11206. if (((deletedRows != null)
  11207. && (0 < deletedRows.Length))) {
  11208. result = (result + this._cityTableAdapter.Update(deletedRows));
  11209. allChangedRows.AddRange(deletedRows);
  11210. }
  11211. }
  11212. return result;
  11213. }
  11214. /// <summary>
  11215. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  11216. ///</summary>
  11217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  11219. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  11220. if (((updatedRows == null)
  11221. || (updatedRows.Length < 1))) {
  11222. return updatedRows;
  11223. }
  11224. if (((allAddedRows == null)
  11225. || (allAddedRows.Count < 1))) {
  11226. return updatedRows;
  11227. }
  11228. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  11229. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  11230. global::System.Data.DataRow row = updatedRows[i];
  11231. if ((allAddedRows.Contains(row) == false)) {
  11232. realUpdatedRows.Add(row);
  11233. }
  11234. }
  11235. return realUpdatedRows.ToArray();
  11236. }
  11237. /// <summary>
  11238. ///Update all changes to the dataset.
  11239. ///</summary>
  11240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  11242. public virtual int UpdateAll(AlfafloorGDVDataSet dataSet) {
  11243. if ((dataSet == null)) {
  11244. throw new global::System.ArgumentNullException("dataSet");
  11245. }
  11246. if ((dataSet.HasChanges() == false)) {
  11247. return 0;
  11248. }
  11249. if (((this._cityTableAdapter != null)
  11250. && (this.MatchTableAdapterConnection(this._cityTableAdapter.Connection) == false))) {
  11251. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  11252. "tring.");
  11253. }
  11254. if (((this._managerTableAdapter != null)
  11255. && (this.MatchTableAdapterConnection(this._managerTableAdapter.Connection) == false))) {
  11256. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  11257. "tring.");
  11258. }
  11259. if (((this._partnerTableAdapter != null)
  11260. && (this.MatchTableAdapterConnection(this._partnerTableAdapter.Connection) == false))) {
  11261. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  11262. "tring.");
  11263. }
  11264. if (((this._partnerProductsTableAdapter != null)
  11265. && (this.MatchTableAdapterConnection(this._partnerProductsTableAdapter.Connection) == false))) {
  11266. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  11267. "tring.");
  11268. }
  11269. if (((this._postCodeTableAdapter != null)
  11270. && (this.MatchTableAdapterConnection(this._postCodeTableAdapter.Connection) == false))) {
  11271. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  11272. "tring.");
  11273. }
  11274. if (((this._productTableAdapter != null)
  11275. && (this.MatchTableAdapterConnection(this._productTableAdapter.Connection) == false))) {
  11276. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  11277. "tring.");
  11278. }
  11279. if (((this._productTypeTableAdapter != null)
  11280. && (this.MatchTableAdapterConnection(this._productTypeTableAdapter.Connection) == false))) {
  11281. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  11282. "tring.");
  11283. }
  11284. if (((this._regionTableAdapter != null)
  11285. && (this.MatchTableAdapterConnection(this._regionTableAdapter.Connection) == false))) {
  11286. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  11287. "tring.");
  11288. }
  11289. if (((this._streetTableAdapter != null)
  11290. && (this.MatchTableAdapterConnection(this._streetTableAdapter.Connection) == false))) {
  11291. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  11292. "tring.");
  11293. }
  11294. if (((this._typeMaterialTableAdapter != null)
  11295. && (this.MatchTableAdapterConnection(this._typeMaterialTableAdapter.Connection) == false))) {
  11296. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  11297. "tring.");
  11298. }
  11299. if (((this._typePartnerTableAdapter != null)
  11300. && (this.MatchTableAdapterConnection(this._typePartnerTableAdapter.Connection) == false))) {
  11301. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  11302. "tring.");
  11303. }
  11304. global::System.Data.IDbConnection workConnection = this.Connection;
  11305. if ((workConnection == null)) {
  11306. throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" +
  11307. "ger TableAdapter property to a valid TableAdapter instance.");
  11308. }
  11309. bool workConnOpened = false;
  11310. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  11311. == global::System.Data.ConnectionState.Broken)) {
  11312. workConnection.Close();
  11313. }
  11314. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  11315. workConnection.Open();
  11316. workConnOpened = true;
  11317. }
  11318. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  11319. if ((workTransaction == null)) {
  11320. throw new global::System.ApplicationException("The transaction cannot begin. The current data connection does not support transa" +
  11321. "ctions or the current state is not allowing the transaction to begin.");
  11322. }
  11323. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  11324. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  11325. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  11326. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  11327. int result = 0;
  11328. global::System.Data.DataSet backupDataSet = null;
  11329. if (this.BackupDataSetBeforeUpdate) {
  11330. backupDataSet = new global::System.Data.DataSet();
  11331. backupDataSet.Merge(dataSet);
  11332. }
  11333. try {
  11334. // ---- Prepare for update -----------
  11335. //
  11336. if ((this._cityTableAdapter != null)) {
  11337. revertConnections.Add(this._cityTableAdapter, this._cityTableAdapter.Connection);
  11338. this._cityTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11339. this._cityTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11340. if (this._cityTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11341. this._cityTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11342. adaptersWithAcceptChangesDuringUpdate.Add(this._cityTableAdapter.Adapter);
  11343. }
  11344. }
  11345. if ((this._managerTableAdapter != null)) {
  11346. revertConnections.Add(this._managerTableAdapter, this._managerTableAdapter.Connection);
  11347. this._managerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11348. this._managerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11349. if (this._managerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11350. this._managerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11351. adaptersWithAcceptChangesDuringUpdate.Add(this._managerTableAdapter.Adapter);
  11352. }
  11353. }
  11354. if ((this._partnerTableAdapter != null)) {
  11355. revertConnections.Add(this._partnerTableAdapter, this._partnerTableAdapter.Connection);
  11356. this._partnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11357. this._partnerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11358. if (this._partnerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11359. this._partnerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11360. adaptersWithAcceptChangesDuringUpdate.Add(this._partnerTableAdapter.Adapter);
  11361. }
  11362. }
  11363. if ((this._partnerProductsTableAdapter != null)) {
  11364. revertConnections.Add(this._partnerProductsTableAdapter, this._partnerProductsTableAdapter.Connection);
  11365. this._partnerProductsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11366. this._partnerProductsTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11367. if (this._partnerProductsTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11368. this._partnerProductsTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11369. adaptersWithAcceptChangesDuringUpdate.Add(this._partnerProductsTableAdapter.Adapter);
  11370. }
  11371. }
  11372. if ((this._postCodeTableAdapter != null)) {
  11373. revertConnections.Add(this._postCodeTableAdapter, this._postCodeTableAdapter.Connection);
  11374. this._postCodeTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11375. this._postCodeTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11376. if (this._postCodeTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11377. this._postCodeTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11378. adaptersWithAcceptChangesDuringUpdate.Add(this._postCodeTableAdapter.Adapter);
  11379. }
  11380. }
  11381. if ((this._productTableAdapter != null)) {
  11382. revertConnections.Add(this._productTableAdapter, this._productTableAdapter.Connection);
  11383. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11384. this._productTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11385. if (this._productTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11386. this._productTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11387. adaptersWithAcceptChangesDuringUpdate.Add(this._productTableAdapter.Adapter);
  11388. }
  11389. }
  11390. if ((this._productTypeTableAdapter != null)) {
  11391. revertConnections.Add(this._productTypeTableAdapter, this._productTypeTableAdapter.Connection);
  11392. this._productTypeTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11393. this._productTypeTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11394. if (this._productTypeTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11395. this._productTypeTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11396. adaptersWithAcceptChangesDuringUpdate.Add(this._productTypeTableAdapter.Adapter);
  11397. }
  11398. }
  11399. if ((this._regionTableAdapter != null)) {
  11400. revertConnections.Add(this._regionTableAdapter, this._regionTableAdapter.Connection);
  11401. this._regionTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11402. this._regionTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11403. if (this._regionTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11404. this._regionTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11405. adaptersWithAcceptChangesDuringUpdate.Add(this._regionTableAdapter.Adapter);
  11406. }
  11407. }
  11408. if ((this._streetTableAdapter != null)) {
  11409. revertConnections.Add(this._streetTableAdapter, this._streetTableAdapter.Connection);
  11410. this._streetTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11411. this._streetTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11412. if (this._streetTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11413. this._streetTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11414. adaptersWithAcceptChangesDuringUpdate.Add(this._streetTableAdapter.Adapter);
  11415. }
  11416. }
  11417. if ((this._typeMaterialTableAdapter != null)) {
  11418. revertConnections.Add(this._typeMaterialTableAdapter, this._typeMaterialTableAdapter.Connection);
  11419. this._typeMaterialTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11420. this._typeMaterialTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11421. if (this._typeMaterialTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11422. this._typeMaterialTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11423. adaptersWithAcceptChangesDuringUpdate.Add(this._typeMaterialTableAdapter.Adapter);
  11424. }
  11425. }
  11426. if ((this._typePartnerTableAdapter != null)) {
  11427. revertConnections.Add(this._typePartnerTableAdapter, this._typePartnerTableAdapter.Connection);
  11428. this._typePartnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11429. this._typePartnerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11430. if (this._typePartnerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11431. this._typePartnerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11432. adaptersWithAcceptChangesDuringUpdate.Add(this._typePartnerTableAdapter.Adapter);
  11433. }
  11434. }
  11435. //
  11436. //---- Perform updates -----------
  11437. //
  11438. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  11439. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  11440. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  11441. }
  11442. else {
  11443. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  11444. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  11445. }
  11446. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  11447. //
  11448. //---- Commit updates -----------
  11449. //
  11450. workTransaction.Commit();
  11451. if ((0 < allAddedRows.Count)) {
  11452. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  11453. allAddedRows.CopyTo(rows);
  11454. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  11455. global::System.Data.DataRow row = rows[i];
  11456. row.AcceptChanges();
  11457. }
  11458. }
  11459. if ((0 < allChangedRows.Count)) {
  11460. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  11461. allChangedRows.CopyTo(rows);
  11462. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  11463. global::System.Data.DataRow row = rows[i];
  11464. row.AcceptChanges();
  11465. }
  11466. }
  11467. }
  11468. catch (global::System.Exception ex) {
  11469. workTransaction.Rollback();
  11470. // ---- Restore the dataset -----------
  11471. if (this.BackupDataSetBeforeUpdate) {
  11472. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  11473. dataSet.Clear();
  11474. dataSet.Merge(backupDataSet);
  11475. }
  11476. else {
  11477. if ((0 < allAddedRows.Count)) {
  11478. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  11479. allAddedRows.CopyTo(rows);
  11480. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  11481. global::System.Data.DataRow row = rows[i];
  11482. row.AcceptChanges();
  11483. row.SetAdded();
  11484. }
  11485. }
  11486. }
  11487. throw ex;
  11488. }
  11489. finally {
  11490. if (workConnOpened) {
  11491. workConnection.Close();
  11492. }
  11493. if ((this._cityTableAdapter != null)) {
  11494. this._cityTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._cityTableAdapter]));
  11495. this._cityTableAdapter.Transaction = null;
  11496. }
  11497. if ((this._managerTableAdapter != null)) {
  11498. this._managerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._managerTableAdapter]));
  11499. this._managerTableAdapter.Transaction = null;
  11500. }
  11501. if ((this._partnerTableAdapter != null)) {
  11502. this._partnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._partnerTableAdapter]));
  11503. this._partnerTableAdapter.Transaction = null;
  11504. }
  11505. if ((this._partnerProductsTableAdapter != null)) {
  11506. this._partnerProductsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._partnerProductsTableAdapter]));
  11507. this._partnerProductsTableAdapter.Transaction = null;
  11508. }
  11509. if ((this._postCodeTableAdapter != null)) {
  11510. this._postCodeTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._postCodeTableAdapter]));
  11511. this._postCodeTableAdapter.Transaction = null;
  11512. }
  11513. if ((this._productTableAdapter != null)) {
  11514. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productTableAdapter]));
  11515. this._productTableAdapter.Transaction = null;
  11516. }
  11517. if ((this._productTypeTableAdapter != null)) {
  11518. this._productTypeTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productTypeTableAdapter]));
  11519. this._productTypeTableAdapter.Transaction = null;
  11520. }
  11521. if ((this._regionTableAdapter != null)) {
  11522. this._regionTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._regionTableAdapter]));
  11523. this._regionTableAdapter.Transaction = null;
  11524. }
  11525. if ((this._streetTableAdapter != null)) {
  11526. this._streetTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._streetTableAdapter]));
  11527. this._streetTableAdapter.Transaction = null;
  11528. }
  11529. if ((this._typeMaterialTableAdapter != null)) {
  11530. this._typeMaterialTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._typeMaterialTableAdapter]));
  11531. this._typeMaterialTableAdapter.Transaction = null;
  11532. }
  11533. if ((this._typePartnerTableAdapter != null)) {
  11534. this._typePartnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._typePartnerTableAdapter]));
  11535. this._typePartnerTableAdapter.Transaction = null;
  11536. }
  11537. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  11538. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  11539. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  11540. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  11541. global::System.Data.Common.DataAdapter adapter = adapters[i];
  11542. adapter.AcceptChangesDuringUpdate = true;
  11543. }
  11544. }
  11545. }
  11546. return result;
  11547. }
  11548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11549. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  11550. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  11551. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  11552. }
  11553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  11555. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  11556. if ((this._connection != null)) {
  11557. return true;
  11558. }
  11559. if (((this.Connection == null)
  11560. || (inputConnection == null))) {
  11561. return true;
  11562. }
  11563. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  11564. return true;
  11565. }
  11566. return false;
  11567. }
  11568. /// <summary>
  11569. ///Update Order Option
  11570. ///</summary>
  11571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  11572. public enum UpdateOrderOption {
  11573. InsertUpdateDelete = 0,
  11574. UpdateInsertDelete = 1,
  11575. }
  11576. /// <summary>
  11577. ///Used to sort self-referenced table's rows
  11578. ///</summary>
  11579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  11580. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  11581. private global::System.Data.DataRelation _relation;
  11582. private int _childFirst;
  11583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  11585. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  11586. this._relation = relation;
  11587. if (childFirst) {
  11588. this._childFirst = -1;
  11589. }
  11590. else {
  11591. this._childFirst = 1;
  11592. }
  11593. }
  11594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  11596. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  11597. global::System.Diagnostics.Debug.Assert((row != null));
  11598. global::System.Data.DataRow root = row;
  11599. distance = 0;
  11600. 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>();
  11601. traversedRows[row] = row;
  11602. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  11603. for (
  11604. ; ((parent != null)
  11605. && (traversedRows.ContainsKey(parent) == false));
  11606. ) {
  11607. distance = (distance + 1);
  11608. root = parent;
  11609. traversedRows[parent] = parent;
  11610. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  11611. }
  11612. if ((distance == 0)) {
  11613. traversedRows.Clear();
  11614. traversedRows[row] = row;
  11615. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  11616. for (
  11617. ; ((parent != null)
  11618. && (traversedRows.ContainsKey(parent) == false));
  11619. ) {
  11620. distance = (distance + 1);
  11621. root = parent;
  11622. traversedRows[parent] = parent;
  11623. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  11624. }
  11625. }
  11626. return root;
  11627. }
  11628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  11630. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  11631. if (object.ReferenceEquals(row1, row2)) {
  11632. return 0;
  11633. }
  11634. if ((row1 == null)) {
  11635. return -1;
  11636. }
  11637. if ((row2 == null)) {
  11638. return 1;
  11639. }
  11640. int distance1 = 0;
  11641. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  11642. int distance2 = 0;
  11643. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  11644. if (object.ReferenceEquals(root1, root2)) {
  11645. return (this._childFirst * distance1.CompareTo(distance2));
  11646. }
  11647. else {
  11648. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  11649. && (root2.Table != null)));
  11650. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  11651. return -1;
  11652. }
  11653. else {
  11654. return 1;
  11655. }
  11656. }
  11657. }
  11658. }
  11659. }
  11660. }
  11661. #pragma warning restore 1591