dbAlphapolAGDataSet.Designer.cs 730 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // This code was generated by a tool.
  4. // Runtime Version:4.0.30319.42000
  5. //
  6. // Changes to this file may cause incorrect behavior and will be lost if
  7. // the code is regenerated.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace СУБД_Альфапол {
  12. /// <summary>
  13. ///Represents a strongly typed in-memory cache of data.
  14. ///</summary>
  15. [global::System.Serializable()]
  16. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  17. [global::System.ComponentModel.ToolboxItem(true)]
  18. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
  19. [global::System.Xml.Serialization.XmlRootAttribute("dbAlphapolAGDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class dbAlphapolAGDataSet : global::System.Data.DataSet {
  22. private CityDataTable tableCity;
  23. private IndexPartnerDataTable tableIndexPartner;
  24. private ManagerDataTable tableManager;
  25. private PartnerDataTable tablePartner;
  26. private ProductPartnerDataTable tableProductPartner;
  27. private ProductsDataTable tableProducts;
  28. private RegionDataTable tableRegion;
  29. private StreetDataTable tableStreet;
  30. private TypeMaterialDataTable tableTypeMaterial;
  31. private TypePartnerDataTable tableTypePartner;
  32. private TypeProductDataTable tableTypeProduct;
  33. private TypeForFilterDataTable tableTypeForFilter;
  34. private global::System.Data.DataRelation relationFK_Partner_City;
  35. private global::System.Data.DataRelation relationFK_Partner_IndexPartner;
  36. private global::System.Data.DataRelation relationFK_Partner_Region;
  37. private global::System.Data.DataRelation relationFK_Partner_Street;
  38. private global::System.Data.DataRelation relationFK_Partner_TypePartner;
  39. private global::System.Data.DataRelation relationFK_ProductPartner_Partner;
  40. private global::System.Data.DataRelation relationFK_ProductPartner_Products;
  41. private global::System.Data.DataRelation relationFK_Products_TypeProduct;
  42. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  43. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  44. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  45. public dbAlphapolAGDataSet() {
  46. this.BeginInit();
  47. this.InitClass();
  48. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  49. base.Tables.CollectionChanged += schemaChangedHandler;
  50. base.Relations.CollectionChanged += schemaChangedHandler;
  51. this.EndInit();
  52. }
  53. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  54. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  55. protected dbAlphapolAGDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  56. base(info, context, false) {
  57. if ((this.IsBinarySerialized(info, context) == true)) {
  58. this.InitVars(false);
  59. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  60. this.Tables.CollectionChanged += schemaChangedHandler1;
  61. this.Relations.CollectionChanged += schemaChangedHandler1;
  62. return;
  63. }
  64. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  65. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  66. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  67. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  68. if ((ds.Tables["City"] != null)) {
  69. base.Tables.Add(new CityDataTable(ds.Tables["City"]));
  70. }
  71. if ((ds.Tables["IndexPartner"] != null)) {
  72. base.Tables.Add(new IndexPartnerDataTable(ds.Tables["IndexPartner"]));
  73. }
  74. if ((ds.Tables["Manager"] != null)) {
  75. base.Tables.Add(new ManagerDataTable(ds.Tables["Manager"]));
  76. }
  77. if ((ds.Tables["Partner"] != null)) {
  78. base.Tables.Add(new PartnerDataTable(ds.Tables["Partner"]));
  79. }
  80. if ((ds.Tables["ProductPartner"] != null)) {
  81. base.Tables.Add(new ProductPartnerDataTable(ds.Tables["ProductPartner"]));
  82. }
  83. if ((ds.Tables["Products"] != null)) {
  84. base.Tables.Add(new ProductsDataTable(ds.Tables["Products"]));
  85. }
  86. if ((ds.Tables["Region"] != null)) {
  87. base.Tables.Add(new RegionDataTable(ds.Tables["Region"]));
  88. }
  89. if ((ds.Tables["Street"] != null)) {
  90. base.Tables.Add(new StreetDataTable(ds.Tables["Street"]));
  91. }
  92. if ((ds.Tables["TypeMaterial"] != null)) {
  93. base.Tables.Add(new TypeMaterialDataTable(ds.Tables["TypeMaterial"]));
  94. }
  95. if ((ds.Tables["TypePartner"] != null)) {
  96. base.Tables.Add(new TypePartnerDataTable(ds.Tables["TypePartner"]));
  97. }
  98. if ((ds.Tables["TypeProduct"] != null)) {
  99. base.Tables.Add(new TypeProductDataTable(ds.Tables["TypeProduct"]));
  100. }
  101. if ((ds.Tables["TypeForFilter"] != null)) {
  102. base.Tables.Add(new TypeForFilterDataTable(ds.Tables["TypeForFilter"]));
  103. }
  104. this.DataSetName = ds.DataSetName;
  105. this.Prefix = ds.Prefix;
  106. this.Namespace = ds.Namespace;
  107. this.Locale = ds.Locale;
  108. this.CaseSensitive = ds.CaseSensitive;
  109. this.EnforceConstraints = ds.EnforceConstraints;
  110. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  111. this.InitVars();
  112. }
  113. else {
  114. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  115. }
  116. this.GetSerializationData(info, context);
  117. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  118. base.Tables.CollectionChanged += schemaChangedHandler;
  119. this.Relations.CollectionChanged += schemaChangedHandler;
  120. }
  121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  123. [global::System.ComponentModel.Browsable(false)]
  124. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  125. public CityDataTable City {
  126. get {
  127. return this.tableCity;
  128. }
  129. }
  130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  132. [global::System.ComponentModel.Browsable(false)]
  133. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  134. public IndexPartnerDataTable IndexPartner {
  135. get {
  136. return this.tableIndexPartner;
  137. }
  138. }
  139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  141. [global::System.ComponentModel.Browsable(false)]
  142. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  143. public ManagerDataTable Manager {
  144. get {
  145. return this.tableManager;
  146. }
  147. }
  148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  150. [global::System.ComponentModel.Browsable(false)]
  151. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  152. public PartnerDataTable Partner {
  153. get {
  154. return this.tablePartner;
  155. }
  156. }
  157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  159. [global::System.ComponentModel.Browsable(false)]
  160. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  161. public ProductPartnerDataTable ProductPartner {
  162. get {
  163. return this.tableProductPartner;
  164. }
  165. }
  166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  168. [global::System.ComponentModel.Browsable(false)]
  169. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  170. public ProductsDataTable Products {
  171. get {
  172. return this.tableProducts;
  173. }
  174. }
  175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  177. [global::System.ComponentModel.Browsable(false)]
  178. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  179. public RegionDataTable Region {
  180. get {
  181. return this.tableRegion;
  182. }
  183. }
  184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  186. [global::System.ComponentModel.Browsable(false)]
  187. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  188. public StreetDataTable Street {
  189. get {
  190. return this.tableStreet;
  191. }
  192. }
  193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  195. [global::System.ComponentModel.Browsable(false)]
  196. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  197. public TypeMaterialDataTable TypeMaterial {
  198. get {
  199. return this.tableTypeMaterial;
  200. }
  201. }
  202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  204. [global::System.ComponentModel.Browsable(false)]
  205. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  206. public TypePartnerDataTable TypePartner {
  207. get {
  208. return this.tableTypePartner;
  209. }
  210. }
  211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  213. [global::System.ComponentModel.Browsable(false)]
  214. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  215. public TypeProductDataTable TypeProduct {
  216. get {
  217. return this.tableTypeProduct;
  218. }
  219. }
  220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  222. [global::System.ComponentModel.Browsable(false)]
  223. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  224. public TypeForFilterDataTable TypeForFilter {
  225. get {
  226. return this.tableTypeForFilter;
  227. }
  228. }
  229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  231. [global::System.ComponentModel.BrowsableAttribute(true)]
  232. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  233. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  234. get {
  235. return this._schemaSerializationMode;
  236. }
  237. set {
  238. this._schemaSerializationMode = value;
  239. }
  240. }
  241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  243. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  244. public new global::System.Data.DataTableCollection Tables {
  245. get {
  246. return base.Tables;
  247. }
  248. }
  249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  251. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  252. public new global::System.Data.DataRelationCollection Relations {
  253. get {
  254. return base.Relations;
  255. }
  256. }
  257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  259. protected override void InitializeDerivedDataSet() {
  260. this.BeginInit();
  261. this.InitClass();
  262. this.EndInit();
  263. }
  264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  265. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  266. public override global::System.Data.DataSet Clone() {
  267. dbAlphapolAGDataSet cln = ((dbAlphapolAGDataSet)(base.Clone()));
  268. cln.InitVars();
  269. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  270. return cln;
  271. }
  272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  274. protected override bool ShouldSerializeTables() {
  275. return false;
  276. }
  277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  279. protected override bool ShouldSerializeRelations() {
  280. return false;
  281. }
  282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  284. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  285. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  286. this.Reset();
  287. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  288. ds.ReadXml(reader);
  289. if ((ds.Tables["City"] != null)) {
  290. base.Tables.Add(new CityDataTable(ds.Tables["City"]));
  291. }
  292. if ((ds.Tables["IndexPartner"] != null)) {
  293. base.Tables.Add(new IndexPartnerDataTable(ds.Tables["IndexPartner"]));
  294. }
  295. if ((ds.Tables["Manager"] != null)) {
  296. base.Tables.Add(new ManagerDataTable(ds.Tables["Manager"]));
  297. }
  298. if ((ds.Tables["Partner"] != null)) {
  299. base.Tables.Add(new PartnerDataTable(ds.Tables["Partner"]));
  300. }
  301. if ((ds.Tables["ProductPartner"] != null)) {
  302. base.Tables.Add(new ProductPartnerDataTable(ds.Tables["ProductPartner"]));
  303. }
  304. if ((ds.Tables["Products"] != null)) {
  305. base.Tables.Add(new ProductsDataTable(ds.Tables["Products"]));
  306. }
  307. if ((ds.Tables["Region"] != null)) {
  308. base.Tables.Add(new RegionDataTable(ds.Tables["Region"]));
  309. }
  310. if ((ds.Tables["Street"] != null)) {
  311. base.Tables.Add(new StreetDataTable(ds.Tables["Street"]));
  312. }
  313. if ((ds.Tables["TypeMaterial"] != null)) {
  314. base.Tables.Add(new TypeMaterialDataTable(ds.Tables["TypeMaterial"]));
  315. }
  316. if ((ds.Tables["TypePartner"] != null)) {
  317. base.Tables.Add(new TypePartnerDataTable(ds.Tables["TypePartner"]));
  318. }
  319. if ((ds.Tables["TypeProduct"] != null)) {
  320. base.Tables.Add(new TypeProductDataTable(ds.Tables["TypeProduct"]));
  321. }
  322. if ((ds.Tables["TypeForFilter"] != null)) {
  323. base.Tables.Add(new TypeForFilterDataTable(ds.Tables["TypeForFilter"]));
  324. }
  325. this.DataSetName = ds.DataSetName;
  326. this.Prefix = ds.Prefix;
  327. this.Namespace = ds.Namespace;
  328. this.Locale = ds.Locale;
  329. this.CaseSensitive = ds.CaseSensitive;
  330. this.EnforceConstraints = ds.EnforceConstraints;
  331. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  332. this.InitVars();
  333. }
  334. else {
  335. this.ReadXml(reader);
  336. this.InitVars();
  337. }
  338. }
  339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  341. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  342. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  343. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  344. stream.Position = 0;
  345. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  346. }
  347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  349. internal void InitVars() {
  350. this.InitVars(true);
  351. }
  352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  354. internal void InitVars(bool initTable) {
  355. this.tableCity = ((CityDataTable)(base.Tables["City"]));
  356. if ((initTable == true)) {
  357. if ((this.tableCity != null)) {
  358. this.tableCity.InitVars();
  359. }
  360. }
  361. this.tableIndexPartner = ((IndexPartnerDataTable)(base.Tables["IndexPartner"]));
  362. if ((initTable == true)) {
  363. if ((this.tableIndexPartner != null)) {
  364. this.tableIndexPartner.InitVars();
  365. }
  366. }
  367. this.tableManager = ((ManagerDataTable)(base.Tables["Manager"]));
  368. if ((initTable == true)) {
  369. if ((this.tableManager != null)) {
  370. this.tableManager.InitVars();
  371. }
  372. }
  373. this.tablePartner = ((PartnerDataTable)(base.Tables["Partner"]));
  374. if ((initTable == true)) {
  375. if ((this.tablePartner != null)) {
  376. this.tablePartner.InitVars();
  377. }
  378. }
  379. this.tableProductPartner = ((ProductPartnerDataTable)(base.Tables["ProductPartner"]));
  380. if ((initTable == true)) {
  381. if ((this.tableProductPartner != null)) {
  382. this.tableProductPartner.InitVars();
  383. }
  384. }
  385. this.tableProducts = ((ProductsDataTable)(base.Tables["Products"]));
  386. if ((initTable == true)) {
  387. if ((this.tableProducts != null)) {
  388. this.tableProducts.InitVars();
  389. }
  390. }
  391. this.tableRegion = ((RegionDataTable)(base.Tables["Region"]));
  392. if ((initTable == true)) {
  393. if ((this.tableRegion != null)) {
  394. this.tableRegion.InitVars();
  395. }
  396. }
  397. this.tableStreet = ((StreetDataTable)(base.Tables["Street"]));
  398. if ((initTable == true)) {
  399. if ((this.tableStreet != null)) {
  400. this.tableStreet.InitVars();
  401. }
  402. }
  403. this.tableTypeMaterial = ((TypeMaterialDataTable)(base.Tables["TypeMaterial"]));
  404. if ((initTable == true)) {
  405. if ((this.tableTypeMaterial != null)) {
  406. this.tableTypeMaterial.InitVars();
  407. }
  408. }
  409. this.tableTypePartner = ((TypePartnerDataTable)(base.Tables["TypePartner"]));
  410. if ((initTable == true)) {
  411. if ((this.tableTypePartner != null)) {
  412. this.tableTypePartner.InitVars();
  413. }
  414. }
  415. this.tableTypeProduct = ((TypeProductDataTable)(base.Tables["TypeProduct"]));
  416. if ((initTable == true)) {
  417. if ((this.tableTypeProduct != null)) {
  418. this.tableTypeProduct.InitVars();
  419. }
  420. }
  421. this.tableTypeForFilter = ((TypeForFilterDataTable)(base.Tables["TypeForFilter"]));
  422. if ((initTable == true)) {
  423. if ((this.tableTypeForFilter != null)) {
  424. this.tableTypeForFilter.InitVars();
  425. }
  426. }
  427. this.relationFK_Partner_City = this.Relations["FK_Partner_City"];
  428. this.relationFK_Partner_IndexPartner = this.Relations["FK_Partner_IndexPartner"];
  429. this.relationFK_Partner_Region = this.Relations["FK_Partner_Region"];
  430. this.relationFK_Partner_Street = this.Relations["FK_Partner_Street"];
  431. this.relationFK_Partner_TypePartner = this.Relations["FK_Partner_TypePartner"];
  432. this.relationFK_ProductPartner_Partner = this.Relations["FK_ProductPartner_Partner"];
  433. this.relationFK_ProductPartner_Products = this.Relations["FK_ProductPartner_Products"];
  434. this.relationFK_Products_TypeProduct = this.Relations["FK_Products_TypeProduct"];
  435. }
  436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  438. private void InitClass() {
  439. this.DataSetName = "dbAlphapolAGDataSet";
  440. this.Prefix = "";
  441. this.Namespace = "http://tempuri.org/dbAlphapolAGDataSet.xsd";
  442. this.EnforceConstraints = true;
  443. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  444. this.tableCity = new CityDataTable();
  445. base.Tables.Add(this.tableCity);
  446. this.tableIndexPartner = new IndexPartnerDataTable();
  447. base.Tables.Add(this.tableIndexPartner);
  448. this.tableManager = new ManagerDataTable();
  449. base.Tables.Add(this.tableManager);
  450. this.tablePartner = new PartnerDataTable();
  451. base.Tables.Add(this.tablePartner);
  452. this.tableProductPartner = new ProductPartnerDataTable();
  453. base.Tables.Add(this.tableProductPartner);
  454. this.tableProducts = new ProductsDataTable();
  455. base.Tables.Add(this.tableProducts);
  456. this.tableRegion = new RegionDataTable();
  457. base.Tables.Add(this.tableRegion);
  458. this.tableStreet = new StreetDataTable();
  459. base.Tables.Add(this.tableStreet);
  460. this.tableTypeMaterial = new TypeMaterialDataTable();
  461. base.Tables.Add(this.tableTypeMaterial);
  462. this.tableTypePartner = new TypePartnerDataTable();
  463. base.Tables.Add(this.tableTypePartner);
  464. this.tableTypeProduct = new TypeProductDataTable();
  465. base.Tables.Add(this.tableTypeProduct);
  466. this.tableTypeForFilter = new TypeForFilterDataTable();
  467. base.Tables.Add(this.tableTypeForFilter);
  468. this.relationFK_Partner_City = new global::System.Data.DataRelation("FK_Partner_City", new global::System.Data.DataColumn[] {
  469. this.tableCity.idCityColumn}, new global::System.Data.DataColumn[] {
  470. this.tablePartner.idCityColumn}, false);
  471. this.Relations.Add(this.relationFK_Partner_City);
  472. this.relationFK_Partner_IndexPartner = new global::System.Data.DataRelation("FK_Partner_IndexPartner", new global::System.Data.DataColumn[] {
  473. this.tableIndexPartner.idIndexColumn}, new global::System.Data.DataColumn[] {
  474. this.tablePartner.idIndexColumn}, false);
  475. this.Relations.Add(this.relationFK_Partner_IndexPartner);
  476. this.relationFK_Partner_Region = new global::System.Data.DataRelation("FK_Partner_Region", new global::System.Data.DataColumn[] {
  477. this.tableRegion.idRegionColumn}, new global::System.Data.DataColumn[] {
  478. this.tablePartner.idRegionColumn}, false);
  479. this.Relations.Add(this.relationFK_Partner_Region);
  480. this.relationFK_Partner_Street = new global::System.Data.DataRelation("FK_Partner_Street", new global::System.Data.DataColumn[] {
  481. this.tableStreet.idStreetColumn}, new global::System.Data.DataColumn[] {
  482. this.tablePartner.idStreetColumn}, false);
  483. this.Relations.Add(this.relationFK_Partner_Street);
  484. this.relationFK_Partner_TypePartner = new global::System.Data.DataRelation("FK_Partner_TypePartner", new global::System.Data.DataColumn[] {
  485. this.tableTypePartner.idTypePartnerColumn}, new global::System.Data.DataColumn[] {
  486. this.tablePartner.idTypePartnerColumn}, false);
  487. this.Relations.Add(this.relationFK_Partner_TypePartner);
  488. this.relationFK_ProductPartner_Partner = new global::System.Data.DataRelation("FK_ProductPartner_Partner", new global::System.Data.DataColumn[] {
  489. this.tablePartner.idPartnerColumn}, new global::System.Data.DataColumn[] {
  490. this.tableProductPartner.idPartnerColumn}, false);
  491. this.Relations.Add(this.relationFK_ProductPartner_Partner);
  492. this.relationFK_ProductPartner_Products = new global::System.Data.DataRelation("FK_ProductPartner_Products", new global::System.Data.DataColumn[] {
  493. this.tableProducts.idProductColumn}, new global::System.Data.DataColumn[] {
  494. this.tableProductPartner.idProductColumn}, false);
  495. this.Relations.Add(this.relationFK_ProductPartner_Products);
  496. this.relationFK_Products_TypeProduct = new global::System.Data.DataRelation("FK_Products_TypeProduct", new global::System.Data.DataColumn[] {
  497. this.tableTypeProduct.idTypeProductColumn}, new global::System.Data.DataColumn[] {
  498. this.tableProducts.idTypeProductColumn}, false);
  499. this.Relations.Add(this.relationFK_Products_TypeProduct);
  500. }
  501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  503. private bool ShouldSerializeCity() {
  504. return false;
  505. }
  506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  508. private bool ShouldSerializeIndexPartner() {
  509. return false;
  510. }
  511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  513. private bool ShouldSerializeManager() {
  514. return false;
  515. }
  516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  518. private bool ShouldSerializePartner() {
  519. return false;
  520. }
  521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  523. private bool ShouldSerializeProductPartner() {
  524. return false;
  525. }
  526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  528. private bool ShouldSerializeProducts() {
  529. return false;
  530. }
  531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  533. private bool ShouldSerializeRegion() {
  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 ShouldSerializeStreet() {
  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 ShouldSerializeTypeMaterial() {
  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 ShouldSerializeTypePartner() {
  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 ShouldSerializeTypeProduct() {
  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 ShouldSerializeTypeForFilter() {
  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 void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  564. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  565. this.InitVars();
  566. }
  567. }
  568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  570. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  571. dbAlphapolAGDataSet ds = new dbAlphapolAGDataSet();
  572. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  573. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  574. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  575. any.Namespace = ds.Namespace;
  576. sequence.Items.Add(any);
  577. type.Particle = sequence;
  578. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  579. if (xs.Contains(dsSchema.TargetNamespace)) {
  580. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  581. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  582. try {
  583. global::System.Xml.Schema.XmlSchema schema = null;
  584. dsSchema.Write(s1);
  585. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  586. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  587. s2.SetLength(0);
  588. schema.Write(s2);
  589. if ((s1.Length == s2.Length)) {
  590. s1.Position = 0;
  591. s2.Position = 0;
  592. for (; ((s1.Position != s1.Length)
  593. && (s1.ReadByte() == s2.ReadByte())); ) {
  594. ;
  595. }
  596. if ((s1.Position == s1.Length)) {
  597. return type;
  598. }
  599. }
  600. }
  601. }
  602. finally {
  603. if ((s1 != null)) {
  604. s1.Close();
  605. }
  606. if ((s2 != null)) {
  607. s2.Close();
  608. }
  609. }
  610. }
  611. xs.Add(dsSchema);
  612. return type;
  613. }
  614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  615. public delegate void CityRowChangeEventHandler(object sender, CityRowChangeEvent e);
  616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  617. public delegate void IndexPartnerRowChangeEventHandler(object sender, IndexPartnerRowChangeEvent e);
  618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  619. public delegate void ManagerRowChangeEventHandler(object sender, ManagerRowChangeEvent e);
  620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  621. public delegate void PartnerRowChangeEventHandler(object sender, PartnerRowChangeEvent e);
  622. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  623. public delegate void ProductPartnerRowChangeEventHandler(object sender, ProductPartnerRowChangeEvent e);
  624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  625. public delegate void ProductsRowChangeEventHandler(object sender, ProductsRowChangeEvent e);
  626. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  627. public delegate void RegionRowChangeEventHandler(object sender, RegionRowChangeEvent e);
  628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  629. public delegate void StreetRowChangeEventHandler(object sender, StreetRowChangeEvent e);
  630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  631. public delegate void TypeMaterialRowChangeEventHandler(object sender, TypeMaterialRowChangeEvent e);
  632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  633. public delegate void TypePartnerRowChangeEventHandler(object sender, TypePartnerRowChangeEvent e);
  634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  635. public delegate void TypeProductRowChangeEventHandler(object sender, TypeProductRowChangeEvent e);
  636. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  637. public delegate void TypeForFilterRowChangeEventHandler(object sender, TypeForFilterRowChangeEvent e);
  638. /// <summary>
  639. ///Represents the strongly named DataTable class.
  640. ///</summary>
  641. [global::System.Serializable()]
  642. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  643. public partial class CityDataTable : global::System.Data.TypedTableBase<CityRow> {
  644. private global::System.Data.DataColumn columnidCity;
  645. private global::System.Data.DataColumn columnCity;
  646. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  648. public CityDataTable() {
  649. this.TableName = "City";
  650. this.BeginInit();
  651. this.InitClass();
  652. this.EndInit();
  653. }
  654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  656. internal CityDataTable(global::System.Data.DataTable table) {
  657. this.TableName = table.TableName;
  658. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  659. this.CaseSensitive = table.CaseSensitive;
  660. }
  661. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  662. this.Locale = table.Locale;
  663. }
  664. if ((table.Namespace != table.DataSet.Namespace)) {
  665. this.Namespace = table.Namespace;
  666. }
  667. this.Prefix = table.Prefix;
  668. this.MinimumCapacity = table.MinimumCapacity;
  669. }
  670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  672. protected CityDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  673. base(info, context) {
  674. this.InitVars();
  675. }
  676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  678. public global::System.Data.DataColumn idCityColumn {
  679. get {
  680. return this.columnidCity;
  681. }
  682. }
  683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  685. public global::System.Data.DataColumn CityColumn {
  686. get {
  687. return this.columnCity;
  688. }
  689. }
  690. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  692. [global::System.ComponentModel.Browsable(false)]
  693. public int Count {
  694. get {
  695. return this.Rows.Count;
  696. }
  697. }
  698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  700. public CityRow this[int index] {
  701. get {
  702. return ((CityRow)(this.Rows[index]));
  703. }
  704. }
  705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  706. public event CityRowChangeEventHandler CityRowChanging;
  707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  708. public event CityRowChangeEventHandler CityRowChanged;
  709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  710. public event CityRowChangeEventHandler CityRowDeleting;
  711. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  712. public event CityRowChangeEventHandler CityRowDeleted;
  713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  715. public void AddCityRow(CityRow row) {
  716. this.Rows.Add(row);
  717. }
  718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  720. public CityRow AddCityRow(string City) {
  721. CityRow rowCityRow = ((CityRow)(this.NewRow()));
  722. object[] columnValuesArray = new object[] {
  723. null,
  724. City};
  725. rowCityRow.ItemArray = columnValuesArray;
  726. this.Rows.Add(rowCityRow);
  727. return rowCityRow;
  728. }
  729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  731. public CityRow FindByidCity(int idCity) {
  732. return ((CityRow)(this.Rows.Find(new object[] {
  733. idCity})));
  734. }
  735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  737. public override global::System.Data.DataTable Clone() {
  738. CityDataTable cln = ((CityDataTable)(base.Clone()));
  739. cln.InitVars();
  740. return cln;
  741. }
  742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  744. protected override global::System.Data.DataTable CreateInstance() {
  745. return new CityDataTable();
  746. }
  747. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  748. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  749. internal void InitVars() {
  750. this.columnidCity = base.Columns["idCity"];
  751. this.columnCity = base.Columns["City"];
  752. }
  753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  755. private void InitClass() {
  756. this.columnidCity = new global::System.Data.DataColumn("idCity", typeof(int), null, global::System.Data.MappingType.Element);
  757. base.Columns.Add(this.columnidCity);
  758. this.columnCity = new global::System.Data.DataColumn("City", typeof(string), null, global::System.Data.MappingType.Element);
  759. base.Columns.Add(this.columnCity);
  760. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  761. this.columnidCity}, true));
  762. this.columnidCity.AutoIncrement = true;
  763. this.columnidCity.AutoIncrementSeed = 1;
  764. this.columnidCity.AllowDBNull = false;
  765. this.columnidCity.ReadOnly = true;
  766. this.columnidCity.Unique = true;
  767. this.columnCity.MaxLength = 50;
  768. }
  769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  771. public CityRow NewCityRow() {
  772. return ((CityRow)(this.NewRow()));
  773. }
  774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  776. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  777. return new CityRow(builder);
  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.Type GetRowType() {
  782. return typeof(CityRow);
  783. }
  784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  786. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  787. base.OnRowChanged(e);
  788. if ((this.CityRowChanged != null)) {
  789. this.CityRowChanged(this, new CityRowChangeEvent(((CityRow)(e.Row)), e.Action));
  790. }
  791. }
  792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  794. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  795. base.OnRowChanging(e);
  796. if ((this.CityRowChanging != null)) {
  797. this.CityRowChanging(this, new CityRowChangeEvent(((CityRow)(e.Row)), e.Action));
  798. }
  799. }
  800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  802. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  803. base.OnRowDeleted(e);
  804. if ((this.CityRowDeleted != null)) {
  805. this.CityRowDeleted(this, new CityRowChangeEvent(((CityRow)(e.Row)), e.Action));
  806. }
  807. }
  808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  810. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  811. base.OnRowDeleting(e);
  812. if ((this.CityRowDeleting != null)) {
  813. this.CityRowDeleting(this, new CityRowChangeEvent(((CityRow)(e.Row)), e.Action));
  814. }
  815. }
  816. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  817. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  818. public void RemoveCityRow(CityRow row) {
  819. this.Rows.Remove(row);
  820. }
  821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  823. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  824. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  825. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  826. dbAlphapolAGDataSet ds = new dbAlphapolAGDataSet();
  827. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  828. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  829. any1.MinOccurs = new decimal(0);
  830. any1.MaxOccurs = decimal.MaxValue;
  831. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  832. sequence.Items.Add(any1);
  833. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  834. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  835. any2.MinOccurs = new decimal(1);
  836. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  837. sequence.Items.Add(any2);
  838. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  839. attribute1.Name = "namespace";
  840. attribute1.FixedValue = ds.Namespace;
  841. type.Attributes.Add(attribute1);
  842. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  843. attribute2.Name = "tableTypeName";
  844. attribute2.FixedValue = "CityDataTable";
  845. type.Attributes.Add(attribute2);
  846. type.Particle = sequence;
  847. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  848. if (xs.Contains(dsSchema.TargetNamespace)) {
  849. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  850. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  851. try {
  852. global::System.Xml.Schema.XmlSchema schema = null;
  853. dsSchema.Write(s1);
  854. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  855. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  856. s2.SetLength(0);
  857. schema.Write(s2);
  858. if ((s1.Length == s2.Length)) {
  859. s1.Position = 0;
  860. s2.Position = 0;
  861. for (; ((s1.Position != s1.Length)
  862. && (s1.ReadByte() == s2.ReadByte())); ) {
  863. ;
  864. }
  865. if ((s1.Position == s1.Length)) {
  866. return type;
  867. }
  868. }
  869. }
  870. }
  871. finally {
  872. if ((s1 != null)) {
  873. s1.Close();
  874. }
  875. if ((s2 != null)) {
  876. s2.Close();
  877. }
  878. }
  879. }
  880. xs.Add(dsSchema);
  881. return type;
  882. }
  883. }
  884. /// <summary>
  885. ///Represents the strongly named DataTable class.
  886. ///</summary>
  887. [global::System.Serializable()]
  888. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  889. public partial class IndexPartnerDataTable : global::System.Data.TypedTableBase<IndexPartnerRow> {
  890. private global::System.Data.DataColumn columnidIndex;
  891. private global::System.Data.DataColumn columnCodePartner;
  892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  894. public IndexPartnerDataTable() {
  895. this.TableName = "IndexPartner";
  896. this.BeginInit();
  897. this.InitClass();
  898. this.EndInit();
  899. }
  900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  902. internal IndexPartnerDataTable(global::System.Data.DataTable table) {
  903. this.TableName = table.TableName;
  904. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  905. this.CaseSensitive = table.CaseSensitive;
  906. }
  907. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  908. this.Locale = table.Locale;
  909. }
  910. if ((table.Namespace != table.DataSet.Namespace)) {
  911. this.Namespace = table.Namespace;
  912. }
  913. this.Prefix = table.Prefix;
  914. this.MinimumCapacity = table.MinimumCapacity;
  915. }
  916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  918. protected IndexPartnerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  919. base(info, context) {
  920. this.InitVars();
  921. }
  922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  923. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  924. public global::System.Data.DataColumn idIndexColumn {
  925. get {
  926. return this.columnidIndex;
  927. }
  928. }
  929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  931. public global::System.Data.DataColumn CodePartnerColumn {
  932. get {
  933. return this.columnCodePartner;
  934. }
  935. }
  936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  938. [global::System.ComponentModel.Browsable(false)]
  939. public int Count {
  940. get {
  941. return this.Rows.Count;
  942. }
  943. }
  944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  946. public IndexPartnerRow this[int index] {
  947. get {
  948. return ((IndexPartnerRow)(this.Rows[index]));
  949. }
  950. }
  951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  952. public event IndexPartnerRowChangeEventHandler IndexPartnerRowChanging;
  953. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  954. public event IndexPartnerRowChangeEventHandler IndexPartnerRowChanged;
  955. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  956. public event IndexPartnerRowChangeEventHandler IndexPartnerRowDeleting;
  957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  958. public event IndexPartnerRowChangeEventHandler IndexPartnerRowDeleted;
  959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  961. public void AddIndexPartnerRow(IndexPartnerRow row) {
  962. this.Rows.Add(row);
  963. }
  964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  966. public IndexPartnerRow AddIndexPartnerRow(string CodePartner) {
  967. IndexPartnerRow rowIndexPartnerRow = ((IndexPartnerRow)(this.NewRow()));
  968. object[] columnValuesArray = new object[] {
  969. null,
  970. CodePartner};
  971. rowIndexPartnerRow.ItemArray = columnValuesArray;
  972. this.Rows.Add(rowIndexPartnerRow);
  973. return rowIndexPartnerRow;
  974. }
  975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  976. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  977. public IndexPartnerRow FindByidIndex(int idIndex) {
  978. return ((IndexPartnerRow)(this.Rows.Find(new object[] {
  979. idIndex})));
  980. }
  981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  982. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  983. public override global::System.Data.DataTable Clone() {
  984. IndexPartnerDataTable cln = ((IndexPartnerDataTable)(base.Clone()));
  985. cln.InitVars();
  986. return cln;
  987. }
  988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  989. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  990. protected override global::System.Data.DataTable CreateInstance() {
  991. return new IndexPartnerDataTable();
  992. }
  993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  995. internal void InitVars() {
  996. this.columnidIndex = base.Columns["idIndex"];
  997. this.columnCodePartner = base.Columns["CodePartner"];
  998. }
  999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1001. private void InitClass() {
  1002. this.columnidIndex = new global::System.Data.DataColumn("idIndex", typeof(int), null, global::System.Data.MappingType.Element);
  1003. base.Columns.Add(this.columnidIndex);
  1004. this.columnCodePartner = new global::System.Data.DataColumn("CodePartner", typeof(string), null, global::System.Data.MappingType.Element);
  1005. base.Columns.Add(this.columnCodePartner);
  1006. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1007. this.columnidIndex}, true));
  1008. this.columnidIndex.AutoIncrement = true;
  1009. this.columnidIndex.AutoIncrementSeed = 1;
  1010. this.columnidIndex.AllowDBNull = false;
  1011. this.columnidIndex.ReadOnly = true;
  1012. this.columnidIndex.Unique = true;
  1013. this.columnCodePartner.MaxLength = 50;
  1014. }
  1015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1017. public IndexPartnerRow NewIndexPartnerRow() {
  1018. return ((IndexPartnerRow)(this.NewRow()));
  1019. }
  1020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1022. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1023. return new IndexPartnerRow(builder);
  1024. }
  1025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1027. protected override global::System.Type GetRowType() {
  1028. return typeof(IndexPartnerRow);
  1029. }
  1030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1032. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1033. base.OnRowChanged(e);
  1034. if ((this.IndexPartnerRowChanged != null)) {
  1035. this.IndexPartnerRowChanged(this, new IndexPartnerRowChangeEvent(((IndexPartnerRow)(e.Row)), e.Action));
  1036. }
  1037. }
  1038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1039. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1040. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1041. base.OnRowChanging(e);
  1042. if ((this.IndexPartnerRowChanging != null)) {
  1043. this.IndexPartnerRowChanging(this, new IndexPartnerRowChangeEvent(((IndexPartnerRow)(e.Row)), e.Action));
  1044. }
  1045. }
  1046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1048. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1049. base.OnRowDeleted(e);
  1050. if ((this.IndexPartnerRowDeleted != null)) {
  1051. this.IndexPartnerRowDeleted(this, new IndexPartnerRowChangeEvent(((IndexPartnerRow)(e.Row)), e.Action));
  1052. }
  1053. }
  1054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1056. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1057. base.OnRowDeleting(e);
  1058. if ((this.IndexPartnerRowDeleting != null)) {
  1059. this.IndexPartnerRowDeleting(this, new IndexPartnerRowChangeEvent(((IndexPartnerRow)(e.Row)), e.Action));
  1060. }
  1061. }
  1062. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1063. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1064. public void RemoveIndexPartnerRow(IndexPartnerRow row) {
  1065. this.Rows.Remove(row);
  1066. }
  1067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1069. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1070. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1071. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1072. dbAlphapolAGDataSet ds = new dbAlphapolAGDataSet();
  1073. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1074. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1075. any1.MinOccurs = new decimal(0);
  1076. any1.MaxOccurs = decimal.MaxValue;
  1077. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1078. sequence.Items.Add(any1);
  1079. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1080. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1081. any2.MinOccurs = new decimal(1);
  1082. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1083. sequence.Items.Add(any2);
  1084. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1085. attribute1.Name = "namespace";
  1086. attribute1.FixedValue = ds.Namespace;
  1087. type.Attributes.Add(attribute1);
  1088. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1089. attribute2.Name = "tableTypeName";
  1090. attribute2.FixedValue = "IndexPartnerDataTable";
  1091. type.Attributes.Add(attribute2);
  1092. type.Particle = sequence;
  1093. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1094. if (xs.Contains(dsSchema.TargetNamespace)) {
  1095. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1096. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1097. try {
  1098. global::System.Xml.Schema.XmlSchema schema = null;
  1099. dsSchema.Write(s1);
  1100. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1101. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1102. s2.SetLength(0);
  1103. schema.Write(s2);
  1104. if ((s1.Length == s2.Length)) {
  1105. s1.Position = 0;
  1106. s2.Position = 0;
  1107. for (; ((s1.Position != s1.Length)
  1108. && (s1.ReadByte() == s2.ReadByte())); ) {
  1109. ;
  1110. }
  1111. if ((s1.Position == s1.Length)) {
  1112. return type;
  1113. }
  1114. }
  1115. }
  1116. }
  1117. finally {
  1118. if ((s1 != null)) {
  1119. s1.Close();
  1120. }
  1121. if ((s2 != null)) {
  1122. s2.Close();
  1123. }
  1124. }
  1125. }
  1126. xs.Add(dsSchema);
  1127. return type;
  1128. }
  1129. }
  1130. /// <summary>
  1131. ///Represents the strongly named DataTable class.
  1132. ///</summary>
  1133. [global::System.Serializable()]
  1134. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1135. public partial class ManagerDataTable : global::System.Data.TypedTableBase<ManagerRow> {
  1136. private global::System.Data.DataColumn columnidManager;
  1137. private global::System.Data.DataColumn columnSurname;
  1138. private global::System.Data.DataColumn columnName;
  1139. private global::System.Data.DataColumn columnPatronymic;
  1140. private global::System.Data.DataColumn columnLogin;
  1141. private global::System.Data.DataColumn columnPassword;
  1142. private global::System.Data.DataColumn columnPhoto;
  1143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1145. public ManagerDataTable() {
  1146. this.TableName = "Manager";
  1147. this.BeginInit();
  1148. this.InitClass();
  1149. this.EndInit();
  1150. }
  1151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1153. internal ManagerDataTable(global::System.Data.DataTable table) {
  1154. this.TableName = table.TableName;
  1155. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1156. this.CaseSensitive = table.CaseSensitive;
  1157. }
  1158. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1159. this.Locale = table.Locale;
  1160. }
  1161. if ((table.Namespace != table.DataSet.Namespace)) {
  1162. this.Namespace = table.Namespace;
  1163. }
  1164. this.Prefix = table.Prefix;
  1165. this.MinimumCapacity = table.MinimumCapacity;
  1166. }
  1167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1169. protected ManagerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1170. base(info, context) {
  1171. this.InitVars();
  1172. }
  1173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1175. public global::System.Data.DataColumn idManagerColumn {
  1176. get {
  1177. return this.columnidManager;
  1178. }
  1179. }
  1180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1182. public global::System.Data.DataColumn SurnameColumn {
  1183. get {
  1184. return this.columnSurname;
  1185. }
  1186. }
  1187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1189. public global::System.Data.DataColumn NameColumn {
  1190. get {
  1191. return this.columnName;
  1192. }
  1193. }
  1194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1196. public global::System.Data.DataColumn PatronymicColumn {
  1197. get {
  1198. return this.columnPatronymic;
  1199. }
  1200. }
  1201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1203. public global::System.Data.DataColumn LoginColumn {
  1204. get {
  1205. return this.columnLogin;
  1206. }
  1207. }
  1208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1210. public global::System.Data.DataColumn PasswordColumn {
  1211. get {
  1212. return this.columnPassword;
  1213. }
  1214. }
  1215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1217. public global::System.Data.DataColumn PhotoColumn {
  1218. get {
  1219. return this.columnPhoto;
  1220. }
  1221. }
  1222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1224. [global::System.ComponentModel.Browsable(false)]
  1225. public int Count {
  1226. get {
  1227. return this.Rows.Count;
  1228. }
  1229. }
  1230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1232. public ManagerRow this[int index] {
  1233. get {
  1234. return ((ManagerRow)(this.Rows[index]));
  1235. }
  1236. }
  1237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1238. public event ManagerRowChangeEventHandler ManagerRowChanging;
  1239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1240. public event ManagerRowChangeEventHandler ManagerRowChanged;
  1241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1242. public event ManagerRowChangeEventHandler ManagerRowDeleting;
  1243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1244. public event ManagerRowChangeEventHandler ManagerRowDeleted;
  1245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1247. public void AddManagerRow(ManagerRow row) {
  1248. this.Rows.Add(row);
  1249. }
  1250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1252. public ManagerRow AddManagerRow(string Surname, string Name, string Patronymic, string Login, string Password, string Photo) {
  1253. ManagerRow rowManagerRow = ((ManagerRow)(this.NewRow()));
  1254. object[] columnValuesArray = new object[] {
  1255. null,
  1256. Surname,
  1257. Name,
  1258. Patronymic,
  1259. Login,
  1260. Password,
  1261. Photo};
  1262. rowManagerRow.ItemArray = columnValuesArray;
  1263. this.Rows.Add(rowManagerRow);
  1264. return rowManagerRow;
  1265. }
  1266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1268. public ManagerRow FindByidManager(int idManager) {
  1269. return ((ManagerRow)(this.Rows.Find(new object[] {
  1270. idManager})));
  1271. }
  1272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1274. public override global::System.Data.DataTable Clone() {
  1275. ManagerDataTable cln = ((ManagerDataTable)(base.Clone()));
  1276. cln.InitVars();
  1277. return cln;
  1278. }
  1279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1281. protected override global::System.Data.DataTable CreateInstance() {
  1282. return new ManagerDataTable();
  1283. }
  1284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1286. internal void InitVars() {
  1287. this.columnidManager = base.Columns["idManager"];
  1288. this.columnSurname = base.Columns["Surname"];
  1289. this.columnName = base.Columns["Name"];
  1290. this.columnPatronymic = base.Columns["Patronymic"];
  1291. this.columnLogin = base.Columns["Login"];
  1292. this.columnPassword = base.Columns["Password"];
  1293. this.columnPhoto = base.Columns["Photo"];
  1294. }
  1295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1297. private void InitClass() {
  1298. this.columnidManager = new global::System.Data.DataColumn("idManager", typeof(int), null, global::System.Data.MappingType.Element);
  1299. base.Columns.Add(this.columnidManager);
  1300. this.columnSurname = new global::System.Data.DataColumn("Surname", typeof(string), null, global::System.Data.MappingType.Element);
  1301. base.Columns.Add(this.columnSurname);
  1302. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  1303. base.Columns.Add(this.columnName);
  1304. this.columnPatronymic = new global::System.Data.DataColumn("Patronymic", typeof(string), null, global::System.Data.MappingType.Element);
  1305. base.Columns.Add(this.columnPatronymic);
  1306. this.columnLogin = new global::System.Data.DataColumn("Login", typeof(string), null, global::System.Data.MappingType.Element);
  1307. base.Columns.Add(this.columnLogin);
  1308. this.columnPassword = new global::System.Data.DataColumn("Password", typeof(string), null, global::System.Data.MappingType.Element);
  1309. base.Columns.Add(this.columnPassword);
  1310. this.columnPhoto = new global::System.Data.DataColumn("Photo", typeof(string), null, global::System.Data.MappingType.Element);
  1311. base.Columns.Add(this.columnPhoto);
  1312. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1313. this.columnidManager}, true));
  1314. this.columnidManager.AutoIncrement = true;
  1315. this.columnidManager.AutoIncrementSeed = 1;
  1316. this.columnidManager.AllowDBNull = false;
  1317. this.columnidManager.ReadOnly = true;
  1318. this.columnidManager.Unique = true;
  1319. this.columnSurname.MaxLength = 50;
  1320. this.columnName.MaxLength = 50;
  1321. this.columnPatronymic.MaxLength = 50;
  1322. this.columnLogin.MaxLength = 50;
  1323. this.columnPassword.MaxLength = 50;
  1324. this.columnPhoto.MaxLength = 50;
  1325. }
  1326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1327. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1328. public ManagerRow NewManagerRow() {
  1329. return ((ManagerRow)(this.NewRow()));
  1330. }
  1331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1332. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1333. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1334. return new ManagerRow(builder);
  1335. }
  1336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1338. protected override global::System.Type GetRowType() {
  1339. return typeof(ManagerRow);
  1340. }
  1341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1343. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1344. base.OnRowChanged(e);
  1345. if ((this.ManagerRowChanged != null)) {
  1346. this.ManagerRowChanged(this, new ManagerRowChangeEvent(((ManagerRow)(e.Row)), e.Action));
  1347. }
  1348. }
  1349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1351. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1352. base.OnRowChanging(e);
  1353. if ((this.ManagerRowChanging != null)) {
  1354. this.ManagerRowChanging(this, new ManagerRowChangeEvent(((ManagerRow)(e.Row)), e.Action));
  1355. }
  1356. }
  1357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1359. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1360. base.OnRowDeleted(e);
  1361. if ((this.ManagerRowDeleted != null)) {
  1362. this.ManagerRowDeleted(this, new ManagerRowChangeEvent(((ManagerRow)(e.Row)), e.Action));
  1363. }
  1364. }
  1365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1367. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1368. base.OnRowDeleting(e);
  1369. if ((this.ManagerRowDeleting != null)) {
  1370. this.ManagerRowDeleting(this, new ManagerRowChangeEvent(((ManagerRow)(e.Row)), e.Action));
  1371. }
  1372. }
  1373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1375. public void RemoveManagerRow(ManagerRow row) {
  1376. this.Rows.Remove(row);
  1377. }
  1378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1379. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1380. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1381. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1382. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1383. dbAlphapolAGDataSet ds = new dbAlphapolAGDataSet();
  1384. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1385. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1386. any1.MinOccurs = new decimal(0);
  1387. any1.MaxOccurs = decimal.MaxValue;
  1388. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1389. sequence.Items.Add(any1);
  1390. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1391. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1392. any2.MinOccurs = new decimal(1);
  1393. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1394. sequence.Items.Add(any2);
  1395. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1396. attribute1.Name = "namespace";
  1397. attribute1.FixedValue = ds.Namespace;
  1398. type.Attributes.Add(attribute1);
  1399. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1400. attribute2.Name = "tableTypeName";
  1401. attribute2.FixedValue = "ManagerDataTable";
  1402. type.Attributes.Add(attribute2);
  1403. type.Particle = sequence;
  1404. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1405. if (xs.Contains(dsSchema.TargetNamespace)) {
  1406. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1407. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1408. try {
  1409. global::System.Xml.Schema.XmlSchema schema = null;
  1410. dsSchema.Write(s1);
  1411. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1412. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1413. s2.SetLength(0);
  1414. schema.Write(s2);
  1415. if ((s1.Length == s2.Length)) {
  1416. s1.Position = 0;
  1417. s2.Position = 0;
  1418. for (; ((s1.Position != s1.Length)
  1419. && (s1.ReadByte() == s2.ReadByte())); ) {
  1420. ;
  1421. }
  1422. if ((s1.Position == s1.Length)) {
  1423. return type;
  1424. }
  1425. }
  1426. }
  1427. }
  1428. finally {
  1429. if ((s1 != null)) {
  1430. s1.Close();
  1431. }
  1432. if ((s2 != null)) {
  1433. s2.Close();
  1434. }
  1435. }
  1436. }
  1437. xs.Add(dsSchema);
  1438. return type;
  1439. }
  1440. }
  1441. /// <summary>
  1442. ///Represents the strongly named DataTable class.
  1443. ///</summary>
  1444. [global::System.Serializable()]
  1445. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1446. public partial class PartnerDataTable : global::System.Data.TypedTableBase<PartnerRow> {
  1447. private global::System.Data.DataColumn columnidPartner;
  1448. private global::System.Data.DataColumn columnSurname;
  1449. private global::System.Data.DataColumn columnName;
  1450. private global::System.Data.DataColumn columnPatronymic;
  1451. private global::System.Data.DataColumn columnEmail;
  1452. private global::System.Data.DataColumn columnPhone;
  1453. private global::System.Data.DataColumn columnidIndex;
  1454. private global::System.Data.DataColumn columnidCity;
  1455. private global::System.Data.DataColumn columnidStreet;
  1456. private global::System.Data.DataColumn columnHouse;
  1457. private global::System.Data.DataColumn columnINN;
  1458. private global::System.Data.DataColumn columnRating;
  1459. private global::System.Data.DataColumn columnidRegion;
  1460. private global::System.Data.DataColumn columnidTypePartner;
  1461. private global::System.Data.DataColumn columnNamePartner;
  1462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1464. public PartnerDataTable() {
  1465. this.TableName = "Partner";
  1466. this.BeginInit();
  1467. this.InitClass();
  1468. this.EndInit();
  1469. }
  1470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1471. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1472. internal PartnerDataTable(global::System.Data.DataTable table) {
  1473. this.TableName = table.TableName;
  1474. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1475. this.CaseSensitive = table.CaseSensitive;
  1476. }
  1477. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1478. this.Locale = table.Locale;
  1479. }
  1480. if ((table.Namespace != table.DataSet.Namespace)) {
  1481. this.Namespace = table.Namespace;
  1482. }
  1483. this.Prefix = table.Prefix;
  1484. this.MinimumCapacity = table.MinimumCapacity;
  1485. }
  1486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1488. protected PartnerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1489. base(info, context) {
  1490. this.InitVars();
  1491. }
  1492. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1493. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1494. public global::System.Data.DataColumn idPartnerColumn {
  1495. get {
  1496. return this.columnidPartner;
  1497. }
  1498. }
  1499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1500. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1501. public global::System.Data.DataColumn SurnameColumn {
  1502. get {
  1503. return this.columnSurname;
  1504. }
  1505. }
  1506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1508. public global::System.Data.DataColumn NameColumn {
  1509. get {
  1510. return this.columnName;
  1511. }
  1512. }
  1513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1515. public global::System.Data.DataColumn PatronymicColumn {
  1516. get {
  1517. return this.columnPatronymic;
  1518. }
  1519. }
  1520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1522. public global::System.Data.DataColumn EmailColumn {
  1523. get {
  1524. return this.columnEmail;
  1525. }
  1526. }
  1527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1529. public global::System.Data.DataColumn PhoneColumn {
  1530. get {
  1531. return this.columnPhone;
  1532. }
  1533. }
  1534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1536. public global::System.Data.DataColumn idIndexColumn {
  1537. get {
  1538. return this.columnidIndex;
  1539. }
  1540. }
  1541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1543. public global::System.Data.DataColumn idCityColumn {
  1544. get {
  1545. return this.columnidCity;
  1546. }
  1547. }
  1548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1549. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1550. public global::System.Data.DataColumn idStreetColumn {
  1551. get {
  1552. return this.columnidStreet;
  1553. }
  1554. }
  1555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1557. public global::System.Data.DataColumn HouseColumn {
  1558. get {
  1559. return this.columnHouse;
  1560. }
  1561. }
  1562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1564. public global::System.Data.DataColumn INNColumn {
  1565. get {
  1566. return this.columnINN;
  1567. }
  1568. }
  1569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1571. public global::System.Data.DataColumn RatingColumn {
  1572. get {
  1573. return this.columnRating;
  1574. }
  1575. }
  1576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1578. public global::System.Data.DataColumn idRegionColumn {
  1579. get {
  1580. return this.columnidRegion;
  1581. }
  1582. }
  1583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1585. public global::System.Data.DataColumn idTypePartnerColumn {
  1586. get {
  1587. return this.columnidTypePartner;
  1588. }
  1589. }
  1590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1592. public global::System.Data.DataColumn NamePartnerColumn {
  1593. get {
  1594. return this.columnNamePartner;
  1595. }
  1596. }
  1597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1599. [global::System.ComponentModel.Browsable(false)]
  1600. public int Count {
  1601. get {
  1602. return this.Rows.Count;
  1603. }
  1604. }
  1605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1607. public PartnerRow this[int index] {
  1608. get {
  1609. return ((PartnerRow)(this.Rows[index]));
  1610. }
  1611. }
  1612. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1613. public event PartnerRowChangeEventHandler PartnerRowChanging;
  1614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1615. public event PartnerRowChangeEventHandler PartnerRowChanged;
  1616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1617. public event PartnerRowChangeEventHandler PartnerRowDeleting;
  1618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1619. public event PartnerRowChangeEventHandler PartnerRowDeleted;
  1620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1622. public void AddPartnerRow(PartnerRow row) {
  1623. this.Rows.Add(row);
  1624. }
  1625. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1626. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1627. public PartnerRow AddPartnerRow(string Surname, string Name, string Patronymic, string Email, string Phone, IndexPartnerRow parentIndexPartnerRowByFK_Partner_IndexPartner, CityRow parentCityRowByFK_Partner_City, StreetRow parentStreetRowByFK_Partner_Street, int House, string INN, string Rating, RegionRow parentRegionRowByFK_Partner_Region, TypePartnerRow parentTypePartnerRowByFK_Partner_TypePartner, string NamePartner) {
  1628. PartnerRow rowPartnerRow = ((PartnerRow)(this.NewRow()));
  1629. object[] columnValuesArray = new object[] {
  1630. null,
  1631. Surname,
  1632. Name,
  1633. Patronymic,
  1634. Email,
  1635. Phone,
  1636. null,
  1637. null,
  1638. null,
  1639. House,
  1640. INN,
  1641. Rating,
  1642. null,
  1643. null,
  1644. NamePartner};
  1645. if ((parentIndexPartnerRowByFK_Partner_IndexPartner != null)) {
  1646. columnValuesArray[6] = parentIndexPartnerRowByFK_Partner_IndexPartner[0];
  1647. }
  1648. if ((parentCityRowByFK_Partner_City != null)) {
  1649. columnValuesArray[7] = parentCityRowByFK_Partner_City[0];
  1650. }
  1651. if ((parentStreetRowByFK_Partner_Street != null)) {
  1652. columnValuesArray[8] = parentStreetRowByFK_Partner_Street[0];
  1653. }
  1654. if ((parentRegionRowByFK_Partner_Region != null)) {
  1655. columnValuesArray[12] = parentRegionRowByFK_Partner_Region[0];
  1656. }
  1657. if ((parentTypePartnerRowByFK_Partner_TypePartner != null)) {
  1658. columnValuesArray[13] = parentTypePartnerRowByFK_Partner_TypePartner[0];
  1659. }
  1660. rowPartnerRow.ItemArray = columnValuesArray;
  1661. this.Rows.Add(rowPartnerRow);
  1662. return rowPartnerRow;
  1663. }
  1664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1666. public PartnerRow FindByidPartner(int idPartner) {
  1667. return ((PartnerRow)(this.Rows.Find(new object[] {
  1668. idPartner})));
  1669. }
  1670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1672. public override global::System.Data.DataTable Clone() {
  1673. PartnerDataTable cln = ((PartnerDataTable)(base.Clone()));
  1674. cln.InitVars();
  1675. return cln;
  1676. }
  1677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1678. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1679. protected override global::System.Data.DataTable CreateInstance() {
  1680. return new PartnerDataTable();
  1681. }
  1682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1684. internal void InitVars() {
  1685. this.columnidPartner = base.Columns["idPartner"];
  1686. this.columnSurname = base.Columns["Surname"];
  1687. this.columnName = base.Columns["Name"];
  1688. this.columnPatronymic = base.Columns["Patronymic"];
  1689. this.columnEmail = base.Columns["Email"];
  1690. this.columnPhone = base.Columns["Phone"];
  1691. this.columnidIndex = base.Columns["idIndex"];
  1692. this.columnidCity = base.Columns["idCity"];
  1693. this.columnidStreet = base.Columns["idStreet"];
  1694. this.columnHouse = base.Columns["House"];
  1695. this.columnINN = base.Columns["INN"];
  1696. this.columnRating = base.Columns["Rating"];
  1697. this.columnidRegion = base.Columns["idRegion"];
  1698. this.columnidTypePartner = base.Columns["idTypePartner"];
  1699. this.columnNamePartner = base.Columns["NamePartner"];
  1700. }
  1701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1703. private void InitClass() {
  1704. this.columnidPartner = new global::System.Data.DataColumn("idPartner", typeof(int), null, global::System.Data.MappingType.Element);
  1705. base.Columns.Add(this.columnidPartner);
  1706. this.columnSurname = new global::System.Data.DataColumn("Surname", typeof(string), null, global::System.Data.MappingType.Element);
  1707. base.Columns.Add(this.columnSurname);
  1708. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  1709. base.Columns.Add(this.columnName);
  1710. this.columnPatronymic = new global::System.Data.DataColumn("Patronymic", typeof(string), null, global::System.Data.MappingType.Element);
  1711. base.Columns.Add(this.columnPatronymic);
  1712. this.columnEmail = new global::System.Data.DataColumn("Email", typeof(string), null, global::System.Data.MappingType.Element);
  1713. base.Columns.Add(this.columnEmail);
  1714. this.columnPhone = new global::System.Data.DataColumn("Phone", typeof(string), null, global::System.Data.MappingType.Element);
  1715. base.Columns.Add(this.columnPhone);
  1716. this.columnidIndex = new global::System.Data.DataColumn("idIndex", typeof(int), null, global::System.Data.MappingType.Element);
  1717. base.Columns.Add(this.columnidIndex);
  1718. this.columnidCity = new global::System.Data.DataColumn("idCity", typeof(int), null, global::System.Data.MappingType.Element);
  1719. base.Columns.Add(this.columnidCity);
  1720. this.columnidStreet = new global::System.Data.DataColumn("idStreet", typeof(int), null, global::System.Data.MappingType.Element);
  1721. base.Columns.Add(this.columnidStreet);
  1722. this.columnHouse = new global::System.Data.DataColumn("House", typeof(int), null, global::System.Data.MappingType.Element);
  1723. base.Columns.Add(this.columnHouse);
  1724. this.columnINN = new global::System.Data.DataColumn("INN", typeof(string), null, global::System.Data.MappingType.Element);
  1725. base.Columns.Add(this.columnINN);
  1726. this.columnRating = new global::System.Data.DataColumn("Rating", typeof(string), null, global::System.Data.MappingType.Element);
  1727. base.Columns.Add(this.columnRating);
  1728. this.columnidRegion = new global::System.Data.DataColumn("idRegion", typeof(int), null, global::System.Data.MappingType.Element);
  1729. base.Columns.Add(this.columnidRegion);
  1730. this.columnidTypePartner = new global::System.Data.DataColumn("idTypePartner", typeof(int), null, global::System.Data.MappingType.Element);
  1731. base.Columns.Add(this.columnidTypePartner);
  1732. this.columnNamePartner = new global::System.Data.DataColumn("NamePartner", typeof(string), null, global::System.Data.MappingType.Element);
  1733. base.Columns.Add(this.columnNamePartner);
  1734. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1735. this.columnidPartner}, true));
  1736. this.columnidPartner.AutoIncrement = true;
  1737. this.columnidPartner.AutoIncrementSeed = 1;
  1738. this.columnidPartner.AllowDBNull = false;
  1739. this.columnidPartner.ReadOnly = true;
  1740. this.columnidPartner.Unique = true;
  1741. this.columnSurname.MaxLength = 50;
  1742. this.columnName.MaxLength = 50;
  1743. this.columnPatronymic.MaxLength = 50;
  1744. this.columnEmail.MaxLength = 50;
  1745. this.columnPhone.MaxLength = 50;
  1746. this.columnINN.MaxLength = 50;
  1747. this.columnRating.MaxLength = 50;
  1748. this.columnNamePartner.MaxLength = 50;
  1749. }
  1750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1752. public PartnerRow NewPartnerRow() {
  1753. return ((PartnerRow)(this.NewRow()));
  1754. }
  1755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1757. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1758. return new PartnerRow(builder);
  1759. }
  1760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1761. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1762. protected override global::System.Type GetRowType() {
  1763. return typeof(PartnerRow);
  1764. }
  1765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1767. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1768. base.OnRowChanged(e);
  1769. if ((this.PartnerRowChanged != null)) {
  1770. this.PartnerRowChanged(this, new PartnerRowChangeEvent(((PartnerRow)(e.Row)), e.Action));
  1771. }
  1772. }
  1773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1774. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1775. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1776. base.OnRowChanging(e);
  1777. if ((this.PartnerRowChanging != null)) {
  1778. this.PartnerRowChanging(this, new PartnerRowChangeEvent(((PartnerRow)(e.Row)), e.Action));
  1779. }
  1780. }
  1781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1783. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1784. base.OnRowDeleted(e);
  1785. if ((this.PartnerRowDeleted != null)) {
  1786. this.PartnerRowDeleted(this, new PartnerRowChangeEvent(((PartnerRow)(e.Row)), e.Action));
  1787. }
  1788. }
  1789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1791. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1792. base.OnRowDeleting(e);
  1793. if ((this.PartnerRowDeleting != null)) {
  1794. this.PartnerRowDeleting(this, new PartnerRowChangeEvent(((PartnerRow)(e.Row)), e.Action));
  1795. }
  1796. }
  1797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1799. public void RemovePartnerRow(PartnerRow row) {
  1800. this.Rows.Remove(row);
  1801. }
  1802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1804. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1805. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1806. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1807. dbAlphapolAGDataSet ds = new dbAlphapolAGDataSet();
  1808. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1809. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1810. any1.MinOccurs = new decimal(0);
  1811. any1.MaxOccurs = decimal.MaxValue;
  1812. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1813. sequence.Items.Add(any1);
  1814. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1815. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1816. any2.MinOccurs = new decimal(1);
  1817. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1818. sequence.Items.Add(any2);
  1819. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1820. attribute1.Name = "namespace";
  1821. attribute1.FixedValue = ds.Namespace;
  1822. type.Attributes.Add(attribute1);
  1823. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1824. attribute2.Name = "tableTypeName";
  1825. attribute2.FixedValue = "PartnerDataTable";
  1826. type.Attributes.Add(attribute2);
  1827. type.Particle = sequence;
  1828. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1829. if (xs.Contains(dsSchema.TargetNamespace)) {
  1830. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1831. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1832. try {
  1833. global::System.Xml.Schema.XmlSchema schema = null;
  1834. dsSchema.Write(s1);
  1835. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1836. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1837. s2.SetLength(0);
  1838. schema.Write(s2);
  1839. if ((s1.Length == s2.Length)) {
  1840. s1.Position = 0;
  1841. s2.Position = 0;
  1842. for (; ((s1.Position != s1.Length)
  1843. && (s1.ReadByte() == s2.ReadByte())); ) {
  1844. ;
  1845. }
  1846. if ((s1.Position == s1.Length)) {
  1847. return type;
  1848. }
  1849. }
  1850. }
  1851. }
  1852. finally {
  1853. if ((s1 != null)) {
  1854. s1.Close();
  1855. }
  1856. if ((s2 != null)) {
  1857. s2.Close();
  1858. }
  1859. }
  1860. }
  1861. xs.Add(dsSchema);
  1862. return type;
  1863. }
  1864. }
  1865. /// <summary>
  1866. ///Represents the strongly named DataTable class.
  1867. ///</summary>
  1868. [global::System.Serializable()]
  1869. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1870. public partial class ProductPartnerDataTable : global::System.Data.TypedTableBase<ProductPartnerRow> {
  1871. private global::System.Data.DataColumn columnidPartnerProduct;
  1872. private global::System.Data.DataColumn columnidProduct;
  1873. private global::System.Data.DataColumn columnidPartner;
  1874. private global::System.Data.DataColumn columnCountProduct;
  1875. private global::System.Data.DataColumn columnDateSale;
  1876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1878. public ProductPartnerDataTable() {
  1879. this.TableName = "ProductPartner";
  1880. this.BeginInit();
  1881. this.InitClass();
  1882. this.EndInit();
  1883. }
  1884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1886. internal ProductPartnerDataTable(global::System.Data.DataTable table) {
  1887. this.TableName = table.TableName;
  1888. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1889. this.CaseSensitive = table.CaseSensitive;
  1890. }
  1891. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1892. this.Locale = table.Locale;
  1893. }
  1894. if ((table.Namespace != table.DataSet.Namespace)) {
  1895. this.Namespace = table.Namespace;
  1896. }
  1897. this.Prefix = table.Prefix;
  1898. this.MinimumCapacity = table.MinimumCapacity;
  1899. }
  1900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1902. protected ProductPartnerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1903. base(info, context) {
  1904. this.InitVars();
  1905. }
  1906. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1907. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1908. public global::System.Data.DataColumn idPartnerProductColumn {
  1909. get {
  1910. return this.columnidPartnerProduct;
  1911. }
  1912. }
  1913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1915. public global::System.Data.DataColumn idProductColumn {
  1916. get {
  1917. return this.columnidProduct;
  1918. }
  1919. }
  1920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1921. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1922. public global::System.Data.DataColumn idPartnerColumn {
  1923. get {
  1924. return this.columnidPartner;
  1925. }
  1926. }
  1927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1929. public global::System.Data.DataColumn CountProductColumn {
  1930. get {
  1931. return this.columnCountProduct;
  1932. }
  1933. }
  1934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1935. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1936. public global::System.Data.DataColumn DateSaleColumn {
  1937. get {
  1938. return this.columnDateSale;
  1939. }
  1940. }
  1941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1942. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1943. [global::System.ComponentModel.Browsable(false)]
  1944. public int Count {
  1945. get {
  1946. return this.Rows.Count;
  1947. }
  1948. }
  1949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1950. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1951. public ProductPartnerRow this[int index] {
  1952. get {
  1953. return ((ProductPartnerRow)(this.Rows[index]));
  1954. }
  1955. }
  1956. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1957. public event ProductPartnerRowChangeEventHandler ProductPartnerRowChanging;
  1958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1959. public event ProductPartnerRowChangeEventHandler ProductPartnerRowChanged;
  1960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1961. public event ProductPartnerRowChangeEventHandler ProductPartnerRowDeleting;
  1962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1963. public event ProductPartnerRowChangeEventHandler ProductPartnerRowDeleted;
  1964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1966. public void AddProductPartnerRow(ProductPartnerRow row) {
  1967. this.Rows.Add(row);
  1968. }
  1969. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1970. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1971. public ProductPartnerRow AddProductPartnerRow(ProductsRow parentProductsRowByFK_ProductPartner_Products, PartnerRow parentPartnerRowByFK_ProductPartner_Partner, int CountProduct, System.DateTime DateSale) {
  1972. ProductPartnerRow rowProductPartnerRow = ((ProductPartnerRow)(this.NewRow()));
  1973. object[] columnValuesArray = new object[] {
  1974. null,
  1975. null,
  1976. null,
  1977. CountProduct,
  1978. DateSale};
  1979. if ((parentProductsRowByFK_ProductPartner_Products != null)) {
  1980. columnValuesArray[1] = parentProductsRowByFK_ProductPartner_Products[0];
  1981. }
  1982. if ((parentPartnerRowByFK_ProductPartner_Partner != null)) {
  1983. columnValuesArray[2] = parentPartnerRowByFK_ProductPartner_Partner[0];
  1984. }
  1985. rowProductPartnerRow.ItemArray = columnValuesArray;
  1986. this.Rows.Add(rowProductPartnerRow);
  1987. return rowProductPartnerRow;
  1988. }
  1989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1991. public ProductPartnerRow FindByidPartnerProduct(int idPartnerProduct) {
  1992. return ((ProductPartnerRow)(this.Rows.Find(new object[] {
  1993. idPartnerProduct})));
  1994. }
  1995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1997. public override global::System.Data.DataTable Clone() {
  1998. ProductPartnerDataTable cln = ((ProductPartnerDataTable)(base.Clone()));
  1999. cln.InitVars();
  2000. return cln;
  2001. }
  2002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2004. protected override global::System.Data.DataTable CreateInstance() {
  2005. return new ProductPartnerDataTable();
  2006. }
  2007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2008. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2009. internal void InitVars() {
  2010. this.columnidPartnerProduct = base.Columns["idPartnerProduct"];
  2011. this.columnidProduct = base.Columns["idProduct"];
  2012. this.columnidPartner = base.Columns["idPartner"];
  2013. this.columnCountProduct = base.Columns["CountProduct"];
  2014. this.columnDateSale = base.Columns["DateSale"];
  2015. }
  2016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2018. private void InitClass() {
  2019. this.columnidPartnerProduct = new global::System.Data.DataColumn("idPartnerProduct", typeof(int), null, global::System.Data.MappingType.Element);
  2020. base.Columns.Add(this.columnidPartnerProduct);
  2021. this.columnidProduct = new global::System.Data.DataColumn("idProduct", typeof(int), null, global::System.Data.MappingType.Element);
  2022. base.Columns.Add(this.columnidProduct);
  2023. this.columnidPartner = new global::System.Data.DataColumn("idPartner", typeof(int), null, global::System.Data.MappingType.Element);
  2024. base.Columns.Add(this.columnidPartner);
  2025. this.columnCountProduct = new global::System.Data.DataColumn("CountProduct", typeof(int), null, global::System.Data.MappingType.Element);
  2026. base.Columns.Add(this.columnCountProduct);
  2027. this.columnDateSale = new global::System.Data.DataColumn("DateSale", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  2028. base.Columns.Add(this.columnDateSale);
  2029. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2030. this.columnidPartnerProduct}, true));
  2031. this.columnidPartnerProduct.AutoIncrement = true;
  2032. this.columnidPartnerProduct.AutoIncrementSeed = 1;
  2033. this.columnidPartnerProduct.AllowDBNull = false;
  2034. this.columnidPartnerProduct.ReadOnly = true;
  2035. this.columnidPartnerProduct.Unique = true;
  2036. }
  2037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2039. public ProductPartnerRow NewProductPartnerRow() {
  2040. return ((ProductPartnerRow)(this.NewRow()));
  2041. }
  2042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2044. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2045. return new ProductPartnerRow(builder);
  2046. }
  2047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2048. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2049. protected override global::System.Type GetRowType() {
  2050. return typeof(ProductPartnerRow);
  2051. }
  2052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2054. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2055. base.OnRowChanged(e);
  2056. if ((this.ProductPartnerRowChanged != null)) {
  2057. this.ProductPartnerRowChanged(this, new ProductPartnerRowChangeEvent(((ProductPartnerRow)(e.Row)), e.Action));
  2058. }
  2059. }
  2060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2062. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2063. base.OnRowChanging(e);
  2064. if ((this.ProductPartnerRowChanging != null)) {
  2065. this.ProductPartnerRowChanging(this, new ProductPartnerRowChangeEvent(((ProductPartnerRow)(e.Row)), e.Action));
  2066. }
  2067. }
  2068. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2069. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2070. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2071. base.OnRowDeleted(e);
  2072. if ((this.ProductPartnerRowDeleted != null)) {
  2073. this.ProductPartnerRowDeleted(this, new ProductPartnerRowChangeEvent(((ProductPartnerRow)(e.Row)), e.Action));
  2074. }
  2075. }
  2076. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2077. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2078. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2079. base.OnRowDeleting(e);
  2080. if ((this.ProductPartnerRowDeleting != null)) {
  2081. this.ProductPartnerRowDeleting(this, new ProductPartnerRowChangeEvent(((ProductPartnerRow)(e.Row)), e.Action));
  2082. }
  2083. }
  2084. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2085. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2086. public void RemoveProductPartnerRow(ProductPartnerRow row) {
  2087. this.Rows.Remove(row);
  2088. }
  2089. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2090. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2091. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2092. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2093. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2094. dbAlphapolAGDataSet ds = new dbAlphapolAGDataSet();
  2095. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2096. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2097. any1.MinOccurs = new decimal(0);
  2098. any1.MaxOccurs = decimal.MaxValue;
  2099. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2100. sequence.Items.Add(any1);
  2101. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2102. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2103. any2.MinOccurs = new decimal(1);
  2104. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2105. sequence.Items.Add(any2);
  2106. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2107. attribute1.Name = "namespace";
  2108. attribute1.FixedValue = ds.Namespace;
  2109. type.Attributes.Add(attribute1);
  2110. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2111. attribute2.Name = "tableTypeName";
  2112. attribute2.FixedValue = "ProductPartnerDataTable";
  2113. type.Attributes.Add(attribute2);
  2114. type.Particle = sequence;
  2115. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2116. if (xs.Contains(dsSchema.TargetNamespace)) {
  2117. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2118. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2119. try {
  2120. global::System.Xml.Schema.XmlSchema schema = null;
  2121. dsSchema.Write(s1);
  2122. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2123. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2124. s2.SetLength(0);
  2125. schema.Write(s2);
  2126. if ((s1.Length == s2.Length)) {
  2127. s1.Position = 0;
  2128. s2.Position = 0;
  2129. for (; ((s1.Position != s1.Length)
  2130. && (s1.ReadByte() == s2.ReadByte())); ) {
  2131. ;
  2132. }
  2133. if ((s1.Position == s1.Length)) {
  2134. return type;
  2135. }
  2136. }
  2137. }
  2138. }
  2139. finally {
  2140. if ((s1 != null)) {
  2141. s1.Close();
  2142. }
  2143. if ((s2 != null)) {
  2144. s2.Close();
  2145. }
  2146. }
  2147. }
  2148. xs.Add(dsSchema);
  2149. return type;
  2150. }
  2151. }
  2152. /// <summary>
  2153. ///Represents the strongly named DataTable class.
  2154. ///</summary>
  2155. [global::System.Serializable()]
  2156. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2157. public partial class ProductsDataTable : global::System.Data.TypedTableBase<ProductsRow> {
  2158. private global::System.Data.DataColumn columnidProduct;
  2159. private global::System.Data.DataColumn columnidTypeProduct;
  2160. private global::System.Data.DataColumn columnNameProduct;
  2161. private global::System.Data.DataColumn columnArticle;
  2162. private global::System.Data.DataColumn columnMinCost;
  2163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2165. public ProductsDataTable() {
  2166. this.TableName = "Products";
  2167. this.BeginInit();
  2168. this.InitClass();
  2169. this.EndInit();
  2170. }
  2171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2173. internal ProductsDataTable(global::System.Data.DataTable table) {
  2174. this.TableName = table.TableName;
  2175. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2176. this.CaseSensitive = table.CaseSensitive;
  2177. }
  2178. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2179. this.Locale = table.Locale;
  2180. }
  2181. if ((table.Namespace != table.DataSet.Namespace)) {
  2182. this.Namespace = table.Namespace;
  2183. }
  2184. this.Prefix = table.Prefix;
  2185. this.MinimumCapacity = table.MinimumCapacity;
  2186. }
  2187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2189. protected ProductsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2190. base(info, context) {
  2191. this.InitVars();
  2192. }
  2193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2195. public global::System.Data.DataColumn idProductColumn {
  2196. get {
  2197. return this.columnidProduct;
  2198. }
  2199. }
  2200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2201. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2202. public global::System.Data.DataColumn idTypeProductColumn {
  2203. get {
  2204. return this.columnidTypeProduct;
  2205. }
  2206. }
  2207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2209. public global::System.Data.DataColumn NameProductColumn {
  2210. get {
  2211. return this.columnNameProduct;
  2212. }
  2213. }
  2214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2216. public global::System.Data.DataColumn ArticleColumn {
  2217. get {
  2218. return this.columnArticle;
  2219. }
  2220. }
  2221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2223. public global::System.Data.DataColumn MinCostColumn {
  2224. get {
  2225. return this.columnMinCost;
  2226. }
  2227. }
  2228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2230. [global::System.ComponentModel.Browsable(false)]
  2231. public int Count {
  2232. get {
  2233. return this.Rows.Count;
  2234. }
  2235. }
  2236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2238. public ProductsRow this[int index] {
  2239. get {
  2240. return ((ProductsRow)(this.Rows[index]));
  2241. }
  2242. }
  2243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2244. public event ProductsRowChangeEventHandler ProductsRowChanging;
  2245. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2246. public event ProductsRowChangeEventHandler ProductsRowChanged;
  2247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2248. public event ProductsRowChangeEventHandler ProductsRowDeleting;
  2249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2250. public event ProductsRowChangeEventHandler ProductsRowDeleted;
  2251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2253. public void AddProductsRow(ProductsRow row) {
  2254. this.Rows.Add(row);
  2255. }
  2256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2258. public ProductsRow AddProductsRow(TypeProductRow parentTypeProductRowByFK_Products_TypeProduct, string NameProduct, int Article, decimal MinCost) {
  2259. ProductsRow rowProductsRow = ((ProductsRow)(this.NewRow()));
  2260. object[] columnValuesArray = new object[] {
  2261. null,
  2262. null,
  2263. NameProduct,
  2264. Article,
  2265. MinCost};
  2266. if ((parentTypeProductRowByFK_Products_TypeProduct != null)) {
  2267. columnValuesArray[1] = parentTypeProductRowByFK_Products_TypeProduct[0];
  2268. }
  2269. rowProductsRow.ItemArray = columnValuesArray;
  2270. this.Rows.Add(rowProductsRow);
  2271. return rowProductsRow;
  2272. }
  2273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2275. public ProductsRow FindByidProduct(int idProduct) {
  2276. return ((ProductsRow)(this.Rows.Find(new object[] {
  2277. idProduct})));
  2278. }
  2279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2281. public override global::System.Data.DataTable Clone() {
  2282. ProductsDataTable cln = ((ProductsDataTable)(base.Clone()));
  2283. cln.InitVars();
  2284. return cln;
  2285. }
  2286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2287. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2288. protected override global::System.Data.DataTable CreateInstance() {
  2289. return new ProductsDataTable();
  2290. }
  2291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2293. internal void InitVars() {
  2294. this.columnidProduct = base.Columns["idProduct"];
  2295. this.columnidTypeProduct = base.Columns["idTypeProduct"];
  2296. this.columnNameProduct = base.Columns["NameProduct"];
  2297. this.columnArticle = base.Columns["Article"];
  2298. this.columnMinCost = base.Columns["MinCost"];
  2299. }
  2300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2302. private void InitClass() {
  2303. this.columnidProduct = new global::System.Data.DataColumn("idProduct", typeof(int), null, global::System.Data.MappingType.Element);
  2304. base.Columns.Add(this.columnidProduct);
  2305. this.columnidTypeProduct = new global::System.Data.DataColumn("idTypeProduct", typeof(int), null, global::System.Data.MappingType.Element);
  2306. base.Columns.Add(this.columnidTypeProduct);
  2307. this.columnNameProduct = new global::System.Data.DataColumn("NameProduct", typeof(string), null, global::System.Data.MappingType.Element);
  2308. base.Columns.Add(this.columnNameProduct);
  2309. this.columnArticle = new global::System.Data.DataColumn("Article", typeof(int), null, global::System.Data.MappingType.Element);
  2310. base.Columns.Add(this.columnArticle);
  2311. this.columnMinCost = new global::System.Data.DataColumn("MinCost", typeof(decimal), null, global::System.Data.MappingType.Element);
  2312. base.Columns.Add(this.columnMinCost);
  2313. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2314. this.columnidProduct}, true));
  2315. this.columnidProduct.AutoIncrement = true;
  2316. this.columnidProduct.AutoIncrementSeed = 1;
  2317. this.columnidProduct.AllowDBNull = false;
  2318. this.columnidProduct.ReadOnly = true;
  2319. this.columnidProduct.Unique = true;
  2320. this.columnNameProduct.MaxLength = 2147483647;
  2321. }
  2322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2324. public ProductsRow NewProductsRow() {
  2325. return ((ProductsRow)(this.NewRow()));
  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.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2330. return new ProductsRow(builder);
  2331. }
  2332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2334. protected override global::System.Type GetRowType() {
  2335. return typeof(ProductsRow);
  2336. }
  2337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2339. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2340. base.OnRowChanged(e);
  2341. if ((this.ProductsRowChanged != null)) {
  2342. this.ProductsRowChanged(this, new ProductsRowChangeEvent(((ProductsRow)(e.Row)), e.Action));
  2343. }
  2344. }
  2345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2347. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2348. base.OnRowChanging(e);
  2349. if ((this.ProductsRowChanging != null)) {
  2350. this.ProductsRowChanging(this, new ProductsRowChangeEvent(((ProductsRow)(e.Row)), e.Action));
  2351. }
  2352. }
  2353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2354. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2355. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2356. base.OnRowDeleted(e);
  2357. if ((this.ProductsRowDeleted != null)) {
  2358. this.ProductsRowDeleted(this, new ProductsRowChangeEvent(((ProductsRow)(e.Row)), e.Action));
  2359. }
  2360. }
  2361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2363. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2364. base.OnRowDeleting(e);
  2365. if ((this.ProductsRowDeleting != null)) {
  2366. this.ProductsRowDeleting(this, new ProductsRowChangeEvent(((ProductsRow)(e.Row)), e.Action));
  2367. }
  2368. }
  2369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2371. public void RemoveProductsRow(ProductsRow row) {
  2372. this.Rows.Remove(row);
  2373. }
  2374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2376. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2377. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2378. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2379. dbAlphapolAGDataSet ds = new dbAlphapolAGDataSet();
  2380. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2381. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2382. any1.MinOccurs = new decimal(0);
  2383. any1.MaxOccurs = decimal.MaxValue;
  2384. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2385. sequence.Items.Add(any1);
  2386. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2387. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2388. any2.MinOccurs = new decimal(1);
  2389. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2390. sequence.Items.Add(any2);
  2391. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2392. attribute1.Name = "namespace";
  2393. attribute1.FixedValue = ds.Namespace;
  2394. type.Attributes.Add(attribute1);
  2395. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2396. attribute2.Name = "tableTypeName";
  2397. attribute2.FixedValue = "ProductsDataTable";
  2398. type.Attributes.Add(attribute2);
  2399. type.Particle = sequence;
  2400. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2401. if (xs.Contains(dsSchema.TargetNamespace)) {
  2402. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2403. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2404. try {
  2405. global::System.Xml.Schema.XmlSchema schema = null;
  2406. dsSchema.Write(s1);
  2407. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2408. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2409. s2.SetLength(0);
  2410. schema.Write(s2);
  2411. if ((s1.Length == s2.Length)) {
  2412. s1.Position = 0;
  2413. s2.Position = 0;
  2414. for (; ((s1.Position != s1.Length)
  2415. && (s1.ReadByte() == s2.ReadByte())); ) {
  2416. ;
  2417. }
  2418. if ((s1.Position == s1.Length)) {
  2419. return type;
  2420. }
  2421. }
  2422. }
  2423. }
  2424. finally {
  2425. if ((s1 != null)) {
  2426. s1.Close();
  2427. }
  2428. if ((s2 != null)) {
  2429. s2.Close();
  2430. }
  2431. }
  2432. }
  2433. xs.Add(dsSchema);
  2434. return type;
  2435. }
  2436. }
  2437. /// <summary>
  2438. ///Represents the strongly named DataTable class.
  2439. ///</summary>
  2440. [global::System.Serializable()]
  2441. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2442. public partial class RegionDataTable : global::System.Data.TypedTableBase<RegionRow> {
  2443. private global::System.Data.DataColumn columnidRegion;
  2444. private global::System.Data.DataColumn columnRegion;
  2445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2446. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2447. public RegionDataTable() {
  2448. this.TableName = "Region";
  2449. this.BeginInit();
  2450. this.InitClass();
  2451. this.EndInit();
  2452. }
  2453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2454. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2455. internal RegionDataTable(global::System.Data.DataTable table) {
  2456. this.TableName = table.TableName;
  2457. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2458. this.CaseSensitive = table.CaseSensitive;
  2459. }
  2460. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2461. this.Locale = table.Locale;
  2462. }
  2463. if ((table.Namespace != table.DataSet.Namespace)) {
  2464. this.Namespace = table.Namespace;
  2465. }
  2466. this.Prefix = table.Prefix;
  2467. this.MinimumCapacity = table.MinimumCapacity;
  2468. }
  2469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2471. protected RegionDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2472. base(info, context) {
  2473. this.InitVars();
  2474. }
  2475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2477. public global::System.Data.DataColumn idRegionColumn {
  2478. get {
  2479. return this.columnidRegion;
  2480. }
  2481. }
  2482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2484. public global::System.Data.DataColumn RegionColumn {
  2485. get {
  2486. return this.columnRegion;
  2487. }
  2488. }
  2489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2491. [global::System.ComponentModel.Browsable(false)]
  2492. public int Count {
  2493. get {
  2494. return this.Rows.Count;
  2495. }
  2496. }
  2497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2499. public RegionRow this[int index] {
  2500. get {
  2501. return ((RegionRow)(this.Rows[index]));
  2502. }
  2503. }
  2504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2505. public event RegionRowChangeEventHandler RegionRowChanging;
  2506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2507. public event RegionRowChangeEventHandler RegionRowChanged;
  2508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2509. public event RegionRowChangeEventHandler RegionRowDeleting;
  2510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2511. public event RegionRowChangeEventHandler RegionRowDeleted;
  2512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2514. public void AddRegionRow(RegionRow row) {
  2515. this.Rows.Add(row);
  2516. }
  2517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2519. public RegionRow AddRegionRow(string Region) {
  2520. RegionRow rowRegionRow = ((RegionRow)(this.NewRow()));
  2521. object[] columnValuesArray = new object[] {
  2522. null,
  2523. Region};
  2524. rowRegionRow.ItemArray = columnValuesArray;
  2525. this.Rows.Add(rowRegionRow);
  2526. return rowRegionRow;
  2527. }
  2528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2530. public RegionRow FindByidRegion(int idRegion) {
  2531. return ((RegionRow)(this.Rows.Find(new object[] {
  2532. idRegion})));
  2533. }
  2534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2536. public override global::System.Data.DataTable Clone() {
  2537. RegionDataTable cln = ((RegionDataTable)(base.Clone()));
  2538. cln.InitVars();
  2539. return cln;
  2540. }
  2541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2543. protected override global::System.Data.DataTable CreateInstance() {
  2544. return new RegionDataTable();
  2545. }
  2546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2548. internal void InitVars() {
  2549. this.columnidRegion = base.Columns["idRegion"];
  2550. this.columnRegion = base.Columns["Region"];
  2551. }
  2552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2554. private void InitClass() {
  2555. this.columnidRegion = new global::System.Data.DataColumn("idRegion", typeof(int), null, global::System.Data.MappingType.Element);
  2556. base.Columns.Add(this.columnidRegion);
  2557. this.columnRegion = new global::System.Data.DataColumn("Region", typeof(string), null, global::System.Data.MappingType.Element);
  2558. base.Columns.Add(this.columnRegion);
  2559. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2560. this.columnidRegion}, true));
  2561. this.columnidRegion.AutoIncrement = true;
  2562. this.columnidRegion.AutoIncrementSeed = 1;
  2563. this.columnidRegion.AllowDBNull = false;
  2564. this.columnidRegion.ReadOnly = true;
  2565. this.columnidRegion.Unique = true;
  2566. this.columnRegion.MaxLength = 50;
  2567. }
  2568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2570. public RegionRow NewRegionRow() {
  2571. return ((RegionRow)(this.NewRow()));
  2572. }
  2573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2575. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2576. return new RegionRow(builder);
  2577. }
  2578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2580. protected override global::System.Type GetRowType() {
  2581. return typeof(RegionRow);
  2582. }
  2583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2585. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2586. base.OnRowChanged(e);
  2587. if ((this.RegionRowChanged != null)) {
  2588. this.RegionRowChanged(this, new RegionRowChangeEvent(((RegionRow)(e.Row)), e.Action));
  2589. }
  2590. }
  2591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2593. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2594. base.OnRowChanging(e);
  2595. if ((this.RegionRowChanging != null)) {
  2596. this.RegionRowChanging(this, new RegionRowChangeEvent(((RegionRow)(e.Row)), e.Action));
  2597. }
  2598. }
  2599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2600. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2601. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2602. base.OnRowDeleted(e);
  2603. if ((this.RegionRowDeleted != null)) {
  2604. this.RegionRowDeleted(this, new RegionRowChangeEvent(((RegionRow)(e.Row)), e.Action));
  2605. }
  2606. }
  2607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2609. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2610. base.OnRowDeleting(e);
  2611. if ((this.RegionRowDeleting != null)) {
  2612. this.RegionRowDeleting(this, new RegionRowChangeEvent(((RegionRow)(e.Row)), e.Action));
  2613. }
  2614. }
  2615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2617. public void RemoveRegionRow(RegionRow row) {
  2618. this.Rows.Remove(row);
  2619. }
  2620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2622. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2623. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2624. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2625. dbAlphapolAGDataSet ds = new dbAlphapolAGDataSet();
  2626. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2627. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2628. any1.MinOccurs = new decimal(0);
  2629. any1.MaxOccurs = decimal.MaxValue;
  2630. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2631. sequence.Items.Add(any1);
  2632. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2633. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2634. any2.MinOccurs = new decimal(1);
  2635. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2636. sequence.Items.Add(any2);
  2637. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2638. attribute1.Name = "namespace";
  2639. attribute1.FixedValue = ds.Namespace;
  2640. type.Attributes.Add(attribute1);
  2641. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2642. attribute2.Name = "tableTypeName";
  2643. attribute2.FixedValue = "RegionDataTable";
  2644. type.Attributes.Add(attribute2);
  2645. type.Particle = sequence;
  2646. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2647. if (xs.Contains(dsSchema.TargetNamespace)) {
  2648. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2649. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2650. try {
  2651. global::System.Xml.Schema.XmlSchema schema = null;
  2652. dsSchema.Write(s1);
  2653. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2654. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2655. s2.SetLength(0);
  2656. schema.Write(s2);
  2657. if ((s1.Length == s2.Length)) {
  2658. s1.Position = 0;
  2659. s2.Position = 0;
  2660. for (; ((s1.Position != s1.Length)
  2661. && (s1.ReadByte() == s2.ReadByte())); ) {
  2662. ;
  2663. }
  2664. if ((s1.Position == s1.Length)) {
  2665. return type;
  2666. }
  2667. }
  2668. }
  2669. }
  2670. finally {
  2671. if ((s1 != null)) {
  2672. s1.Close();
  2673. }
  2674. if ((s2 != null)) {
  2675. s2.Close();
  2676. }
  2677. }
  2678. }
  2679. xs.Add(dsSchema);
  2680. return type;
  2681. }
  2682. }
  2683. /// <summary>
  2684. ///Represents the strongly named DataTable class.
  2685. ///</summary>
  2686. [global::System.Serializable()]
  2687. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2688. public partial class StreetDataTable : global::System.Data.TypedTableBase<StreetRow> {
  2689. private global::System.Data.DataColumn columnidStreet;
  2690. private global::System.Data.DataColumn columnStreet;
  2691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2693. public StreetDataTable() {
  2694. this.TableName = "Street";
  2695. this.BeginInit();
  2696. this.InitClass();
  2697. this.EndInit();
  2698. }
  2699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2701. internal StreetDataTable(global::System.Data.DataTable table) {
  2702. this.TableName = table.TableName;
  2703. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2704. this.CaseSensitive = table.CaseSensitive;
  2705. }
  2706. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2707. this.Locale = table.Locale;
  2708. }
  2709. if ((table.Namespace != table.DataSet.Namespace)) {
  2710. this.Namespace = table.Namespace;
  2711. }
  2712. this.Prefix = table.Prefix;
  2713. this.MinimumCapacity = table.MinimumCapacity;
  2714. }
  2715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2717. protected StreetDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2718. base(info, context) {
  2719. this.InitVars();
  2720. }
  2721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2723. public global::System.Data.DataColumn idStreetColumn {
  2724. get {
  2725. return this.columnidStreet;
  2726. }
  2727. }
  2728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2730. public global::System.Data.DataColumn StreetColumn {
  2731. get {
  2732. return this.columnStreet;
  2733. }
  2734. }
  2735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2737. [global::System.ComponentModel.Browsable(false)]
  2738. public int Count {
  2739. get {
  2740. return this.Rows.Count;
  2741. }
  2742. }
  2743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2745. public StreetRow this[int index] {
  2746. get {
  2747. return ((StreetRow)(this.Rows[index]));
  2748. }
  2749. }
  2750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2751. public event StreetRowChangeEventHandler StreetRowChanging;
  2752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2753. public event StreetRowChangeEventHandler StreetRowChanged;
  2754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2755. public event StreetRowChangeEventHandler StreetRowDeleting;
  2756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2757. public event StreetRowChangeEventHandler StreetRowDeleted;
  2758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2760. public void AddStreetRow(StreetRow row) {
  2761. this.Rows.Add(row);
  2762. }
  2763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2765. public StreetRow AddStreetRow(string Street) {
  2766. StreetRow rowStreetRow = ((StreetRow)(this.NewRow()));
  2767. object[] columnValuesArray = new object[] {
  2768. null,
  2769. Street};
  2770. rowStreetRow.ItemArray = columnValuesArray;
  2771. this.Rows.Add(rowStreetRow);
  2772. return rowStreetRow;
  2773. }
  2774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2776. public StreetRow FindByidStreet(int idStreet) {
  2777. return ((StreetRow)(this.Rows.Find(new object[] {
  2778. idStreet})));
  2779. }
  2780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2782. public override global::System.Data.DataTable Clone() {
  2783. StreetDataTable cln = ((StreetDataTable)(base.Clone()));
  2784. cln.InitVars();
  2785. return cln;
  2786. }
  2787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2788. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2789. protected override global::System.Data.DataTable CreateInstance() {
  2790. return new StreetDataTable();
  2791. }
  2792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2794. internal void InitVars() {
  2795. this.columnidStreet = base.Columns["idStreet"];
  2796. this.columnStreet = base.Columns["Street"];
  2797. }
  2798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2800. private void InitClass() {
  2801. this.columnidStreet = new global::System.Data.DataColumn("idStreet", typeof(int), null, global::System.Data.MappingType.Element);
  2802. base.Columns.Add(this.columnidStreet);
  2803. this.columnStreet = new global::System.Data.DataColumn("Street", typeof(string), null, global::System.Data.MappingType.Element);
  2804. base.Columns.Add(this.columnStreet);
  2805. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2806. this.columnidStreet}, true));
  2807. this.columnidStreet.AutoIncrement = true;
  2808. this.columnidStreet.AutoIncrementSeed = 1;
  2809. this.columnidStreet.AllowDBNull = false;
  2810. this.columnidStreet.ReadOnly = true;
  2811. this.columnidStreet.Unique = true;
  2812. this.columnStreet.MaxLength = 50;
  2813. }
  2814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2816. public StreetRow NewStreetRow() {
  2817. return ((StreetRow)(this.NewRow()));
  2818. }
  2819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2821. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2822. return new StreetRow(builder);
  2823. }
  2824. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2825. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2826. protected override global::System.Type GetRowType() {
  2827. return typeof(StreetRow);
  2828. }
  2829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2831. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2832. base.OnRowChanged(e);
  2833. if ((this.StreetRowChanged != null)) {
  2834. this.StreetRowChanged(this, new StreetRowChangeEvent(((StreetRow)(e.Row)), e.Action));
  2835. }
  2836. }
  2837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2839. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2840. base.OnRowChanging(e);
  2841. if ((this.StreetRowChanging != null)) {
  2842. this.StreetRowChanging(this, new StreetRowChangeEvent(((StreetRow)(e.Row)), e.Action));
  2843. }
  2844. }
  2845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2847. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2848. base.OnRowDeleted(e);
  2849. if ((this.StreetRowDeleted != null)) {
  2850. this.StreetRowDeleted(this, new StreetRowChangeEvent(((StreetRow)(e.Row)), e.Action));
  2851. }
  2852. }
  2853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2855. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2856. base.OnRowDeleting(e);
  2857. if ((this.StreetRowDeleting != null)) {
  2858. this.StreetRowDeleting(this, new StreetRowChangeEvent(((StreetRow)(e.Row)), e.Action));
  2859. }
  2860. }
  2861. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2862. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2863. public void RemoveStreetRow(StreetRow row) {
  2864. this.Rows.Remove(row);
  2865. }
  2866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2868. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2869. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2870. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2871. dbAlphapolAGDataSet ds = new dbAlphapolAGDataSet();
  2872. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2873. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2874. any1.MinOccurs = new decimal(0);
  2875. any1.MaxOccurs = decimal.MaxValue;
  2876. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2877. sequence.Items.Add(any1);
  2878. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2879. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2880. any2.MinOccurs = new decimal(1);
  2881. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2882. sequence.Items.Add(any2);
  2883. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2884. attribute1.Name = "namespace";
  2885. attribute1.FixedValue = ds.Namespace;
  2886. type.Attributes.Add(attribute1);
  2887. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2888. attribute2.Name = "tableTypeName";
  2889. attribute2.FixedValue = "StreetDataTable";
  2890. type.Attributes.Add(attribute2);
  2891. type.Particle = sequence;
  2892. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2893. if (xs.Contains(dsSchema.TargetNamespace)) {
  2894. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2895. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2896. try {
  2897. global::System.Xml.Schema.XmlSchema schema = null;
  2898. dsSchema.Write(s1);
  2899. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2900. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2901. s2.SetLength(0);
  2902. schema.Write(s2);
  2903. if ((s1.Length == s2.Length)) {
  2904. s1.Position = 0;
  2905. s2.Position = 0;
  2906. for (; ((s1.Position != s1.Length)
  2907. && (s1.ReadByte() == s2.ReadByte())); ) {
  2908. ;
  2909. }
  2910. if ((s1.Position == s1.Length)) {
  2911. return type;
  2912. }
  2913. }
  2914. }
  2915. }
  2916. finally {
  2917. if ((s1 != null)) {
  2918. s1.Close();
  2919. }
  2920. if ((s2 != null)) {
  2921. s2.Close();
  2922. }
  2923. }
  2924. }
  2925. xs.Add(dsSchema);
  2926. return type;
  2927. }
  2928. }
  2929. /// <summary>
  2930. ///Represents the strongly named DataTable class.
  2931. ///</summary>
  2932. [global::System.Serializable()]
  2933. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2934. public partial class TypeMaterialDataTable : global::System.Data.TypedTableBase<TypeMaterialRow> {
  2935. private global::System.Data.DataColumn columnidTypeMaterial;
  2936. private global::System.Data.DataColumn columnTypeMaterial;
  2937. private global::System.Data.DataColumn columnPercentDefect;
  2938. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2939. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2940. public TypeMaterialDataTable() {
  2941. this.TableName = "TypeMaterial";
  2942. this.BeginInit();
  2943. this.InitClass();
  2944. this.EndInit();
  2945. }
  2946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2947. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2948. internal TypeMaterialDataTable(global::System.Data.DataTable table) {
  2949. this.TableName = table.TableName;
  2950. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2951. this.CaseSensitive = table.CaseSensitive;
  2952. }
  2953. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2954. this.Locale = table.Locale;
  2955. }
  2956. if ((table.Namespace != table.DataSet.Namespace)) {
  2957. this.Namespace = table.Namespace;
  2958. }
  2959. this.Prefix = table.Prefix;
  2960. this.MinimumCapacity = table.MinimumCapacity;
  2961. }
  2962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2964. protected TypeMaterialDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2965. base(info, context) {
  2966. this.InitVars();
  2967. }
  2968. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2969. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2970. public global::System.Data.DataColumn idTypeMaterialColumn {
  2971. get {
  2972. return this.columnidTypeMaterial;
  2973. }
  2974. }
  2975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2976. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2977. public global::System.Data.DataColumn TypeMaterialColumn {
  2978. get {
  2979. return this.columnTypeMaterial;
  2980. }
  2981. }
  2982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2984. public global::System.Data.DataColumn PercentDefectColumn {
  2985. get {
  2986. return this.columnPercentDefect;
  2987. }
  2988. }
  2989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2991. [global::System.ComponentModel.Browsable(false)]
  2992. public int Count {
  2993. get {
  2994. return this.Rows.Count;
  2995. }
  2996. }
  2997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2998. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2999. public TypeMaterialRow this[int index] {
  3000. get {
  3001. return ((TypeMaterialRow)(this.Rows[index]));
  3002. }
  3003. }
  3004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3005. public event TypeMaterialRowChangeEventHandler TypeMaterialRowChanging;
  3006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3007. public event TypeMaterialRowChangeEventHandler TypeMaterialRowChanged;
  3008. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3009. public event TypeMaterialRowChangeEventHandler TypeMaterialRowDeleting;
  3010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3011. public event TypeMaterialRowChangeEventHandler TypeMaterialRowDeleted;
  3012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3014. public void AddTypeMaterialRow(TypeMaterialRow row) {
  3015. this.Rows.Add(row);
  3016. }
  3017. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3019. public TypeMaterialRow AddTypeMaterialRow(string TypeMaterial, decimal PercentDefect) {
  3020. TypeMaterialRow rowTypeMaterialRow = ((TypeMaterialRow)(this.NewRow()));
  3021. object[] columnValuesArray = new object[] {
  3022. null,
  3023. TypeMaterial,
  3024. PercentDefect};
  3025. rowTypeMaterialRow.ItemArray = columnValuesArray;
  3026. this.Rows.Add(rowTypeMaterialRow);
  3027. return rowTypeMaterialRow;
  3028. }
  3029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3031. public TypeMaterialRow FindByidTypeMaterial(int idTypeMaterial) {
  3032. return ((TypeMaterialRow)(this.Rows.Find(new object[] {
  3033. idTypeMaterial})));
  3034. }
  3035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3037. public override global::System.Data.DataTable Clone() {
  3038. TypeMaterialDataTable cln = ((TypeMaterialDataTable)(base.Clone()));
  3039. cln.InitVars();
  3040. return cln;
  3041. }
  3042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3044. protected override global::System.Data.DataTable CreateInstance() {
  3045. return new TypeMaterialDataTable();
  3046. }
  3047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3048. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3049. internal void InitVars() {
  3050. this.columnidTypeMaterial = base.Columns["idTypeMaterial"];
  3051. this.columnTypeMaterial = base.Columns["TypeMaterial"];
  3052. this.columnPercentDefect = base.Columns["PercentDefect"];
  3053. }
  3054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3056. private void InitClass() {
  3057. this.columnidTypeMaterial = new global::System.Data.DataColumn("idTypeMaterial", typeof(int), null, global::System.Data.MappingType.Element);
  3058. base.Columns.Add(this.columnidTypeMaterial);
  3059. this.columnTypeMaterial = new global::System.Data.DataColumn("TypeMaterial", typeof(string), null, global::System.Data.MappingType.Element);
  3060. base.Columns.Add(this.columnTypeMaterial);
  3061. this.columnPercentDefect = new global::System.Data.DataColumn("PercentDefect", typeof(decimal), null, global::System.Data.MappingType.Element);
  3062. base.Columns.Add(this.columnPercentDefect);
  3063. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3064. this.columnidTypeMaterial}, true));
  3065. this.columnidTypeMaterial.AutoIncrement = true;
  3066. this.columnidTypeMaterial.AutoIncrementSeed = 1;
  3067. this.columnidTypeMaterial.AllowDBNull = false;
  3068. this.columnidTypeMaterial.ReadOnly = true;
  3069. this.columnidTypeMaterial.Unique = true;
  3070. this.columnTypeMaterial.MaxLength = 50;
  3071. }
  3072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3074. public TypeMaterialRow NewTypeMaterialRow() {
  3075. return ((TypeMaterialRow)(this.NewRow()));
  3076. }
  3077. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3078. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3079. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3080. return new TypeMaterialRow(builder);
  3081. }
  3082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3084. protected override global::System.Type GetRowType() {
  3085. return typeof(TypeMaterialRow);
  3086. }
  3087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3089. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3090. base.OnRowChanged(e);
  3091. if ((this.TypeMaterialRowChanged != null)) {
  3092. this.TypeMaterialRowChanged(this, new TypeMaterialRowChangeEvent(((TypeMaterialRow)(e.Row)), e.Action));
  3093. }
  3094. }
  3095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3097. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3098. base.OnRowChanging(e);
  3099. if ((this.TypeMaterialRowChanging != null)) {
  3100. this.TypeMaterialRowChanging(this, new TypeMaterialRowChangeEvent(((TypeMaterialRow)(e.Row)), e.Action));
  3101. }
  3102. }
  3103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3105. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3106. base.OnRowDeleted(e);
  3107. if ((this.TypeMaterialRowDeleted != null)) {
  3108. this.TypeMaterialRowDeleted(this, new TypeMaterialRowChangeEvent(((TypeMaterialRow)(e.Row)), e.Action));
  3109. }
  3110. }
  3111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3113. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3114. base.OnRowDeleting(e);
  3115. if ((this.TypeMaterialRowDeleting != null)) {
  3116. this.TypeMaterialRowDeleting(this, new TypeMaterialRowChangeEvent(((TypeMaterialRow)(e.Row)), e.Action));
  3117. }
  3118. }
  3119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3121. public void RemoveTypeMaterialRow(TypeMaterialRow row) {
  3122. this.Rows.Remove(row);
  3123. }
  3124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3126. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3127. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3128. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3129. dbAlphapolAGDataSet ds = new dbAlphapolAGDataSet();
  3130. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3131. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3132. any1.MinOccurs = new decimal(0);
  3133. any1.MaxOccurs = decimal.MaxValue;
  3134. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3135. sequence.Items.Add(any1);
  3136. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3137. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3138. any2.MinOccurs = new decimal(1);
  3139. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3140. sequence.Items.Add(any2);
  3141. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3142. attribute1.Name = "namespace";
  3143. attribute1.FixedValue = ds.Namespace;
  3144. type.Attributes.Add(attribute1);
  3145. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3146. attribute2.Name = "tableTypeName";
  3147. attribute2.FixedValue = "TypeMaterialDataTable";
  3148. type.Attributes.Add(attribute2);
  3149. type.Particle = sequence;
  3150. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3151. if (xs.Contains(dsSchema.TargetNamespace)) {
  3152. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3153. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3154. try {
  3155. global::System.Xml.Schema.XmlSchema schema = null;
  3156. dsSchema.Write(s1);
  3157. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3158. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3159. s2.SetLength(0);
  3160. schema.Write(s2);
  3161. if ((s1.Length == s2.Length)) {
  3162. s1.Position = 0;
  3163. s2.Position = 0;
  3164. for (; ((s1.Position != s1.Length)
  3165. && (s1.ReadByte() == s2.ReadByte())); ) {
  3166. ;
  3167. }
  3168. if ((s1.Position == s1.Length)) {
  3169. return type;
  3170. }
  3171. }
  3172. }
  3173. }
  3174. finally {
  3175. if ((s1 != null)) {
  3176. s1.Close();
  3177. }
  3178. if ((s2 != null)) {
  3179. s2.Close();
  3180. }
  3181. }
  3182. }
  3183. xs.Add(dsSchema);
  3184. return type;
  3185. }
  3186. }
  3187. /// <summary>
  3188. ///Represents the strongly named DataTable class.
  3189. ///</summary>
  3190. [global::System.Serializable()]
  3191. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3192. public partial class TypePartnerDataTable : global::System.Data.TypedTableBase<TypePartnerRow> {
  3193. private global::System.Data.DataColumn columnidTypePartner;
  3194. private global::System.Data.DataColumn columnType;
  3195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3197. public TypePartnerDataTable() {
  3198. this.TableName = "TypePartner";
  3199. this.BeginInit();
  3200. this.InitClass();
  3201. this.EndInit();
  3202. }
  3203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3205. internal TypePartnerDataTable(global::System.Data.DataTable table) {
  3206. this.TableName = table.TableName;
  3207. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3208. this.CaseSensitive = table.CaseSensitive;
  3209. }
  3210. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3211. this.Locale = table.Locale;
  3212. }
  3213. if ((table.Namespace != table.DataSet.Namespace)) {
  3214. this.Namespace = table.Namespace;
  3215. }
  3216. this.Prefix = table.Prefix;
  3217. this.MinimumCapacity = table.MinimumCapacity;
  3218. }
  3219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3221. protected TypePartnerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3222. base(info, context) {
  3223. this.InitVars();
  3224. }
  3225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3227. public global::System.Data.DataColumn idTypePartnerColumn {
  3228. get {
  3229. return this.columnidTypePartner;
  3230. }
  3231. }
  3232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3234. public global::System.Data.DataColumn TypeColumn {
  3235. get {
  3236. return this.columnType;
  3237. }
  3238. }
  3239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3241. [global::System.ComponentModel.Browsable(false)]
  3242. public int Count {
  3243. get {
  3244. return this.Rows.Count;
  3245. }
  3246. }
  3247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3249. public TypePartnerRow this[int index] {
  3250. get {
  3251. return ((TypePartnerRow)(this.Rows[index]));
  3252. }
  3253. }
  3254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3255. public event TypePartnerRowChangeEventHandler TypePartnerRowChanging;
  3256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3257. public event TypePartnerRowChangeEventHandler TypePartnerRowChanged;
  3258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3259. public event TypePartnerRowChangeEventHandler TypePartnerRowDeleting;
  3260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3261. public event TypePartnerRowChangeEventHandler TypePartnerRowDeleted;
  3262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3264. public void AddTypePartnerRow(TypePartnerRow row) {
  3265. this.Rows.Add(row);
  3266. }
  3267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3269. public TypePartnerRow AddTypePartnerRow(string Type) {
  3270. TypePartnerRow rowTypePartnerRow = ((TypePartnerRow)(this.NewRow()));
  3271. object[] columnValuesArray = new object[] {
  3272. null,
  3273. Type};
  3274. rowTypePartnerRow.ItemArray = columnValuesArray;
  3275. this.Rows.Add(rowTypePartnerRow);
  3276. return rowTypePartnerRow;
  3277. }
  3278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3280. public TypePartnerRow FindByidTypePartner(int idTypePartner) {
  3281. return ((TypePartnerRow)(this.Rows.Find(new object[] {
  3282. idTypePartner})));
  3283. }
  3284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3286. public override global::System.Data.DataTable Clone() {
  3287. TypePartnerDataTable cln = ((TypePartnerDataTable)(base.Clone()));
  3288. cln.InitVars();
  3289. return cln;
  3290. }
  3291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3293. protected override global::System.Data.DataTable CreateInstance() {
  3294. return new TypePartnerDataTable();
  3295. }
  3296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3297. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3298. internal void InitVars() {
  3299. this.columnidTypePartner = base.Columns["idTypePartner"];
  3300. this.columnType = base.Columns["Type"];
  3301. }
  3302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3304. private void InitClass() {
  3305. this.columnidTypePartner = new global::System.Data.DataColumn("idTypePartner", typeof(int), null, global::System.Data.MappingType.Element);
  3306. base.Columns.Add(this.columnidTypePartner);
  3307. this.columnType = new global::System.Data.DataColumn("Type", typeof(string), null, global::System.Data.MappingType.Element);
  3308. base.Columns.Add(this.columnType);
  3309. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3310. this.columnidTypePartner}, true));
  3311. this.columnidTypePartner.AutoIncrement = true;
  3312. this.columnidTypePartner.AutoIncrementSeed = 1;
  3313. this.columnidTypePartner.AllowDBNull = false;
  3314. this.columnidTypePartner.ReadOnly = true;
  3315. this.columnidTypePartner.Unique = true;
  3316. this.columnType.MaxLength = 50;
  3317. }
  3318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3320. public TypePartnerRow NewTypePartnerRow() {
  3321. return ((TypePartnerRow)(this.NewRow()));
  3322. }
  3323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3325. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3326. return new TypePartnerRow(builder);
  3327. }
  3328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3330. protected override global::System.Type GetRowType() {
  3331. return typeof(TypePartnerRow);
  3332. }
  3333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3335. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3336. base.OnRowChanged(e);
  3337. if ((this.TypePartnerRowChanged != null)) {
  3338. this.TypePartnerRowChanged(this, new TypePartnerRowChangeEvent(((TypePartnerRow)(e.Row)), e.Action));
  3339. }
  3340. }
  3341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3343. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3344. base.OnRowChanging(e);
  3345. if ((this.TypePartnerRowChanging != null)) {
  3346. this.TypePartnerRowChanging(this, new TypePartnerRowChangeEvent(((TypePartnerRow)(e.Row)), e.Action));
  3347. }
  3348. }
  3349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3351. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3352. base.OnRowDeleted(e);
  3353. if ((this.TypePartnerRowDeleted != null)) {
  3354. this.TypePartnerRowDeleted(this, new TypePartnerRowChangeEvent(((TypePartnerRow)(e.Row)), e.Action));
  3355. }
  3356. }
  3357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3359. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3360. base.OnRowDeleting(e);
  3361. if ((this.TypePartnerRowDeleting != null)) {
  3362. this.TypePartnerRowDeleting(this, new TypePartnerRowChangeEvent(((TypePartnerRow)(e.Row)), e.Action));
  3363. }
  3364. }
  3365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3367. public void RemoveTypePartnerRow(TypePartnerRow row) {
  3368. this.Rows.Remove(row);
  3369. }
  3370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3372. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3373. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3374. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3375. dbAlphapolAGDataSet ds = new dbAlphapolAGDataSet();
  3376. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3377. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3378. any1.MinOccurs = new decimal(0);
  3379. any1.MaxOccurs = decimal.MaxValue;
  3380. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3381. sequence.Items.Add(any1);
  3382. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3383. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3384. any2.MinOccurs = new decimal(1);
  3385. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3386. sequence.Items.Add(any2);
  3387. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3388. attribute1.Name = "namespace";
  3389. attribute1.FixedValue = ds.Namespace;
  3390. type.Attributes.Add(attribute1);
  3391. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3392. attribute2.Name = "tableTypeName";
  3393. attribute2.FixedValue = "TypePartnerDataTable";
  3394. type.Attributes.Add(attribute2);
  3395. type.Particle = sequence;
  3396. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3397. if (xs.Contains(dsSchema.TargetNamespace)) {
  3398. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3399. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3400. try {
  3401. global::System.Xml.Schema.XmlSchema schema = null;
  3402. dsSchema.Write(s1);
  3403. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3404. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3405. s2.SetLength(0);
  3406. schema.Write(s2);
  3407. if ((s1.Length == s2.Length)) {
  3408. s1.Position = 0;
  3409. s2.Position = 0;
  3410. for (; ((s1.Position != s1.Length)
  3411. && (s1.ReadByte() == s2.ReadByte())); ) {
  3412. ;
  3413. }
  3414. if ((s1.Position == s1.Length)) {
  3415. return type;
  3416. }
  3417. }
  3418. }
  3419. }
  3420. finally {
  3421. if ((s1 != null)) {
  3422. s1.Close();
  3423. }
  3424. if ((s2 != null)) {
  3425. s2.Close();
  3426. }
  3427. }
  3428. }
  3429. xs.Add(dsSchema);
  3430. return type;
  3431. }
  3432. }
  3433. /// <summary>
  3434. ///Represents the strongly named DataTable class.
  3435. ///</summary>
  3436. [global::System.Serializable()]
  3437. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3438. public partial class TypeProductDataTable : global::System.Data.TypedTableBase<TypeProductRow> {
  3439. private global::System.Data.DataColumn columnidTypeProduct;
  3440. private global::System.Data.DataColumn columnTypeProduct;
  3441. private global::System.Data.DataColumn columnCoefficient;
  3442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3444. public TypeProductDataTable() {
  3445. this.TableName = "TypeProduct";
  3446. this.BeginInit();
  3447. this.InitClass();
  3448. this.EndInit();
  3449. }
  3450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3452. internal TypeProductDataTable(global::System.Data.DataTable table) {
  3453. this.TableName = table.TableName;
  3454. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3455. this.CaseSensitive = table.CaseSensitive;
  3456. }
  3457. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3458. this.Locale = table.Locale;
  3459. }
  3460. if ((table.Namespace != table.DataSet.Namespace)) {
  3461. this.Namespace = table.Namespace;
  3462. }
  3463. this.Prefix = table.Prefix;
  3464. this.MinimumCapacity = table.MinimumCapacity;
  3465. }
  3466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3468. protected TypeProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3469. base(info, context) {
  3470. this.InitVars();
  3471. }
  3472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3474. public global::System.Data.DataColumn idTypeProductColumn {
  3475. get {
  3476. return this.columnidTypeProduct;
  3477. }
  3478. }
  3479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3480. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3481. public global::System.Data.DataColumn TypeProductColumn {
  3482. get {
  3483. return this.columnTypeProduct;
  3484. }
  3485. }
  3486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3488. public global::System.Data.DataColumn CoefficientColumn {
  3489. get {
  3490. return this.columnCoefficient;
  3491. }
  3492. }
  3493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3495. [global::System.ComponentModel.Browsable(false)]
  3496. public int Count {
  3497. get {
  3498. return this.Rows.Count;
  3499. }
  3500. }
  3501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3503. public TypeProductRow this[int index] {
  3504. get {
  3505. return ((TypeProductRow)(this.Rows[index]));
  3506. }
  3507. }
  3508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3509. public event TypeProductRowChangeEventHandler TypeProductRowChanging;
  3510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3511. public event TypeProductRowChangeEventHandler TypeProductRowChanged;
  3512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3513. public event TypeProductRowChangeEventHandler TypeProductRowDeleting;
  3514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3515. public event TypeProductRowChangeEventHandler TypeProductRowDeleted;
  3516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3518. public void AddTypeProductRow(TypeProductRow row) {
  3519. this.Rows.Add(row);
  3520. }
  3521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3523. public TypeProductRow AddTypeProductRow(string TypeProduct, double Coefficient) {
  3524. TypeProductRow rowTypeProductRow = ((TypeProductRow)(this.NewRow()));
  3525. object[] columnValuesArray = new object[] {
  3526. null,
  3527. TypeProduct,
  3528. Coefficient};
  3529. rowTypeProductRow.ItemArray = columnValuesArray;
  3530. this.Rows.Add(rowTypeProductRow);
  3531. return rowTypeProductRow;
  3532. }
  3533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3535. public TypeProductRow FindByidTypeProduct(int idTypeProduct) {
  3536. return ((TypeProductRow)(this.Rows.Find(new object[] {
  3537. idTypeProduct})));
  3538. }
  3539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3541. public override global::System.Data.DataTable Clone() {
  3542. TypeProductDataTable cln = ((TypeProductDataTable)(base.Clone()));
  3543. cln.InitVars();
  3544. return cln;
  3545. }
  3546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3548. protected override global::System.Data.DataTable CreateInstance() {
  3549. return new TypeProductDataTable();
  3550. }
  3551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3553. internal void InitVars() {
  3554. this.columnidTypeProduct = base.Columns["idTypeProduct"];
  3555. this.columnTypeProduct = base.Columns["TypeProduct"];
  3556. this.columnCoefficient = base.Columns["Coefficient"];
  3557. }
  3558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3559. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3560. private void InitClass() {
  3561. this.columnidTypeProduct = new global::System.Data.DataColumn("idTypeProduct", typeof(int), null, global::System.Data.MappingType.Element);
  3562. base.Columns.Add(this.columnidTypeProduct);
  3563. this.columnTypeProduct = new global::System.Data.DataColumn("TypeProduct", typeof(string), null, global::System.Data.MappingType.Element);
  3564. base.Columns.Add(this.columnTypeProduct);
  3565. this.columnCoefficient = new global::System.Data.DataColumn("Coefficient", typeof(double), null, global::System.Data.MappingType.Element);
  3566. base.Columns.Add(this.columnCoefficient);
  3567. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3568. this.columnidTypeProduct}, true));
  3569. this.columnidTypeProduct.AutoIncrement = true;
  3570. this.columnidTypeProduct.AutoIncrementSeed = 1;
  3571. this.columnidTypeProduct.AllowDBNull = false;
  3572. this.columnidTypeProduct.ReadOnly = true;
  3573. this.columnidTypeProduct.Unique = true;
  3574. this.columnTypeProduct.MaxLength = 50;
  3575. }
  3576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3578. public TypeProductRow NewTypeProductRow() {
  3579. return ((TypeProductRow)(this.NewRow()));
  3580. }
  3581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3583. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3584. return new TypeProductRow(builder);
  3585. }
  3586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3588. protected override global::System.Type GetRowType() {
  3589. return typeof(TypeProductRow);
  3590. }
  3591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3593. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3594. base.OnRowChanged(e);
  3595. if ((this.TypeProductRowChanged != null)) {
  3596. this.TypeProductRowChanged(this, new TypeProductRowChangeEvent(((TypeProductRow)(e.Row)), e.Action));
  3597. }
  3598. }
  3599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3600. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3601. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3602. base.OnRowChanging(e);
  3603. if ((this.TypeProductRowChanging != null)) {
  3604. this.TypeProductRowChanging(this, new TypeProductRowChangeEvent(((TypeProductRow)(e.Row)), e.Action));
  3605. }
  3606. }
  3607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3609. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3610. base.OnRowDeleted(e);
  3611. if ((this.TypeProductRowDeleted != null)) {
  3612. this.TypeProductRowDeleted(this, new TypeProductRowChangeEvent(((TypeProductRow)(e.Row)), e.Action));
  3613. }
  3614. }
  3615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3617. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3618. base.OnRowDeleting(e);
  3619. if ((this.TypeProductRowDeleting != null)) {
  3620. this.TypeProductRowDeleting(this, new TypeProductRowChangeEvent(((TypeProductRow)(e.Row)), e.Action));
  3621. }
  3622. }
  3623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3625. public void RemoveTypeProductRow(TypeProductRow row) {
  3626. this.Rows.Remove(row);
  3627. }
  3628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3630. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3631. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3632. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3633. dbAlphapolAGDataSet ds = new dbAlphapolAGDataSet();
  3634. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3635. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3636. any1.MinOccurs = new decimal(0);
  3637. any1.MaxOccurs = decimal.MaxValue;
  3638. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3639. sequence.Items.Add(any1);
  3640. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3641. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3642. any2.MinOccurs = new decimal(1);
  3643. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3644. sequence.Items.Add(any2);
  3645. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3646. attribute1.Name = "namespace";
  3647. attribute1.FixedValue = ds.Namespace;
  3648. type.Attributes.Add(attribute1);
  3649. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3650. attribute2.Name = "tableTypeName";
  3651. attribute2.FixedValue = "TypeProductDataTable";
  3652. type.Attributes.Add(attribute2);
  3653. type.Particle = sequence;
  3654. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3655. if (xs.Contains(dsSchema.TargetNamespace)) {
  3656. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3657. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3658. try {
  3659. global::System.Xml.Schema.XmlSchema schema = null;
  3660. dsSchema.Write(s1);
  3661. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3662. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3663. s2.SetLength(0);
  3664. schema.Write(s2);
  3665. if ((s1.Length == s2.Length)) {
  3666. s1.Position = 0;
  3667. s2.Position = 0;
  3668. for (; ((s1.Position != s1.Length)
  3669. && (s1.ReadByte() == s2.ReadByte())); ) {
  3670. ;
  3671. }
  3672. if ((s1.Position == s1.Length)) {
  3673. return type;
  3674. }
  3675. }
  3676. }
  3677. }
  3678. finally {
  3679. if ((s1 != null)) {
  3680. s1.Close();
  3681. }
  3682. if ((s2 != null)) {
  3683. s2.Close();
  3684. }
  3685. }
  3686. }
  3687. xs.Add(dsSchema);
  3688. return type;
  3689. }
  3690. }
  3691. /// <summary>
  3692. ///Represents the strongly named DataTable class.
  3693. ///</summary>
  3694. [global::System.Serializable()]
  3695. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3696. public partial class TypeForFilterDataTable : global::System.Data.TypedTableBase<TypeForFilterRow> {
  3697. private global::System.Data.DataColumn columnType;
  3698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3700. public TypeForFilterDataTable() {
  3701. this.TableName = "TypeForFilter";
  3702. this.BeginInit();
  3703. this.InitClass();
  3704. this.EndInit();
  3705. }
  3706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3708. internal TypeForFilterDataTable(global::System.Data.DataTable table) {
  3709. this.TableName = table.TableName;
  3710. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3711. this.CaseSensitive = table.CaseSensitive;
  3712. }
  3713. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3714. this.Locale = table.Locale;
  3715. }
  3716. if ((table.Namespace != table.DataSet.Namespace)) {
  3717. this.Namespace = table.Namespace;
  3718. }
  3719. this.Prefix = table.Prefix;
  3720. this.MinimumCapacity = table.MinimumCapacity;
  3721. }
  3722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3724. protected TypeForFilterDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3725. base(info, context) {
  3726. this.InitVars();
  3727. }
  3728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3730. public global::System.Data.DataColumn TypeColumn {
  3731. get {
  3732. return this.columnType;
  3733. }
  3734. }
  3735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3737. [global::System.ComponentModel.Browsable(false)]
  3738. public int Count {
  3739. get {
  3740. return this.Rows.Count;
  3741. }
  3742. }
  3743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3745. public TypeForFilterRow this[int index] {
  3746. get {
  3747. return ((TypeForFilterRow)(this.Rows[index]));
  3748. }
  3749. }
  3750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3751. public event TypeForFilterRowChangeEventHandler TypeForFilterRowChanging;
  3752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3753. public event TypeForFilterRowChangeEventHandler TypeForFilterRowChanged;
  3754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3755. public event TypeForFilterRowChangeEventHandler TypeForFilterRowDeleting;
  3756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3757. public event TypeForFilterRowChangeEventHandler TypeForFilterRowDeleted;
  3758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3760. public void AddTypeForFilterRow(TypeForFilterRow row) {
  3761. this.Rows.Add(row);
  3762. }
  3763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3765. public TypeForFilterRow AddTypeForFilterRow(string Type) {
  3766. TypeForFilterRow rowTypeForFilterRow = ((TypeForFilterRow)(this.NewRow()));
  3767. object[] columnValuesArray = new object[] {
  3768. Type};
  3769. rowTypeForFilterRow.ItemArray = columnValuesArray;
  3770. this.Rows.Add(rowTypeForFilterRow);
  3771. return rowTypeForFilterRow;
  3772. }
  3773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3774. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3775. public override global::System.Data.DataTable Clone() {
  3776. TypeForFilterDataTable cln = ((TypeForFilterDataTable)(base.Clone()));
  3777. cln.InitVars();
  3778. return cln;
  3779. }
  3780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3782. protected override global::System.Data.DataTable CreateInstance() {
  3783. return new TypeForFilterDataTable();
  3784. }
  3785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3786. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3787. internal void InitVars() {
  3788. this.columnType = base.Columns["Type"];
  3789. }
  3790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3792. private void InitClass() {
  3793. this.columnType = new global::System.Data.DataColumn("Type", typeof(string), null, global::System.Data.MappingType.Element);
  3794. base.Columns.Add(this.columnType);
  3795. this.columnType.ReadOnly = true;
  3796. this.columnType.Caption = "Column1";
  3797. this.columnType.MaxLength = 50;
  3798. }
  3799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3801. public TypeForFilterRow NewTypeForFilterRow() {
  3802. return ((TypeForFilterRow)(this.NewRow()));
  3803. }
  3804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3806. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3807. return new TypeForFilterRow(builder);
  3808. }
  3809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3811. protected override global::System.Type GetRowType() {
  3812. return typeof(TypeForFilterRow);
  3813. }
  3814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3816. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3817. base.OnRowChanged(e);
  3818. if ((this.TypeForFilterRowChanged != null)) {
  3819. this.TypeForFilterRowChanged(this, new TypeForFilterRowChangeEvent(((TypeForFilterRow)(e.Row)), e.Action));
  3820. }
  3821. }
  3822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3824. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3825. base.OnRowChanging(e);
  3826. if ((this.TypeForFilterRowChanging != null)) {
  3827. this.TypeForFilterRowChanging(this, new TypeForFilterRowChangeEvent(((TypeForFilterRow)(e.Row)), e.Action));
  3828. }
  3829. }
  3830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3831. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3832. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3833. base.OnRowDeleted(e);
  3834. if ((this.TypeForFilterRowDeleted != null)) {
  3835. this.TypeForFilterRowDeleted(this, new TypeForFilterRowChangeEvent(((TypeForFilterRow)(e.Row)), e.Action));
  3836. }
  3837. }
  3838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3840. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3841. base.OnRowDeleting(e);
  3842. if ((this.TypeForFilterRowDeleting != null)) {
  3843. this.TypeForFilterRowDeleting(this, new TypeForFilterRowChangeEvent(((TypeForFilterRow)(e.Row)), e.Action));
  3844. }
  3845. }
  3846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3848. public void RemoveTypeForFilterRow(TypeForFilterRow row) {
  3849. this.Rows.Remove(row);
  3850. }
  3851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3853. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3854. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3855. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3856. dbAlphapolAGDataSet ds = new dbAlphapolAGDataSet();
  3857. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3858. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3859. any1.MinOccurs = new decimal(0);
  3860. any1.MaxOccurs = decimal.MaxValue;
  3861. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3862. sequence.Items.Add(any1);
  3863. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3864. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3865. any2.MinOccurs = new decimal(1);
  3866. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3867. sequence.Items.Add(any2);
  3868. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3869. attribute1.Name = "namespace";
  3870. attribute1.FixedValue = ds.Namespace;
  3871. type.Attributes.Add(attribute1);
  3872. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3873. attribute2.Name = "tableTypeName";
  3874. attribute2.FixedValue = "TypeForFilterDataTable";
  3875. type.Attributes.Add(attribute2);
  3876. type.Particle = sequence;
  3877. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3878. if (xs.Contains(dsSchema.TargetNamespace)) {
  3879. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3880. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3881. try {
  3882. global::System.Xml.Schema.XmlSchema schema = null;
  3883. dsSchema.Write(s1);
  3884. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3885. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3886. s2.SetLength(0);
  3887. schema.Write(s2);
  3888. if ((s1.Length == s2.Length)) {
  3889. s1.Position = 0;
  3890. s2.Position = 0;
  3891. for (; ((s1.Position != s1.Length)
  3892. && (s1.ReadByte() == s2.ReadByte())); ) {
  3893. ;
  3894. }
  3895. if ((s1.Position == s1.Length)) {
  3896. return type;
  3897. }
  3898. }
  3899. }
  3900. }
  3901. finally {
  3902. if ((s1 != null)) {
  3903. s1.Close();
  3904. }
  3905. if ((s2 != null)) {
  3906. s2.Close();
  3907. }
  3908. }
  3909. }
  3910. xs.Add(dsSchema);
  3911. return type;
  3912. }
  3913. }
  3914. /// <summary>
  3915. ///Represents strongly named DataRow class.
  3916. ///</summary>
  3917. public partial class CityRow : global::System.Data.DataRow {
  3918. private CityDataTable tableCity;
  3919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3921. internal CityRow(global::System.Data.DataRowBuilder rb) :
  3922. base(rb) {
  3923. this.tableCity = ((CityDataTable)(this.Table));
  3924. }
  3925. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3926. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3927. public int idCity {
  3928. get {
  3929. return ((int)(this[this.tableCity.idCityColumn]));
  3930. }
  3931. set {
  3932. this[this.tableCity.idCityColumn] = value;
  3933. }
  3934. }
  3935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3936. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3937. public string City {
  3938. get {
  3939. try {
  3940. return ((string)(this[this.tableCity.CityColumn]));
  3941. }
  3942. catch (global::System.InvalidCastException e) {
  3943. throw new global::System.Data.StrongTypingException("The value for column \'City\' in table \'City\' is DBNull.", e);
  3944. }
  3945. }
  3946. set {
  3947. this[this.tableCity.CityColumn] = value;
  3948. }
  3949. }
  3950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3952. public bool IsCityNull() {
  3953. return this.IsNull(this.tableCity.CityColumn);
  3954. }
  3955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3956. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3957. public void SetCityNull() {
  3958. this[this.tableCity.CityColumn] = global::System.Convert.DBNull;
  3959. }
  3960. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3961. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3962. public PartnerRow[] GetPartnerRows() {
  3963. if ((this.Table.ChildRelations["FK_Partner_City"] == null)) {
  3964. return new PartnerRow[0];
  3965. }
  3966. else {
  3967. return ((PartnerRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Partner_City"])));
  3968. }
  3969. }
  3970. }
  3971. /// <summary>
  3972. ///Represents strongly named DataRow class.
  3973. ///</summary>
  3974. public partial class IndexPartnerRow : global::System.Data.DataRow {
  3975. private IndexPartnerDataTable tableIndexPartner;
  3976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3978. internal IndexPartnerRow(global::System.Data.DataRowBuilder rb) :
  3979. base(rb) {
  3980. this.tableIndexPartner = ((IndexPartnerDataTable)(this.Table));
  3981. }
  3982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3984. public int idIndex {
  3985. get {
  3986. return ((int)(this[this.tableIndexPartner.idIndexColumn]));
  3987. }
  3988. set {
  3989. this[this.tableIndexPartner.idIndexColumn] = value;
  3990. }
  3991. }
  3992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3994. public string CodePartner {
  3995. get {
  3996. try {
  3997. return ((string)(this[this.tableIndexPartner.CodePartnerColumn]));
  3998. }
  3999. catch (global::System.InvalidCastException e) {
  4000. throw new global::System.Data.StrongTypingException("The value for column \'CodePartner\' in table \'IndexPartner\' is DBNull.", e);
  4001. }
  4002. }
  4003. set {
  4004. this[this.tableIndexPartner.CodePartnerColumn] = value;
  4005. }
  4006. }
  4007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4008. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4009. public bool IsCodePartnerNull() {
  4010. return this.IsNull(this.tableIndexPartner.CodePartnerColumn);
  4011. }
  4012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4014. public void SetCodePartnerNull() {
  4015. this[this.tableIndexPartner.CodePartnerColumn] = global::System.Convert.DBNull;
  4016. }
  4017. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4019. public PartnerRow[] GetPartnerRows() {
  4020. if ((this.Table.ChildRelations["FK_Partner_IndexPartner"] == null)) {
  4021. return new PartnerRow[0];
  4022. }
  4023. else {
  4024. return ((PartnerRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Partner_IndexPartner"])));
  4025. }
  4026. }
  4027. }
  4028. /// <summary>
  4029. ///Represents strongly named DataRow class.
  4030. ///</summary>
  4031. public partial class ManagerRow : global::System.Data.DataRow {
  4032. private ManagerDataTable tableManager;
  4033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4034. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4035. internal ManagerRow(global::System.Data.DataRowBuilder rb) :
  4036. base(rb) {
  4037. this.tableManager = ((ManagerDataTable)(this.Table));
  4038. }
  4039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4041. public int idManager {
  4042. get {
  4043. return ((int)(this[this.tableManager.idManagerColumn]));
  4044. }
  4045. set {
  4046. this[this.tableManager.idManagerColumn] = value;
  4047. }
  4048. }
  4049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4051. public string Surname {
  4052. get {
  4053. try {
  4054. return ((string)(this[this.tableManager.SurnameColumn]));
  4055. }
  4056. catch (global::System.InvalidCastException e) {
  4057. throw new global::System.Data.StrongTypingException("The value for column \'Surname\' in table \'Manager\' is DBNull.", e);
  4058. }
  4059. }
  4060. set {
  4061. this[this.tableManager.SurnameColumn] = value;
  4062. }
  4063. }
  4064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4066. public string Name {
  4067. get {
  4068. try {
  4069. return ((string)(this[this.tableManager.NameColumn]));
  4070. }
  4071. catch (global::System.InvalidCastException e) {
  4072. throw new global::System.Data.StrongTypingException("The value for column \'Name\' in table \'Manager\' is DBNull.", e);
  4073. }
  4074. }
  4075. set {
  4076. this[this.tableManager.NameColumn] = value;
  4077. }
  4078. }
  4079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4081. public string Patronymic {
  4082. get {
  4083. try {
  4084. return ((string)(this[this.tableManager.PatronymicColumn]));
  4085. }
  4086. catch (global::System.InvalidCastException e) {
  4087. throw new global::System.Data.StrongTypingException("The value for column \'Patronymic\' in table \'Manager\' is DBNull.", e);
  4088. }
  4089. }
  4090. set {
  4091. this[this.tableManager.PatronymicColumn] = value;
  4092. }
  4093. }
  4094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4095. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4096. public string Login {
  4097. get {
  4098. try {
  4099. return ((string)(this[this.tableManager.LoginColumn]));
  4100. }
  4101. catch (global::System.InvalidCastException e) {
  4102. throw new global::System.Data.StrongTypingException("The value for column \'Login\' in table \'Manager\' is DBNull.", e);
  4103. }
  4104. }
  4105. set {
  4106. this[this.tableManager.LoginColumn] = value;
  4107. }
  4108. }
  4109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4110. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4111. public string Password {
  4112. get {
  4113. try {
  4114. return ((string)(this[this.tableManager.PasswordColumn]));
  4115. }
  4116. catch (global::System.InvalidCastException e) {
  4117. throw new global::System.Data.StrongTypingException("The value for column \'Password\' in table \'Manager\' is DBNull.", e);
  4118. }
  4119. }
  4120. set {
  4121. this[this.tableManager.PasswordColumn] = value;
  4122. }
  4123. }
  4124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4126. public string Photo {
  4127. get {
  4128. try {
  4129. return ((string)(this[this.tableManager.PhotoColumn]));
  4130. }
  4131. catch (global::System.InvalidCastException e) {
  4132. throw new global::System.Data.StrongTypingException("The value for column \'Photo\' in table \'Manager\' is DBNull.", e);
  4133. }
  4134. }
  4135. set {
  4136. this[this.tableManager.PhotoColumn] = value;
  4137. }
  4138. }
  4139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4141. public bool IsSurnameNull() {
  4142. return this.IsNull(this.tableManager.SurnameColumn);
  4143. }
  4144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4146. public void SetSurnameNull() {
  4147. this[this.tableManager.SurnameColumn] = global::System.Convert.DBNull;
  4148. }
  4149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4151. public bool IsNameNull() {
  4152. return this.IsNull(this.tableManager.NameColumn);
  4153. }
  4154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4156. public void SetNameNull() {
  4157. this[this.tableManager.NameColumn] = global::System.Convert.DBNull;
  4158. }
  4159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4161. public bool IsPatronymicNull() {
  4162. return this.IsNull(this.tableManager.PatronymicColumn);
  4163. }
  4164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4166. public void SetPatronymicNull() {
  4167. this[this.tableManager.PatronymicColumn] = global::System.Convert.DBNull;
  4168. }
  4169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4171. public bool IsLoginNull() {
  4172. return this.IsNull(this.tableManager.LoginColumn);
  4173. }
  4174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4176. public void SetLoginNull() {
  4177. this[this.tableManager.LoginColumn] = global::System.Convert.DBNull;
  4178. }
  4179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4181. public bool IsPasswordNull() {
  4182. return this.IsNull(this.tableManager.PasswordColumn);
  4183. }
  4184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4186. public void SetPasswordNull() {
  4187. this[this.tableManager.PasswordColumn] = global::System.Convert.DBNull;
  4188. }
  4189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4191. public bool IsPhotoNull() {
  4192. return this.IsNull(this.tableManager.PhotoColumn);
  4193. }
  4194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4196. public void SetPhotoNull() {
  4197. this[this.tableManager.PhotoColumn] = global::System.Convert.DBNull;
  4198. }
  4199. }
  4200. /// <summary>
  4201. ///Represents strongly named DataRow class.
  4202. ///</summary>
  4203. public partial class PartnerRow : global::System.Data.DataRow {
  4204. private PartnerDataTable tablePartner;
  4205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4207. internal PartnerRow(global::System.Data.DataRowBuilder rb) :
  4208. base(rb) {
  4209. this.tablePartner = ((PartnerDataTable)(this.Table));
  4210. }
  4211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4213. public int idPartner {
  4214. get {
  4215. return ((int)(this[this.tablePartner.idPartnerColumn]));
  4216. }
  4217. set {
  4218. this[this.tablePartner.idPartnerColumn] = value;
  4219. }
  4220. }
  4221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4223. public string Surname {
  4224. get {
  4225. try {
  4226. return ((string)(this[this.tablePartner.SurnameColumn]));
  4227. }
  4228. catch (global::System.InvalidCastException e) {
  4229. throw new global::System.Data.StrongTypingException("The value for column \'Surname\' in table \'Partner\' is DBNull.", e);
  4230. }
  4231. }
  4232. set {
  4233. this[this.tablePartner.SurnameColumn] = value;
  4234. }
  4235. }
  4236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4238. public string Name {
  4239. get {
  4240. try {
  4241. return ((string)(this[this.tablePartner.NameColumn]));
  4242. }
  4243. catch (global::System.InvalidCastException e) {
  4244. throw new global::System.Data.StrongTypingException("The value for column \'Name\' in table \'Partner\' is DBNull.", e);
  4245. }
  4246. }
  4247. set {
  4248. this[this.tablePartner.NameColumn] = value;
  4249. }
  4250. }
  4251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4253. public string Patronymic {
  4254. get {
  4255. try {
  4256. return ((string)(this[this.tablePartner.PatronymicColumn]));
  4257. }
  4258. catch (global::System.InvalidCastException e) {
  4259. throw new global::System.Data.StrongTypingException("The value for column \'Patronymic\' in table \'Partner\' is DBNull.", e);
  4260. }
  4261. }
  4262. set {
  4263. this[this.tablePartner.PatronymicColumn] = value;
  4264. }
  4265. }
  4266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4268. public string Email {
  4269. get {
  4270. try {
  4271. return ((string)(this[this.tablePartner.EmailColumn]));
  4272. }
  4273. catch (global::System.InvalidCastException e) {
  4274. throw new global::System.Data.StrongTypingException("The value for column \'Email\' in table \'Partner\' is DBNull.", e);
  4275. }
  4276. }
  4277. set {
  4278. this[this.tablePartner.EmailColumn] = value;
  4279. }
  4280. }
  4281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4282. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4283. public string Phone {
  4284. get {
  4285. try {
  4286. return ((string)(this[this.tablePartner.PhoneColumn]));
  4287. }
  4288. catch (global::System.InvalidCastException e) {
  4289. throw new global::System.Data.StrongTypingException("The value for column \'Phone\' in table \'Partner\' is DBNull.", e);
  4290. }
  4291. }
  4292. set {
  4293. this[this.tablePartner.PhoneColumn] = value;
  4294. }
  4295. }
  4296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4297. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4298. public int idIndex {
  4299. get {
  4300. try {
  4301. return ((int)(this[this.tablePartner.idIndexColumn]));
  4302. }
  4303. catch (global::System.InvalidCastException e) {
  4304. throw new global::System.Data.StrongTypingException("The value for column \'idIndex\' in table \'Partner\' is DBNull.", e);
  4305. }
  4306. }
  4307. set {
  4308. this[this.tablePartner.idIndexColumn] = value;
  4309. }
  4310. }
  4311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4313. public int idCity {
  4314. get {
  4315. try {
  4316. return ((int)(this[this.tablePartner.idCityColumn]));
  4317. }
  4318. catch (global::System.InvalidCastException e) {
  4319. throw new global::System.Data.StrongTypingException("The value for column \'idCity\' in table \'Partner\' is DBNull.", e);
  4320. }
  4321. }
  4322. set {
  4323. this[this.tablePartner.idCityColumn] = value;
  4324. }
  4325. }
  4326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4327. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4328. public int idStreet {
  4329. get {
  4330. try {
  4331. return ((int)(this[this.tablePartner.idStreetColumn]));
  4332. }
  4333. catch (global::System.InvalidCastException e) {
  4334. throw new global::System.Data.StrongTypingException("The value for column \'idStreet\' in table \'Partner\' is DBNull.", e);
  4335. }
  4336. }
  4337. set {
  4338. this[this.tablePartner.idStreetColumn] = value;
  4339. }
  4340. }
  4341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4343. public int House {
  4344. get {
  4345. try {
  4346. return ((int)(this[this.tablePartner.HouseColumn]));
  4347. }
  4348. catch (global::System.InvalidCastException e) {
  4349. throw new global::System.Data.StrongTypingException("The value for column \'House\' in table \'Partner\' is DBNull.", e);
  4350. }
  4351. }
  4352. set {
  4353. this[this.tablePartner.HouseColumn] = value;
  4354. }
  4355. }
  4356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4358. public string INN {
  4359. get {
  4360. try {
  4361. return ((string)(this[this.tablePartner.INNColumn]));
  4362. }
  4363. catch (global::System.InvalidCastException e) {
  4364. throw new global::System.Data.StrongTypingException("The value for column \'INN\' in table \'Partner\' is DBNull.", e);
  4365. }
  4366. }
  4367. set {
  4368. this[this.tablePartner.INNColumn] = value;
  4369. }
  4370. }
  4371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4372. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4373. public string Rating {
  4374. get {
  4375. try {
  4376. return ((string)(this[this.tablePartner.RatingColumn]));
  4377. }
  4378. catch (global::System.InvalidCastException e) {
  4379. throw new global::System.Data.StrongTypingException("The value for column \'Rating\' in table \'Partner\' is DBNull.", e);
  4380. }
  4381. }
  4382. set {
  4383. this[this.tablePartner.RatingColumn] = value;
  4384. }
  4385. }
  4386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4388. public int idRegion {
  4389. get {
  4390. try {
  4391. return ((int)(this[this.tablePartner.idRegionColumn]));
  4392. }
  4393. catch (global::System.InvalidCastException e) {
  4394. throw new global::System.Data.StrongTypingException("The value for column \'idRegion\' in table \'Partner\' is DBNull.", e);
  4395. }
  4396. }
  4397. set {
  4398. this[this.tablePartner.idRegionColumn] = value;
  4399. }
  4400. }
  4401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4403. public int idTypePartner {
  4404. get {
  4405. try {
  4406. return ((int)(this[this.tablePartner.idTypePartnerColumn]));
  4407. }
  4408. catch (global::System.InvalidCastException e) {
  4409. throw new global::System.Data.StrongTypingException("The value for column \'idTypePartner\' in table \'Partner\' is DBNull.", e);
  4410. }
  4411. }
  4412. set {
  4413. this[this.tablePartner.idTypePartnerColumn] = value;
  4414. }
  4415. }
  4416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4418. public string NamePartner {
  4419. get {
  4420. try {
  4421. return ((string)(this[this.tablePartner.NamePartnerColumn]));
  4422. }
  4423. catch (global::System.InvalidCastException e) {
  4424. throw new global::System.Data.StrongTypingException("The value for column \'NamePartner\' in table \'Partner\' is DBNull.", e);
  4425. }
  4426. }
  4427. set {
  4428. this[this.tablePartner.NamePartnerColumn] = value;
  4429. }
  4430. }
  4431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4433. public CityRow CityRow {
  4434. get {
  4435. return ((CityRow)(this.GetParentRow(this.Table.ParentRelations["FK_Partner_City"])));
  4436. }
  4437. set {
  4438. this.SetParentRow(value, this.Table.ParentRelations["FK_Partner_City"]);
  4439. }
  4440. }
  4441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4443. public IndexPartnerRow IndexPartnerRow {
  4444. get {
  4445. return ((IndexPartnerRow)(this.GetParentRow(this.Table.ParentRelations["FK_Partner_IndexPartner"])));
  4446. }
  4447. set {
  4448. this.SetParentRow(value, this.Table.ParentRelations["FK_Partner_IndexPartner"]);
  4449. }
  4450. }
  4451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4453. public RegionRow RegionRow {
  4454. get {
  4455. return ((RegionRow)(this.GetParentRow(this.Table.ParentRelations["FK_Partner_Region"])));
  4456. }
  4457. set {
  4458. this.SetParentRow(value, this.Table.ParentRelations["FK_Partner_Region"]);
  4459. }
  4460. }
  4461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4463. public StreetRow StreetRow {
  4464. get {
  4465. return ((StreetRow)(this.GetParentRow(this.Table.ParentRelations["FK_Partner_Street"])));
  4466. }
  4467. set {
  4468. this.SetParentRow(value, this.Table.ParentRelations["FK_Partner_Street"]);
  4469. }
  4470. }
  4471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4473. public TypePartnerRow TypePartnerRow {
  4474. get {
  4475. return ((TypePartnerRow)(this.GetParentRow(this.Table.ParentRelations["FK_Partner_TypePartner"])));
  4476. }
  4477. set {
  4478. this.SetParentRow(value, this.Table.ParentRelations["FK_Partner_TypePartner"]);
  4479. }
  4480. }
  4481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4483. public bool IsSurnameNull() {
  4484. return this.IsNull(this.tablePartner.SurnameColumn);
  4485. }
  4486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4488. public void SetSurnameNull() {
  4489. this[this.tablePartner.SurnameColumn] = global::System.Convert.DBNull;
  4490. }
  4491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4493. public bool IsNameNull() {
  4494. return this.IsNull(this.tablePartner.NameColumn);
  4495. }
  4496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4498. public void SetNameNull() {
  4499. this[this.tablePartner.NameColumn] = global::System.Convert.DBNull;
  4500. }
  4501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4503. public bool IsPatronymicNull() {
  4504. return this.IsNull(this.tablePartner.PatronymicColumn);
  4505. }
  4506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4508. public void SetPatronymicNull() {
  4509. this[this.tablePartner.PatronymicColumn] = global::System.Convert.DBNull;
  4510. }
  4511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4513. public bool IsEmailNull() {
  4514. return this.IsNull(this.tablePartner.EmailColumn);
  4515. }
  4516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4518. public void SetEmailNull() {
  4519. this[this.tablePartner.EmailColumn] = global::System.Convert.DBNull;
  4520. }
  4521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4523. public bool IsPhoneNull() {
  4524. return this.IsNull(this.tablePartner.PhoneColumn);
  4525. }
  4526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4528. public void SetPhoneNull() {
  4529. this[this.tablePartner.PhoneColumn] = global::System.Convert.DBNull;
  4530. }
  4531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4533. public bool IsidIndexNull() {
  4534. return this.IsNull(this.tablePartner.idIndexColumn);
  4535. }
  4536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4538. public void SetidIndexNull() {
  4539. this[this.tablePartner.idIndexColumn] = global::System.Convert.DBNull;
  4540. }
  4541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4543. public bool IsidCityNull() {
  4544. return this.IsNull(this.tablePartner.idCityColumn);
  4545. }
  4546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4548. public void SetidCityNull() {
  4549. this[this.tablePartner.idCityColumn] = global::System.Convert.DBNull;
  4550. }
  4551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4553. public bool IsidStreetNull() {
  4554. return this.IsNull(this.tablePartner.idStreetColumn);
  4555. }
  4556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4558. public void SetidStreetNull() {
  4559. this[this.tablePartner.idStreetColumn] = global::System.Convert.DBNull;
  4560. }
  4561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4563. public bool IsHouseNull() {
  4564. return this.IsNull(this.tablePartner.HouseColumn);
  4565. }
  4566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4568. public void SetHouseNull() {
  4569. this[this.tablePartner.HouseColumn] = global::System.Convert.DBNull;
  4570. }
  4571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4573. public bool IsINNNull() {
  4574. return this.IsNull(this.tablePartner.INNColumn);
  4575. }
  4576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4578. public void SetINNNull() {
  4579. this[this.tablePartner.INNColumn] = global::System.Convert.DBNull;
  4580. }
  4581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4583. public bool IsRatingNull() {
  4584. return this.IsNull(this.tablePartner.RatingColumn);
  4585. }
  4586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4588. public void SetRatingNull() {
  4589. this[this.tablePartner.RatingColumn] = global::System.Convert.DBNull;
  4590. }
  4591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4593. public bool IsidRegionNull() {
  4594. return this.IsNull(this.tablePartner.idRegionColumn);
  4595. }
  4596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4598. public void SetidRegionNull() {
  4599. this[this.tablePartner.idRegionColumn] = global::System.Convert.DBNull;
  4600. }
  4601. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4602. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4603. public bool IsidTypePartnerNull() {
  4604. return this.IsNull(this.tablePartner.idTypePartnerColumn);
  4605. }
  4606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4608. public void SetidTypePartnerNull() {
  4609. this[this.tablePartner.idTypePartnerColumn] = global::System.Convert.DBNull;
  4610. }
  4611. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4612. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4613. public bool IsNamePartnerNull() {
  4614. return this.IsNull(this.tablePartner.NamePartnerColumn);
  4615. }
  4616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4618. public void SetNamePartnerNull() {
  4619. this[this.tablePartner.NamePartnerColumn] = global::System.Convert.DBNull;
  4620. }
  4621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4622. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4623. public ProductPartnerRow[] GetProductPartnerRows() {
  4624. if ((this.Table.ChildRelations["FK_ProductPartner_Partner"] == null)) {
  4625. return new ProductPartnerRow[0];
  4626. }
  4627. else {
  4628. return ((ProductPartnerRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductPartner_Partner"])));
  4629. }
  4630. }
  4631. }
  4632. /// <summary>
  4633. ///Represents strongly named DataRow class.
  4634. ///</summary>
  4635. public partial class ProductPartnerRow : global::System.Data.DataRow {
  4636. private ProductPartnerDataTable tableProductPartner;
  4637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4639. internal ProductPartnerRow(global::System.Data.DataRowBuilder rb) :
  4640. base(rb) {
  4641. this.tableProductPartner = ((ProductPartnerDataTable)(this.Table));
  4642. }
  4643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4645. public int idPartnerProduct {
  4646. get {
  4647. return ((int)(this[this.tableProductPartner.idPartnerProductColumn]));
  4648. }
  4649. set {
  4650. this[this.tableProductPartner.idPartnerProductColumn] = value;
  4651. }
  4652. }
  4653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4655. public int idProduct {
  4656. get {
  4657. try {
  4658. return ((int)(this[this.tableProductPartner.idProductColumn]));
  4659. }
  4660. catch (global::System.InvalidCastException e) {
  4661. throw new global::System.Data.StrongTypingException("The value for column \'idProduct\' in table \'ProductPartner\' is DBNull.", e);
  4662. }
  4663. }
  4664. set {
  4665. this[this.tableProductPartner.idProductColumn] = value;
  4666. }
  4667. }
  4668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4670. public int idPartner {
  4671. get {
  4672. try {
  4673. return ((int)(this[this.tableProductPartner.idPartnerColumn]));
  4674. }
  4675. catch (global::System.InvalidCastException e) {
  4676. throw new global::System.Data.StrongTypingException("The value for column \'idPartner\' in table \'ProductPartner\' is DBNull.", e);
  4677. }
  4678. }
  4679. set {
  4680. this[this.tableProductPartner.idPartnerColumn] = value;
  4681. }
  4682. }
  4683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4685. public int CountProduct {
  4686. get {
  4687. try {
  4688. return ((int)(this[this.tableProductPartner.CountProductColumn]));
  4689. }
  4690. catch (global::System.InvalidCastException e) {
  4691. throw new global::System.Data.StrongTypingException("The value for column \'CountProduct\' in table \'ProductPartner\' is DBNull.", e);
  4692. }
  4693. }
  4694. set {
  4695. this[this.tableProductPartner.CountProductColumn] = value;
  4696. }
  4697. }
  4698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4700. public System.DateTime DateSale {
  4701. get {
  4702. try {
  4703. return ((global::System.DateTime)(this[this.tableProductPartner.DateSaleColumn]));
  4704. }
  4705. catch (global::System.InvalidCastException e) {
  4706. throw new global::System.Data.StrongTypingException("The value for column \'DateSale\' in table \'ProductPartner\' is DBNull.", e);
  4707. }
  4708. }
  4709. set {
  4710. this[this.tableProductPartner.DateSaleColumn] = value;
  4711. }
  4712. }
  4713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4715. public PartnerRow PartnerRow {
  4716. get {
  4717. return ((PartnerRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductPartner_Partner"])));
  4718. }
  4719. set {
  4720. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductPartner_Partner"]);
  4721. }
  4722. }
  4723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4725. public ProductsRow ProductsRow {
  4726. get {
  4727. return ((ProductsRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductPartner_Products"])));
  4728. }
  4729. set {
  4730. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductPartner_Products"]);
  4731. }
  4732. }
  4733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4735. public bool IsidProductNull() {
  4736. return this.IsNull(this.tableProductPartner.idProductColumn);
  4737. }
  4738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4740. public void SetidProductNull() {
  4741. this[this.tableProductPartner.idProductColumn] = global::System.Convert.DBNull;
  4742. }
  4743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4745. public bool IsidPartnerNull() {
  4746. return this.IsNull(this.tableProductPartner.idPartnerColumn);
  4747. }
  4748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4750. public void SetidPartnerNull() {
  4751. this[this.tableProductPartner.idPartnerColumn] = global::System.Convert.DBNull;
  4752. }
  4753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4755. public bool IsCountProductNull() {
  4756. return this.IsNull(this.tableProductPartner.CountProductColumn);
  4757. }
  4758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4760. public void SetCountProductNull() {
  4761. this[this.tableProductPartner.CountProductColumn] = global::System.Convert.DBNull;
  4762. }
  4763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4765. public bool IsDateSaleNull() {
  4766. return this.IsNull(this.tableProductPartner.DateSaleColumn);
  4767. }
  4768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4770. public void SetDateSaleNull() {
  4771. this[this.tableProductPartner.DateSaleColumn] = global::System.Convert.DBNull;
  4772. }
  4773. }
  4774. /// <summary>
  4775. ///Represents strongly named DataRow class.
  4776. ///</summary>
  4777. public partial class ProductsRow : global::System.Data.DataRow {
  4778. private ProductsDataTable tableProducts;
  4779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4781. internal ProductsRow(global::System.Data.DataRowBuilder rb) :
  4782. base(rb) {
  4783. this.tableProducts = ((ProductsDataTable)(this.Table));
  4784. }
  4785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4786. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4787. public int idProduct {
  4788. get {
  4789. return ((int)(this[this.tableProducts.idProductColumn]));
  4790. }
  4791. set {
  4792. this[this.tableProducts.idProductColumn] = value;
  4793. }
  4794. }
  4795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4797. public int idTypeProduct {
  4798. get {
  4799. try {
  4800. return ((int)(this[this.tableProducts.idTypeProductColumn]));
  4801. }
  4802. catch (global::System.InvalidCastException e) {
  4803. throw new global::System.Data.StrongTypingException("The value for column \'idTypeProduct\' in table \'Products\' is DBNull.", e);
  4804. }
  4805. }
  4806. set {
  4807. this[this.tableProducts.idTypeProductColumn] = value;
  4808. }
  4809. }
  4810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4812. public string NameProduct {
  4813. get {
  4814. try {
  4815. return ((string)(this[this.tableProducts.NameProductColumn]));
  4816. }
  4817. catch (global::System.InvalidCastException e) {
  4818. throw new global::System.Data.StrongTypingException("The value for column \'NameProduct\' in table \'Products\' is DBNull.", e);
  4819. }
  4820. }
  4821. set {
  4822. this[this.tableProducts.NameProductColumn] = value;
  4823. }
  4824. }
  4825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4827. public int Article {
  4828. get {
  4829. try {
  4830. return ((int)(this[this.tableProducts.ArticleColumn]));
  4831. }
  4832. catch (global::System.InvalidCastException e) {
  4833. throw new global::System.Data.StrongTypingException("The value for column \'Article\' in table \'Products\' is DBNull.", e);
  4834. }
  4835. }
  4836. set {
  4837. this[this.tableProducts.ArticleColumn] = value;
  4838. }
  4839. }
  4840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4841. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4842. public decimal MinCost {
  4843. get {
  4844. try {
  4845. return ((decimal)(this[this.tableProducts.MinCostColumn]));
  4846. }
  4847. catch (global::System.InvalidCastException e) {
  4848. throw new global::System.Data.StrongTypingException("The value for column \'MinCost\' in table \'Products\' is DBNull.", e);
  4849. }
  4850. }
  4851. set {
  4852. this[this.tableProducts.MinCostColumn] = value;
  4853. }
  4854. }
  4855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4857. public TypeProductRow TypeProductRow {
  4858. get {
  4859. return ((TypeProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_Products_TypeProduct"])));
  4860. }
  4861. set {
  4862. this.SetParentRow(value, this.Table.ParentRelations["FK_Products_TypeProduct"]);
  4863. }
  4864. }
  4865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4867. public bool IsidTypeProductNull() {
  4868. return this.IsNull(this.tableProducts.idTypeProductColumn);
  4869. }
  4870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4872. public void SetidTypeProductNull() {
  4873. this[this.tableProducts.idTypeProductColumn] = global::System.Convert.DBNull;
  4874. }
  4875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4877. public bool IsNameProductNull() {
  4878. return this.IsNull(this.tableProducts.NameProductColumn);
  4879. }
  4880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4881. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4882. public void SetNameProductNull() {
  4883. this[this.tableProducts.NameProductColumn] = global::System.Convert.DBNull;
  4884. }
  4885. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4886. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4887. public bool IsArticleNull() {
  4888. return this.IsNull(this.tableProducts.ArticleColumn);
  4889. }
  4890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4892. public void SetArticleNull() {
  4893. this[this.tableProducts.ArticleColumn] = global::System.Convert.DBNull;
  4894. }
  4895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4897. public bool IsMinCostNull() {
  4898. return this.IsNull(this.tableProducts.MinCostColumn);
  4899. }
  4900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4902. public void SetMinCostNull() {
  4903. this[this.tableProducts.MinCostColumn] = global::System.Convert.DBNull;
  4904. }
  4905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4907. public ProductPartnerRow[] GetProductPartnerRows() {
  4908. if ((this.Table.ChildRelations["FK_ProductPartner_Products"] == null)) {
  4909. return new ProductPartnerRow[0];
  4910. }
  4911. else {
  4912. return ((ProductPartnerRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductPartner_Products"])));
  4913. }
  4914. }
  4915. }
  4916. /// <summary>
  4917. ///Represents strongly named DataRow class.
  4918. ///</summary>
  4919. public partial class RegionRow : global::System.Data.DataRow {
  4920. private RegionDataTable tableRegion;
  4921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4923. internal RegionRow(global::System.Data.DataRowBuilder rb) :
  4924. base(rb) {
  4925. this.tableRegion = ((RegionDataTable)(this.Table));
  4926. }
  4927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4929. public int idRegion {
  4930. get {
  4931. return ((int)(this[this.tableRegion.idRegionColumn]));
  4932. }
  4933. set {
  4934. this[this.tableRegion.idRegionColumn] = value;
  4935. }
  4936. }
  4937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4939. public string Region {
  4940. get {
  4941. try {
  4942. return ((string)(this[this.tableRegion.RegionColumn]));
  4943. }
  4944. catch (global::System.InvalidCastException e) {
  4945. throw new global::System.Data.StrongTypingException("The value for column \'Region\' in table \'Region\' is DBNull.", e);
  4946. }
  4947. }
  4948. set {
  4949. this[this.tableRegion.RegionColumn] = value;
  4950. }
  4951. }
  4952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4953. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4954. public bool IsRegionNull() {
  4955. return this.IsNull(this.tableRegion.RegionColumn);
  4956. }
  4957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4959. public void SetRegionNull() {
  4960. this[this.tableRegion.RegionColumn] = global::System.Convert.DBNull;
  4961. }
  4962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4964. public PartnerRow[] GetPartnerRows() {
  4965. if ((this.Table.ChildRelations["FK_Partner_Region"] == null)) {
  4966. return new PartnerRow[0];
  4967. }
  4968. else {
  4969. return ((PartnerRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Partner_Region"])));
  4970. }
  4971. }
  4972. }
  4973. /// <summary>
  4974. ///Represents strongly named DataRow class.
  4975. ///</summary>
  4976. public partial class StreetRow : global::System.Data.DataRow {
  4977. private StreetDataTable tableStreet;
  4978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4980. internal StreetRow(global::System.Data.DataRowBuilder rb) :
  4981. base(rb) {
  4982. this.tableStreet = ((StreetDataTable)(this.Table));
  4983. }
  4984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4986. public int idStreet {
  4987. get {
  4988. return ((int)(this[this.tableStreet.idStreetColumn]));
  4989. }
  4990. set {
  4991. this[this.tableStreet.idStreetColumn] = value;
  4992. }
  4993. }
  4994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4996. public string Street {
  4997. get {
  4998. try {
  4999. return ((string)(this[this.tableStreet.StreetColumn]));
  5000. }
  5001. catch (global::System.InvalidCastException e) {
  5002. throw new global::System.Data.StrongTypingException("The value for column \'Street\' in table \'Street\' is DBNull.", e);
  5003. }
  5004. }
  5005. set {
  5006. this[this.tableStreet.StreetColumn] = value;
  5007. }
  5008. }
  5009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5011. public bool IsStreetNull() {
  5012. return this.IsNull(this.tableStreet.StreetColumn);
  5013. }
  5014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5016. public void SetStreetNull() {
  5017. this[this.tableStreet.StreetColumn] = global::System.Convert.DBNull;
  5018. }
  5019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5021. public PartnerRow[] GetPartnerRows() {
  5022. if ((this.Table.ChildRelations["FK_Partner_Street"] == null)) {
  5023. return new PartnerRow[0];
  5024. }
  5025. else {
  5026. return ((PartnerRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Partner_Street"])));
  5027. }
  5028. }
  5029. }
  5030. /// <summary>
  5031. ///Represents strongly named DataRow class.
  5032. ///</summary>
  5033. public partial class TypeMaterialRow : global::System.Data.DataRow {
  5034. private TypeMaterialDataTable tableTypeMaterial;
  5035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5037. internal TypeMaterialRow(global::System.Data.DataRowBuilder rb) :
  5038. base(rb) {
  5039. this.tableTypeMaterial = ((TypeMaterialDataTable)(this.Table));
  5040. }
  5041. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5042. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5043. public int idTypeMaterial {
  5044. get {
  5045. return ((int)(this[this.tableTypeMaterial.idTypeMaterialColumn]));
  5046. }
  5047. set {
  5048. this[this.tableTypeMaterial.idTypeMaterialColumn] = value;
  5049. }
  5050. }
  5051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5053. public string TypeMaterial {
  5054. get {
  5055. try {
  5056. return ((string)(this[this.tableTypeMaterial.TypeMaterialColumn]));
  5057. }
  5058. catch (global::System.InvalidCastException e) {
  5059. throw new global::System.Data.StrongTypingException("The value for column \'TypeMaterial\' in table \'TypeMaterial\' is DBNull.", e);
  5060. }
  5061. }
  5062. set {
  5063. this[this.tableTypeMaterial.TypeMaterialColumn] = value;
  5064. }
  5065. }
  5066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5068. public decimal PercentDefect {
  5069. get {
  5070. try {
  5071. return ((decimal)(this[this.tableTypeMaterial.PercentDefectColumn]));
  5072. }
  5073. catch (global::System.InvalidCastException e) {
  5074. throw new global::System.Data.StrongTypingException("The value for column \'PercentDefect\' in table \'TypeMaterial\' is DBNull.", e);
  5075. }
  5076. }
  5077. set {
  5078. this[this.tableTypeMaterial.PercentDefectColumn] = value;
  5079. }
  5080. }
  5081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5083. public bool IsTypeMaterialNull() {
  5084. return this.IsNull(this.tableTypeMaterial.TypeMaterialColumn);
  5085. }
  5086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5088. public void SetTypeMaterialNull() {
  5089. this[this.tableTypeMaterial.TypeMaterialColumn] = global::System.Convert.DBNull;
  5090. }
  5091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5093. public bool IsPercentDefectNull() {
  5094. return this.IsNull(this.tableTypeMaterial.PercentDefectColumn);
  5095. }
  5096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5098. public void SetPercentDefectNull() {
  5099. this[this.tableTypeMaterial.PercentDefectColumn] = global::System.Convert.DBNull;
  5100. }
  5101. }
  5102. /// <summary>
  5103. ///Represents strongly named DataRow class.
  5104. ///</summary>
  5105. public partial class TypePartnerRow : global::System.Data.DataRow {
  5106. private TypePartnerDataTable tableTypePartner;
  5107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5108. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5109. internal TypePartnerRow(global::System.Data.DataRowBuilder rb) :
  5110. base(rb) {
  5111. this.tableTypePartner = ((TypePartnerDataTable)(this.Table));
  5112. }
  5113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5115. public int idTypePartner {
  5116. get {
  5117. return ((int)(this[this.tableTypePartner.idTypePartnerColumn]));
  5118. }
  5119. set {
  5120. this[this.tableTypePartner.idTypePartnerColumn] = value;
  5121. }
  5122. }
  5123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5125. public string Type {
  5126. get {
  5127. try {
  5128. return ((string)(this[this.tableTypePartner.TypeColumn]));
  5129. }
  5130. catch (global::System.InvalidCastException e) {
  5131. throw new global::System.Data.StrongTypingException("The value for column \'Type\' in table \'TypePartner\' is DBNull.", e);
  5132. }
  5133. }
  5134. set {
  5135. this[this.tableTypePartner.TypeColumn] = value;
  5136. }
  5137. }
  5138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5140. public bool IsTypeNull() {
  5141. return this.IsNull(this.tableTypePartner.TypeColumn);
  5142. }
  5143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5145. public void SetTypeNull() {
  5146. this[this.tableTypePartner.TypeColumn] = global::System.Convert.DBNull;
  5147. }
  5148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5150. public PartnerRow[] GetPartnerRows() {
  5151. if ((this.Table.ChildRelations["FK_Partner_TypePartner"] == null)) {
  5152. return new PartnerRow[0];
  5153. }
  5154. else {
  5155. return ((PartnerRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Partner_TypePartner"])));
  5156. }
  5157. }
  5158. }
  5159. /// <summary>
  5160. ///Represents strongly named DataRow class.
  5161. ///</summary>
  5162. public partial class TypeProductRow : global::System.Data.DataRow {
  5163. private TypeProductDataTable tableTypeProduct;
  5164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5166. internal TypeProductRow(global::System.Data.DataRowBuilder rb) :
  5167. base(rb) {
  5168. this.tableTypeProduct = ((TypeProductDataTable)(this.Table));
  5169. }
  5170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5171. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5172. public int idTypeProduct {
  5173. get {
  5174. return ((int)(this[this.tableTypeProduct.idTypeProductColumn]));
  5175. }
  5176. set {
  5177. this[this.tableTypeProduct.idTypeProductColumn] = value;
  5178. }
  5179. }
  5180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5182. public string TypeProduct {
  5183. get {
  5184. try {
  5185. return ((string)(this[this.tableTypeProduct.TypeProductColumn]));
  5186. }
  5187. catch (global::System.InvalidCastException e) {
  5188. throw new global::System.Data.StrongTypingException("The value for column \'TypeProduct\' in table \'TypeProduct\' is DBNull.", e);
  5189. }
  5190. }
  5191. set {
  5192. this[this.tableTypeProduct.TypeProductColumn] = value;
  5193. }
  5194. }
  5195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5197. public double Coefficient {
  5198. get {
  5199. try {
  5200. return ((double)(this[this.tableTypeProduct.CoefficientColumn]));
  5201. }
  5202. catch (global::System.InvalidCastException e) {
  5203. throw new global::System.Data.StrongTypingException("The value for column \'Coefficient\' in table \'TypeProduct\' is DBNull.", e);
  5204. }
  5205. }
  5206. set {
  5207. this[this.tableTypeProduct.CoefficientColumn] = value;
  5208. }
  5209. }
  5210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5212. public bool IsTypeProductNull() {
  5213. return this.IsNull(this.tableTypeProduct.TypeProductColumn);
  5214. }
  5215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5217. public void SetTypeProductNull() {
  5218. this[this.tableTypeProduct.TypeProductColumn] = global::System.Convert.DBNull;
  5219. }
  5220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5222. public bool IsCoefficientNull() {
  5223. return this.IsNull(this.tableTypeProduct.CoefficientColumn);
  5224. }
  5225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5227. public void SetCoefficientNull() {
  5228. this[this.tableTypeProduct.CoefficientColumn] = global::System.Convert.DBNull;
  5229. }
  5230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5232. public ProductsRow[] GetProductsRows() {
  5233. if ((this.Table.ChildRelations["FK_Products_TypeProduct"] == null)) {
  5234. return new ProductsRow[0];
  5235. }
  5236. else {
  5237. return ((ProductsRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Products_TypeProduct"])));
  5238. }
  5239. }
  5240. }
  5241. /// <summary>
  5242. ///Represents strongly named DataRow class.
  5243. ///</summary>
  5244. public partial class TypeForFilterRow : global::System.Data.DataRow {
  5245. private TypeForFilterDataTable tableTypeForFilter;
  5246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5248. internal TypeForFilterRow(global::System.Data.DataRowBuilder rb) :
  5249. base(rb) {
  5250. this.tableTypeForFilter = ((TypeForFilterDataTable)(this.Table));
  5251. }
  5252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5254. public string Type {
  5255. get {
  5256. try {
  5257. return ((string)(this[this.tableTypeForFilter.TypeColumn]));
  5258. }
  5259. catch (global::System.InvalidCastException e) {
  5260. throw new global::System.Data.StrongTypingException("The value for column \'Type\' in table \'TypeForFilter\' is DBNull.", e);
  5261. }
  5262. }
  5263. set {
  5264. this[this.tableTypeForFilter.TypeColumn] = value;
  5265. }
  5266. }
  5267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5269. public bool IsTypeNull() {
  5270. return this.IsNull(this.tableTypeForFilter.TypeColumn);
  5271. }
  5272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5274. public void SetTypeNull() {
  5275. this[this.tableTypeForFilter.TypeColumn] = global::System.Convert.DBNull;
  5276. }
  5277. }
  5278. /// <summary>
  5279. ///Row event argument class
  5280. ///</summary>
  5281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5282. public class CityRowChangeEvent : global::System.EventArgs {
  5283. private CityRow eventRow;
  5284. private global::System.Data.DataRowAction eventAction;
  5285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5287. public CityRowChangeEvent(CityRow row, global::System.Data.DataRowAction action) {
  5288. this.eventRow = row;
  5289. this.eventAction = action;
  5290. }
  5291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5293. public CityRow Row {
  5294. get {
  5295. return this.eventRow;
  5296. }
  5297. }
  5298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5300. public global::System.Data.DataRowAction Action {
  5301. get {
  5302. return this.eventAction;
  5303. }
  5304. }
  5305. }
  5306. /// <summary>
  5307. ///Row event argument class
  5308. ///</summary>
  5309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5310. public class IndexPartnerRowChangeEvent : global::System.EventArgs {
  5311. private IndexPartnerRow eventRow;
  5312. private global::System.Data.DataRowAction eventAction;
  5313. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5314. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5315. public IndexPartnerRowChangeEvent(IndexPartnerRow row, global::System.Data.DataRowAction action) {
  5316. this.eventRow = row;
  5317. this.eventAction = action;
  5318. }
  5319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5321. public IndexPartnerRow Row {
  5322. get {
  5323. return this.eventRow;
  5324. }
  5325. }
  5326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5327. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5328. public global::System.Data.DataRowAction Action {
  5329. get {
  5330. return this.eventAction;
  5331. }
  5332. }
  5333. }
  5334. /// <summary>
  5335. ///Row event argument class
  5336. ///</summary>
  5337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5338. public class ManagerRowChangeEvent : global::System.EventArgs {
  5339. private ManagerRow eventRow;
  5340. private global::System.Data.DataRowAction eventAction;
  5341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5343. public ManagerRowChangeEvent(ManagerRow row, global::System.Data.DataRowAction action) {
  5344. this.eventRow = row;
  5345. this.eventAction = action;
  5346. }
  5347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5349. public ManagerRow Row {
  5350. get {
  5351. return this.eventRow;
  5352. }
  5353. }
  5354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5355. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5356. public global::System.Data.DataRowAction Action {
  5357. get {
  5358. return this.eventAction;
  5359. }
  5360. }
  5361. }
  5362. /// <summary>
  5363. ///Row event argument class
  5364. ///</summary>
  5365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5366. public class PartnerRowChangeEvent : global::System.EventArgs {
  5367. private PartnerRow eventRow;
  5368. private global::System.Data.DataRowAction eventAction;
  5369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5371. public PartnerRowChangeEvent(PartnerRow row, global::System.Data.DataRowAction action) {
  5372. this.eventRow = row;
  5373. this.eventAction = action;
  5374. }
  5375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5377. public PartnerRow Row {
  5378. get {
  5379. return this.eventRow;
  5380. }
  5381. }
  5382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5384. public global::System.Data.DataRowAction Action {
  5385. get {
  5386. return this.eventAction;
  5387. }
  5388. }
  5389. }
  5390. /// <summary>
  5391. ///Row event argument class
  5392. ///</summary>
  5393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5394. public class ProductPartnerRowChangeEvent : global::System.EventArgs {
  5395. private ProductPartnerRow eventRow;
  5396. private global::System.Data.DataRowAction eventAction;
  5397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5399. public ProductPartnerRowChangeEvent(ProductPartnerRow row, global::System.Data.DataRowAction action) {
  5400. this.eventRow = row;
  5401. this.eventAction = action;
  5402. }
  5403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5405. public ProductPartnerRow Row {
  5406. get {
  5407. return this.eventRow;
  5408. }
  5409. }
  5410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5412. public global::System.Data.DataRowAction Action {
  5413. get {
  5414. return this.eventAction;
  5415. }
  5416. }
  5417. }
  5418. /// <summary>
  5419. ///Row event argument class
  5420. ///</summary>
  5421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5422. public class ProductsRowChangeEvent : global::System.EventArgs {
  5423. private ProductsRow eventRow;
  5424. private global::System.Data.DataRowAction eventAction;
  5425. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5427. public ProductsRowChangeEvent(ProductsRow row, global::System.Data.DataRowAction action) {
  5428. this.eventRow = row;
  5429. this.eventAction = action;
  5430. }
  5431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5433. public ProductsRow Row {
  5434. get {
  5435. return this.eventRow;
  5436. }
  5437. }
  5438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5440. public global::System.Data.DataRowAction Action {
  5441. get {
  5442. return this.eventAction;
  5443. }
  5444. }
  5445. }
  5446. /// <summary>
  5447. ///Row event argument class
  5448. ///</summary>
  5449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5450. public class RegionRowChangeEvent : global::System.EventArgs {
  5451. private RegionRow eventRow;
  5452. private global::System.Data.DataRowAction eventAction;
  5453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5454. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5455. public RegionRowChangeEvent(RegionRow row, global::System.Data.DataRowAction action) {
  5456. this.eventRow = row;
  5457. this.eventAction = action;
  5458. }
  5459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5461. public RegionRow Row {
  5462. get {
  5463. return this.eventRow;
  5464. }
  5465. }
  5466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5468. public global::System.Data.DataRowAction Action {
  5469. get {
  5470. return this.eventAction;
  5471. }
  5472. }
  5473. }
  5474. /// <summary>
  5475. ///Row event argument class
  5476. ///</summary>
  5477. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5478. public class StreetRowChangeEvent : global::System.EventArgs {
  5479. private StreetRow eventRow;
  5480. private global::System.Data.DataRowAction eventAction;
  5481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5483. public StreetRowChangeEvent(StreetRow row, global::System.Data.DataRowAction action) {
  5484. this.eventRow = row;
  5485. this.eventAction = action;
  5486. }
  5487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5489. public StreetRow Row {
  5490. get {
  5491. return this.eventRow;
  5492. }
  5493. }
  5494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5496. public global::System.Data.DataRowAction Action {
  5497. get {
  5498. return this.eventAction;
  5499. }
  5500. }
  5501. }
  5502. /// <summary>
  5503. ///Row event argument class
  5504. ///</summary>
  5505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5506. public class TypeMaterialRowChangeEvent : global::System.EventArgs {
  5507. private TypeMaterialRow eventRow;
  5508. private global::System.Data.DataRowAction eventAction;
  5509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5511. public TypeMaterialRowChangeEvent(TypeMaterialRow row, global::System.Data.DataRowAction action) {
  5512. this.eventRow = row;
  5513. this.eventAction = action;
  5514. }
  5515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5516. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5517. public TypeMaterialRow Row {
  5518. get {
  5519. return this.eventRow;
  5520. }
  5521. }
  5522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5524. public global::System.Data.DataRowAction Action {
  5525. get {
  5526. return this.eventAction;
  5527. }
  5528. }
  5529. }
  5530. /// <summary>
  5531. ///Row event argument class
  5532. ///</summary>
  5533. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5534. public class TypePartnerRowChangeEvent : global::System.EventArgs {
  5535. private TypePartnerRow eventRow;
  5536. private global::System.Data.DataRowAction eventAction;
  5537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5539. public TypePartnerRowChangeEvent(TypePartnerRow row, global::System.Data.DataRowAction action) {
  5540. this.eventRow = row;
  5541. this.eventAction = action;
  5542. }
  5543. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5544. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5545. public TypePartnerRow Row {
  5546. get {
  5547. return this.eventRow;
  5548. }
  5549. }
  5550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5552. public global::System.Data.DataRowAction Action {
  5553. get {
  5554. return this.eventAction;
  5555. }
  5556. }
  5557. }
  5558. /// <summary>
  5559. ///Row event argument class
  5560. ///</summary>
  5561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5562. public class TypeProductRowChangeEvent : global::System.EventArgs {
  5563. private TypeProductRow eventRow;
  5564. private global::System.Data.DataRowAction eventAction;
  5565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5567. public TypeProductRowChangeEvent(TypeProductRow row, global::System.Data.DataRowAction action) {
  5568. this.eventRow = row;
  5569. this.eventAction = action;
  5570. }
  5571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5573. public TypeProductRow Row {
  5574. get {
  5575. return this.eventRow;
  5576. }
  5577. }
  5578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5580. public global::System.Data.DataRowAction Action {
  5581. get {
  5582. return this.eventAction;
  5583. }
  5584. }
  5585. }
  5586. /// <summary>
  5587. ///Row event argument class
  5588. ///</summary>
  5589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5590. public class TypeForFilterRowChangeEvent : global::System.EventArgs {
  5591. private TypeForFilterRow eventRow;
  5592. private global::System.Data.DataRowAction eventAction;
  5593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5595. public TypeForFilterRowChangeEvent(TypeForFilterRow row, global::System.Data.DataRowAction action) {
  5596. this.eventRow = row;
  5597. this.eventAction = action;
  5598. }
  5599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5600. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5601. public TypeForFilterRow Row {
  5602. get {
  5603. return this.eventRow;
  5604. }
  5605. }
  5606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5608. public global::System.Data.DataRowAction Action {
  5609. get {
  5610. return this.eventAction;
  5611. }
  5612. }
  5613. }
  5614. }
  5615. }
  5616. namespace СУБД_Альфапол.dbAlphapolAGDataSetTableAdapters {
  5617. /// <summary>
  5618. ///Represents the connection and commands used to retrieve and save data.
  5619. ///</summary>
  5620. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5621. [global::System.ComponentModel.ToolboxItem(true)]
  5622. [global::System.ComponentModel.DataObjectAttribute(true)]
  5623. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5624. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5625. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5626. public partial class CityTableAdapter : global::System.ComponentModel.Component {
  5627. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5628. private global::System.Data.SqlClient.SqlConnection _connection;
  5629. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5630. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5631. private bool _clearBeforeFill;
  5632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5634. public CityTableAdapter() {
  5635. this.ClearBeforeFill = true;
  5636. }
  5637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5639. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5640. get {
  5641. if ((this._adapter == null)) {
  5642. this.InitAdapter();
  5643. }
  5644. return this._adapter;
  5645. }
  5646. }
  5647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5649. internal global::System.Data.SqlClient.SqlConnection Connection {
  5650. get {
  5651. if ((this._connection == null)) {
  5652. this.InitConnection();
  5653. }
  5654. return this._connection;
  5655. }
  5656. set {
  5657. this._connection = value;
  5658. if ((this.Adapter.InsertCommand != null)) {
  5659. this.Adapter.InsertCommand.Connection = value;
  5660. }
  5661. if ((this.Adapter.DeleteCommand != null)) {
  5662. this.Adapter.DeleteCommand.Connection = value;
  5663. }
  5664. if ((this.Adapter.UpdateCommand != null)) {
  5665. this.Adapter.UpdateCommand.Connection = value;
  5666. }
  5667. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5668. if ((this.CommandCollection[i] != null)) {
  5669. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5670. }
  5671. }
  5672. }
  5673. }
  5674. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5676. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5677. get {
  5678. return this._transaction;
  5679. }
  5680. set {
  5681. this._transaction = value;
  5682. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5683. this.CommandCollection[i].Transaction = this._transaction;
  5684. }
  5685. if (((this.Adapter != null)
  5686. && (this.Adapter.DeleteCommand != null))) {
  5687. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5688. }
  5689. if (((this.Adapter != null)
  5690. && (this.Adapter.InsertCommand != null))) {
  5691. this.Adapter.InsertCommand.Transaction = this._transaction;
  5692. }
  5693. if (((this.Adapter != null)
  5694. && (this.Adapter.UpdateCommand != null))) {
  5695. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5696. }
  5697. }
  5698. }
  5699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5701. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5702. get {
  5703. if ((this._commandCollection == null)) {
  5704. this.InitCommandCollection();
  5705. }
  5706. return this._commandCollection;
  5707. }
  5708. }
  5709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5711. public bool ClearBeforeFill {
  5712. get {
  5713. return this._clearBeforeFill;
  5714. }
  5715. set {
  5716. this._clearBeforeFill = value;
  5717. }
  5718. }
  5719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5721. private void InitAdapter() {
  5722. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5723. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5724. tableMapping.SourceTable = "Table";
  5725. tableMapping.DataSetTable = "City";
  5726. tableMapping.ColumnMappings.Add("idCity", "idCity");
  5727. tableMapping.ColumnMappings.Add("City", "City");
  5728. this._adapter.TableMappings.Add(tableMapping);
  5729. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5730. this._adapter.DeleteCommand.Connection = this.Connection;
  5731. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[City] WHERE (([idCity] = @Original_idCity) AND ((@IsNull_City " +
  5732. "= 1 AND [City] IS NULL) OR ([City] = @Original_City)))";
  5733. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5734. 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, "", "", ""));
  5735. 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, "", "", ""));
  5736. 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, "", "", ""));
  5737. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5738. this._adapter.InsertCommand.Connection = this.Connection;
  5739. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[City] ([City]) VALUES (@City);\r\nSELECT idCity, City FROM City " +
  5740. "WHERE (idCity = SCOPE_IDENTITY())";
  5741. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5742. 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, "", "", ""));
  5743. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5744. this._adapter.UpdateCommand.Connection = this.Connection;
  5745. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[City] SET [City] = @City WHERE (([idCity] = @Original_idCity) AND (" +
  5746. "(@IsNull_City = 1 AND [City] IS NULL) OR ([City] = @Original_City)));\r\nSELECT id" +
  5747. "City, City FROM City WHERE (idCity = @idCity)";
  5748. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5749. 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, "", "", ""));
  5750. 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, "", "", ""));
  5751. 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, "", "", ""));
  5752. 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, "", "", ""));
  5753. 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, "", "", ""));
  5754. }
  5755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5757. private void InitConnection() {
  5758. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5759. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.dbAlphapolAGConnectionString;
  5760. }
  5761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5763. private void InitCommandCollection() {
  5764. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5765. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5766. this._commandCollection[0].Connection = this.Connection;
  5767. this._commandCollection[0].CommandText = "SELECT idCity, City FROM dbo.City";
  5768. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5769. }
  5770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5772. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5773. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5774. public virtual int Fill(dbAlphapolAGDataSet.CityDataTable dataTable) {
  5775. this.Adapter.SelectCommand = this.CommandCollection[0];
  5776. if ((this.ClearBeforeFill == true)) {
  5777. dataTable.Clear();
  5778. }
  5779. int returnValue = this.Adapter.Fill(dataTable);
  5780. return returnValue;
  5781. }
  5782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5784. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5785. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5786. public virtual dbAlphapolAGDataSet.CityDataTable GetData() {
  5787. this.Adapter.SelectCommand = this.CommandCollection[0];
  5788. dbAlphapolAGDataSet.CityDataTable dataTable = new dbAlphapolAGDataSet.CityDataTable();
  5789. this.Adapter.Fill(dataTable);
  5790. return dataTable;
  5791. }
  5792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5794. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5795. public virtual int Update(dbAlphapolAGDataSet.CityDataTable dataTable) {
  5796. return this.Adapter.Update(dataTable);
  5797. }
  5798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5800. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5801. public virtual int Update(dbAlphapolAGDataSet dataSet) {
  5802. return this.Adapter.Update(dataSet, "City");
  5803. }
  5804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5806. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5807. public virtual int Update(global::System.Data.DataRow dataRow) {
  5808. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5809. dataRow});
  5810. }
  5811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5813. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5814. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5815. return this.Adapter.Update(dataRows);
  5816. }
  5817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5818. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5819. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5820. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5821. public virtual int Delete(int Original_idCity, string Original_City) {
  5822. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idCity));
  5823. if ((Original_City == null)) {
  5824. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  5825. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  5826. }
  5827. else {
  5828. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  5829. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_City));
  5830. }
  5831. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5832. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5833. != global::System.Data.ConnectionState.Open)) {
  5834. this.Adapter.DeleteCommand.Connection.Open();
  5835. }
  5836. try {
  5837. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5838. return returnValue;
  5839. }
  5840. finally {
  5841. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5842. this.Adapter.DeleteCommand.Connection.Close();
  5843. }
  5844. }
  5845. }
  5846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5848. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5849. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5850. public virtual int Insert(string City) {
  5851. if ((City == null)) {
  5852. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  5853. }
  5854. else {
  5855. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(City));
  5856. }
  5857. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5858. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5859. != global::System.Data.ConnectionState.Open)) {
  5860. this.Adapter.InsertCommand.Connection.Open();
  5861. }
  5862. try {
  5863. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5864. return returnValue;
  5865. }
  5866. finally {
  5867. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5868. this.Adapter.InsertCommand.Connection.Close();
  5869. }
  5870. }
  5871. }
  5872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5874. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5875. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5876. public virtual int Update(string City, int Original_idCity, string Original_City, int idCity) {
  5877. if ((City == null)) {
  5878. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  5879. }
  5880. else {
  5881. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(City));
  5882. }
  5883. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_idCity));
  5884. if ((Original_City == null)) {
  5885. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  5886. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  5887. }
  5888. else {
  5889. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  5890. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_City));
  5891. }
  5892. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(idCity));
  5893. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5894. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5895. != global::System.Data.ConnectionState.Open)) {
  5896. this.Adapter.UpdateCommand.Connection.Open();
  5897. }
  5898. try {
  5899. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5900. return returnValue;
  5901. }
  5902. finally {
  5903. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5904. this.Adapter.UpdateCommand.Connection.Close();
  5905. }
  5906. }
  5907. }
  5908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5910. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5911. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5912. public virtual int Update(string City, int Original_idCity, string Original_City) {
  5913. return this.Update(City, Original_idCity, Original_City, Original_idCity);
  5914. }
  5915. }
  5916. /// <summary>
  5917. ///Represents the connection and commands used to retrieve and save data.
  5918. ///</summary>
  5919. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5920. [global::System.ComponentModel.ToolboxItem(true)]
  5921. [global::System.ComponentModel.DataObjectAttribute(true)]
  5922. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5923. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5924. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5925. public partial class IndexPartnerTableAdapter : global::System.ComponentModel.Component {
  5926. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5927. private global::System.Data.SqlClient.SqlConnection _connection;
  5928. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5929. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5930. private bool _clearBeforeFill;
  5931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5933. public IndexPartnerTableAdapter() {
  5934. this.ClearBeforeFill = true;
  5935. }
  5936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5938. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5939. get {
  5940. if ((this._adapter == null)) {
  5941. this.InitAdapter();
  5942. }
  5943. return this._adapter;
  5944. }
  5945. }
  5946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5947. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5948. internal global::System.Data.SqlClient.SqlConnection Connection {
  5949. get {
  5950. if ((this._connection == null)) {
  5951. this.InitConnection();
  5952. }
  5953. return this._connection;
  5954. }
  5955. set {
  5956. this._connection = value;
  5957. if ((this.Adapter.InsertCommand != null)) {
  5958. this.Adapter.InsertCommand.Connection = value;
  5959. }
  5960. if ((this.Adapter.DeleteCommand != null)) {
  5961. this.Adapter.DeleteCommand.Connection = value;
  5962. }
  5963. if ((this.Adapter.UpdateCommand != null)) {
  5964. this.Adapter.UpdateCommand.Connection = value;
  5965. }
  5966. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5967. if ((this.CommandCollection[i] != null)) {
  5968. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5969. }
  5970. }
  5971. }
  5972. }
  5973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5975. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5976. get {
  5977. return this._transaction;
  5978. }
  5979. set {
  5980. this._transaction = value;
  5981. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5982. this.CommandCollection[i].Transaction = this._transaction;
  5983. }
  5984. if (((this.Adapter != null)
  5985. && (this.Adapter.DeleteCommand != null))) {
  5986. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5987. }
  5988. if (((this.Adapter != null)
  5989. && (this.Adapter.InsertCommand != null))) {
  5990. this.Adapter.InsertCommand.Transaction = this._transaction;
  5991. }
  5992. if (((this.Adapter != null)
  5993. && (this.Adapter.UpdateCommand != null))) {
  5994. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5995. }
  5996. }
  5997. }
  5998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6000. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6001. get {
  6002. if ((this._commandCollection == null)) {
  6003. this.InitCommandCollection();
  6004. }
  6005. return this._commandCollection;
  6006. }
  6007. }
  6008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6010. public bool ClearBeforeFill {
  6011. get {
  6012. return this._clearBeforeFill;
  6013. }
  6014. set {
  6015. this._clearBeforeFill = value;
  6016. }
  6017. }
  6018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6020. private void InitAdapter() {
  6021. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6022. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6023. tableMapping.SourceTable = "Table";
  6024. tableMapping.DataSetTable = "IndexPartner";
  6025. tableMapping.ColumnMappings.Add("idIndex", "idIndex");
  6026. tableMapping.ColumnMappings.Add("CodePartner", "CodePartner");
  6027. this._adapter.TableMappings.Add(tableMapping);
  6028. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6029. this._adapter.DeleteCommand.Connection = this.Connection;
  6030. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[IndexPartner] WHERE (([idIndex] = @Original_idIndex) AND ((@Is" +
  6031. "Null_CodePartner = 1 AND [CodePartner] IS NULL) OR ([CodePartner] = @Original_Co" +
  6032. "dePartner)))";
  6033. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6034. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idIndex", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idIndex", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6035. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodePartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodePartner", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6036. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodePartner", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodePartner", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6037. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6038. this._adapter.InsertCommand.Connection = this.Connection;
  6039. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[IndexPartner] ([CodePartner]) VALUES (@CodePartner);\r\nSELECT i" +
  6040. "dIndex, CodePartner FROM IndexPartner WHERE (idIndex = SCOPE_IDENTITY())";
  6041. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6042. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodePartner", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodePartner", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6043. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6044. this._adapter.UpdateCommand.Connection = this.Connection;
  6045. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[IndexPartner] SET [CodePartner] = @CodePartner WHERE (([idIndex] = @Original_idIndex) AND ((@IsNull_CodePartner = 1 AND [CodePartner] IS NULL) OR ([CodePartner] = @Original_CodePartner)));
  6046. SELECT idIndex, CodePartner FROM IndexPartner WHERE (idIndex = @idIndex)";
  6047. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6048. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodePartner", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodePartner", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6049. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idIndex", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idIndex", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6050. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodePartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodePartner", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6051. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodePartner", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodePartner", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6052. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idIndex", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idIndex", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6053. }
  6054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6056. private void InitConnection() {
  6057. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6058. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.dbAlphapolAGConnectionString;
  6059. }
  6060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6062. private void InitCommandCollection() {
  6063. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6064. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6065. this._commandCollection[0].Connection = this.Connection;
  6066. this._commandCollection[0].CommandText = "SELECT idIndex, CodePartner FROM dbo.IndexPartner";
  6067. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6068. }
  6069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6070. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6071. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6072. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6073. public virtual int Fill(dbAlphapolAGDataSet.IndexPartnerDataTable dataTable) {
  6074. this.Adapter.SelectCommand = this.CommandCollection[0];
  6075. if ((this.ClearBeforeFill == true)) {
  6076. dataTable.Clear();
  6077. }
  6078. int returnValue = this.Adapter.Fill(dataTable);
  6079. return returnValue;
  6080. }
  6081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6083. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6084. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6085. public virtual dbAlphapolAGDataSet.IndexPartnerDataTable GetData() {
  6086. this.Adapter.SelectCommand = this.CommandCollection[0];
  6087. dbAlphapolAGDataSet.IndexPartnerDataTable dataTable = new dbAlphapolAGDataSet.IndexPartnerDataTable();
  6088. this.Adapter.Fill(dataTable);
  6089. return dataTable;
  6090. }
  6091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6093. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6094. public virtual int Update(dbAlphapolAGDataSet.IndexPartnerDataTable dataTable) {
  6095. return this.Adapter.Update(dataTable);
  6096. }
  6097. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6098. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6099. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6100. public virtual int Update(dbAlphapolAGDataSet dataSet) {
  6101. return this.Adapter.Update(dataSet, "IndexPartner");
  6102. }
  6103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6105. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6106. public virtual int Update(global::System.Data.DataRow dataRow) {
  6107. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6108. dataRow});
  6109. }
  6110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6112. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6113. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6114. return this.Adapter.Update(dataRows);
  6115. }
  6116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6118. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6119. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6120. public virtual int Delete(int Original_idIndex, string Original_CodePartner) {
  6121. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idIndex));
  6122. if ((Original_CodePartner == null)) {
  6123. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6124. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6125. }
  6126. else {
  6127. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6128. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_CodePartner));
  6129. }
  6130. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6131. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6132. != global::System.Data.ConnectionState.Open)) {
  6133. this.Adapter.DeleteCommand.Connection.Open();
  6134. }
  6135. try {
  6136. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6137. return returnValue;
  6138. }
  6139. finally {
  6140. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6141. this.Adapter.DeleteCommand.Connection.Close();
  6142. }
  6143. }
  6144. }
  6145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6147. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6148. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6149. public virtual int Insert(string CodePartner) {
  6150. if ((CodePartner == null)) {
  6151. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6152. }
  6153. else {
  6154. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodePartner));
  6155. }
  6156. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6157. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6158. != global::System.Data.ConnectionState.Open)) {
  6159. this.Adapter.InsertCommand.Connection.Open();
  6160. }
  6161. try {
  6162. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6163. return returnValue;
  6164. }
  6165. finally {
  6166. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6167. this.Adapter.InsertCommand.Connection.Close();
  6168. }
  6169. }
  6170. }
  6171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6173. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6174. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6175. public virtual int Update(string CodePartner, int Original_idIndex, string Original_CodePartner, int idIndex) {
  6176. if ((CodePartner == null)) {
  6177. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6178. }
  6179. else {
  6180. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodePartner));
  6181. }
  6182. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_idIndex));
  6183. if ((Original_CodePartner == null)) {
  6184. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  6185. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6186. }
  6187. else {
  6188. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  6189. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_CodePartner));
  6190. }
  6191. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(idIndex));
  6192. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6193. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6194. != global::System.Data.ConnectionState.Open)) {
  6195. this.Adapter.UpdateCommand.Connection.Open();
  6196. }
  6197. try {
  6198. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6199. return returnValue;
  6200. }
  6201. finally {
  6202. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6203. this.Adapter.UpdateCommand.Connection.Close();
  6204. }
  6205. }
  6206. }
  6207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6209. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6210. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6211. public virtual int Update(string CodePartner, int Original_idIndex, string Original_CodePartner) {
  6212. return this.Update(CodePartner, Original_idIndex, Original_CodePartner, Original_idIndex);
  6213. }
  6214. }
  6215. /// <summary>
  6216. ///Represents the connection and commands used to retrieve and save data.
  6217. ///</summary>
  6218. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6219. [global::System.ComponentModel.ToolboxItem(true)]
  6220. [global::System.ComponentModel.DataObjectAttribute(true)]
  6221. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6222. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6223. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6224. public partial class ManagerTableAdapter : global::System.ComponentModel.Component {
  6225. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6226. private global::System.Data.SqlClient.SqlConnection _connection;
  6227. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6228. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6229. private bool _clearBeforeFill;
  6230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6232. public ManagerTableAdapter() {
  6233. this.ClearBeforeFill = true;
  6234. }
  6235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6236. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6237. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6238. get {
  6239. if ((this._adapter == null)) {
  6240. this.InitAdapter();
  6241. }
  6242. return this._adapter;
  6243. }
  6244. }
  6245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6247. internal global::System.Data.SqlClient.SqlConnection Connection {
  6248. get {
  6249. if ((this._connection == null)) {
  6250. this.InitConnection();
  6251. }
  6252. return this._connection;
  6253. }
  6254. set {
  6255. this._connection = value;
  6256. if ((this.Adapter.InsertCommand != null)) {
  6257. this.Adapter.InsertCommand.Connection = value;
  6258. }
  6259. if ((this.Adapter.DeleteCommand != null)) {
  6260. this.Adapter.DeleteCommand.Connection = value;
  6261. }
  6262. if ((this.Adapter.UpdateCommand != null)) {
  6263. this.Adapter.UpdateCommand.Connection = value;
  6264. }
  6265. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6266. if ((this.CommandCollection[i] != null)) {
  6267. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6268. }
  6269. }
  6270. }
  6271. }
  6272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6274. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6275. get {
  6276. return this._transaction;
  6277. }
  6278. set {
  6279. this._transaction = value;
  6280. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6281. this.CommandCollection[i].Transaction = this._transaction;
  6282. }
  6283. if (((this.Adapter != null)
  6284. && (this.Adapter.DeleteCommand != null))) {
  6285. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6286. }
  6287. if (((this.Adapter != null)
  6288. && (this.Adapter.InsertCommand != null))) {
  6289. this.Adapter.InsertCommand.Transaction = this._transaction;
  6290. }
  6291. if (((this.Adapter != null)
  6292. && (this.Adapter.UpdateCommand != null))) {
  6293. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6294. }
  6295. }
  6296. }
  6297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6299. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6300. get {
  6301. if ((this._commandCollection == null)) {
  6302. this.InitCommandCollection();
  6303. }
  6304. return this._commandCollection;
  6305. }
  6306. }
  6307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6309. public bool ClearBeforeFill {
  6310. get {
  6311. return this._clearBeforeFill;
  6312. }
  6313. set {
  6314. this._clearBeforeFill = value;
  6315. }
  6316. }
  6317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6319. private void InitAdapter() {
  6320. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6321. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6322. tableMapping.SourceTable = "Table";
  6323. tableMapping.DataSetTable = "Manager";
  6324. tableMapping.ColumnMappings.Add("idManager", "idManager");
  6325. tableMapping.ColumnMappings.Add("Surname", "Surname");
  6326. tableMapping.ColumnMappings.Add("Name", "Name");
  6327. tableMapping.ColumnMappings.Add("Patronymic", "Patronymic");
  6328. tableMapping.ColumnMappings.Add("Login", "Login");
  6329. tableMapping.ColumnMappings.Add("Password", "Password");
  6330. tableMapping.ColumnMappings.Add("Photo", "Photo");
  6331. this._adapter.TableMappings.Add(tableMapping);
  6332. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6333. this._adapter.DeleteCommand.Connection = this.Connection;
  6334. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Manager] WHERE (([idManager] = @Original_idManager) AND ((@IsNull_Surname = 1 AND [Surname] IS NULL) OR ([Surname] = @Original_Surname)) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) AND ((@IsNull_Login = 1 AND [Login] IS NULL) OR ([Login] = @Original_Login)) AND ((@IsNull_Password = 1 AND [Password] IS NULL) OR ([Password] = @Original_Password)) AND ((@IsNull_Photo = 1 AND [Photo] IS NULL) OR ([Photo] = @Original_Photo)))";
  6335. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6336. 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, "", "", ""));
  6337. 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, "", "", ""));
  6338. 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, "", "", ""));
  6339. 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, "", "", ""));
  6340. 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, "", "", ""));
  6341. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Patronymic", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6342. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6343. 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, "", "", ""));
  6344. 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, "", "", ""));
  6345. 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, "", "", ""));
  6346. 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, "", "", ""));
  6347. 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, "", "", ""));
  6348. 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, "", "", ""));
  6349. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6350. this._adapter.InsertCommand.Connection = this.Connection;
  6351. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Manager] ([Surname], [Name], [Patronymic], [Login], [Password], [Photo]) VALUES (@Surname, @Name, @Patronymic, @Login, @Password, @Photo);
  6352. SELECT idManager, Surname, Name, Patronymic, Login, Password, Photo FROM Manager WHERE (idManager = SCOPE_IDENTITY())";
  6353. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6354. 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, "", "", ""));
  6355. 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, "", "", ""));
  6356. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6357. 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, "", "", ""));
  6358. 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, "", "", ""));
  6359. 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, "", "", ""));
  6360. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6361. this._adapter.UpdateCommand.Connection = this.Connection;
  6362. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Manager] SET [Surname] = @Surname, [Name] = @Name, [Patronymic] = @Patronymic, [Login] = @Login, [Password] = @Password, [Photo] = @Photo WHERE (([idManager] = @Original_idManager) AND ((@IsNull_Surname = 1 AND [Surname] IS NULL) OR ([Surname] = @Original_Surname)) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) AND ((@IsNull_Login = 1 AND [Login] IS NULL) OR ([Login] = @Original_Login)) AND ((@IsNull_Password = 1 AND [Password] IS NULL) OR ([Password] = @Original_Password)) AND ((@IsNull_Photo = 1 AND [Photo] IS NULL) OR ([Photo] = @Original_Photo)));
  6363. SELECT idManager, Surname, Name, Patronymic, Login, Password, Photo FROM Manager WHERE (idManager = @idManager)";
  6364. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6365. 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, "", "", ""));
  6366. 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, "", "", ""));
  6367. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6368. 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, "", "", ""));
  6369. 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, "", "", ""));
  6370. 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, "", "", ""));
  6371. 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, "", "", ""));
  6372. 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, "", "", ""));
  6373. 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, "", "", ""));
  6374. 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, "", "", ""));
  6375. 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, "", "", ""));
  6376. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Patronymic", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6377. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6378. 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, "", "", ""));
  6379. 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, "", "", ""));
  6380. 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, "", "", ""));
  6381. 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, "", "", ""));
  6382. 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, "", "", ""));
  6383. 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, "", "", ""));
  6384. 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, "", "", ""));
  6385. }
  6386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6388. private void InitConnection() {
  6389. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6390. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.dbAlphapolAGConnectionString;
  6391. }
  6392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6394. private void InitCommandCollection() {
  6395. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6396. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6397. this._commandCollection[0].Connection = this.Connection;
  6398. this._commandCollection[0].CommandText = "SELECT idManager, Surname, Name, Patronymic, Login, Password, Photo FROM dbo.Mana" +
  6399. "ger";
  6400. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6401. }
  6402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6403. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6404. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6405. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6406. public virtual int Fill(dbAlphapolAGDataSet.ManagerDataTable dataTable) {
  6407. this.Adapter.SelectCommand = this.CommandCollection[0];
  6408. if ((this.ClearBeforeFill == true)) {
  6409. dataTable.Clear();
  6410. }
  6411. int returnValue = this.Adapter.Fill(dataTable);
  6412. return returnValue;
  6413. }
  6414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6416. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6417. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6418. public virtual dbAlphapolAGDataSet.ManagerDataTable GetData() {
  6419. this.Adapter.SelectCommand = this.CommandCollection[0];
  6420. dbAlphapolAGDataSet.ManagerDataTable dataTable = new dbAlphapolAGDataSet.ManagerDataTable();
  6421. this.Adapter.Fill(dataTable);
  6422. return dataTable;
  6423. }
  6424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6426. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6427. public virtual int Update(dbAlphapolAGDataSet.ManagerDataTable dataTable) {
  6428. return this.Adapter.Update(dataTable);
  6429. }
  6430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6432. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6433. public virtual int Update(dbAlphapolAGDataSet dataSet) {
  6434. return this.Adapter.Update(dataSet, "Manager");
  6435. }
  6436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6438. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6439. public virtual int Update(global::System.Data.DataRow dataRow) {
  6440. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6441. dataRow});
  6442. }
  6443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6444. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6445. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6446. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6447. return this.Adapter.Update(dataRows);
  6448. }
  6449. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6450. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6451. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6452. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6453. public virtual int Delete(int Original_idManager, string Original_Surname, string Original_Name, string Original_Patronymic, string Original_Login, string Original_Password, string Original_Photo) {
  6454. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idManager));
  6455. if ((Original_Surname == null)) {
  6456. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6457. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6458. }
  6459. else {
  6460. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6461. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Surname));
  6462. }
  6463. if ((Original_Name == null)) {
  6464. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  6465. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  6466. }
  6467. else {
  6468. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  6469. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Name));
  6470. }
  6471. if ((Original_Patronymic == null)) {
  6472. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  6473. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  6474. }
  6475. else {
  6476. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  6477. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Patronymic));
  6478. }
  6479. if ((Original_Login == null)) {
  6480. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  6481. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  6482. }
  6483. else {
  6484. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  6485. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Login));
  6486. }
  6487. if ((Original_Password == null)) {
  6488. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  6489. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  6490. }
  6491. else {
  6492. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  6493. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Password));
  6494. }
  6495. if ((Original_Photo == null)) {
  6496. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  6497. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  6498. }
  6499. else {
  6500. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  6501. this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_Photo));
  6502. }
  6503. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6504. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6505. != global::System.Data.ConnectionState.Open)) {
  6506. this.Adapter.DeleteCommand.Connection.Open();
  6507. }
  6508. try {
  6509. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6510. return returnValue;
  6511. }
  6512. finally {
  6513. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6514. this.Adapter.DeleteCommand.Connection.Close();
  6515. }
  6516. }
  6517. }
  6518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6520. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6521. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6522. public virtual int Insert(string Surname, string Name, string Patronymic, string Login, string Password, string Photo) {
  6523. if ((Surname == null)) {
  6524. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6525. }
  6526. else {
  6527. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Surname));
  6528. }
  6529. if ((Name == null)) {
  6530. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  6531. }
  6532. else {
  6533. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Name));
  6534. }
  6535. if ((Patronymic == null)) {
  6536. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6537. }
  6538. else {
  6539. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Patronymic));
  6540. }
  6541. if ((Login == null)) {
  6542. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  6543. }
  6544. else {
  6545. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Login));
  6546. }
  6547. if ((Password == null)) {
  6548. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  6549. }
  6550. else {
  6551. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Password));
  6552. }
  6553. if ((Photo == null)) {
  6554. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  6555. }
  6556. else {
  6557. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Photo));
  6558. }
  6559. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6560. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6561. != global::System.Data.ConnectionState.Open)) {
  6562. this.Adapter.InsertCommand.Connection.Open();
  6563. }
  6564. try {
  6565. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6566. return returnValue;
  6567. }
  6568. finally {
  6569. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6570. this.Adapter.InsertCommand.Connection.Close();
  6571. }
  6572. }
  6573. }
  6574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6576. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6577. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6578. public virtual int Update(string Surname, string Name, string Patronymic, string Login, string Password, string Photo, int Original_idManager, string Original_Surname, string Original_Name, string Original_Patronymic, string Original_Login, string Original_Password, string Original_Photo, int idManager) {
  6579. if ((Surname == null)) {
  6580. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6581. }
  6582. else {
  6583. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Surname));
  6584. }
  6585. if ((Name == null)) {
  6586. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  6587. }
  6588. else {
  6589. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Name));
  6590. }
  6591. if ((Patronymic == null)) {
  6592. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  6593. }
  6594. else {
  6595. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Patronymic));
  6596. }
  6597. if ((Login == null)) {
  6598. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6599. }
  6600. else {
  6601. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Login));
  6602. }
  6603. if ((Password == null)) {
  6604. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  6605. }
  6606. else {
  6607. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Password));
  6608. }
  6609. if ((Photo == null)) {
  6610. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  6611. }
  6612. else {
  6613. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Photo));
  6614. }
  6615. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_idManager));
  6616. if ((Original_Surname == null)) {
  6617. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  6618. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  6619. }
  6620. else {
  6621. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  6622. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Surname));
  6623. }
  6624. if ((Original_Name == null)) {
  6625. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  6626. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  6627. }
  6628. else {
  6629. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  6630. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Name));
  6631. }
  6632. if ((Original_Patronymic == null)) {
  6633. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  6634. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  6635. }
  6636. else {
  6637. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  6638. this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_Patronymic));
  6639. }
  6640. if ((Original_Login == null)) {
  6641. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  6642. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  6643. }
  6644. else {
  6645. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  6646. this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_Login));
  6647. }
  6648. if ((Original_Password == null)) {
  6649. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  6650. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  6651. }
  6652. else {
  6653. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  6654. this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_Password));
  6655. }
  6656. if ((Original_Photo == null)) {
  6657. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
  6658. this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
  6659. }
  6660. else {
  6661. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
  6662. this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_Photo));
  6663. }
  6664. this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(idManager));
  6665. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6666. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6667. != global::System.Data.ConnectionState.Open)) {
  6668. this.Adapter.UpdateCommand.Connection.Open();
  6669. }
  6670. try {
  6671. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6672. return returnValue;
  6673. }
  6674. finally {
  6675. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6676. this.Adapter.UpdateCommand.Connection.Close();
  6677. }
  6678. }
  6679. }
  6680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6682. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6683. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6684. public virtual int Update(string Surname, string Name, string Patronymic, string Login, string Password, string Photo, int Original_idManager, string Original_Surname, string Original_Name, string Original_Patronymic, string Original_Login, string Original_Password, string Original_Photo) {
  6685. return this.Update(Surname, Name, Patronymic, Login, Password, Photo, Original_idManager, Original_Surname, Original_Name, Original_Patronymic, Original_Login, Original_Password, Original_Photo, Original_idManager);
  6686. }
  6687. }
  6688. /// <summary>
  6689. ///Represents the connection and commands used to retrieve and save data.
  6690. ///</summary>
  6691. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6692. [global::System.ComponentModel.ToolboxItem(true)]
  6693. [global::System.ComponentModel.DataObjectAttribute(true)]
  6694. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6695. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6696. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6697. public partial class PartnerTableAdapter : global::System.ComponentModel.Component {
  6698. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6699. private global::System.Data.SqlClient.SqlConnection _connection;
  6700. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6701. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6702. private bool _clearBeforeFill;
  6703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6705. public PartnerTableAdapter() {
  6706. this.ClearBeforeFill = true;
  6707. }
  6708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6710. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6711. get {
  6712. if ((this._adapter == null)) {
  6713. this.InitAdapter();
  6714. }
  6715. return this._adapter;
  6716. }
  6717. }
  6718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6720. internal global::System.Data.SqlClient.SqlConnection Connection {
  6721. get {
  6722. if ((this._connection == null)) {
  6723. this.InitConnection();
  6724. }
  6725. return this._connection;
  6726. }
  6727. set {
  6728. this._connection = value;
  6729. if ((this.Adapter.InsertCommand != null)) {
  6730. this.Adapter.InsertCommand.Connection = value;
  6731. }
  6732. if ((this.Adapter.DeleteCommand != null)) {
  6733. this.Adapter.DeleteCommand.Connection = value;
  6734. }
  6735. if ((this.Adapter.UpdateCommand != null)) {
  6736. this.Adapter.UpdateCommand.Connection = value;
  6737. }
  6738. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6739. if ((this.CommandCollection[i] != null)) {
  6740. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6741. }
  6742. }
  6743. }
  6744. }
  6745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6747. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6748. get {
  6749. return this._transaction;
  6750. }
  6751. set {
  6752. this._transaction = value;
  6753. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6754. this.CommandCollection[i].Transaction = this._transaction;
  6755. }
  6756. if (((this.Adapter != null)
  6757. && (this.Adapter.DeleteCommand != null))) {
  6758. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6759. }
  6760. if (((this.Adapter != null)
  6761. && (this.Adapter.InsertCommand != null))) {
  6762. this.Adapter.InsertCommand.Transaction = this._transaction;
  6763. }
  6764. if (((this.Adapter != null)
  6765. && (this.Adapter.UpdateCommand != null))) {
  6766. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6767. }
  6768. }
  6769. }
  6770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6772. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6773. get {
  6774. if ((this._commandCollection == null)) {
  6775. this.InitCommandCollection();
  6776. }
  6777. return this._commandCollection;
  6778. }
  6779. }
  6780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6782. public bool ClearBeforeFill {
  6783. get {
  6784. return this._clearBeforeFill;
  6785. }
  6786. set {
  6787. this._clearBeforeFill = value;
  6788. }
  6789. }
  6790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6792. private void InitAdapter() {
  6793. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6794. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6795. tableMapping.SourceTable = "Table";
  6796. tableMapping.DataSetTable = "Partner";
  6797. tableMapping.ColumnMappings.Add("idPartner", "idPartner");
  6798. tableMapping.ColumnMappings.Add("Surname", "Surname");
  6799. tableMapping.ColumnMappings.Add("Name", "Name");
  6800. tableMapping.ColumnMappings.Add("Patronymic", "Patronymic");
  6801. tableMapping.ColumnMappings.Add("Email", "Email");
  6802. tableMapping.ColumnMappings.Add("Phone", "Phone");
  6803. tableMapping.ColumnMappings.Add("idIndex", "idIndex");
  6804. tableMapping.ColumnMappings.Add("idCity", "idCity");
  6805. tableMapping.ColumnMappings.Add("idStreet", "idStreet");
  6806. tableMapping.ColumnMappings.Add("House", "House");
  6807. tableMapping.ColumnMappings.Add("INN", "INN");
  6808. tableMapping.ColumnMappings.Add("Rating", "Rating");
  6809. tableMapping.ColumnMappings.Add("idRegion", "idRegion");
  6810. tableMapping.ColumnMappings.Add("idTypePartner", "idTypePartner");
  6811. tableMapping.ColumnMappings.Add("NamePartner", "NamePartner");
  6812. this._adapter.TableMappings.Add(tableMapping);
  6813. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6814. this._adapter.DeleteCommand.Connection = this.Connection;
  6815. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Partner] WHERE (([idPartner] = @Original_idPartner) AND ((@IsNull_Surname = 1 AND [Surname] IS NULL) OR ([Surname] = @Original_Surname)) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ((@IsNull_Phone = 1 AND [Phone] IS NULL) OR ([Phone] = @Original_Phone)) AND ((@IsNull_idIndex = 1 AND [idIndex] IS NULL) OR ([idIndex] = @Original_idIndex)) AND ((@IsNull_idCity = 1 AND [idCity] IS NULL) OR ([idCity] = @Original_idCity)) AND ((@IsNull_idStreet = 1 AND [idStreet] IS NULL) OR ([idStreet] = @Original_idStreet)) AND ((@IsNull_House = 1 AND [House] IS NULL) OR ([House] = @Original_House)) AND ((@IsNull_INN = 1 AND [INN] IS NULL) OR ([INN] = @Original_INN)) AND ((@IsNull_Rating = 1 AND [Rating] IS NULL) OR ([Rating] = @Original_Rating)) AND ((@IsNull_idRegion = 1 AND [idRegion] IS NULL) OR ([idRegion] = @Original_idRegion)) AND ((@IsNull_idTypePartner = 1 AND [idTypePartner] IS NULL) OR ([idTypePartner] = @Original_idTypePartner)) AND ((@IsNull_NamePartner = 1 AND [NamePartner] IS NULL) OR ([NamePartner] = @Original_NamePartner)))";
  6816. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6817. 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, "", "", ""));
  6818. 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, "", "", ""));
  6819. 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, "", "", ""));
  6820. 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, "", "", ""));
  6821. 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, "", "", ""));
  6822. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Patronymic", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6823. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6824. 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, "", "", ""));
  6825. 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, "", "", ""));
  6826. 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, "", "", ""));
  6827. 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, "", "", ""));
  6828. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_idIndex", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idIndex", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6829. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idIndex", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idIndex", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6830. 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, "", "", ""));
  6831. 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, "", "", ""));
  6832. 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, "", "", ""));
  6833. 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, "", "", ""));
  6834. 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, "", "", ""));
  6835. 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, "", "", ""));
  6836. 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, "", "", ""));
  6837. 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, "", "", ""));
  6838. 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, "", "", ""));
  6839. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Rating", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Rating", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6840. 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, "", "", ""));
  6841. 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, "", "", ""));
  6842. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_idTypePartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idTypePartner", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6843. 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, "", "", ""));
  6844. 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, "", "", ""));
  6845. 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, "", "", ""));
  6846. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6847. this._adapter.InsertCommand.Connection = this.Connection;
  6848. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Partner] ([Surname], [Name], [Patronymic], [Email], [Phone], [idIndex], [idCity], [idStreet], [House], [INN], [Rating], [idRegion], [idTypePartner], [NamePartner]) VALUES (@Surname, @Name, @Patronymic, @Email, @Phone, @idIndex, @idCity, @idStreet, @House, @INN, @Rating, @idRegion, @idTypePartner, @NamePartner);
  6849. SELECT idPartner, Surname, Name, Patronymic, Email, Phone, idIndex, idCity, idStreet, House, INN, Rating, idRegion, idTypePartner, NamePartner FROM Partner WHERE (idPartner = SCOPE_IDENTITY())";
  6850. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6851. 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, "", "", ""));
  6852. 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, "", "", ""));
  6853. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6854. 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, "", "", ""));
  6855. 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, "", "", ""));
  6856. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idIndex", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idIndex", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6857. 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, "", "", ""));
  6858. 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, "", "", ""));
  6859. 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, "", "", ""));
  6860. 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, "", "", ""));
  6861. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Rating", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Rating", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6862. 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, "", "", ""));
  6863. 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, "", "", ""));
  6864. 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, "", "", ""));
  6865. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6866. this._adapter.UpdateCommand.Connection = this.Connection;
  6867. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Partner] SET [Surname] = @Surname, [Name] = @Name, [Patronymic] = @" +
  6868. "Patronymic, [Email] = @Email, [Phone] = @Phone, [idIndex] = @idIndex, [idCity] =" +
  6869. " @idCity, [idStreet] = @idStreet, [House] = @House, [INN] = @INN, [Rating] = @Ra" +
  6870. "ting, [idRegion] = @idRegion, [idTypePartner] = @idTypePartner, [NamePartner] = " +
  6871. "@NamePartner WHERE (([idPartner] = @Original_idPartner) AND ((@IsNull_Surname = " +
  6872. "1 AND [Surname] IS NULL) OR ([Surname] = @Original_Surname)) AND ((@IsNull_Name " +
  6873. "= 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_Patronymic =" +
  6874. " 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) AND ((@Is" +
  6875. "Null_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ((@IsNul" +
  6876. "l_Phone = 1 AND [Phone] IS NULL) OR ([Phone] = @Original_Phone)) AND ((@IsNull_i" +
  6877. "dIndex = 1 AND [idIndex] IS NULL) OR ([idIndex] = @Original_idIndex)) AND ((@IsN" +
  6878. "ull_idCity = 1 AND [idCity] IS NULL) OR ([idCity] = @Original_idCity)) AND ((@Is" +
  6879. "Null_idStreet = 1 AND [idStreet] IS NULL) OR ([idStreet] = @Original_idStreet)) " +
  6880. "AND ((@IsNull_House = 1 AND [House] IS NULL) OR ([House] = @Original_House)) AND" +
  6881. " ((@IsNull_INN = 1 AND [INN] IS NULL) OR ([INN] = @Original_INN)) AND ((@IsNull_" +
  6882. "Rating = 1 AND [Rating] IS NULL) OR ([Rating] = @Original_Rating)) AND ((@IsNull" +
  6883. "_idRegion = 1 AND [idRegion] IS NULL) OR ([idRegion] = @Original_idRegion)) AND " +
  6884. "((@IsNull_idTypePartner = 1 AND [idTypePartner] IS NULL) OR ([idTypePartner] = @" +
  6885. "Original_idTypePartner)) AND ((@IsNull_NamePartner = 1 AND [NamePartner] IS NULL" +
  6886. ") OR ([NamePartner] = @Original_NamePartner)));\r\nSELECT idPartner, Surname, Name" +
  6887. ", Patronymic, Email, Phone, idIndex, idCity, idStreet, House, INN, Rating, idReg" +
  6888. "ion, idTypePartner, NamePartner FROM Partner WHERE (idPartner = @idPartner)";
  6889. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6890. 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, "", "", ""));
  6891. 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, "", "", ""));
  6892. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6893. 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, "", "", ""));
  6894. 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, "", "", ""));
  6895. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idIndex", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idIndex", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6896. 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, "", "", ""));
  6897. 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, "", "", ""));
  6898. 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, "", "", ""));
  6899. 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, "", "", ""));
  6900. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Rating", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Rating", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6901. 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, "", "", ""));
  6902. 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, "", "", ""));
  6903. 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, "", "", ""));
  6904. 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, "", "", ""));
  6905. 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, "", "", ""));
  6906. 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, "", "", ""));
  6907. 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, "", "", ""));
  6908. 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, "", "", ""));
  6909. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Patronymic", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6910. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6911. 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, "", "", ""));
  6912. 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, "", "", ""));
  6913. 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, "", "", ""));
  6914. 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, "", "", ""));
  6915. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_idIndex", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idIndex", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6916. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idIndex", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idIndex", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6917. 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, "", "", ""));
  6918. 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, "", "", ""));
  6919. 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, "", "", ""));
  6920. 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, "", "", ""));
  6921. 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, "", "", ""));
  6922. 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, "", "", ""));
  6923. 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, "", "", ""));
  6924. 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, "", "", ""));
  6925. 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, "", "", ""));
  6926. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Rating", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Rating", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6927. 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, "", "", ""));
  6928. 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, "", "", ""));
  6929. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_idTypePartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idTypePartner", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6930. 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, "", "", ""));
  6931. 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, "", "", ""));
  6932. 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, "", "", ""));
  6933. 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, "", "", ""));
  6934. }
  6935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6936. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6937. private void InitConnection() {
  6938. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6939. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.dbAlphapolAGConnectionString;
  6940. }
  6941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6942. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6943. private void InitCommandCollection() {
  6944. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6945. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6946. this._commandCollection[0].Connection = this.Connection;
  6947. this._commandCollection[0].CommandText = "SELECT idPartner, Surname, Name, Patronymic, Email, Phone, idIndex, idCity, idStr" +
  6948. "eet, House, INN, Rating, idRegion, idTypePartner, NamePartner FROM dbo.Partner";
  6949. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6950. }
  6951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6952. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6953. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6954. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6955. public virtual int Fill(dbAlphapolAGDataSet.PartnerDataTable dataTable) {
  6956. this.Adapter.SelectCommand = this.CommandCollection[0];
  6957. if ((this.ClearBeforeFill == true)) {
  6958. dataTable.Clear();
  6959. }
  6960. int returnValue = this.Adapter.Fill(dataTable);
  6961. return returnValue;
  6962. }
  6963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6965. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6966. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6967. public virtual dbAlphapolAGDataSet.PartnerDataTable GetData() {
  6968. this.Adapter.SelectCommand = this.CommandCollection[0];
  6969. dbAlphapolAGDataSet.PartnerDataTable dataTable = new dbAlphapolAGDataSet.PartnerDataTable();
  6970. this.Adapter.Fill(dataTable);
  6971. return dataTable;
  6972. }
  6973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6975. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6976. public virtual int Update(dbAlphapolAGDataSet.PartnerDataTable dataTable) {
  6977. return this.Adapter.Update(dataTable);
  6978. }
  6979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6981. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6982. public virtual int Update(dbAlphapolAGDataSet dataSet) {
  6983. return this.Adapter.Update(dataSet, "Partner");
  6984. }
  6985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6987. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6988. public virtual int Update(global::System.Data.DataRow dataRow) {
  6989. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6990. dataRow});
  6991. }
  6992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6994. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6995. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6996. return this.Adapter.Update(dataRows);
  6997. }
  6998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7000. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7001. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7002. public virtual int Delete(int Original_idPartner, string Original_Surname, string Original_Name, string Original_Patronymic, string Original_Email, string Original_Phone, global::System.Nullable<int> Original_idIndex, global::System.Nullable<int> Original_idCity, global::System.Nullable<int> Original_idStreet, global::System.Nullable<int> Original_House, string Original_INN, string Original_Rating, global::System.Nullable<int> Original_idRegion, global::System.Nullable<int> Original_idTypePartner, string Original_NamePartner) {
  7003. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idPartner));
  7004. if ((Original_Surname == null)) {
  7005. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7006. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7007. }
  7008. else {
  7009. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7010. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Surname));
  7011. }
  7012. if ((Original_Name == null)) {
  7013. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  7014. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  7015. }
  7016. else {
  7017. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  7018. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Name));
  7019. }
  7020. if ((Original_Patronymic == null)) {
  7021. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  7022. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  7023. }
  7024. else {
  7025. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  7026. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Patronymic));
  7027. }
  7028. if ((Original_Email == null)) {
  7029. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  7030. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  7031. }
  7032. else {
  7033. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  7034. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Email));
  7035. }
  7036. if ((Original_Phone == null)) {
  7037. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  7038. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  7039. }
  7040. else {
  7041. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  7042. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Phone));
  7043. }
  7044. if ((Original_idIndex.HasValue == true)) {
  7045. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  7046. this.Adapter.DeleteCommand.Parameters[12].Value = ((int)(Original_idIndex.Value));
  7047. }
  7048. else {
  7049. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  7050. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  7051. }
  7052. if ((Original_idCity.HasValue == true)) {
  7053. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
  7054. this.Adapter.DeleteCommand.Parameters[14].Value = ((int)(Original_idCity.Value));
  7055. }
  7056. else {
  7057. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
  7058. this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
  7059. }
  7060. if ((Original_idStreet.HasValue == true)) {
  7061. this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(0));
  7062. this.Adapter.DeleteCommand.Parameters[16].Value = ((int)(Original_idStreet.Value));
  7063. }
  7064. else {
  7065. this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(1));
  7066. this.Adapter.DeleteCommand.Parameters[16].Value = global::System.DBNull.Value;
  7067. }
  7068. if ((Original_House.HasValue == true)) {
  7069. this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(0));
  7070. this.Adapter.DeleteCommand.Parameters[18].Value = ((int)(Original_House.Value));
  7071. }
  7072. else {
  7073. this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(1));
  7074. this.Adapter.DeleteCommand.Parameters[18].Value = global::System.DBNull.Value;
  7075. }
  7076. if ((Original_INN == null)) {
  7077. this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(1));
  7078. this.Adapter.DeleteCommand.Parameters[20].Value = global::System.DBNull.Value;
  7079. }
  7080. else {
  7081. this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(0));
  7082. this.Adapter.DeleteCommand.Parameters[20].Value = ((string)(Original_INN));
  7083. }
  7084. if ((Original_Rating == null)) {
  7085. this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(1));
  7086. this.Adapter.DeleteCommand.Parameters[22].Value = global::System.DBNull.Value;
  7087. }
  7088. else {
  7089. this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(0));
  7090. this.Adapter.DeleteCommand.Parameters[22].Value = ((string)(Original_Rating));
  7091. }
  7092. if ((Original_idRegion.HasValue == true)) {
  7093. this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(0));
  7094. this.Adapter.DeleteCommand.Parameters[24].Value = ((int)(Original_idRegion.Value));
  7095. }
  7096. else {
  7097. this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(1));
  7098. this.Adapter.DeleteCommand.Parameters[24].Value = global::System.DBNull.Value;
  7099. }
  7100. if ((Original_idTypePartner.HasValue == true)) {
  7101. this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(0));
  7102. this.Adapter.DeleteCommand.Parameters[26].Value = ((int)(Original_idTypePartner.Value));
  7103. }
  7104. else {
  7105. this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(1));
  7106. this.Adapter.DeleteCommand.Parameters[26].Value = global::System.DBNull.Value;
  7107. }
  7108. if ((Original_NamePartner == null)) {
  7109. this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(1));
  7110. this.Adapter.DeleteCommand.Parameters[28].Value = global::System.DBNull.Value;
  7111. }
  7112. else {
  7113. this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(0));
  7114. this.Adapter.DeleteCommand.Parameters[28].Value = ((string)(Original_NamePartner));
  7115. }
  7116. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7117. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7118. != global::System.Data.ConnectionState.Open)) {
  7119. this.Adapter.DeleteCommand.Connection.Open();
  7120. }
  7121. try {
  7122. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7123. return returnValue;
  7124. }
  7125. finally {
  7126. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7127. this.Adapter.DeleteCommand.Connection.Close();
  7128. }
  7129. }
  7130. }
  7131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7133. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7134. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7135. public virtual int Insert(string Surname, string Name, string Patronymic, string Email, string Phone, global::System.Nullable<int> idIndex, global::System.Nullable<int> idCity, global::System.Nullable<int> idStreet, global::System.Nullable<int> House, string INN, string Rating, global::System.Nullable<int> idRegion, global::System.Nullable<int> idTypePartner, string NamePartner) {
  7136. if ((Surname == null)) {
  7137. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  7138. }
  7139. else {
  7140. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Surname));
  7141. }
  7142. if ((Name == null)) {
  7143. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7144. }
  7145. else {
  7146. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Name));
  7147. }
  7148. if ((Patronymic == null)) {
  7149. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  7150. }
  7151. else {
  7152. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Patronymic));
  7153. }
  7154. if ((Email == null)) {
  7155. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  7156. }
  7157. else {
  7158. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Email));
  7159. }
  7160. if ((Phone == null)) {
  7161. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  7162. }
  7163. else {
  7164. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Phone));
  7165. }
  7166. if ((idIndex.HasValue == true)) {
  7167. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(idIndex.Value));
  7168. }
  7169. else {
  7170. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  7171. }
  7172. if ((idCity.HasValue == true)) {
  7173. this.Adapter.InsertCommand.Parameters[6].Value = ((int)(idCity.Value));
  7174. }
  7175. else {
  7176. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  7177. }
  7178. if ((idStreet.HasValue == true)) {
  7179. this.Adapter.InsertCommand.Parameters[7].Value = ((int)(idStreet.Value));
  7180. }
  7181. else {
  7182. this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
  7183. }
  7184. if ((House.HasValue == true)) {
  7185. this.Adapter.InsertCommand.Parameters[8].Value = ((int)(House.Value));
  7186. }
  7187. else {
  7188. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  7189. }
  7190. if ((INN == null)) {
  7191. this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value;
  7192. }
  7193. else {
  7194. this.Adapter.InsertCommand.Parameters[9].Value = ((string)(INN));
  7195. }
  7196. if ((Rating == null)) {
  7197. this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value;
  7198. }
  7199. else {
  7200. this.Adapter.InsertCommand.Parameters[10].Value = ((string)(Rating));
  7201. }
  7202. if ((idRegion.HasValue == true)) {
  7203. this.Adapter.InsertCommand.Parameters[11].Value = ((int)(idRegion.Value));
  7204. }
  7205. else {
  7206. this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value;
  7207. }
  7208. if ((idTypePartner.HasValue == true)) {
  7209. this.Adapter.InsertCommand.Parameters[12].Value = ((int)(idTypePartner.Value));
  7210. }
  7211. else {
  7212. this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value;
  7213. }
  7214. if ((NamePartner == null)) {
  7215. this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value;
  7216. }
  7217. else {
  7218. this.Adapter.InsertCommand.Parameters[13].Value = ((string)(NamePartner));
  7219. }
  7220. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7221. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7222. != global::System.Data.ConnectionState.Open)) {
  7223. this.Adapter.InsertCommand.Connection.Open();
  7224. }
  7225. try {
  7226. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7227. return returnValue;
  7228. }
  7229. finally {
  7230. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7231. this.Adapter.InsertCommand.Connection.Close();
  7232. }
  7233. }
  7234. }
  7235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7236. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7237. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7238. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7239. public virtual int Update(
  7240. string Surname,
  7241. string Name,
  7242. string Patronymic,
  7243. string Email,
  7244. string Phone,
  7245. global::System.Nullable<int> idIndex,
  7246. global::System.Nullable<int> idCity,
  7247. global::System.Nullable<int> idStreet,
  7248. global::System.Nullable<int> House,
  7249. string INN,
  7250. string Rating,
  7251. global::System.Nullable<int> idRegion,
  7252. global::System.Nullable<int> idTypePartner,
  7253. string NamePartner,
  7254. int Original_idPartner,
  7255. string Original_Surname,
  7256. string Original_Name,
  7257. string Original_Patronymic,
  7258. string Original_Email,
  7259. string Original_Phone,
  7260. global::System.Nullable<int> Original_idIndex,
  7261. global::System.Nullable<int> Original_idCity,
  7262. global::System.Nullable<int> Original_idStreet,
  7263. global::System.Nullable<int> Original_House,
  7264. string Original_INN,
  7265. string Original_Rating,
  7266. global::System.Nullable<int> Original_idRegion,
  7267. global::System.Nullable<int> Original_idTypePartner,
  7268. string Original_NamePartner,
  7269. int idPartner) {
  7270. if ((Surname == null)) {
  7271. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  7272. }
  7273. else {
  7274. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Surname));
  7275. }
  7276. if ((Name == null)) {
  7277. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7278. }
  7279. else {
  7280. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Name));
  7281. }
  7282. if ((Patronymic == null)) {
  7283. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  7284. }
  7285. else {
  7286. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Patronymic));
  7287. }
  7288. if ((Email == null)) {
  7289. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  7290. }
  7291. else {
  7292. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Email));
  7293. }
  7294. if ((Phone == null)) {
  7295. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  7296. }
  7297. else {
  7298. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Phone));
  7299. }
  7300. if ((idIndex.HasValue == true)) {
  7301. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(idIndex.Value));
  7302. }
  7303. else {
  7304. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  7305. }
  7306. if ((idCity.HasValue == true)) {
  7307. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(idCity.Value));
  7308. }
  7309. else {
  7310. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  7311. }
  7312. if ((idStreet.HasValue == true)) {
  7313. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(idStreet.Value));
  7314. }
  7315. else {
  7316. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  7317. }
  7318. if ((House.HasValue == true)) {
  7319. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(House.Value));
  7320. }
  7321. else {
  7322. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  7323. }
  7324. if ((INN == null)) {
  7325. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  7326. }
  7327. else {
  7328. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(INN));
  7329. }
  7330. if ((Rating == null)) {
  7331. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  7332. }
  7333. else {
  7334. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Rating));
  7335. }
  7336. if ((idRegion.HasValue == true)) {
  7337. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(idRegion.Value));
  7338. }
  7339. else {
  7340. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  7341. }
  7342. if ((idTypePartner.HasValue == true)) {
  7343. this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(idTypePartner.Value));
  7344. }
  7345. else {
  7346. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  7347. }
  7348. if ((NamePartner == null)) {
  7349. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  7350. }
  7351. else {
  7352. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(NamePartner));
  7353. }
  7354. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(Original_idPartner));
  7355. if ((Original_Surname == null)) {
  7356. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  7357. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  7358. }
  7359. else {
  7360. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  7361. this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_Surname));
  7362. }
  7363. if ((Original_Name == null)) {
  7364. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
  7365. this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
  7366. }
  7367. else {
  7368. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
  7369. this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_Name));
  7370. }
  7371. if ((Original_Patronymic == null)) {
  7372. this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(1));
  7373. this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value;
  7374. }
  7375. else {
  7376. this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(0));
  7377. this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(Original_Patronymic));
  7378. }
  7379. if ((Original_Email == null)) {
  7380. this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(1));
  7381. this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value;
  7382. }
  7383. else {
  7384. this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(0));
  7385. this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(Original_Email));
  7386. }
  7387. if ((Original_Phone == null)) {
  7388. this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(1));
  7389. this.Adapter.UpdateCommand.Parameters[24].Value = global::System.DBNull.Value;
  7390. }
  7391. else {
  7392. this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(0));
  7393. this.Adapter.UpdateCommand.Parameters[24].Value = ((string)(Original_Phone));
  7394. }
  7395. if ((Original_idIndex.HasValue == true)) {
  7396. this.Adapter.UpdateCommand.Parameters[25].Value = ((object)(0));
  7397. this.Adapter.UpdateCommand.Parameters[26].Value = ((int)(Original_idIndex.Value));
  7398. }
  7399. else {
  7400. this.Adapter.UpdateCommand.Parameters[25].Value = ((object)(1));
  7401. this.Adapter.UpdateCommand.Parameters[26].Value = global::System.DBNull.Value;
  7402. }
  7403. if ((Original_idCity.HasValue == true)) {
  7404. this.Adapter.UpdateCommand.Parameters[27].Value = ((object)(0));
  7405. this.Adapter.UpdateCommand.Parameters[28].Value = ((int)(Original_idCity.Value));
  7406. }
  7407. else {
  7408. this.Adapter.UpdateCommand.Parameters[27].Value = ((object)(1));
  7409. this.Adapter.UpdateCommand.Parameters[28].Value = global::System.DBNull.Value;
  7410. }
  7411. if ((Original_idStreet.HasValue == true)) {
  7412. this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(0));
  7413. this.Adapter.UpdateCommand.Parameters[30].Value = ((int)(Original_idStreet.Value));
  7414. }
  7415. else {
  7416. this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(1));
  7417. this.Adapter.UpdateCommand.Parameters[30].Value = global::System.DBNull.Value;
  7418. }
  7419. if ((Original_House.HasValue == true)) {
  7420. this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(0));
  7421. this.Adapter.UpdateCommand.Parameters[32].Value = ((int)(Original_House.Value));
  7422. }
  7423. else {
  7424. this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(1));
  7425. this.Adapter.UpdateCommand.Parameters[32].Value = global::System.DBNull.Value;
  7426. }
  7427. if ((Original_INN == null)) {
  7428. this.Adapter.UpdateCommand.Parameters[33].Value = ((object)(1));
  7429. this.Adapter.UpdateCommand.Parameters[34].Value = global::System.DBNull.Value;
  7430. }
  7431. else {
  7432. this.Adapter.UpdateCommand.Parameters[33].Value = ((object)(0));
  7433. this.Adapter.UpdateCommand.Parameters[34].Value = ((string)(Original_INN));
  7434. }
  7435. if ((Original_Rating == null)) {
  7436. this.Adapter.UpdateCommand.Parameters[35].Value = ((object)(1));
  7437. this.Adapter.UpdateCommand.Parameters[36].Value = global::System.DBNull.Value;
  7438. }
  7439. else {
  7440. this.Adapter.UpdateCommand.Parameters[35].Value = ((object)(0));
  7441. this.Adapter.UpdateCommand.Parameters[36].Value = ((string)(Original_Rating));
  7442. }
  7443. if ((Original_idRegion.HasValue == true)) {
  7444. this.Adapter.UpdateCommand.Parameters[37].Value = ((object)(0));
  7445. this.Adapter.UpdateCommand.Parameters[38].Value = ((int)(Original_idRegion.Value));
  7446. }
  7447. else {
  7448. this.Adapter.UpdateCommand.Parameters[37].Value = ((object)(1));
  7449. this.Adapter.UpdateCommand.Parameters[38].Value = global::System.DBNull.Value;
  7450. }
  7451. if ((Original_idTypePartner.HasValue == true)) {
  7452. this.Adapter.UpdateCommand.Parameters[39].Value = ((object)(0));
  7453. this.Adapter.UpdateCommand.Parameters[40].Value = ((int)(Original_idTypePartner.Value));
  7454. }
  7455. else {
  7456. this.Adapter.UpdateCommand.Parameters[39].Value = ((object)(1));
  7457. this.Adapter.UpdateCommand.Parameters[40].Value = global::System.DBNull.Value;
  7458. }
  7459. if ((Original_NamePartner == null)) {
  7460. this.Adapter.UpdateCommand.Parameters[41].Value = ((object)(1));
  7461. this.Adapter.UpdateCommand.Parameters[42].Value = global::System.DBNull.Value;
  7462. }
  7463. else {
  7464. this.Adapter.UpdateCommand.Parameters[41].Value = ((object)(0));
  7465. this.Adapter.UpdateCommand.Parameters[42].Value = ((string)(Original_NamePartner));
  7466. }
  7467. this.Adapter.UpdateCommand.Parameters[43].Value = ((int)(idPartner));
  7468. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7469. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7470. != global::System.Data.ConnectionState.Open)) {
  7471. this.Adapter.UpdateCommand.Connection.Open();
  7472. }
  7473. try {
  7474. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7475. return returnValue;
  7476. }
  7477. finally {
  7478. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7479. this.Adapter.UpdateCommand.Connection.Close();
  7480. }
  7481. }
  7482. }
  7483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7485. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7486. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7487. public virtual int Update(
  7488. string Surname,
  7489. string Name,
  7490. string Patronymic,
  7491. string Email,
  7492. string Phone,
  7493. global::System.Nullable<int> idIndex,
  7494. global::System.Nullable<int> idCity,
  7495. global::System.Nullable<int> idStreet,
  7496. global::System.Nullable<int> House,
  7497. string INN,
  7498. string Rating,
  7499. global::System.Nullable<int> idRegion,
  7500. global::System.Nullable<int> idTypePartner,
  7501. string NamePartner,
  7502. int Original_idPartner,
  7503. string Original_Surname,
  7504. string Original_Name,
  7505. string Original_Patronymic,
  7506. string Original_Email,
  7507. string Original_Phone,
  7508. global::System.Nullable<int> Original_idIndex,
  7509. global::System.Nullable<int> Original_idCity,
  7510. global::System.Nullable<int> Original_idStreet,
  7511. global::System.Nullable<int> Original_House,
  7512. string Original_INN,
  7513. string Original_Rating,
  7514. global::System.Nullable<int> Original_idRegion,
  7515. global::System.Nullable<int> Original_idTypePartner,
  7516. string Original_NamePartner) {
  7517. return this.Update(Surname, Name, Patronymic, Email, Phone, idIndex, idCity, idStreet, House, INN, Rating, idRegion, idTypePartner, NamePartner, Original_idPartner, Original_Surname, Original_Name, Original_Patronymic, Original_Email, Original_Phone, Original_idIndex, Original_idCity, Original_idStreet, Original_House, Original_INN, Original_Rating, Original_idRegion, Original_idTypePartner, Original_NamePartner, Original_idPartner);
  7518. }
  7519. }
  7520. /// <summary>
  7521. ///Represents the connection and commands used to retrieve and save data.
  7522. ///</summary>
  7523. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7524. [global::System.ComponentModel.ToolboxItem(true)]
  7525. [global::System.ComponentModel.DataObjectAttribute(true)]
  7526. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7527. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7528. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7529. public partial class ProductPartnerTableAdapter : global::System.ComponentModel.Component {
  7530. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7531. private global::System.Data.SqlClient.SqlConnection _connection;
  7532. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7533. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7534. private bool _clearBeforeFill;
  7535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7537. public ProductPartnerTableAdapter() {
  7538. this.ClearBeforeFill = true;
  7539. }
  7540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7542. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7543. get {
  7544. if ((this._adapter == null)) {
  7545. this.InitAdapter();
  7546. }
  7547. return this._adapter;
  7548. }
  7549. }
  7550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7552. internal global::System.Data.SqlClient.SqlConnection Connection {
  7553. get {
  7554. if ((this._connection == null)) {
  7555. this.InitConnection();
  7556. }
  7557. return this._connection;
  7558. }
  7559. set {
  7560. this._connection = value;
  7561. if ((this.Adapter.InsertCommand != null)) {
  7562. this.Adapter.InsertCommand.Connection = value;
  7563. }
  7564. if ((this.Adapter.DeleteCommand != null)) {
  7565. this.Adapter.DeleteCommand.Connection = value;
  7566. }
  7567. if ((this.Adapter.UpdateCommand != null)) {
  7568. this.Adapter.UpdateCommand.Connection = value;
  7569. }
  7570. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7571. if ((this.CommandCollection[i] != null)) {
  7572. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7573. }
  7574. }
  7575. }
  7576. }
  7577. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7578. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7579. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7580. get {
  7581. return this._transaction;
  7582. }
  7583. set {
  7584. this._transaction = value;
  7585. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7586. this.CommandCollection[i].Transaction = this._transaction;
  7587. }
  7588. if (((this.Adapter != null)
  7589. && (this.Adapter.DeleteCommand != null))) {
  7590. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7591. }
  7592. if (((this.Adapter != null)
  7593. && (this.Adapter.InsertCommand != null))) {
  7594. this.Adapter.InsertCommand.Transaction = this._transaction;
  7595. }
  7596. if (((this.Adapter != null)
  7597. && (this.Adapter.UpdateCommand != null))) {
  7598. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7599. }
  7600. }
  7601. }
  7602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7604. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7605. get {
  7606. if ((this._commandCollection == null)) {
  7607. this.InitCommandCollection();
  7608. }
  7609. return this._commandCollection;
  7610. }
  7611. }
  7612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7614. public bool ClearBeforeFill {
  7615. get {
  7616. return this._clearBeforeFill;
  7617. }
  7618. set {
  7619. this._clearBeforeFill = value;
  7620. }
  7621. }
  7622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7624. private void InitAdapter() {
  7625. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7626. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7627. tableMapping.SourceTable = "Table";
  7628. tableMapping.DataSetTable = "ProductPartner";
  7629. tableMapping.ColumnMappings.Add("idPartnerProduct", "idPartnerProduct");
  7630. tableMapping.ColumnMappings.Add("idProduct", "idProduct");
  7631. tableMapping.ColumnMappings.Add("idPartner", "idPartner");
  7632. tableMapping.ColumnMappings.Add("CountProduct", "CountProduct");
  7633. tableMapping.ColumnMappings.Add("DateSale", "DateSale");
  7634. this._adapter.TableMappings.Add(tableMapping);
  7635. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7636. this._adapter.DeleteCommand.Connection = this.Connection;
  7637. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[ProductPartner] WHERE (([idPartnerProduct] = @Original_idPartnerProduct) AND ((@IsNull_idProduct = 1 AND [idProduct] IS NULL) OR ([idProduct] = @Original_idProduct)) AND ((@IsNull_idPartner = 1 AND [idPartner] IS NULL) OR ([idPartner] = @Original_idPartner)) AND ((@IsNull_CountProduct = 1 AND [CountProduct] IS NULL) OR ([CountProduct] = @Original_CountProduct)) AND ((@IsNull_DateSale = 1 AND [DateSale] IS NULL) OR ([DateSale] = @Original_DateSale)))";
  7638. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7639. 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, "", "", ""));
  7640. 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, "", "", ""));
  7641. 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, "", "", ""));
  7642. 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, "", "", ""));
  7643. 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, "", "", ""));
  7644. 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, "", "", ""));
  7645. 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, "", "", ""));
  7646. 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, "", "", ""));
  7647. 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, "", "", ""));
  7648. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7649. this._adapter.InsertCommand.Connection = this.Connection;
  7650. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[ProductPartner] ([idProduct], [idPartner], [CountProduct], [DateSale]) VALUES (@idProduct, @idPartner, @CountProduct, @DateSale);
  7651. SELECT idPartnerProduct, idProduct, idPartner, CountProduct, DateSale FROM ProductPartner WHERE (idPartnerProduct = SCOPE_IDENTITY())";
  7652. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7653. 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, "", "", ""));
  7654. 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, "", "", ""));
  7655. 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, "", "", ""));
  7656. 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, "", "", ""));
  7657. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7658. this._adapter.UpdateCommand.Connection = this.Connection;
  7659. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ProductPartner] SET [idProduct] = @idProduct, [idPartner] = @idPartner, [CountProduct] = @CountProduct, [DateSale] = @DateSale WHERE (([idPartnerProduct] = @Original_idPartnerProduct) AND ((@IsNull_idProduct = 1 AND [idProduct] IS NULL) OR ([idProduct] = @Original_idProduct)) AND ((@IsNull_idPartner = 1 AND [idPartner] IS NULL) OR ([idPartner] = @Original_idPartner)) AND ((@IsNull_CountProduct = 1 AND [CountProduct] IS NULL) OR ([CountProduct] = @Original_CountProduct)) AND ((@IsNull_DateSale = 1 AND [DateSale] IS NULL) OR ([DateSale] = @Original_DateSale)));
  7660. SELECT idPartnerProduct, idProduct, idPartner, CountProduct, DateSale FROM ProductPartner WHERE (idPartnerProduct = @idPartnerProduct)";
  7661. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7662. 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, "", "", ""));
  7663. 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, "", "", ""));
  7664. 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, "", "", ""));
  7665. 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, "", "", ""));
  7666. 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, "", "", ""));
  7667. 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, "", "", ""));
  7668. 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, "", "", ""));
  7669. 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, "", "", ""));
  7670. 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, "", "", ""));
  7671. 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, "", "", ""));
  7672. 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, "", "", ""));
  7673. 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, "", "", ""));
  7674. 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, "", "", ""));
  7675. 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, "", "", ""));
  7676. }
  7677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7678. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7679. private void InitConnection() {
  7680. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7681. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.dbAlphapolAGConnectionString;
  7682. }
  7683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7685. private void InitCommandCollection() {
  7686. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7687. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7688. this._commandCollection[0].Connection = this.Connection;
  7689. this._commandCollection[0].CommandText = "SELECT idPartnerProduct, idProduct, idPartner, CountProduct, DateSale FROM dbo.Pr" +
  7690. "oductPartner";
  7691. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7692. }
  7693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7695. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7696. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7697. public virtual int Fill(dbAlphapolAGDataSet.ProductPartnerDataTable dataTable) {
  7698. this.Adapter.SelectCommand = this.CommandCollection[0];
  7699. if ((this.ClearBeforeFill == true)) {
  7700. dataTable.Clear();
  7701. }
  7702. int returnValue = this.Adapter.Fill(dataTable);
  7703. return returnValue;
  7704. }
  7705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7707. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7708. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7709. public virtual dbAlphapolAGDataSet.ProductPartnerDataTable GetData() {
  7710. this.Adapter.SelectCommand = this.CommandCollection[0];
  7711. dbAlphapolAGDataSet.ProductPartnerDataTable dataTable = new dbAlphapolAGDataSet.ProductPartnerDataTable();
  7712. this.Adapter.Fill(dataTable);
  7713. return dataTable;
  7714. }
  7715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7717. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7718. public virtual int Update(dbAlphapolAGDataSet.ProductPartnerDataTable dataTable) {
  7719. return this.Adapter.Update(dataTable);
  7720. }
  7721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7723. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7724. public virtual int Update(dbAlphapolAGDataSet dataSet) {
  7725. return this.Adapter.Update(dataSet, "ProductPartner");
  7726. }
  7727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7729. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7730. public virtual int Update(global::System.Data.DataRow dataRow) {
  7731. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7732. dataRow});
  7733. }
  7734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7736. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7737. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7738. return this.Adapter.Update(dataRows);
  7739. }
  7740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7742. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7743. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7744. 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) {
  7745. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idPartnerProduct));
  7746. if ((Original_idProduct.HasValue == true)) {
  7747. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7748. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_idProduct.Value));
  7749. }
  7750. else {
  7751. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7752. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7753. }
  7754. if ((Original_idPartner.HasValue == true)) {
  7755. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  7756. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_idPartner.Value));
  7757. }
  7758. else {
  7759. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  7760. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  7761. }
  7762. if ((Original_CountProduct.HasValue == true)) {
  7763. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  7764. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_CountProduct.Value));
  7765. }
  7766. else {
  7767. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  7768. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  7769. }
  7770. if ((Original_DateSale.HasValue == true)) {
  7771. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  7772. this.Adapter.DeleteCommand.Parameters[8].Value = ((System.DateTime)(Original_DateSale.Value));
  7773. }
  7774. else {
  7775. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  7776. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  7777. }
  7778. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7779. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7780. != global::System.Data.ConnectionState.Open)) {
  7781. this.Adapter.DeleteCommand.Connection.Open();
  7782. }
  7783. try {
  7784. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7785. return returnValue;
  7786. }
  7787. finally {
  7788. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7789. this.Adapter.DeleteCommand.Connection.Close();
  7790. }
  7791. }
  7792. }
  7793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7795. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7796. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7797. 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) {
  7798. if ((idProduct.HasValue == true)) {
  7799. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(idProduct.Value));
  7800. }
  7801. else {
  7802. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  7803. }
  7804. if ((idPartner.HasValue == true)) {
  7805. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(idPartner.Value));
  7806. }
  7807. else {
  7808. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7809. }
  7810. if ((CountProduct.HasValue == true)) {
  7811. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(CountProduct.Value));
  7812. }
  7813. else {
  7814. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  7815. }
  7816. if ((DateSale.HasValue == true)) {
  7817. this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(DateSale.Value));
  7818. }
  7819. else {
  7820. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  7821. }
  7822. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7823. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7824. != global::System.Data.ConnectionState.Open)) {
  7825. this.Adapter.InsertCommand.Connection.Open();
  7826. }
  7827. try {
  7828. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7829. return returnValue;
  7830. }
  7831. finally {
  7832. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7833. this.Adapter.InsertCommand.Connection.Close();
  7834. }
  7835. }
  7836. }
  7837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7839. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7840. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7841. 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) {
  7842. if ((idProduct.HasValue == true)) {
  7843. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(idProduct.Value));
  7844. }
  7845. else {
  7846. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  7847. }
  7848. if ((idPartner.HasValue == true)) {
  7849. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(idPartner.Value));
  7850. }
  7851. else {
  7852. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7853. }
  7854. if ((CountProduct.HasValue == true)) {
  7855. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(CountProduct.Value));
  7856. }
  7857. else {
  7858. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  7859. }
  7860. if ((DateSale.HasValue == true)) {
  7861. this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(DateSale.Value));
  7862. }
  7863. else {
  7864. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  7865. }
  7866. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_idPartnerProduct));
  7867. if ((Original_idProduct.HasValue == true)) {
  7868. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  7869. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_idProduct.Value));
  7870. }
  7871. else {
  7872. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  7873. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  7874. }
  7875. if ((Original_idPartner.HasValue == true)) {
  7876. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  7877. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_idPartner.Value));
  7878. }
  7879. else {
  7880. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  7881. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  7882. }
  7883. if ((Original_CountProduct.HasValue == true)) {
  7884. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  7885. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_CountProduct.Value));
  7886. }
  7887. else {
  7888. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  7889. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  7890. }
  7891. if ((Original_DateSale.HasValue == true)) {
  7892. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  7893. this.Adapter.UpdateCommand.Parameters[12].Value = ((System.DateTime)(Original_DateSale.Value));
  7894. }
  7895. else {
  7896. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  7897. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  7898. }
  7899. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(idPartnerProduct));
  7900. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7901. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7902. != global::System.Data.ConnectionState.Open)) {
  7903. this.Adapter.UpdateCommand.Connection.Open();
  7904. }
  7905. try {
  7906. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7907. return returnValue;
  7908. }
  7909. finally {
  7910. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7911. this.Adapter.UpdateCommand.Connection.Close();
  7912. }
  7913. }
  7914. }
  7915. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7916. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7917. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7918. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7919. 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) {
  7920. return this.Update(idProduct, idPartner, CountProduct, DateSale, Original_idPartnerProduct, Original_idProduct, Original_idPartner, Original_CountProduct, Original_DateSale, Original_idPartnerProduct);
  7921. }
  7922. }
  7923. /// <summary>
  7924. ///Represents the connection and commands used to retrieve and save data.
  7925. ///</summary>
  7926. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7927. [global::System.ComponentModel.ToolboxItem(true)]
  7928. [global::System.ComponentModel.DataObjectAttribute(true)]
  7929. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7930. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7931. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7932. public partial class ProductsTableAdapter : global::System.ComponentModel.Component {
  7933. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7934. private global::System.Data.SqlClient.SqlConnection _connection;
  7935. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7936. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7937. private bool _clearBeforeFill;
  7938. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7939. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7940. public ProductsTableAdapter() {
  7941. this.ClearBeforeFill = true;
  7942. }
  7943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7945. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7946. get {
  7947. if ((this._adapter == null)) {
  7948. this.InitAdapter();
  7949. }
  7950. return this._adapter;
  7951. }
  7952. }
  7953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7955. internal global::System.Data.SqlClient.SqlConnection Connection {
  7956. get {
  7957. if ((this._connection == null)) {
  7958. this.InitConnection();
  7959. }
  7960. return this._connection;
  7961. }
  7962. set {
  7963. this._connection = value;
  7964. if ((this.Adapter.InsertCommand != null)) {
  7965. this.Adapter.InsertCommand.Connection = value;
  7966. }
  7967. if ((this.Adapter.DeleteCommand != null)) {
  7968. this.Adapter.DeleteCommand.Connection = value;
  7969. }
  7970. if ((this.Adapter.UpdateCommand != null)) {
  7971. this.Adapter.UpdateCommand.Connection = value;
  7972. }
  7973. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7974. if ((this.CommandCollection[i] != null)) {
  7975. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7976. }
  7977. }
  7978. }
  7979. }
  7980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7981. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7982. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7983. get {
  7984. return this._transaction;
  7985. }
  7986. set {
  7987. this._transaction = value;
  7988. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7989. this.CommandCollection[i].Transaction = this._transaction;
  7990. }
  7991. if (((this.Adapter != null)
  7992. && (this.Adapter.DeleteCommand != null))) {
  7993. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7994. }
  7995. if (((this.Adapter != null)
  7996. && (this.Adapter.InsertCommand != null))) {
  7997. this.Adapter.InsertCommand.Transaction = this._transaction;
  7998. }
  7999. if (((this.Adapter != null)
  8000. && (this.Adapter.UpdateCommand != null))) {
  8001. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8002. }
  8003. }
  8004. }
  8005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8007. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8008. get {
  8009. if ((this._commandCollection == null)) {
  8010. this.InitCommandCollection();
  8011. }
  8012. return this._commandCollection;
  8013. }
  8014. }
  8015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8017. public bool ClearBeforeFill {
  8018. get {
  8019. return this._clearBeforeFill;
  8020. }
  8021. set {
  8022. this._clearBeforeFill = value;
  8023. }
  8024. }
  8025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8027. private void InitAdapter() {
  8028. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8029. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8030. tableMapping.SourceTable = "Table";
  8031. tableMapping.DataSetTable = "Products";
  8032. tableMapping.ColumnMappings.Add("idProduct", "idProduct");
  8033. tableMapping.ColumnMappings.Add("idTypeProduct", "idTypeProduct");
  8034. tableMapping.ColumnMappings.Add("NameProduct", "NameProduct");
  8035. tableMapping.ColumnMappings.Add("Article", "Article");
  8036. tableMapping.ColumnMappings.Add("MinCost", "MinCost");
  8037. this._adapter.TableMappings.Add(tableMapping);
  8038. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8039. this._adapter.DeleteCommand.Connection = this.Connection;
  8040. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Products] WHERE (([idProduct] = @Original_idProduct) AND ((@IsNull_idTypeProduct = 1 AND [idTypeProduct] IS NULL) OR ([idTypeProduct] = @Original_idTypeProduct)) AND ((@IsNull_Article = 1 AND [Article] IS NULL) OR ([Article] = @Original_Article)) AND ((@IsNull_MinCost = 1 AND [MinCost] IS NULL) OR ([MinCost] = @Original_MinCost)))";
  8041. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8042. 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, "", "", ""));
  8043. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_idTypeProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idTypeProduct", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8044. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idTypeProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idTypeProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8045. 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, "", "", ""));
  8046. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Article", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Article", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8047. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MinCost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MinCost", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8048. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MinCost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MinCost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8049. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8050. this._adapter.InsertCommand.Connection = this.Connection;
  8051. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Products] ([idTypeProduct], [NameProduct], [Article], [MinCost]) VALUES (@idTypeProduct, @NameProduct, @Article, @MinCost);
  8052. SELECT idProduct, idTypeProduct, NameProduct, Article, MinCost FROM Products WHERE (idProduct = SCOPE_IDENTITY())";
  8053. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8054. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idTypeProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idTypeProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8055. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NameProduct", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NameProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8056. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Article", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Article", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8057. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MinCost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MinCost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8058. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8059. this._adapter.UpdateCommand.Connection = this.Connection;
  8060. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Products] SET [idTypeProduct] = @idTypeProduct, [NameProduct] = @NameProduct, [Article] = @Article, [MinCost] = @MinCost WHERE (([idProduct] = @Original_idProduct) AND ((@IsNull_idTypeProduct = 1 AND [idTypeProduct] IS NULL) OR ([idTypeProduct] = @Original_idTypeProduct)) AND ((@IsNull_Article = 1 AND [Article] IS NULL) OR ([Article] = @Original_Article)) AND ((@IsNull_MinCost = 1 AND [MinCost] IS NULL) OR ([MinCost] = @Original_MinCost)));
  8061. SELECT idProduct, idTypeProduct, NameProduct, Article, MinCost FROM Products WHERE (idProduct = @idProduct)";
  8062. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8063. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idTypeProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idTypeProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8064. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NameProduct", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NameProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8065. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Article", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Article", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8066. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MinCost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MinCost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8067. 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, "", "", ""));
  8068. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_idTypeProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idTypeProduct", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8069. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idTypeProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idTypeProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8070. 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, "", "", ""));
  8071. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Article", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Article", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8072. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MinCost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MinCost", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8073. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MinCost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MinCost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8074. 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, "", "", ""));
  8075. }
  8076. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8077. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8078. private void InitConnection() {
  8079. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8080. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.dbAlphapolAGConnectionString;
  8081. }
  8082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8084. private void InitCommandCollection() {
  8085. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8086. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8087. this._commandCollection[0].Connection = this.Connection;
  8088. this._commandCollection[0].CommandText = "SELECT idProduct, idTypeProduct, NameProduct, Article, MinCost FROM dbo.Products";
  8089. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8090. }
  8091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8093. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8094. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8095. public virtual int Fill(dbAlphapolAGDataSet.ProductsDataTable dataTable) {
  8096. this.Adapter.SelectCommand = this.CommandCollection[0];
  8097. if ((this.ClearBeforeFill == true)) {
  8098. dataTable.Clear();
  8099. }
  8100. int returnValue = this.Adapter.Fill(dataTable);
  8101. return returnValue;
  8102. }
  8103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8105. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8106. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8107. public virtual dbAlphapolAGDataSet.ProductsDataTable GetData() {
  8108. this.Adapter.SelectCommand = this.CommandCollection[0];
  8109. dbAlphapolAGDataSet.ProductsDataTable dataTable = new dbAlphapolAGDataSet.ProductsDataTable();
  8110. this.Adapter.Fill(dataTable);
  8111. return dataTable;
  8112. }
  8113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8115. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8116. public virtual int Update(dbAlphapolAGDataSet.ProductsDataTable dataTable) {
  8117. return this.Adapter.Update(dataTable);
  8118. }
  8119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8121. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8122. public virtual int Update(dbAlphapolAGDataSet dataSet) {
  8123. return this.Adapter.Update(dataSet, "Products");
  8124. }
  8125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8126. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8127. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8128. public virtual int Update(global::System.Data.DataRow dataRow) {
  8129. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8130. dataRow});
  8131. }
  8132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8133. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8134. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8135. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8136. return this.Adapter.Update(dataRows);
  8137. }
  8138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8140. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8141. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8142. public virtual int Delete(int Original_idProduct, global::System.Nullable<int> Original_idTypeProduct, global::System.Nullable<int> Original_Article, global::System.Nullable<decimal> Original_MinCost) {
  8143. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idProduct));
  8144. if ((Original_idTypeProduct.HasValue == true)) {
  8145. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  8146. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_idTypeProduct.Value));
  8147. }
  8148. else {
  8149. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  8150. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  8151. }
  8152. if ((Original_Article.HasValue == true)) {
  8153. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  8154. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_Article.Value));
  8155. }
  8156. else {
  8157. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  8158. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  8159. }
  8160. if ((Original_MinCost.HasValue == true)) {
  8161. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  8162. this.Adapter.DeleteCommand.Parameters[6].Value = ((decimal)(Original_MinCost.Value));
  8163. }
  8164. else {
  8165. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  8166. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  8167. }
  8168. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8169. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8170. != global::System.Data.ConnectionState.Open)) {
  8171. this.Adapter.DeleteCommand.Connection.Open();
  8172. }
  8173. try {
  8174. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8175. return returnValue;
  8176. }
  8177. finally {
  8178. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8179. this.Adapter.DeleteCommand.Connection.Close();
  8180. }
  8181. }
  8182. }
  8183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8185. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8186. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8187. public virtual int Insert(global::System.Nullable<int> idTypeProduct, string NameProduct, global::System.Nullable<int> Article, global::System.Nullable<decimal> MinCost) {
  8188. if ((idTypeProduct.HasValue == true)) {
  8189. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(idTypeProduct.Value));
  8190. }
  8191. else {
  8192. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  8193. }
  8194. if ((NameProduct == null)) {
  8195. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  8196. }
  8197. else {
  8198. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(NameProduct));
  8199. }
  8200. if ((Article.HasValue == true)) {
  8201. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Article.Value));
  8202. }
  8203. else {
  8204. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  8205. }
  8206. if ((MinCost.HasValue == true)) {
  8207. this.Adapter.InsertCommand.Parameters[3].Value = ((decimal)(MinCost.Value));
  8208. }
  8209. else {
  8210. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  8211. }
  8212. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8213. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8214. != global::System.Data.ConnectionState.Open)) {
  8215. this.Adapter.InsertCommand.Connection.Open();
  8216. }
  8217. try {
  8218. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8219. return returnValue;
  8220. }
  8221. finally {
  8222. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8223. this.Adapter.InsertCommand.Connection.Close();
  8224. }
  8225. }
  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. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8231. public virtual int Update(global::System.Nullable<int> idTypeProduct, string NameProduct, global::System.Nullable<int> Article, global::System.Nullable<decimal> MinCost, int Original_idProduct, global::System.Nullable<int> Original_idTypeProduct, global::System.Nullable<int> Original_Article, global::System.Nullable<decimal> Original_MinCost, int idProduct) {
  8232. if ((idTypeProduct.HasValue == true)) {
  8233. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(idTypeProduct.Value));
  8234. }
  8235. else {
  8236. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  8237. }
  8238. if ((NameProduct == null)) {
  8239. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  8240. }
  8241. else {
  8242. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(NameProduct));
  8243. }
  8244. if ((Article.HasValue == true)) {
  8245. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Article.Value));
  8246. }
  8247. else {
  8248. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  8249. }
  8250. if ((MinCost.HasValue == true)) {
  8251. this.Adapter.UpdateCommand.Parameters[3].Value = ((decimal)(MinCost.Value));
  8252. }
  8253. else {
  8254. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8255. }
  8256. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_idProduct));
  8257. if ((Original_idTypeProduct.HasValue == true)) {
  8258. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  8259. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_idTypeProduct.Value));
  8260. }
  8261. else {
  8262. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  8263. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  8264. }
  8265. if ((Original_Article.HasValue == true)) {
  8266. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  8267. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_Article.Value));
  8268. }
  8269. else {
  8270. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  8271. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  8272. }
  8273. if ((Original_MinCost.HasValue == true)) {
  8274. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  8275. this.Adapter.UpdateCommand.Parameters[10].Value = ((decimal)(Original_MinCost.Value));
  8276. }
  8277. else {
  8278. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  8279. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  8280. }
  8281. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(idProduct));
  8282. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8283. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8284. != global::System.Data.ConnectionState.Open)) {
  8285. this.Adapter.UpdateCommand.Connection.Open();
  8286. }
  8287. try {
  8288. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8289. return returnValue;
  8290. }
  8291. finally {
  8292. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8293. this.Adapter.UpdateCommand.Connection.Close();
  8294. }
  8295. }
  8296. }
  8297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8299. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8300. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8301. public virtual int Update(global::System.Nullable<int> idTypeProduct, string NameProduct, global::System.Nullable<int> Article, global::System.Nullable<decimal> MinCost, int Original_idProduct, global::System.Nullable<int> Original_idTypeProduct, global::System.Nullable<int> Original_Article, global::System.Nullable<decimal> Original_MinCost) {
  8302. return this.Update(idTypeProduct, NameProduct, Article, MinCost, Original_idProduct, Original_idTypeProduct, Original_Article, Original_MinCost, Original_idProduct);
  8303. }
  8304. }
  8305. /// <summary>
  8306. ///Represents the connection and commands used to retrieve and save data.
  8307. ///</summary>
  8308. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8309. [global::System.ComponentModel.ToolboxItem(true)]
  8310. [global::System.ComponentModel.DataObjectAttribute(true)]
  8311. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8312. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8313. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8314. public partial class RegionTableAdapter : global::System.ComponentModel.Component {
  8315. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8316. private global::System.Data.SqlClient.SqlConnection _connection;
  8317. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8318. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8319. private bool _clearBeforeFill;
  8320. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8321. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8322. public RegionTableAdapter() {
  8323. this.ClearBeforeFill = true;
  8324. }
  8325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8327. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8328. get {
  8329. if ((this._adapter == null)) {
  8330. this.InitAdapter();
  8331. }
  8332. return this._adapter;
  8333. }
  8334. }
  8335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8337. internal global::System.Data.SqlClient.SqlConnection Connection {
  8338. get {
  8339. if ((this._connection == null)) {
  8340. this.InitConnection();
  8341. }
  8342. return this._connection;
  8343. }
  8344. set {
  8345. this._connection = value;
  8346. if ((this.Adapter.InsertCommand != null)) {
  8347. this.Adapter.InsertCommand.Connection = value;
  8348. }
  8349. if ((this.Adapter.DeleteCommand != null)) {
  8350. this.Adapter.DeleteCommand.Connection = value;
  8351. }
  8352. if ((this.Adapter.UpdateCommand != null)) {
  8353. this.Adapter.UpdateCommand.Connection = value;
  8354. }
  8355. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8356. if ((this.CommandCollection[i] != null)) {
  8357. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8358. }
  8359. }
  8360. }
  8361. }
  8362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8364. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8365. get {
  8366. return this._transaction;
  8367. }
  8368. set {
  8369. this._transaction = value;
  8370. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8371. this.CommandCollection[i].Transaction = this._transaction;
  8372. }
  8373. if (((this.Adapter != null)
  8374. && (this.Adapter.DeleteCommand != null))) {
  8375. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8376. }
  8377. if (((this.Adapter != null)
  8378. && (this.Adapter.InsertCommand != null))) {
  8379. this.Adapter.InsertCommand.Transaction = this._transaction;
  8380. }
  8381. if (((this.Adapter != null)
  8382. && (this.Adapter.UpdateCommand != null))) {
  8383. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8384. }
  8385. }
  8386. }
  8387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8389. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8390. get {
  8391. if ((this._commandCollection == null)) {
  8392. this.InitCommandCollection();
  8393. }
  8394. return this._commandCollection;
  8395. }
  8396. }
  8397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8399. public bool ClearBeforeFill {
  8400. get {
  8401. return this._clearBeforeFill;
  8402. }
  8403. set {
  8404. this._clearBeforeFill = value;
  8405. }
  8406. }
  8407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8408. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8409. private void InitAdapter() {
  8410. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8411. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8412. tableMapping.SourceTable = "Table";
  8413. tableMapping.DataSetTable = "Region";
  8414. tableMapping.ColumnMappings.Add("idRegion", "idRegion");
  8415. tableMapping.ColumnMappings.Add("Region", "Region");
  8416. this._adapter.TableMappings.Add(tableMapping);
  8417. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8418. this._adapter.DeleteCommand.Connection = this.Connection;
  8419. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Region] WHERE (([idRegion] = @Original_idRegion) AND ((@IsNull" +
  8420. "_Region = 1 AND [Region] IS NULL) OR ([Region] = @Original_Region)))";
  8421. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8422. 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, "", "", ""));
  8423. 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, "", "", ""));
  8424. 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, "", "", ""));
  8425. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8426. this._adapter.InsertCommand.Connection = this.Connection;
  8427. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Region] ([Region]) VALUES (@Region);\r\nSELECT idRegion, Region " +
  8428. "FROM Region WHERE (idRegion = SCOPE_IDENTITY())";
  8429. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8430. 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, "", "", ""));
  8431. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8432. this._adapter.UpdateCommand.Connection = this.Connection;
  8433. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Region] SET [Region] = @Region WHERE (([idRegion] = @Original_idReg" +
  8434. "ion) AND ((@IsNull_Region = 1 AND [Region] IS NULL) OR ([Region] = @Original_Reg" +
  8435. "ion)));\r\nSELECT idRegion, Region FROM Region WHERE (idRegion = @idRegion)";
  8436. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8437. 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, "", "", ""));
  8438. 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, "", "", ""));
  8439. 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, "", "", ""));
  8440. 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, "", "", ""));
  8441. 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, "", "", ""));
  8442. }
  8443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8444. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8445. private void InitConnection() {
  8446. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8447. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.dbAlphapolAGConnectionString;
  8448. }
  8449. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8450. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8451. private void InitCommandCollection() {
  8452. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8453. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8454. this._commandCollection[0].Connection = this.Connection;
  8455. this._commandCollection[0].CommandText = "SELECT idRegion, Region FROM dbo.Region";
  8456. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8457. }
  8458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8459. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8460. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8461. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8462. public virtual int Fill(dbAlphapolAGDataSet.RegionDataTable dataTable) {
  8463. this.Adapter.SelectCommand = this.CommandCollection[0];
  8464. if ((this.ClearBeforeFill == true)) {
  8465. dataTable.Clear();
  8466. }
  8467. int returnValue = this.Adapter.Fill(dataTable);
  8468. return returnValue;
  8469. }
  8470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8471. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8472. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8473. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8474. public virtual dbAlphapolAGDataSet.RegionDataTable GetData() {
  8475. this.Adapter.SelectCommand = this.CommandCollection[0];
  8476. dbAlphapolAGDataSet.RegionDataTable dataTable = new dbAlphapolAGDataSet.RegionDataTable();
  8477. this.Adapter.Fill(dataTable);
  8478. return dataTable;
  8479. }
  8480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8482. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8483. public virtual int Update(dbAlphapolAGDataSet.RegionDataTable dataTable) {
  8484. return this.Adapter.Update(dataTable);
  8485. }
  8486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8488. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8489. public virtual int Update(dbAlphapolAGDataSet dataSet) {
  8490. return this.Adapter.Update(dataSet, "Region");
  8491. }
  8492. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8493. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8494. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8495. public virtual int Update(global::System.Data.DataRow dataRow) {
  8496. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8497. dataRow});
  8498. }
  8499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8500. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8501. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8502. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8503. return this.Adapter.Update(dataRows);
  8504. }
  8505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8507. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8508. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8509. public virtual int Delete(int Original_idRegion, string Original_Region) {
  8510. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idRegion));
  8511. if ((Original_Region == null)) {
  8512. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  8513. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  8514. }
  8515. else {
  8516. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  8517. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Region));
  8518. }
  8519. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8520. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8521. != global::System.Data.ConnectionState.Open)) {
  8522. this.Adapter.DeleteCommand.Connection.Open();
  8523. }
  8524. try {
  8525. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8526. return returnValue;
  8527. }
  8528. finally {
  8529. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8530. this.Adapter.DeleteCommand.Connection.Close();
  8531. }
  8532. }
  8533. }
  8534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8536. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8537. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8538. public virtual int Insert(string Region) {
  8539. if ((Region == null)) {
  8540. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  8541. }
  8542. else {
  8543. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Region));
  8544. }
  8545. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8546. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8547. != global::System.Data.ConnectionState.Open)) {
  8548. this.Adapter.InsertCommand.Connection.Open();
  8549. }
  8550. try {
  8551. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8552. return returnValue;
  8553. }
  8554. finally {
  8555. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8556. this.Adapter.InsertCommand.Connection.Close();
  8557. }
  8558. }
  8559. }
  8560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8562. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8563. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8564. public virtual int Update(string Region, int Original_idRegion, string Original_Region, int idRegion) {
  8565. if ((Region == null)) {
  8566. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  8567. }
  8568. else {
  8569. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Region));
  8570. }
  8571. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_idRegion));
  8572. if ((Original_Region == null)) {
  8573. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  8574. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8575. }
  8576. else {
  8577. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  8578. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Region));
  8579. }
  8580. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(idRegion));
  8581. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8582. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8583. != global::System.Data.ConnectionState.Open)) {
  8584. this.Adapter.UpdateCommand.Connection.Open();
  8585. }
  8586. try {
  8587. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8588. return returnValue;
  8589. }
  8590. finally {
  8591. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8592. this.Adapter.UpdateCommand.Connection.Close();
  8593. }
  8594. }
  8595. }
  8596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8598. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8599. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8600. public virtual int Update(string Region, int Original_idRegion, string Original_Region) {
  8601. return this.Update(Region, Original_idRegion, Original_Region, Original_idRegion);
  8602. }
  8603. }
  8604. /// <summary>
  8605. ///Represents the connection and commands used to retrieve and save data.
  8606. ///</summary>
  8607. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8608. [global::System.ComponentModel.ToolboxItem(true)]
  8609. [global::System.ComponentModel.DataObjectAttribute(true)]
  8610. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8611. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8612. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8613. public partial class StreetTableAdapter : global::System.ComponentModel.Component {
  8614. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8615. private global::System.Data.SqlClient.SqlConnection _connection;
  8616. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8617. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8618. private bool _clearBeforeFill;
  8619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8621. public StreetTableAdapter() {
  8622. this.ClearBeforeFill = true;
  8623. }
  8624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8626. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8627. get {
  8628. if ((this._adapter == null)) {
  8629. this.InitAdapter();
  8630. }
  8631. return this._adapter;
  8632. }
  8633. }
  8634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8636. internal global::System.Data.SqlClient.SqlConnection Connection {
  8637. get {
  8638. if ((this._connection == null)) {
  8639. this.InitConnection();
  8640. }
  8641. return this._connection;
  8642. }
  8643. set {
  8644. this._connection = value;
  8645. if ((this.Adapter.InsertCommand != null)) {
  8646. this.Adapter.InsertCommand.Connection = value;
  8647. }
  8648. if ((this.Adapter.DeleteCommand != null)) {
  8649. this.Adapter.DeleteCommand.Connection = value;
  8650. }
  8651. if ((this.Adapter.UpdateCommand != null)) {
  8652. this.Adapter.UpdateCommand.Connection = value;
  8653. }
  8654. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8655. if ((this.CommandCollection[i] != null)) {
  8656. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8657. }
  8658. }
  8659. }
  8660. }
  8661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8663. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8664. get {
  8665. return this._transaction;
  8666. }
  8667. set {
  8668. this._transaction = value;
  8669. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8670. this.CommandCollection[i].Transaction = this._transaction;
  8671. }
  8672. if (((this.Adapter != null)
  8673. && (this.Adapter.DeleteCommand != null))) {
  8674. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8675. }
  8676. if (((this.Adapter != null)
  8677. && (this.Adapter.InsertCommand != null))) {
  8678. this.Adapter.InsertCommand.Transaction = this._transaction;
  8679. }
  8680. if (((this.Adapter != null)
  8681. && (this.Adapter.UpdateCommand != null))) {
  8682. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8683. }
  8684. }
  8685. }
  8686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8688. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8689. get {
  8690. if ((this._commandCollection == null)) {
  8691. this.InitCommandCollection();
  8692. }
  8693. return this._commandCollection;
  8694. }
  8695. }
  8696. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8698. public bool ClearBeforeFill {
  8699. get {
  8700. return this._clearBeforeFill;
  8701. }
  8702. set {
  8703. this._clearBeforeFill = value;
  8704. }
  8705. }
  8706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8708. private void InitAdapter() {
  8709. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8710. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8711. tableMapping.SourceTable = "Table";
  8712. tableMapping.DataSetTable = "Street";
  8713. tableMapping.ColumnMappings.Add("idStreet", "idStreet");
  8714. tableMapping.ColumnMappings.Add("Street", "Street");
  8715. this._adapter.TableMappings.Add(tableMapping);
  8716. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8717. this._adapter.DeleteCommand.Connection = this.Connection;
  8718. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Street] WHERE (([idStreet] = @Original_idStreet) AND ((@IsNull" +
  8719. "_Street = 1 AND [Street] IS NULL) OR ([Street] = @Original_Street)))";
  8720. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8721. 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, "", "", ""));
  8722. 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, "", "", ""));
  8723. 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, "", "", ""));
  8724. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8725. this._adapter.InsertCommand.Connection = this.Connection;
  8726. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Street] ([Street]) VALUES (@Street);\r\nSELECT idStreet, Street " +
  8727. "FROM Street WHERE (idStreet = SCOPE_IDENTITY())";
  8728. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8729. 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, "", "", ""));
  8730. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8731. this._adapter.UpdateCommand.Connection = this.Connection;
  8732. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Street] SET [Street] = @Street WHERE (([idStreet] = @Original_idStr" +
  8733. "eet) AND ((@IsNull_Street = 1 AND [Street] IS NULL) OR ([Street] = @Original_Str" +
  8734. "eet)));\r\nSELECT idStreet, Street FROM Street WHERE (idStreet = @idStreet)";
  8735. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8736. 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, "", "", ""));
  8737. 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, "", "", ""));
  8738. 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, "", "", ""));
  8739. 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, "", "", ""));
  8740. 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, "", "", ""));
  8741. }
  8742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8744. private void InitConnection() {
  8745. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8746. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.dbAlphapolAGConnectionString;
  8747. }
  8748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8750. private void InitCommandCollection() {
  8751. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8752. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8753. this._commandCollection[0].Connection = this.Connection;
  8754. this._commandCollection[0].CommandText = "SELECT idStreet, Street FROM dbo.Street";
  8755. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8756. }
  8757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8759. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8760. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8761. public virtual int Fill(dbAlphapolAGDataSet.StreetDataTable dataTable) {
  8762. this.Adapter.SelectCommand = this.CommandCollection[0];
  8763. if ((this.ClearBeforeFill == true)) {
  8764. dataTable.Clear();
  8765. }
  8766. int returnValue = this.Adapter.Fill(dataTable);
  8767. return returnValue;
  8768. }
  8769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8771. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8772. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8773. public virtual dbAlphapolAGDataSet.StreetDataTable GetData() {
  8774. this.Adapter.SelectCommand = this.CommandCollection[0];
  8775. dbAlphapolAGDataSet.StreetDataTable dataTable = new dbAlphapolAGDataSet.StreetDataTable();
  8776. this.Adapter.Fill(dataTable);
  8777. return dataTable;
  8778. }
  8779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8781. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8782. public virtual int Update(dbAlphapolAGDataSet.StreetDataTable dataTable) {
  8783. return this.Adapter.Update(dataTable);
  8784. }
  8785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8786. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8787. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8788. public virtual int Update(dbAlphapolAGDataSet dataSet) {
  8789. return this.Adapter.Update(dataSet, "Street");
  8790. }
  8791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8793. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8794. public virtual int Update(global::System.Data.DataRow dataRow) {
  8795. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8796. dataRow});
  8797. }
  8798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8800. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8801. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8802. return this.Adapter.Update(dataRows);
  8803. }
  8804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8806. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8807. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8808. public virtual int Delete(int Original_idStreet, string Original_Street) {
  8809. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idStreet));
  8810. if ((Original_Street == null)) {
  8811. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  8812. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  8813. }
  8814. else {
  8815. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  8816. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Street));
  8817. }
  8818. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8819. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8820. != global::System.Data.ConnectionState.Open)) {
  8821. this.Adapter.DeleteCommand.Connection.Open();
  8822. }
  8823. try {
  8824. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8825. return returnValue;
  8826. }
  8827. finally {
  8828. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8829. this.Adapter.DeleteCommand.Connection.Close();
  8830. }
  8831. }
  8832. }
  8833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8835. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8836. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8837. public virtual int Insert(string Street) {
  8838. if ((Street == null)) {
  8839. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  8840. }
  8841. else {
  8842. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Street));
  8843. }
  8844. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8845. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8846. != global::System.Data.ConnectionState.Open)) {
  8847. this.Adapter.InsertCommand.Connection.Open();
  8848. }
  8849. try {
  8850. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8851. return returnValue;
  8852. }
  8853. finally {
  8854. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8855. this.Adapter.InsertCommand.Connection.Close();
  8856. }
  8857. }
  8858. }
  8859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8861. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8862. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8863. public virtual int Update(string Street, int Original_idStreet, string Original_Street, int idStreet) {
  8864. if ((Street == null)) {
  8865. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  8866. }
  8867. else {
  8868. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Street));
  8869. }
  8870. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_idStreet));
  8871. if ((Original_Street == null)) {
  8872. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  8873. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8874. }
  8875. else {
  8876. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  8877. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Street));
  8878. }
  8879. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(idStreet));
  8880. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8881. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8882. != global::System.Data.ConnectionState.Open)) {
  8883. this.Adapter.UpdateCommand.Connection.Open();
  8884. }
  8885. try {
  8886. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8887. return returnValue;
  8888. }
  8889. finally {
  8890. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8891. this.Adapter.UpdateCommand.Connection.Close();
  8892. }
  8893. }
  8894. }
  8895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8897. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8898. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8899. public virtual int Update(string Street, int Original_idStreet, string Original_Street) {
  8900. return this.Update(Street, Original_idStreet, Original_Street, Original_idStreet);
  8901. }
  8902. }
  8903. /// <summary>
  8904. ///Represents the connection and commands used to retrieve and save data.
  8905. ///</summary>
  8906. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8907. [global::System.ComponentModel.ToolboxItem(true)]
  8908. [global::System.ComponentModel.DataObjectAttribute(true)]
  8909. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8910. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8911. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8912. public partial class TypeMaterialTableAdapter : global::System.ComponentModel.Component {
  8913. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8914. private global::System.Data.SqlClient.SqlConnection _connection;
  8915. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8916. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8917. private bool _clearBeforeFill;
  8918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8920. public TypeMaterialTableAdapter() {
  8921. this.ClearBeforeFill = true;
  8922. }
  8923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8925. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8926. get {
  8927. if ((this._adapter == null)) {
  8928. this.InitAdapter();
  8929. }
  8930. return this._adapter;
  8931. }
  8932. }
  8933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8934. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8935. internal global::System.Data.SqlClient.SqlConnection Connection {
  8936. get {
  8937. if ((this._connection == null)) {
  8938. this.InitConnection();
  8939. }
  8940. return this._connection;
  8941. }
  8942. set {
  8943. this._connection = value;
  8944. if ((this.Adapter.InsertCommand != null)) {
  8945. this.Adapter.InsertCommand.Connection = value;
  8946. }
  8947. if ((this.Adapter.DeleteCommand != null)) {
  8948. this.Adapter.DeleteCommand.Connection = value;
  8949. }
  8950. if ((this.Adapter.UpdateCommand != null)) {
  8951. this.Adapter.UpdateCommand.Connection = value;
  8952. }
  8953. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8954. if ((this.CommandCollection[i] != null)) {
  8955. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8956. }
  8957. }
  8958. }
  8959. }
  8960. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8961. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8962. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8963. get {
  8964. return this._transaction;
  8965. }
  8966. set {
  8967. this._transaction = value;
  8968. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8969. this.CommandCollection[i].Transaction = this._transaction;
  8970. }
  8971. if (((this.Adapter != null)
  8972. && (this.Adapter.DeleteCommand != null))) {
  8973. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8974. }
  8975. if (((this.Adapter != null)
  8976. && (this.Adapter.InsertCommand != null))) {
  8977. this.Adapter.InsertCommand.Transaction = this._transaction;
  8978. }
  8979. if (((this.Adapter != null)
  8980. && (this.Adapter.UpdateCommand != null))) {
  8981. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8982. }
  8983. }
  8984. }
  8985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8987. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8988. get {
  8989. if ((this._commandCollection == null)) {
  8990. this.InitCommandCollection();
  8991. }
  8992. return this._commandCollection;
  8993. }
  8994. }
  8995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8997. public bool ClearBeforeFill {
  8998. get {
  8999. return this._clearBeforeFill;
  9000. }
  9001. set {
  9002. this._clearBeforeFill = value;
  9003. }
  9004. }
  9005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9007. private void InitAdapter() {
  9008. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9009. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9010. tableMapping.SourceTable = "Table";
  9011. tableMapping.DataSetTable = "TypeMaterial";
  9012. tableMapping.ColumnMappings.Add("idTypeMaterial", "idTypeMaterial");
  9013. tableMapping.ColumnMappings.Add("TypeMaterial", "TypeMaterial");
  9014. tableMapping.ColumnMappings.Add("PercentDefect", "PercentDefect");
  9015. this._adapter.TableMappings.Add(tableMapping);
  9016. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9017. this._adapter.DeleteCommand.Connection = this.Connection;
  9018. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[TypeMaterial] WHERE (([idTypeMaterial] = @Original_idTypeMaterial) AND ((@IsNull_TypeMaterial = 1 AND [TypeMaterial] IS NULL) OR ([TypeMaterial] = @Original_TypeMaterial)) AND ((@IsNull_PercentDefect = 1 AND [PercentDefect] IS NULL) OR ([PercentDefect] = @Original_PercentDefect)))";
  9019. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9020. 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, "", "", ""));
  9021. 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, "", "", ""));
  9022. 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, "", "", ""));
  9023. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PercentDefect", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PercentDefect", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9024. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PercentDefect", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "PercentDefect", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9025. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9026. this._adapter.InsertCommand.Connection = this.Connection;
  9027. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[TypeMaterial] ([TypeMaterial], [PercentDefect]) VALUES (@TypeM" +
  9028. "aterial, @PercentDefect);\r\nSELECT idTypeMaterial, TypeMaterial, PercentDefect FR" +
  9029. "OM TypeMaterial WHERE (idTypeMaterial = SCOPE_IDENTITY())";
  9030. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9031. 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, "", "", ""));
  9032. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PercentDefect", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "PercentDefect", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9033. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9034. this._adapter.UpdateCommand.Connection = this.Connection;
  9035. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[TypeMaterial] SET [TypeMaterial] = @TypeMaterial, [PercentDefect] = @PercentDefect WHERE (([idTypeMaterial] = @Original_idTypeMaterial) AND ((@IsNull_TypeMaterial = 1 AND [TypeMaterial] IS NULL) OR ([TypeMaterial] = @Original_TypeMaterial)) AND ((@IsNull_PercentDefect = 1 AND [PercentDefect] IS NULL) OR ([PercentDefect] = @Original_PercentDefect)));
  9036. SELECT idTypeMaterial, TypeMaterial, PercentDefect FROM TypeMaterial WHERE (idTypeMaterial = @idTypeMaterial)";
  9037. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9038. 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, "", "", ""));
  9039. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PercentDefect", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "PercentDefect", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9040. 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, "", "", ""));
  9041. 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, "", "", ""));
  9042. 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, "", "", ""));
  9043. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PercentDefect", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PercentDefect", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9044. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PercentDefect", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "PercentDefect", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9045. 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, "", "", ""));
  9046. }
  9047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9048. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9049. private void InitConnection() {
  9050. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9051. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.dbAlphapolAGConnectionString;
  9052. }
  9053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9055. private void InitCommandCollection() {
  9056. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9057. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9058. this._commandCollection[0].Connection = this.Connection;
  9059. this._commandCollection[0].CommandText = "SELECT idTypeMaterial, TypeMaterial, PercentDefect FROM dbo.TypeMaterial";
  9060. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9061. }
  9062. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9063. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9064. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9065. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9066. public virtual int Fill(dbAlphapolAGDataSet.TypeMaterialDataTable dataTable) {
  9067. this.Adapter.SelectCommand = this.CommandCollection[0];
  9068. if ((this.ClearBeforeFill == true)) {
  9069. dataTable.Clear();
  9070. }
  9071. int returnValue = this.Adapter.Fill(dataTable);
  9072. return returnValue;
  9073. }
  9074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9076. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9077. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9078. public virtual dbAlphapolAGDataSet.TypeMaterialDataTable GetData() {
  9079. this.Adapter.SelectCommand = this.CommandCollection[0];
  9080. dbAlphapolAGDataSet.TypeMaterialDataTable dataTable = new dbAlphapolAGDataSet.TypeMaterialDataTable();
  9081. this.Adapter.Fill(dataTable);
  9082. return dataTable;
  9083. }
  9084. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9085. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9086. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9087. public virtual int Update(dbAlphapolAGDataSet.TypeMaterialDataTable dataTable) {
  9088. return this.Adapter.Update(dataTable);
  9089. }
  9090. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9091. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9092. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9093. public virtual int Update(dbAlphapolAGDataSet dataSet) {
  9094. return this.Adapter.Update(dataSet, "TypeMaterial");
  9095. }
  9096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9098. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9099. public virtual int Update(global::System.Data.DataRow dataRow) {
  9100. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9101. dataRow});
  9102. }
  9103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9105. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9106. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9107. return this.Adapter.Update(dataRows);
  9108. }
  9109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9110. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9111. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9112. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9113. public virtual int Delete(int Original_idTypeMaterial, string Original_TypeMaterial, global::System.Nullable<decimal> Original_PercentDefect) {
  9114. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idTypeMaterial));
  9115. if ((Original_TypeMaterial == null)) {
  9116. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  9117. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  9118. }
  9119. else {
  9120. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  9121. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_TypeMaterial));
  9122. }
  9123. if ((Original_PercentDefect.HasValue == true)) {
  9124. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  9125. this.Adapter.DeleteCommand.Parameters[4].Value = ((decimal)(Original_PercentDefect.Value));
  9126. }
  9127. else {
  9128. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  9129. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  9130. }
  9131. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9132. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9133. != global::System.Data.ConnectionState.Open)) {
  9134. this.Adapter.DeleteCommand.Connection.Open();
  9135. }
  9136. try {
  9137. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9138. return returnValue;
  9139. }
  9140. finally {
  9141. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9142. this.Adapter.DeleteCommand.Connection.Close();
  9143. }
  9144. }
  9145. }
  9146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9147. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9148. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9149. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9150. public virtual int Insert(string TypeMaterial, global::System.Nullable<decimal> PercentDefect) {
  9151. if ((TypeMaterial == null)) {
  9152. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  9153. }
  9154. else {
  9155. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(TypeMaterial));
  9156. }
  9157. if ((PercentDefect.HasValue == true)) {
  9158. this.Adapter.InsertCommand.Parameters[1].Value = ((decimal)(PercentDefect.Value));
  9159. }
  9160. else {
  9161. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  9162. }
  9163. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9164. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9165. != global::System.Data.ConnectionState.Open)) {
  9166. this.Adapter.InsertCommand.Connection.Open();
  9167. }
  9168. try {
  9169. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9170. return returnValue;
  9171. }
  9172. finally {
  9173. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9174. this.Adapter.InsertCommand.Connection.Close();
  9175. }
  9176. }
  9177. }
  9178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9180. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9181. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9182. public virtual int Update(string TypeMaterial, global::System.Nullable<decimal> PercentDefect, int Original_idTypeMaterial, string Original_TypeMaterial, global::System.Nullable<decimal> Original_PercentDefect, int idTypeMaterial) {
  9183. if ((TypeMaterial == null)) {
  9184. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  9185. }
  9186. else {
  9187. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(TypeMaterial));
  9188. }
  9189. if ((PercentDefect.HasValue == true)) {
  9190. this.Adapter.UpdateCommand.Parameters[1].Value = ((decimal)(PercentDefect.Value));
  9191. }
  9192. else {
  9193. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  9194. }
  9195. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_idTypeMaterial));
  9196. if ((Original_TypeMaterial == null)) {
  9197. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  9198. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  9199. }
  9200. else {
  9201. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  9202. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_TypeMaterial));
  9203. }
  9204. if ((Original_PercentDefect.HasValue == true)) {
  9205. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  9206. this.Adapter.UpdateCommand.Parameters[6].Value = ((decimal)(Original_PercentDefect.Value));
  9207. }
  9208. else {
  9209. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  9210. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  9211. }
  9212. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(idTypeMaterial));
  9213. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9214. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9215. != global::System.Data.ConnectionState.Open)) {
  9216. this.Adapter.UpdateCommand.Connection.Open();
  9217. }
  9218. try {
  9219. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9220. return returnValue;
  9221. }
  9222. finally {
  9223. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9224. this.Adapter.UpdateCommand.Connection.Close();
  9225. }
  9226. }
  9227. }
  9228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9230. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9231. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9232. public virtual int Update(string TypeMaterial, global::System.Nullable<decimal> PercentDefect, int Original_idTypeMaterial, string Original_TypeMaterial, global::System.Nullable<decimal> Original_PercentDefect) {
  9233. return this.Update(TypeMaterial, PercentDefect, Original_idTypeMaterial, Original_TypeMaterial, Original_PercentDefect, Original_idTypeMaterial);
  9234. }
  9235. }
  9236. /// <summary>
  9237. ///Represents the connection and commands used to retrieve and save data.
  9238. ///</summary>
  9239. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9240. [global::System.ComponentModel.ToolboxItem(true)]
  9241. [global::System.ComponentModel.DataObjectAttribute(true)]
  9242. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9243. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9244. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9245. public partial class TypePartnerTableAdapter : global::System.ComponentModel.Component {
  9246. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9247. private global::System.Data.SqlClient.SqlConnection _connection;
  9248. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9249. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9250. private bool _clearBeforeFill;
  9251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9253. public TypePartnerTableAdapter() {
  9254. this.ClearBeforeFill = true;
  9255. }
  9256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9258. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9259. get {
  9260. if ((this._adapter == null)) {
  9261. this.InitAdapter();
  9262. }
  9263. return this._adapter;
  9264. }
  9265. }
  9266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9268. internal global::System.Data.SqlClient.SqlConnection Connection {
  9269. get {
  9270. if ((this._connection == null)) {
  9271. this.InitConnection();
  9272. }
  9273. return this._connection;
  9274. }
  9275. set {
  9276. this._connection = value;
  9277. if ((this.Adapter.InsertCommand != null)) {
  9278. this.Adapter.InsertCommand.Connection = value;
  9279. }
  9280. if ((this.Adapter.DeleteCommand != null)) {
  9281. this.Adapter.DeleteCommand.Connection = value;
  9282. }
  9283. if ((this.Adapter.UpdateCommand != null)) {
  9284. this.Adapter.UpdateCommand.Connection = value;
  9285. }
  9286. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9287. if ((this.CommandCollection[i] != null)) {
  9288. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9289. }
  9290. }
  9291. }
  9292. }
  9293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9295. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9296. get {
  9297. return this._transaction;
  9298. }
  9299. set {
  9300. this._transaction = value;
  9301. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9302. this.CommandCollection[i].Transaction = this._transaction;
  9303. }
  9304. if (((this.Adapter != null)
  9305. && (this.Adapter.DeleteCommand != null))) {
  9306. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9307. }
  9308. if (((this.Adapter != null)
  9309. && (this.Adapter.InsertCommand != null))) {
  9310. this.Adapter.InsertCommand.Transaction = this._transaction;
  9311. }
  9312. if (((this.Adapter != null)
  9313. && (this.Adapter.UpdateCommand != null))) {
  9314. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9315. }
  9316. }
  9317. }
  9318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9320. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9321. get {
  9322. if ((this._commandCollection == null)) {
  9323. this.InitCommandCollection();
  9324. }
  9325. return this._commandCollection;
  9326. }
  9327. }
  9328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9330. public bool ClearBeforeFill {
  9331. get {
  9332. return this._clearBeforeFill;
  9333. }
  9334. set {
  9335. this._clearBeforeFill = value;
  9336. }
  9337. }
  9338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9340. private void InitAdapter() {
  9341. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9342. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9343. tableMapping.SourceTable = "Table";
  9344. tableMapping.DataSetTable = "TypePartner";
  9345. tableMapping.ColumnMappings.Add("idTypePartner", "idTypePartner");
  9346. tableMapping.ColumnMappings.Add("Type", "Type");
  9347. this._adapter.TableMappings.Add(tableMapping);
  9348. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9349. this._adapter.DeleteCommand.Connection = this.Connection;
  9350. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[TypePartner] WHERE (([idTypePartner] = @Original_idTypePartner" +
  9351. ") AND ((@IsNull_Type = 1 AND [Type] IS NULL) OR ([Type] = @Original_Type)))";
  9352. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9353. 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, "", "", ""));
  9354. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Type", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Type", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9355. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Type", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Type", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9356. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9357. this._adapter.InsertCommand.Connection = this.Connection;
  9358. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[TypePartner] ([Type]) VALUES (@Type);\r\nSELECT idTypePartner, T" +
  9359. "ype FROM TypePartner WHERE (idTypePartner = SCOPE_IDENTITY())";
  9360. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9361. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Type", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Type", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9362. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9363. this._adapter.UpdateCommand.Connection = this.Connection;
  9364. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[TypePartner] SET [Type] = @Type WHERE (([idTypePartner] = @Original" +
  9365. "_idTypePartner) AND ((@IsNull_Type = 1 AND [Type] IS NULL) OR ([Type] = @Origina" +
  9366. "l_Type)));\r\nSELECT idTypePartner, Type FROM TypePartner WHERE (idTypePartner = @" +
  9367. "idTypePartner)";
  9368. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9369. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Type", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Type", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9370. 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, "", "", ""));
  9371. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Type", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Type", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9372. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Type", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Type", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9373. 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, "", "", ""));
  9374. }
  9375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9377. private void InitConnection() {
  9378. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9379. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.dbAlphapolAGConnectionString;
  9380. }
  9381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9383. private void InitCommandCollection() {
  9384. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9385. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9386. this._commandCollection[0].Connection = this.Connection;
  9387. this._commandCollection[0].CommandText = "SELECT idTypePartner, Type FROM dbo.TypePartner";
  9388. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9389. }
  9390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9392. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9393. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9394. public virtual int Fill(dbAlphapolAGDataSet.TypePartnerDataTable dataTable) {
  9395. this.Adapter.SelectCommand = this.CommandCollection[0];
  9396. if ((this.ClearBeforeFill == true)) {
  9397. dataTable.Clear();
  9398. }
  9399. int returnValue = this.Adapter.Fill(dataTable);
  9400. return returnValue;
  9401. }
  9402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9403. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9404. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9405. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9406. public virtual dbAlphapolAGDataSet.TypePartnerDataTable GetData() {
  9407. this.Adapter.SelectCommand = this.CommandCollection[0];
  9408. dbAlphapolAGDataSet.TypePartnerDataTable dataTable = new dbAlphapolAGDataSet.TypePartnerDataTable();
  9409. this.Adapter.Fill(dataTable);
  9410. return dataTable;
  9411. }
  9412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9413. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9414. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9415. public virtual int Update(dbAlphapolAGDataSet.TypePartnerDataTable dataTable) {
  9416. return this.Adapter.Update(dataTable);
  9417. }
  9418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9420. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9421. public virtual int Update(dbAlphapolAGDataSet dataSet) {
  9422. return this.Adapter.Update(dataSet, "TypePartner");
  9423. }
  9424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9426. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9427. public virtual int Update(global::System.Data.DataRow dataRow) {
  9428. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9429. dataRow});
  9430. }
  9431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9433. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9434. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9435. return this.Adapter.Update(dataRows);
  9436. }
  9437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9439. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9440. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9441. public virtual int Delete(int Original_idTypePartner, string Original_Type) {
  9442. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idTypePartner));
  9443. if ((Original_Type == null)) {
  9444. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  9445. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  9446. }
  9447. else {
  9448. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  9449. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Type));
  9450. }
  9451. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9452. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9453. != global::System.Data.ConnectionState.Open)) {
  9454. this.Adapter.DeleteCommand.Connection.Open();
  9455. }
  9456. try {
  9457. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9458. return returnValue;
  9459. }
  9460. finally {
  9461. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9462. this.Adapter.DeleteCommand.Connection.Close();
  9463. }
  9464. }
  9465. }
  9466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9468. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9469. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9470. public virtual int Insert(string Type) {
  9471. if ((Type == null)) {
  9472. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  9473. }
  9474. else {
  9475. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Type));
  9476. }
  9477. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9478. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9479. != global::System.Data.ConnectionState.Open)) {
  9480. this.Adapter.InsertCommand.Connection.Open();
  9481. }
  9482. try {
  9483. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9484. return returnValue;
  9485. }
  9486. finally {
  9487. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9488. this.Adapter.InsertCommand.Connection.Close();
  9489. }
  9490. }
  9491. }
  9492. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9493. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9494. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9495. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9496. public virtual int Update(string Type, int Original_idTypePartner, string Original_Type, int idTypePartner) {
  9497. if ((Type == null)) {
  9498. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  9499. }
  9500. else {
  9501. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Type));
  9502. }
  9503. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_idTypePartner));
  9504. if ((Original_Type == null)) {
  9505. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  9506. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  9507. }
  9508. else {
  9509. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  9510. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Type));
  9511. }
  9512. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(idTypePartner));
  9513. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9514. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9515. != global::System.Data.ConnectionState.Open)) {
  9516. this.Adapter.UpdateCommand.Connection.Open();
  9517. }
  9518. try {
  9519. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9520. return returnValue;
  9521. }
  9522. finally {
  9523. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9524. this.Adapter.UpdateCommand.Connection.Close();
  9525. }
  9526. }
  9527. }
  9528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9530. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9531. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9532. public virtual int Update(string Type, int Original_idTypePartner, string Original_Type) {
  9533. return this.Update(Type, Original_idTypePartner, Original_Type, Original_idTypePartner);
  9534. }
  9535. }
  9536. /// <summary>
  9537. ///Represents the connection and commands used to retrieve and save data.
  9538. ///</summary>
  9539. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9540. [global::System.ComponentModel.ToolboxItem(true)]
  9541. [global::System.ComponentModel.DataObjectAttribute(true)]
  9542. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9543. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9544. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9545. public partial class TypeProductTableAdapter : global::System.ComponentModel.Component {
  9546. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9547. private global::System.Data.SqlClient.SqlConnection _connection;
  9548. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9549. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9550. private bool _clearBeforeFill;
  9551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9553. public TypeProductTableAdapter() {
  9554. this.ClearBeforeFill = true;
  9555. }
  9556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9558. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9559. get {
  9560. if ((this._adapter == null)) {
  9561. this.InitAdapter();
  9562. }
  9563. return this._adapter;
  9564. }
  9565. }
  9566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9568. internal global::System.Data.SqlClient.SqlConnection Connection {
  9569. get {
  9570. if ((this._connection == null)) {
  9571. this.InitConnection();
  9572. }
  9573. return this._connection;
  9574. }
  9575. set {
  9576. this._connection = value;
  9577. if ((this.Adapter.InsertCommand != null)) {
  9578. this.Adapter.InsertCommand.Connection = value;
  9579. }
  9580. if ((this.Adapter.DeleteCommand != null)) {
  9581. this.Adapter.DeleteCommand.Connection = value;
  9582. }
  9583. if ((this.Adapter.UpdateCommand != null)) {
  9584. this.Adapter.UpdateCommand.Connection = value;
  9585. }
  9586. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9587. if ((this.CommandCollection[i] != null)) {
  9588. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9589. }
  9590. }
  9591. }
  9592. }
  9593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9595. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9596. get {
  9597. return this._transaction;
  9598. }
  9599. set {
  9600. this._transaction = value;
  9601. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9602. this.CommandCollection[i].Transaction = this._transaction;
  9603. }
  9604. if (((this.Adapter != null)
  9605. && (this.Adapter.DeleteCommand != null))) {
  9606. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9607. }
  9608. if (((this.Adapter != null)
  9609. && (this.Adapter.InsertCommand != null))) {
  9610. this.Adapter.InsertCommand.Transaction = this._transaction;
  9611. }
  9612. if (((this.Adapter != null)
  9613. && (this.Adapter.UpdateCommand != null))) {
  9614. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9615. }
  9616. }
  9617. }
  9618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9620. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9621. get {
  9622. if ((this._commandCollection == null)) {
  9623. this.InitCommandCollection();
  9624. }
  9625. return this._commandCollection;
  9626. }
  9627. }
  9628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9630. public bool ClearBeforeFill {
  9631. get {
  9632. return this._clearBeforeFill;
  9633. }
  9634. set {
  9635. this._clearBeforeFill = value;
  9636. }
  9637. }
  9638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9640. private void InitAdapter() {
  9641. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9642. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9643. tableMapping.SourceTable = "Table";
  9644. tableMapping.DataSetTable = "TypeProduct";
  9645. tableMapping.ColumnMappings.Add("idTypeProduct", "idTypeProduct");
  9646. tableMapping.ColumnMappings.Add("TypeProduct", "TypeProduct");
  9647. tableMapping.ColumnMappings.Add("Coefficient", "Coefficient");
  9648. this._adapter.TableMappings.Add(tableMapping);
  9649. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9650. this._adapter.DeleteCommand.Connection = this.Connection;
  9651. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[TypeProduct] WHERE (([idTypeProduct] = @Original_idTypeProduct) AND ((@IsNull_TypeProduct = 1 AND [TypeProduct] IS NULL) OR ([TypeProduct] = @Original_TypeProduct)) AND ((@IsNull_Coefficient = 1 AND [Coefficient] IS NULL) OR ([Coefficient] = @Original_Coefficient)))";
  9652. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9653. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idTypeProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idTypeProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9654. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TypeProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypeProduct", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9655. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TypeProduct", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypeProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9656. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Coefficient", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Coefficient", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9657. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Coefficient", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Coefficient", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9658. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9659. this._adapter.InsertCommand.Connection = this.Connection;
  9660. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[TypeProduct] ([TypeProduct], [Coefficient]) VALUES (@TypeProdu" +
  9661. "ct, @Coefficient);\r\nSELECT idTypeProduct, TypeProduct, Coefficient FROM TypeProd" +
  9662. "uct WHERE (idTypeProduct = SCOPE_IDENTITY())";
  9663. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9664. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TypeProduct", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypeProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9665. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Coefficient", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Coefficient", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9666. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9667. this._adapter.UpdateCommand.Connection = this.Connection;
  9668. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[TypeProduct] SET [TypeProduct] = @TypeProduct, [Coefficient] = @Coefficient WHERE (([idTypeProduct] = @Original_idTypeProduct) AND ((@IsNull_TypeProduct = 1 AND [TypeProduct] IS NULL) OR ([TypeProduct] = @Original_TypeProduct)) AND ((@IsNull_Coefficient = 1 AND [Coefficient] IS NULL) OR ([Coefficient] = @Original_Coefficient)));
  9669. SELECT idTypeProduct, TypeProduct, Coefficient FROM TypeProduct WHERE (idTypeProduct = @idTypeProduct)";
  9670. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9671. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TypeProduct", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypeProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9672. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Coefficient", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Coefficient", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9673. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idTypeProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idTypeProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9674. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TypeProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypeProduct", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9675. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TypeProduct", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypeProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9676. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Coefficient", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Coefficient", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9677. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Coefficient", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Coefficient", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9678. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idTypeProduct", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idTypeProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9679. }
  9680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9682. private void InitConnection() {
  9683. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9684. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.dbAlphapolAGConnectionString;
  9685. }
  9686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9688. private void InitCommandCollection() {
  9689. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9690. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9691. this._commandCollection[0].Connection = this.Connection;
  9692. this._commandCollection[0].CommandText = "SELECT idTypeProduct, TypeProduct, Coefficient FROM dbo.TypeProduct";
  9693. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9694. }
  9695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9697. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9698. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9699. public virtual int Fill(dbAlphapolAGDataSet.TypeProductDataTable dataTable) {
  9700. this.Adapter.SelectCommand = this.CommandCollection[0];
  9701. if ((this.ClearBeforeFill == true)) {
  9702. dataTable.Clear();
  9703. }
  9704. int returnValue = this.Adapter.Fill(dataTable);
  9705. return returnValue;
  9706. }
  9707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9709. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9710. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9711. public virtual dbAlphapolAGDataSet.TypeProductDataTable GetData() {
  9712. this.Adapter.SelectCommand = this.CommandCollection[0];
  9713. dbAlphapolAGDataSet.TypeProductDataTable dataTable = new dbAlphapolAGDataSet.TypeProductDataTable();
  9714. this.Adapter.Fill(dataTable);
  9715. return dataTable;
  9716. }
  9717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9719. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9720. public virtual int Update(dbAlphapolAGDataSet.TypeProductDataTable dataTable) {
  9721. return this.Adapter.Update(dataTable);
  9722. }
  9723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9725. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9726. public virtual int Update(dbAlphapolAGDataSet dataSet) {
  9727. return this.Adapter.Update(dataSet, "TypeProduct");
  9728. }
  9729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9731. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9732. public virtual int Update(global::System.Data.DataRow dataRow) {
  9733. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9734. dataRow});
  9735. }
  9736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9738. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9739. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9740. return this.Adapter.Update(dataRows);
  9741. }
  9742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9744. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9745. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9746. public virtual int Delete(int Original_idTypeProduct, string Original_TypeProduct, global::System.Nullable<double> Original_Coefficient) {
  9747. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idTypeProduct));
  9748. if ((Original_TypeProduct == null)) {
  9749. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  9750. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  9751. }
  9752. else {
  9753. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  9754. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_TypeProduct));
  9755. }
  9756. if ((Original_Coefficient.HasValue == true)) {
  9757. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  9758. this.Adapter.DeleteCommand.Parameters[4].Value = ((double)(Original_Coefficient.Value));
  9759. }
  9760. else {
  9761. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  9762. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  9763. }
  9764. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9765. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9766. != global::System.Data.ConnectionState.Open)) {
  9767. this.Adapter.DeleteCommand.Connection.Open();
  9768. }
  9769. try {
  9770. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9771. return returnValue;
  9772. }
  9773. finally {
  9774. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9775. this.Adapter.DeleteCommand.Connection.Close();
  9776. }
  9777. }
  9778. }
  9779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9781. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9782. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9783. public virtual int Insert(string TypeProduct, global::System.Nullable<double> Coefficient) {
  9784. if ((TypeProduct == null)) {
  9785. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  9786. }
  9787. else {
  9788. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(TypeProduct));
  9789. }
  9790. if ((Coefficient.HasValue == true)) {
  9791. this.Adapter.InsertCommand.Parameters[1].Value = ((double)(Coefficient.Value));
  9792. }
  9793. else {
  9794. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  9795. }
  9796. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9797. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9798. != global::System.Data.ConnectionState.Open)) {
  9799. this.Adapter.InsertCommand.Connection.Open();
  9800. }
  9801. try {
  9802. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9803. return returnValue;
  9804. }
  9805. finally {
  9806. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9807. this.Adapter.InsertCommand.Connection.Close();
  9808. }
  9809. }
  9810. }
  9811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9813. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9814. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9815. public virtual int Update(string TypeProduct, global::System.Nullable<double> Coefficient, int Original_idTypeProduct, string Original_TypeProduct, global::System.Nullable<double> Original_Coefficient, int idTypeProduct) {
  9816. if ((TypeProduct == null)) {
  9817. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  9818. }
  9819. else {
  9820. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(TypeProduct));
  9821. }
  9822. if ((Coefficient.HasValue == true)) {
  9823. this.Adapter.UpdateCommand.Parameters[1].Value = ((double)(Coefficient.Value));
  9824. }
  9825. else {
  9826. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  9827. }
  9828. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_idTypeProduct));
  9829. if ((Original_TypeProduct == null)) {
  9830. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  9831. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  9832. }
  9833. else {
  9834. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  9835. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_TypeProduct));
  9836. }
  9837. if ((Original_Coefficient.HasValue == true)) {
  9838. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  9839. this.Adapter.UpdateCommand.Parameters[6].Value = ((double)(Original_Coefficient.Value));
  9840. }
  9841. else {
  9842. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  9843. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  9844. }
  9845. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(idTypeProduct));
  9846. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9847. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9848. != global::System.Data.ConnectionState.Open)) {
  9849. this.Adapter.UpdateCommand.Connection.Open();
  9850. }
  9851. try {
  9852. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9853. return returnValue;
  9854. }
  9855. finally {
  9856. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9857. this.Adapter.UpdateCommand.Connection.Close();
  9858. }
  9859. }
  9860. }
  9861. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9862. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9863. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9864. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9865. public virtual int Update(string TypeProduct, global::System.Nullable<double> Coefficient, int Original_idTypeProduct, string Original_TypeProduct, global::System.Nullable<double> Original_Coefficient) {
  9866. return this.Update(TypeProduct, Coefficient, Original_idTypeProduct, Original_TypeProduct, Original_Coefficient, Original_idTypeProduct);
  9867. }
  9868. }
  9869. /// <summary>
  9870. ///Represents the connection and commands used to retrieve and save data.
  9871. ///</summary>
  9872. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9873. [global::System.ComponentModel.ToolboxItem(true)]
  9874. [global::System.ComponentModel.DataObjectAttribute(true)]
  9875. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9876. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9877. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9878. public partial class TypeForFilterTableAdapter : global::System.ComponentModel.Component {
  9879. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9880. private global::System.Data.SqlClient.SqlConnection _connection;
  9881. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9882. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9883. private bool _clearBeforeFill;
  9884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9886. public TypeForFilterTableAdapter() {
  9887. this.ClearBeforeFill = true;
  9888. }
  9889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9891. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9892. get {
  9893. if ((this._adapter == null)) {
  9894. this.InitAdapter();
  9895. }
  9896. return this._adapter;
  9897. }
  9898. }
  9899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9901. internal global::System.Data.SqlClient.SqlConnection Connection {
  9902. get {
  9903. if ((this._connection == null)) {
  9904. this.InitConnection();
  9905. }
  9906. return this._connection;
  9907. }
  9908. set {
  9909. this._connection = value;
  9910. if ((this.Adapter.InsertCommand != null)) {
  9911. this.Adapter.InsertCommand.Connection = value;
  9912. }
  9913. if ((this.Adapter.DeleteCommand != null)) {
  9914. this.Adapter.DeleteCommand.Connection = value;
  9915. }
  9916. if ((this.Adapter.UpdateCommand != null)) {
  9917. this.Adapter.UpdateCommand.Connection = value;
  9918. }
  9919. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9920. if ((this.CommandCollection[i] != null)) {
  9921. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9922. }
  9923. }
  9924. }
  9925. }
  9926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9928. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9929. get {
  9930. return this._transaction;
  9931. }
  9932. set {
  9933. this._transaction = value;
  9934. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9935. this.CommandCollection[i].Transaction = this._transaction;
  9936. }
  9937. if (((this.Adapter != null)
  9938. && (this.Adapter.DeleteCommand != null))) {
  9939. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9940. }
  9941. if (((this.Adapter != null)
  9942. && (this.Adapter.InsertCommand != null))) {
  9943. this.Adapter.InsertCommand.Transaction = this._transaction;
  9944. }
  9945. if (((this.Adapter != null)
  9946. && (this.Adapter.UpdateCommand != null))) {
  9947. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9948. }
  9949. }
  9950. }
  9951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9952. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9953. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9954. get {
  9955. if ((this._commandCollection == null)) {
  9956. this.InitCommandCollection();
  9957. }
  9958. return this._commandCollection;
  9959. }
  9960. }
  9961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9963. public bool ClearBeforeFill {
  9964. get {
  9965. return this._clearBeforeFill;
  9966. }
  9967. set {
  9968. this._clearBeforeFill = value;
  9969. }
  9970. }
  9971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9972. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9973. private void InitAdapter() {
  9974. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9975. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9976. tableMapping.SourceTable = "Table";
  9977. tableMapping.DataSetTable = "TypeForFilter";
  9978. tableMapping.ColumnMappings.Add("Column1", "Type");
  9979. this._adapter.TableMappings.Add(tableMapping);
  9980. }
  9981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9982. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9983. private void InitConnection() {
  9984. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9985. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.dbAlphapolAGConnectionString;
  9986. }
  9987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9989. private void InitCommandCollection() {
  9990. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9991. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9992. this._commandCollection[0].Connection = this.Connection;
  9993. this._commandCollection[0].CommandText = "select \'Все типы\'\r\nunion all\r\nselect type \r\nfrom TypePartner";
  9994. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9995. }
  9996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9998. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9999. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10000. public virtual int Fill(dbAlphapolAGDataSet.TypeForFilterDataTable dataTable) {
  10001. this.Adapter.SelectCommand = this.CommandCollection[0];
  10002. if ((this.ClearBeforeFill == true)) {
  10003. dataTable.Clear();
  10004. }
  10005. int returnValue = this.Adapter.Fill(dataTable);
  10006. return returnValue;
  10007. }
  10008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10010. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10011. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10012. public virtual dbAlphapolAGDataSet.TypeForFilterDataTable GetData() {
  10013. this.Adapter.SelectCommand = this.CommandCollection[0];
  10014. dbAlphapolAGDataSet.TypeForFilterDataTable dataTable = new dbAlphapolAGDataSet.TypeForFilterDataTable();
  10015. this.Adapter.Fill(dataTable);
  10016. return dataTable;
  10017. }
  10018. }
  10019. /// <summary>
  10020. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  10021. ///</summary>
  10022. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10023. [global::System.ComponentModel.ToolboxItem(true)]
  10024. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  10025. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10026. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  10027. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  10028. private UpdateOrderOption _updateOrder;
  10029. private CityTableAdapter _cityTableAdapter;
  10030. private IndexPartnerTableAdapter _indexPartnerTableAdapter;
  10031. private ManagerTableAdapter _managerTableAdapter;
  10032. private PartnerTableAdapter _partnerTableAdapter;
  10033. private ProductPartnerTableAdapter _productPartnerTableAdapter;
  10034. private ProductsTableAdapter _productsTableAdapter;
  10035. private RegionTableAdapter _regionTableAdapter;
  10036. private StreetTableAdapter _streetTableAdapter;
  10037. private TypeMaterialTableAdapter _typeMaterialTableAdapter;
  10038. private TypePartnerTableAdapter _typePartnerTableAdapter;
  10039. private TypeProductTableAdapter _typeProductTableAdapter;
  10040. private bool _backupDataSetBeforeUpdate;
  10041. private global::System.Data.IDbConnection _connection;
  10042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10044. public UpdateOrderOption UpdateOrder {
  10045. get {
  10046. return this._updateOrder;
  10047. }
  10048. set {
  10049. this._updateOrder = value;
  10050. }
  10051. }
  10052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10054. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10055. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10056. "a", "System.Drawing.Design.UITypeEditor")]
  10057. public CityTableAdapter CityTableAdapter {
  10058. get {
  10059. return this._cityTableAdapter;
  10060. }
  10061. set {
  10062. this._cityTableAdapter = value;
  10063. }
  10064. }
  10065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10067. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10068. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10069. "a", "System.Drawing.Design.UITypeEditor")]
  10070. public IndexPartnerTableAdapter IndexPartnerTableAdapter {
  10071. get {
  10072. return this._indexPartnerTableAdapter;
  10073. }
  10074. set {
  10075. this._indexPartnerTableAdapter = value;
  10076. }
  10077. }
  10078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10080. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10081. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10082. "a", "System.Drawing.Design.UITypeEditor")]
  10083. public ManagerTableAdapter ManagerTableAdapter {
  10084. get {
  10085. return this._managerTableAdapter;
  10086. }
  10087. set {
  10088. this._managerTableAdapter = value;
  10089. }
  10090. }
  10091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10093. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10094. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10095. "a", "System.Drawing.Design.UITypeEditor")]
  10096. public PartnerTableAdapter PartnerTableAdapter {
  10097. get {
  10098. return this._partnerTableAdapter;
  10099. }
  10100. set {
  10101. this._partnerTableAdapter = value;
  10102. }
  10103. }
  10104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10106. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10107. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10108. "a", "System.Drawing.Design.UITypeEditor")]
  10109. public ProductPartnerTableAdapter ProductPartnerTableAdapter {
  10110. get {
  10111. return this._productPartnerTableAdapter;
  10112. }
  10113. set {
  10114. this._productPartnerTableAdapter = value;
  10115. }
  10116. }
  10117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10119. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10120. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10121. "a", "System.Drawing.Design.UITypeEditor")]
  10122. public ProductsTableAdapter ProductsTableAdapter {
  10123. get {
  10124. return this._productsTableAdapter;
  10125. }
  10126. set {
  10127. this._productsTableAdapter = value;
  10128. }
  10129. }
  10130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10132. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10133. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10134. "a", "System.Drawing.Design.UITypeEditor")]
  10135. public RegionTableAdapter RegionTableAdapter {
  10136. get {
  10137. return this._regionTableAdapter;
  10138. }
  10139. set {
  10140. this._regionTableAdapter = value;
  10141. }
  10142. }
  10143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10145. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10146. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10147. "a", "System.Drawing.Design.UITypeEditor")]
  10148. public StreetTableAdapter StreetTableAdapter {
  10149. get {
  10150. return this._streetTableAdapter;
  10151. }
  10152. set {
  10153. this._streetTableAdapter = value;
  10154. }
  10155. }
  10156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10158. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10159. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10160. "a", "System.Drawing.Design.UITypeEditor")]
  10161. public TypeMaterialTableAdapter TypeMaterialTableAdapter {
  10162. get {
  10163. return this._typeMaterialTableAdapter;
  10164. }
  10165. set {
  10166. this._typeMaterialTableAdapter = value;
  10167. }
  10168. }
  10169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10171. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10172. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10173. "a", "System.Drawing.Design.UITypeEditor")]
  10174. public TypePartnerTableAdapter TypePartnerTableAdapter {
  10175. get {
  10176. return this._typePartnerTableAdapter;
  10177. }
  10178. set {
  10179. this._typePartnerTableAdapter = value;
  10180. }
  10181. }
  10182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10184. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10185. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10186. "a", "System.Drawing.Design.UITypeEditor")]
  10187. public TypeProductTableAdapter TypeProductTableAdapter {
  10188. get {
  10189. return this._typeProductTableAdapter;
  10190. }
  10191. set {
  10192. this._typeProductTableAdapter = value;
  10193. }
  10194. }
  10195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10197. public bool BackupDataSetBeforeUpdate {
  10198. get {
  10199. return this._backupDataSetBeforeUpdate;
  10200. }
  10201. set {
  10202. this._backupDataSetBeforeUpdate = value;
  10203. }
  10204. }
  10205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10207. [global::System.ComponentModel.Browsable(false)]
  10208. public global::System.Data.IDbConnection Connection {
  10209. get {
  10210. if ((this._connection != null)) {
  10211. return this._connection;
  10212. }
  10213. if (((this._cityTableAdapter != null)
  10214. && (this._cityTableAdapter.Connection != null))) {
  10215. return this._cityTableAdapter.Connection;
  10216. }
  10217. if (((this._indexPartnerTableAdapter != null)
  10218. && (this._indexPartnerTableAdapter.Connection != null))) {
  10219. return this._indexPartnerTableAdapter.Connection;
  10220. }
  10221. if (((this._managerTableAdapter != null)
  10222. && (this._managerTableAdapter.Connection != null))) {
  10223. return this._managerTableAdapter.Connection;
  10224. }
  10225. if (((this._partnerTableAdapter != null)
  10226. && (this._partnerTableAdapter.Connection != null))) {
  10227. return this._partnerTableAdapter.Connection;
  10228. }
  10229. if (((this._productPartnerTableAdapter != null)
  10230. && (this._productPartnerTableAdapter.Connection != null))) {
  10231. return this._productPartnerTableAdapter.Connection;
  10232. }
  10233. if (((this._productsTableAdapter != null)
  10234. && (this._productsTableAdapter.Connection != null))) {
  10235. return this._productsTableAdapter.Connection;
  10236. }
  10237. if (((this._regionTableAdapter != null)
  10238. && (this._regionTableAdapter.Connection != null))) {
  10239. return this._regionTableAdapter.Connection;
  10240. }
  10241. if (((this._streetTableAdapter != null)
  10242. && (this._streetTableAdapter.Connection != null))) {
  10243. return this._streetTableAdapter.Connection;
  10244. }
  10245. if (((this._typeMaterialTableAdapter != null)
  10246. && (this._typeMaterialTableAdapter.Connection != null))) {
  10247. return this._typeMaterialTableAdapter.Connection;
  10248. }
  10249. if (((this._typePartnerTableAdapter != null)
  10250. && (this._typePartnerTableAdapter.Connection != null))) {
  10251. return this._typePartnerTableAdapter.Connection;
  10252. }
  10253. if (((this._typeProductTableAdapter != null)
  10254. && (this._typeProductTableAdapter.Connection != null))) {
  10255. return this._typeProductTableAdapter.Connection;
  10256. }
  10257. return null;
  10258. }
  10259. set {
  10260. this._connection = value;
  10261. }
  10262. }
  10263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10265. [global::System.ComponentModel.Browsable(false)]
  10266. public int TableAdapterInstanceCount {
  10267. get {
  10268. int count = 0;
  10269. if ((this._cityTableAdapter != null)) {
  10270. count = (count + 1);
  10271. }
  10272. if ((this._indexPartnerTableAdapter != null)) {
  10273. count = (count + 1);
  10274. }
  10275. if ((this._managerTableAdapter != null)) {
  10276. count = (count + 1);
  10277. }
  10278. if ((this._partnerTableAdapter != null)) {
  10279. count = (count + 1);
  10280. }
  10281. if ((this._productPartnerTableAdapter != null)) {
  10282. count = (count + 1);
  10283. }
  10284. if ((this._productsTableAdapter != null)) {
  10285. count = (count + 1);
  10286. }
  10287. if ((this._regionTableAdapter != null)) {
  10288. count = (count + 1);
  10289. }
  10290. if ((this._streetTableAdapter != null)) {
  10291. count = (count + 1);
  10292. }
  10293. if ((this._typeMaterialTableAdapter != null)) {
  10294. count = (count + 1);
  10295. }
  10296. if ((this._typePartnerTableAdapter != null)) {
  10297. count = (count + 1);
  10298. }
  10299. if ((this._typeProductTableAdapter != null)) {
  10300. count = (count + 1);
  10301. }
  10302. return count;
  10303. }
  10304. }
  10305. /// <summary>
  10306. ///Update rows in top-down order.
  10307. ///</summary>
  10308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10310. private int UpdateUpdatedRows(dbAlphapolAGDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  10311. int result = 0;
  10312. if ((this._cityTableAdapter != null)) {
  10313. global::System.Data.DataRow[] updatedRows = dataSet.City.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10314. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10315. if (((updatedRows != null)
  10316. && (0 < updatedRows.Length))) {
  10317. result = (result + this._cityTableAdapter.Update(updatedRows));
  10318. allChangedRows.AddRange(updatedRows);
  10319. }
  10320. }
  10321. if ((this._indexPartnerTableAdapter != null)) {
  10322. global::System.Data.DataRow[] updatedRows = dataSet.IndexPartner.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10323. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10324. if (((updatedRows != null)
  10325. && (0 < updatedRows.Length))) {
  10326. result = (result + this._indexPartnerTableAdapter.Update(updatedRows));
  10327. allChangedRows.AddRange(updatedRows);
  10328. }
  10329. }
  10330. if ((this._regionTableAdapter != null)) {
  10331. global::System.Data.DataRow[] updatedRows = dataSet.Region.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10332. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10333. if (((updatedRows != null)
  10334. && (0 < updatedRows.Length))) {
  10335. result = (result + this._regionTableAdapter.Update(updatedRows));
  10336. allChangedRows.AddRange(updatedRows);
  10337. }
  10338. }
  10339. if ((this._streetTableAdapter != null)) {
  10340. global::System.Data.DataRow[] updatedRows = dataSet.Street.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10341. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10342. if (((updatedRows != null)
  10343. && (0 < updatedRows.Length))) {
  10344. result = (result + this._streetTableAdapter.Update(updatedRows));
  10345. allChangedRows.AddRange(updatedRows);
  10346. }
  10347. }
  10348. if ((this._typePartnerTableAdapter != null)) {
  10349. global::System.Data.DataRow[] updatedRows = dataSet.TypePartner.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10350. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10351. if (((updatedRows != null)
  10352. && (0 < updatedRows.Length))) {
  10353. result = (result + this._typePartnerTableAdapter.Update(updatedRows));
  10354. allChangedRows.AddRange(updatedRows);
  10355. }
  10356. }
  10357. if ((this._typeProductTableAdapter != null)) {
  10358. global::System.Data.DataRow[] updatedRows = dataSet.TypeProduct.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10359. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10360. if (((updatedRows != null)
  10361. && (0 < updatedRows.Length))) {
  10362. result = (result + this._typeProductTableAdapter.Update(updatedRows));
  10363. allChangedRows.AddRange(updatedRows);
  10364. }
  10365. }
  10366. if ((this._partnerTableAdapter != null)) {
  10367. global::System.Data.DataRow[] updatedRows = dataSet.Partner.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10368. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10369. if (((updatedRows != null)
  10370. && (0 < updatedRows.Length))) {
  10371. result = (result + this._partnerTableAdapter.Update(updatedRows));
  10372. allChangedRows.AddRange(updatedRows);
  10373. }
  10374. }
  10375. if ((this._productsTableAdapter != null)) {
  10376. global::System.Data.DataRow[] updatedRows = dataSet.Products.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10377. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10378. if (((updatedRows != null)
  10379. && (0 < updatedRows.Length))) {
  10380. result = (result + this._productsTableAdapter.Update(updatedRows));
  10381. allChangedRows.AddRange(updatedRows);
  10382. }
  10383. }
  10384. if ((this._managerTableAdapter != null)) {
  10385. global::System.Data.DataRow[] updatedRows = dataSet.Manager.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10386. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10387. if (((updatedRows != null)
  10388. && (0 < updatedRows.Length))) {
  10389. result = (result + this._managerTableAdapter.Update(updatedRows));
  10390. allChangedRows.AddRange(updatedRows);
  10391. }
  10392. }
  10393. if ((this._productPartnerTableAdapter != null)) {
  10394. global::System.Data.DataRow[] updatedRows = dataSet.ProductPartner.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10395. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10396. if (((updatedRows != null)
  10397. && (0 < updatedRows.Length))) {
  10398. result = (result + this._productPartnerTableAdapter.Update(updatedRows));
  10399. allChangedRows.AddRange(updatedRows);
  10400. }
  10401. }
  10402. if ((this._typeMaterialTableAdapter != null)) {
  10403. global::System.Data.DataRow[] updatedRows = dataSet.TypeMaterial.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10404. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10405. if (((updatedRows != null)
  10406. && (0 < updatedRows.Length))) {
  10407. result = (result + this._typeMaterialTableAdapter.Update(updatedRows));
  10408. allChangedRows.AddRange(updatedRows);
  10409. }
  10410. }
  10411. return result;
  10412. }
  10413. /// <summary>
  10414. ///Insert rows in top-down order.
  10415. ///</summary>
  10416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10418. private int UpdateInsertedRows(dbAlphapolAGDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  10419. int result = 0;
  10420. if ((this._cityTableAdapter != null)) {
  10421. global::System.Data.DataRow[] addedRows = dataSet.City.Select(null, null, global::System.Data.DataViewRowState.Added);
  10422. if (((addedRows != null)
  10423. && (0 < addedRows.Length))) {
  10424. result = (result + this._cityTableAdapter.Update(addedRows));
  10425. allAddedRows.AddRange(addedRows);
  10426. }
  10427. }
  10428. if ((this._indexPartnerTableAdapter != null)) {
  10429. global::System.Data.DataRow[] addedRows = dataSet.IndexPartner.Select(null, null, global::System.Data.DataViewRowState.Added);
  10430. if (((addedRows != null)
  10431. && (0 < addedRows.Length))) {
  10432. result = (result + this._indexPartnerTableAdapter.Update(addedRows));
  10433. allAddedRows.AddRange(addedRows);
  10434. }
  10435. }
  10436. if ((this._regionTableAdapter != null)) {
  10437. global::System.Data.DataRow[] addedRows = dataSet.Region.Select(null, null, global::System.Data.DataViewRowState.Added);
  10438. if (((addedRows != null)
  10439. && (0 < addedRows.Length))) {
  10440. result = (result + this._regionTableAdapter.Update(addedRows));
  10441. allAddedRows.AddRange(addedRows);
  10442. }
  10443. }
  10444. if ((this._streetTableAdapter != null)) {
  10445. global::System.Data.DataRow[] addedRows = dataSet.Street.Select(null, null, global::System.Data.DataViewRowState.Added);
  10446. if (((addedRows != null)
  10447. && (0 < addedRows.Length))) {
  10448. result = (result + this._streetTableAdapter.Update(addedRows));
  10449. allAddedRows.AddRange(addedRows);
  10450. }
  10451. }
  10452. if ((this._typePartnerTableAdapter != null)) {
  10453. global::System.Data.DataRow[] addedRows = dataSet.TypePartner.Select(null, null, global::System.Data.DataViewRowState.Added);
  10454. if (((addedRows != null)
  10455. && (0 < addedRows.Length))) {
  10456. result = (result + this._typePartnerTableAdapter.Update(addedRows));
  10457. allAddedRows.AddRange(addedRows);
  10458. }
  10459. }
  10460. if ((this._typeProductTableAdapter != null)) {
  10461. global::System.Data.DataRow[] addedRows = dataSet.TypeProduct.Select(null, null, global::System.Data.DataViewRowState.Added);
  10462. if (((addedRows != null)
  10463. && (0 < addedRows.Length))) {
  10464. result = (result + this._typeProductTableAdapter.Update(addedRows));
  10465. allAddedRows.AddRange(addedRows);
  10466. }
  10467. }
  10468. if ((this._partnerTableAdapter != null)) {
  10469. global::System.Data.DataRow[] addedRows = dataSet.Partner.Select(null, null, global::System.Data.DataViewRowState.Added);
  10470. if (((addedRows != null)
  10471. && (0 < addedRows.Length))) {
  10472. result = (result + this._partnerTableAdapter.Update(addedRows));
  10473. allAddedRows.AddRange(addedRows);
  10474. }
  10475. }
  10476. if ((this._productsTableAdapter != null)) {
  10477. global::System.Data.DataRow[] addedRows = dataSet.Products.Select(null, null, global::System.Data.DataViewRowState.Added);
  10478. if (((addedRows != null)
  10479. && (0 < addedRows.Length))) {
  10480. result = (result + this._productsTableAdapter.Update(addedRows));
  10481. allAddedRows.AddRange(addedRows);
  10482. }
  10483. }
  10484. if ((this._managerTableAdapter != null)) {
  10485. global::System.Data.DataRow[] addedRows = dataSet.Manager.Select(null, null, global::System.Data.DataViewRowState.Added);
  10486. if (((addedRows != null)
  10487. && (0 < addedRows.Length))) {
  10488. result = (result + this._managerTableAdapter.Update(addedRows));
  10489. allAddedRows.AddRange(addedRows);
  10490. }
  10491. }
  10492. if ((this._productPartnerTableAdapter != null)) {
  10493. global::System.Data.DataRow[] addedRows = dataSet.ProductPartner.Select(null, null, global::System.Data.DataViewRowState.Added);
  10494. if (((addedRows != null)
  10495. && (0 < addedRows.Length))) {
  10496. result = (result + this._productPartnerTableAdapter.Update(addedRows));
  10497. allAddedRows.AddRange(addedRows);
  10498. }
  10499. }
  10500. if ((this._typeMaterialTableAdapter != null)) {
  10501. global::System.Data.DataRow[] addedRows = dataSet.TypeMaterial.Select(null, null, global::System.Data.DataViewRowState.Added);
  10502. if (((addedRows != null)
  10503. && (0 < addedRows.Length))) {
  10504. result = (result + this._typeMaterialTableAdapter.Update(addedRows));
  10505. allAddedRows.AddRange(addedRows);
  10506. }
  10507. }
  10508. return result;
  10509. }
  10510. /// <summary>
  10511. ///Delete rows in bottom-up order.
  10512. ///</summary>
  10513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10515. private int UpdateDeletedRows(dbAlphapolAGDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  10516. int result = 0;
  10517. if ((this._typeMaterialTableAdapter != null)) {
  10518. global::System.Data.DataRow[] deletedRows = dataSet.TypeMaterial.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10519. if (((deletedRows != null)
  10520. && (0 < deletedRows.Length))) {
  10521. result = (result + this._typeMaterialTableAdapter.Update(deletedRows));
  10522. allChangedRows.AddRange(deletedRows);
  10523. }
  10524. }
  10525. if ((this._productPartnerTableAdapter != null)) {
  10526. global::System.Data.DataRow[] deletedRows = dataSet.ProductPartner.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10527. if (((deletedRows != null)
  10528. && (0 < deletedRows.Length))) {
  10529. result = (result + this._productPartnerTableAdapter.Update(deletedRows));
  10530. allChangedRows.AddRange(deletedRows);
  10531. }
  10532. }
  10533. if ((this._managerTableAdapter != null)) {
  10534. global::System.Data.DataRow[] deletedRows = dataSet.Manager.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10535. if (((deletedRows != null)
  10536. && (0 < deletedRows.Length))) {
  10537. result = (result + this._managerTableAdapter.Update(deletedRows));
  10538. allChangedRows.AddRange(deletedRows);
  10539. }
  10540. }
  10541. if ((this._productsTableAdapter != null)) {
  10542. global::System.Data.DataRow[] deletedRows = dataSet.Products.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10543. if (((deletedRows != null)
  10544. && (0 < deletedRows.Length))) {
  10545. result = (result + this._productsTableAdapter.Update(deletedRows));
  10546. allChangedRows.AddRange(deletedRows);
  10547. }
  10548. }
  10549. if ((this._partnerTableAdapter != null)) {
  10550. global::System.Data.DataRow[] deletedRows = dataSet.Partner.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10551. if (((deletedRows != null)
  10552. && (0 < deletedRows.Length))) {
  10553. result = (result + this._partnerTableAdapter.Update(deletedRows));
  10554. allChangedRows.AddRange(deletedRows);
  10555. }
  10556. }
  10557. if ((this._typeProductTableAdapter != null)) {
  10558. global::System.Data.DataRow[] deletedRows = dataSet.TypeProduct.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10559. if (((deletedRows != null)
  10560. && (0 < deletedRows.Length))) {
  10561. result = (result + this._typeProductTableAdapter.Update(deletedRows));
  10562. allChangedRows.AddRange(deletedRows);
  10563. }
  10564. }
  10565. if ((this._typePartnerTableAdapter != null)) {
  10566. global::System.Data.DataRow[] deletedRows = dataSet.TypePartner.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10567. if (((deletedRows != null)
  10568. && (0 < deletedRows.Length))) {
  10569. result = (result + this._typePartnerTableAdapter.Update(deletedRows));
  10570. allChangedRows.AddRange(deletedRows);
  10571. }
  10572. }
  10573. if ((this._streetTableAdapter != null)) {
  10574. global::System.Data.DataRow[] deletedRows = dataSet.Street.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10575. if (((deletedRows != null)
  10576. && (0 < deletedRows.Length))) {
  10577. result = (result + this._streetTableAdapter.Update(deletedRows));
  10578. allChangedRows.AddRange(deletedRows);
  10579. }
  10580. }
  10581. if ((this._regionTableAdapter != null)) {
  10582. global::System.Data.DataRow[] deletedRows = dataSet.Region.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10583. if (((deletedRows != null)
  10584. && (0 < deletedRows.Length))) {
  10585. result = (result + this._regionTableAdapter.Update(deletedRows));
  10586. allChangedRows.AddRange(deletedRows);
  10587. }
  10588. }
  10589. if ((this._indexPartnerTableAdapter != null)) {
  10590. global::System.Data.DataRow[] deletedRows = dataSet.IndexPartner.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10591. if (((deletedRows != null)
  10592. && (0 < deletedRows.Length))) {
  10593. result = (result + this._indexPartnerTableAdapter.Update(deletedRows));
  10594. allChangedRows.AddRange(deletedRows);
  10595. }
  10596. }
  10597. if ((this._cityTableAdapter != null)) {
  10598. global::System.Data.DataRow[] deletedRows = dataSet.City.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10599. if (((deletedRows != null)
  10600. && (0 < deletedRows.Length))) {
  10601. result = (result + this._cityTableAdapter.Update(deletedRows));
  10602. allChangedRows.AddRange(deletedRows);
  10603. }
  10604. }
  10605. return result;
  10606. }
  10607. /// <summary>
  10608. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  10609. ///</summary>
  10610. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10611. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10612. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  10613. if (((updatedRows == null)
  10614. || (updatedRows.Length < 1))) {
  10615. return updatedRows;
  10616. }
  10617. if (((allAddedRows == null)
  10618. || (allAddedRows.Count < 1))) {
  10619. return updatedRows;
  10620. }
  10621. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  10622. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  10623. global::System.Data.DataRow row = updatedRows[i];
  10624. if ((allAddedRows.Contains(row) == false)) {
  10625. realUpdatedRows.Add(row);
  10626. }
  10627. }
  10628. return realUpdatedRows.ToArray();
  10629. }
  10630. /// <summary>
  10631. ///Update all changes to the dataset.
  10632. ///</summary>
  10633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10635. public virtual int UpdateAll(dbAlphapolAGDataSet dataSet) {
  10636. if ((dataSet == null)) {
  10637. throw new global::System.ArgumentNullException("dataSet");
  10638. }
  10639. if ((dataSet.HasChanges() == false)) {
  10640. return 0;
  10641. }
  10642. if (((this._cityTableAdapter != null)
  10643. && (this.MatchTableAdapterConnection(this._cityTableAdapter.Connection) == false))) {
  10644. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10645. "tring.");
  10646. }
  10647. if (((this._indexPartnerTableAdapter != null)
  10648. && (this.MatchTableAdapterConnection(this._indexPartnerTableAdapter.Connection) == false))) {
  10649. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10650. "tring.");
  10651. }
  10652. if (((this._managerTableAdapter != null)
  10653. && (this.MatchTableAdapterConnection(this._managerTableAdapter.Connection) == false))) {
  10654. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10655. "tring.");
  10656. }
  10657. if (((this._partnerTableAdapter != null)
  10658. && (this.MatchTableAdapterConnection(this._partnerTableAdapter.Connection) == false))) {
  10659. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10660. "tring.");
  10661. }
  10662. if (((this._productPartnerTableAdapter != null)
  10663. && (this.MatchTableAdapterConnection(this._productPartnerTableAdapter.Connection) == false))) {
  10664. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10665. "tring.");
  10666. }
  10667. if (((this._productsTableAdapter != null)
  10668. && (this.MatchTableAdapterConnection(this._productsTableAdapter.Connection) == false))) {
  10669. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10670. "tring.");
  10671. }
  10672. if (((this._regionTableAdapter != null)
  10673. && (this.MatchTableAdapterConnection(this._regionTableAdapter.Connection) == false))) {
  10674. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10675. "tring.");
  10676. }
  10677. if (((this._streetTableAdapter != null)
  10678. && (this.MatchTableAdapterConnection(this._streetTableAdapter.Connection) == false))) {
  10679. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10680. "tring.");
  10681. }
  10682. if (((this._typeMaterialTableAdapter != null)
  10683. && (this.MatchTableAdapterConnection(this._typeMaterialTableAdapter.Connection) == false))) {
  10684. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10685. "tring.");
  10686. }
  10687. if (((this._typePartnerTableAdapter != null)
  10688. && (this.MatchTableAdapterConnection(this._typePartnerTableAdapter.Connection) == false))) {
  10689. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10690. "tring.");
  10691. }
  10692. if (((this._typeProductTableAdapter != null)
  10693. && (this.MatchTableAdapterConnection(this._typeProductTableAdapter.Connection) == false))) {
  10694. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10695. "tring.");
  10696. }
  10697. global::System.Data.IDbConnection workConnection = this.Connection;
  10698. if ((workConnection == null)) {
  10699. throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" +
  10700. "ger TableAdapter property to a valid TableAdapter instance.");
  10701. }
  10702. bool workConnOpened = false;
  10703. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  10704. == global::System.Data.ConnectionState.Broken)) {
  10705. workConnection.Close();
  10706. }
  10707. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  10708. workConnection.Open();
  10709. workConnOpened = true;
  10710. }
  10711. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  10712. if ((workTransaction == null)) {
  10713. throw new global::System.ApplicationException("The transaction cannot begin. The current data connection does not support transa" +
  10714. "ctions or the current state is not allowing the transaction to begin.");
  10715. }
  10716. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  10717. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  10718. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  10719. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  10720. int result = 0;
  10721. global::System.Data.DataSet backupDataSet = null;
  10722. if (this.BackupDataSetBeforeUpdate) {
  10723. backupDataSet = new global::System.Data.DataSet();
  10724. backupDataSet.Merge(dataSet);
  10725. }
  10726. try {
  10727. // ---- Prepare for update -----------
  10728. //
  10729. if ((this._cityTableAdapter != null)) {
  10730. revertConnections.Add(this._cityTableAdapter, this._cityTableAdapter.Connection);
  10731. this._cityTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10732. this._cityTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10733. if (this._cityTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10734. this._cityTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10735. adaptersWithAcceptChangesDuringUpdate.Add(this._cityTableAdapter.Adapter);
  10736. }
  10737. }
  10738. if ((this._indexPartnerTableAdapter != null)) {
  10739. revertConnections.Add(this._indexPartnerTableAdapter, this._indexPartnerTableAdapter.Connection);
  10740. this._indexPartnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10741. this._indexPartnerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10742. if (this._indexPartnerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10743. this._indexPartnerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10744. adaptersWithAcceptChangesDuringUpdate.Add(this._indexPartnerTableAdapter.Adapter);
  10745. }
  10746. }
  10747. if ((this._managerTableAdapter != null)) {
  10748. revertConnections.Add(this._managerTableAdapter, this._managerTableAdapter.Connection);
  10749. this._managerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10750. this._managerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10751. if (this._managerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10752. this._managerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10753. adaptersWithAcceptChangesDuringUpdate.Add(this._managerTableAdapter.Adapter);
  10754. }
  10755. }
  10756. if ((this._partnerTableAdapter != null)) {
  10757. revertConnections.Add(this._partnerTableAdapter, this._partnerTableAdapter.Connection);
  10758. this._partnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10759. this._partnerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10760. if (this._partnerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10761. this._partnerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10762. adaptersWithAcceptChangesDuringUpdate.Add(this._partnerTableAdapter.Adapter);
  10763. }
  10764. }
  10765. if ((this._productPartnerTableAdapter != null)) {
  10766. revertConnections.Add(this._productPartnerTableAdapter, this._productPartnerTableAdapter.Connection);
  10767. this._productPartnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10768. this._productPartnerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10769. if (this._productPartnerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10770. this._productPartnerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10771. adaptersWithAcceptChangesDuringUpdate.Add(this._productPartnerTableAdapter.Adapter);
  10772. }
  10773. }
  10774. if ((this._productsTableAdapter != null)) {
  10775. revertConnections.Add(this._productsTableAdapter, this._productsTableAdapter.Connection);
  10776. this._productsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10777. this._productsTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10778. if (this._productsTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10779. this._productsTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10780. adaptersWithAcceptChangesDuringUpdate.Add(this._productsTableAdapter.Adapter);
  10781. }
  10782. }
  10783. if ((this._regionTableAdapter != null)) {
  10784. revertConnections.Add(this._regionTableAdapter, this._regionTableAdapter.Connection);
  10785. this._regionTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10786. this._regionTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10787. if (this._regionTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10788. this._regionTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10789. adaptersWithAcceptChangesDuringUpdate.Add(this._regionTableAdapter.Adapter);
  10790. }
  10791. }
  10792. if ((this._streetTableAdapter != null)) {
  10793. revertConnections.Add(this._streetTableAdapter, this._streetTableAdapter.Connection);
  10794. this._streetTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10795. this._streetTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10796. if (this._streetTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10797. this._streetTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10798. adaptersWithAcceptChangesDuringUpdate.Add(this._streetTableAdapter.Adapter);
  10799. }
  10800. }
  10801. if ((this._typeMaterialTableAdapter != null)) {
  10802. revertConnections.Add(this._typeMaterialTableAdapter, this._typeMaterialTableAdapter.Connection);
  10803. this._typeMaterialTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10804. this._typeMaterialTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10805. if (this._typeMaterialTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10806. this._typeMaterialTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10807. adaptersWithAcceptChangesDuringUpdate.Add(this._typeMaterialTableAdapter.Adapter);
  10808. }
  10809. }
  10810. if ((this._typePartnerTableAdapter != null)) {
  10811. revertConnections.Add(this._typePartnerTableAdapter, this._typePartnerTableAdapter.Connection);
  10812. this._typePartnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10813. this._typePartnerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10814. if (this._typePartnerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10815. this._typePartnerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10816. adaptersWithAcceptChangesDuringUpdate.Add(this._typePartnerTableAdapter.Adapter);
  10817. }
  10818. }
  10819. if ((this._typeProductTableAdapter != null)) {
  10820. revertConnections.Add(this._typeProductTableAdapter, this._typeProductTableAdapter.Connection);
  10821. this._typeProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10822. this._typeProductTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10823. if (this._typeProductTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10824. this._typeProductTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10825. adaptersWithAcceptChangesDuringUpdate.Add(this._typeProductTableAdapter.Adapter);
  10826. }
  10827. }
  10828. //
  10829. //---- Perform updates -----------
  10830. //
  10831. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  10832. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  10833. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  10834. }
  10835. else {
  10836. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  10837. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  10838. }
  10839. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  10840. //
  10841. //---- Commit updates -----------
  10842. //
  10843. workTransaction.Commit();
  10844. if ((0 < allAddedRows.Count)) {
  10845. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  10846. allAddedRows.CopyTo(rows);
  10847. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  10848. global::System.Data.DataRow row = rows[i];
  10849. row.AcceptChanges();
  10850. }
  10851. }
  10852. if ((0 < allChangedRows.Count)) {
  10853. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  10854. allChangedRows.CopyTo(rows);
  10855. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  10856. global::System.Data.DataRow row = rows[i];
  10857. row.AcceptChanges();
  10858. }
  10859. }
  10860. }
  10861. catch (global::System.Exception ex) {
  10862. workTransaction.Rollback();
  10863. // ---- Restore the dataset -----------
  10864. if (this.BackupDataSetBeforeUpdate) {
  10865. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  10866. dataSet.Clear();
  10867. dataSet.Merge(backupDataSet);
  10868. }
  10869. else {
  10870. if ((0 < allAddedRows.Count)) {
  10871. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  10872. allAddedRows.CopyTo(rows);
  10873. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  10874. global::System.Data.DataRow row = rows[i];
  10875. row.AcceptChanges();
  10876. row.SetAdded();
  10877. }
  10878. }
  10879. }
  10880. throw ex;
  10881. }
  10882. finally {
  10883. if (workConnOpened) {
  10884. workConnection.Close();
  10885. }
  10886. if ((this._cityTableAdapter != null)) {
  10887. this._cityTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._cityTableAdapter]));
  10888. this._cityTableAdapter.Transaction = null;
  10889. }
  10890. if ((this._indexPartnerTableAdapter != null)) {
  10891. this._indexPartnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._indexPartnerTableAdapter]));
  10892. this._indexPartnerTableAdapter.Transaction = null;
  10893. }
  10894. if ((this._managerTableAdapter != null)) {
  10895. this._managerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._managerTableAdapter]));
  10896. this._managerTableAdapter.Transaction = null;
  10897. }
  10898. if ((this._partnerTableAdapter != null)) {
  10899. this._partnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._partnerTableAdapter]));
  10900. this._partnerTableAdapter.Transaction = null;
  10901. }
  10902. if ((this._productPartnerTableAdapter != null)) {
  10903. this._productPartnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productPartnerTableAdapter]));
  10904. this._productPartnerTableAdapter.Transaction = null;
  10905. }
  10906. if ((this._productsTableAdapter != null)) {
  10907. this._productsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productsTableAdapter]));
  10908. this._productsTableAdapter.Transaction = null;
  10909. }
  10910. if ((this._regionTableAdapter != null)) {
  10911. this._regionTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._regionTableAdapter]));
  10912. this._regionTableAdapter.Transaction = null;
  10913. }
  10914. if ((this._streetTableAdapter != null)) {
  10915. this._streetTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._streetTableAdapter]));
  10916. this._streetTableAdapter.Transaction = null;
  10917. }
  10918. if ((this._typeMaterialTableAdapter != null)) {
  10919. this._typeMaterialTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._typeMaterialTableAdapter]));
  10920. this._typeMaterialTableAdapter.Transaction = null;
  10921. }
  10922. if ((this._typePartnerTableAdapter != null)) {
  10923. this._typePartnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._typePartnerTableAdapter]));
  10924. this._typePartnerTableAdapter.Transaction = null;
  10925. }
  10926. if ((this._typeProductTableAdapter != null)) {
  10927. this._typeProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._typeProductTableAdapter]));
  10928. this._typeProductTableAdapter.Transaction = null;
  10929. }
  10930. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  10931. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  10932. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  10933. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  10934. global::System.Data.Common.DataAdapter adapter = adapters[i];
  10935. adapter.AcceptChangesDuringUpdate = true;
  10936. }
  10937. }
  10938. }
  10939. return result;
  10940. }
  10941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10942. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10943. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  10944. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  10945. }
  10946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10947. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10948. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  10949. if ((this._connection != null)) {
  10950. return true;
  10951. }
  10952. if (((this.Connection == null)
  10953. || (inputConnection == null))) {
  10954. return true;
  10955. }
  10956. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  10957. return true;
  10958. }
  10959. return false;
  10960. }
  10961. /// <summary>
  10962. ///Update Order Option
  10963. ///</summary>
  10964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10965. public enum UpdateOrderOption {
  10966. InsertUpdateDelete = 0,
  10967. UpdateInsertDelete = 1,
  10968. }
  10969. /// <summary>
  10970. ///Used to sort self-referenced table's rows
  10971. ///</summary>
  10972. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10973. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  10974. private global::System.Data.DataRelation _relation;
  10975. private int _childFirst;
  10976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10978. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  10979. this._relation = relation;
  10980. if (childFirst) {
  10981. this._childFirst = -1;
  10982. }
  10983. else {
  10984. this._childFirst = 1;
  10985. }
  10986. }
  10987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10989. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  10990. global::System.Diagnostics.Debug.Assert((row != null));
  10991. global::System.Data.DataRow root = row;
  10992. distance = 0;
  10993. 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>();
  10994. traversedRows[row] = row;
  10995. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  10996. for (
  10997. ; ((parent != null)
  10998. && (traversedRows.ContainsKey(parent) == false));
  10999. ) {
  11000. distance = (distance + 1);
  11001. root = parent;
  11002. traversedRows[parent] = parent;
  11003. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  11004. }
  11005. if ((distance == 0)) {
  11006. traversedRows.Clear();
  11007. traversedRows[row] = row;
  11008. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  11009. for (
  11010. ; ((parent != null)
  11011. && (traversedRows.ContainsKey(parent) == false));
  11012. ) {
  11013. distance = (distance + 1);
  11014. root = parent;
  11015. traversedRows[parent] = parent;
  11016. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  11017. }
  11018. }
  11019. return root;
  11020. }
  11021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  11023. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  11024. if (object.ReferenceEquals(row1, row2)) {
  11025. return 0;
  11026. }
  11027. if ((row1 == null)) {
  11028. return -1;
  11029. }
  11030. if ((row2 == null)) {
  11031. return 1;
  11032. }
  11033. int distance1 = 0;
  11034. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  11035. int distance2 = 0;
  11036. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  11037. if (object.ReferenceEquals(root1, root2)) {
  11038. return (this._childFirst * distance1.CompareTo(distance2));
  11039. }
  11040. else {
  11041. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  11042. && (root2.Table != null)));
  11043. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  11044. return -1;
  11045. }
  11046. else {
  11047. return 1;
  11048. }
  11049. }
  11050. }
  11051. }
  11052. }
  11053. }
  11054. #pragma warning restore 1591