Хаустов_ПробныйДЭDataSet.Designer.cs 784 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace Khaustov_ProbniyDE {
  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("Хаустов_ПробныйДЭDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class Хаустов_ПробныйДЭDataSet : global::System.Data.DataSet {
  22. private AttachedProductDataTable tableAttachedProduct;
  23. private ClientDataTable tableClient;
  24. private ClientServiceDataTable tableClientService;
  25. private DocumentByServiceDataTable tableDocumentByService;
  26. private GenderDataTable tableGender;
  27. private ManufacturerDataTable tableManufacturer;
  28. private ProductDataTable tableProduct;
  29. private ProductPhotoDataTable tableProductPhoto;
  30. private ProductSaleDataTable tableProductSale;
  31. private ServiceDataTable tableService;
  32. private ServicePhotoDataTable tableServicePhoto;
  33. private TagDataTable tableTag;
  34. private TagOfClientDataTable tableTagOfClient;
  35. private УчеткиDataTable tableУчетки;
  36. private global::System.Data.DataRelation relationFK_AttachedProduct_Product;
  37. private global::System.Data.DataRelation relationFK_AttachedProduct_Product1;
  38. private global::System.Data.DataRelation relationFK_Client_Gender;
  39. private global::System.Data.DataRelation relationFK_ClientService_Client;
  40. private global::System.Data.DataRelation relationFK_ClientService_Service;
  41. private global::System.Data.DataRelation relationFK_DocumentByService_ClientService;
  42. private global::System.Data.DataRelation relationFK_Product_Manufacturer;
  43. private global::System.Data.DataRelation relationFK_ProductPhoto_Product;
  44. private global::System.Data.DataRelation relationFK_ProductSale_ClientService;
  45. private global::System.Data.DataRelation relationFK_ProductSale_Product;
  46. private global::System.Data.DataRelation relationFK_ServicePhoto_Service;
  47. private global::System.Data.DataRelation relationFK_TagOfClient_Client;
  48. private global::System.Data.DataRelation relationFK_TagOfClient_Tag;
  49. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  50. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  51. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  52. public Хаустов_ПробныйДЭDataSet() {
  53. this.BeginInit();
  54. this.InitClass();
  55. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  56. base.Tables.CollectionChanged += schemaChangedHandler;
  57. base.Relations.CollectionChanged += schemaChangedHandler;
  58. this.EndInit();
  59. }
  60. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  61. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  62. protected Хаустов_ПробныйДЭDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  63. base(info, context, false) {
  64. if ((this.IsBinarySerialized(info, context) == true)) {
  65. this.InitVars(false);
  66. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  67. this.Tables.CollectionChanged += schemaChangedHandler1;
  68. this.Relations.CollectionChanged += schemaChangedHandler1;
  69. return;
  70. }
  71. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  72. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  73. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  74. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  75. if ((ds.Tables["AttachedProduct"] != null)) {
  76. base.Tables.Add(new AttachedProductDataTable(ds.Tables["AttachedProduct"]));
  77. }
  78. if ((ds.Tables["Client"] != null)) {
  79. base.Tables.Add(new ClientDataTable(ds.Tables["Client"]));
  80. }
  81. if ((ds.Tables["ClientService"] != null)) {
  82. base.Tables.Add(new ClientServiceDataTable(ds.Tables["ClientService"]));
  83. }
  84. if ((ds.Tables["DocumentByService"] != null)) {
  85. base.Tables.Add(new DocumentByServiceDataTable(ds.Tables["DocumentByService"]));
  86. }
  87. if ((ds.Tables["Gender"] != null)) {
  88. base.Tables.Add(new GenderDataTable(ds.Tables["Gender"]));
  89. }
  90. if ((ds.Tables["Manufacturer"] != null)) {
  91. base.Tables.Add(new ManufacturerDataTable(ds.Tables["Manufacturer"]));
  92. }
  93. if ((ds.Tables["Product"] != null)) {
  94. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  95. }
  96. if ((ds.Tables["ProductPhoto"] != null)) {
  97. base.Tables.Add(new ProductPhotoDataTable(ds.Tables["ProductPhoto"]));
  98. }
  99. if ((ds.Tables["ProductSale"] != null)) {
  100. base.Tables.Add(new ProductSaleDataTable(ds.Tables["ProductSale"]));
  101. }
  102. if ((ds.Tables["Service"] != null)) {
  103. base.Tables.Add(new ServiceDataTable(ds.Tables["Service"]));
  104. }
  105. if ((ds.Tables["ServicePhoto"] != null)) {
  106. base.Tables.Add(new ServicePhotoDataTable(ds.Tables["ServicePhoto"]));
  107. }
  108. if ((ds.Tables["Tag"] != null)) {
  109. base.Tables.Add(new TagDataTable(ds.Tables["Tag"]));
  110. }
  111. if ((ds.Tables["TagOfClient"] != null)) {
  112. base.Tables.Add(new TagOfClientDataTable(ds.Tables["TagOfClient"]));
  113. }
  114. if ((ds.Tables["Учетки"] != null)) {
  115. base.Tables.Add(new УчеткиDataTable(ds.Tables["Учетки"]));
  116. }
  117. this.DataSetName = ds.DataSetName;
  118. this.Prefix = ds.Prefix;
  119. this.Namespace = ds.Namespace;
  120. this.Locale = ds.Locale;
  121. this.CaseSensitive = ds.CaseSensitive;
  122. this.EnforceConstraints = ds.EnforceConstraints;
  123. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  124. this.InitVars();
  125. }
  126. else {
  127. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  128. }
  129. this.GetSerializationData(info, context);
  130. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  131. base.Tables.CollectionChanged += schemaChangedHandler;
  132. this.Relations.CollectionChanged += schemaChangedHandler;
  133. }
  134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  136. [global::System.ComponentModel.Browsable(false)]
  137. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  138. public AttachedProductDataTable AttachedProduct {
  139. get {
  140. return this.tableAttachedProduct;
  141. }
  142. }
  143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  145. [global::System.ComponentModel.Browsable(false)]
  146. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  147. public ClientDataTable Client {
  148. get {
  149. return this.tableClient;
  150. }
  151. }
  152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  154. [global::System.ComponentModel.Browsable(false)]
  155. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  156. public ClientServiceDataTable ClientService {
  157. get {
  158. return this.tableClientService;
  159. }
  160. }
  161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  162. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  163. [global::System.ComponentModel.Browsable(false)]
  164. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  165. public DocumentByServiceDataTable DocumentByService {
  166. get {
  167. return this.tableDocumentByService;
  168. }
  169. }
  170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  171. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  172. [global::System.ComponentModel.Browsable(false)]
  173. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  174. public GenderDataTable Gender {
  175. get {
  176. return this.tableGender;
  177. }
  178. }
  179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  181. [global::System.ComponentModel.Browsable(false)]
  182. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  183. public ManufacturerDataTable Manufacturer {
  184. get {
  185. return this.tableManufacturer;
  186. }
  187. }
  188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  190. [global::System.ComponentModel.Browsable(false)]
  191. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  192. public ProductDataTable Product {
  193. get {
  194. return this.tableProduct;
  195. }
  196. }
  197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  199. [global::System.ComponentModel.Browsable(false)]
  200. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  201. public ProductPhotoDataTable ProductPhoto {
  202. get {
  203. return this.tableProductPhoto;
  204. }
  205. }
  206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  208. [global::System.ComponentModel.Browsable(false)]
  209. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  210. public ProductSaleDataTable ProductSale {
  211. get {
  212. return this.tableProductSale;
  213. }
  214. }
  215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  217. [global::System.ComponentModel.Browsable(false)]
  218. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  219. public ServiceDataTable Service {
  220. get {
  221. return this.tableService;
  222. }
  223. }
  224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  226. [global::System.ComponentModel.Browsable(false)]
  227. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  228. public ServicePhotoDataTable ServicePhoto {
  229. get {
  230. return this.tableServicePhoto;
  231. }
  232. }
  233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  235. [global::System.ComponentModel.Browsable(false)]
  236. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  237. public TagDataTable Tag {
  238. get {
  239. return this.tableTag;
  240. }
  241. }
  242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  244. [global::System.ComponentModel.Browsable(false)]
  245. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  246. public TagOfClientDataTable TagOfClient {
  247. get {
  248. return this.tableTagOfClient;
  249. }
  250. }
  251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  253. [global::System.ComponentModel.Browsable(false)]
  254. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  255. public УчеткиDataTable Учетки {
  256. get {
  257. return this.tableУчетки;
  258. }
  259. }
  260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  262. [global::System.ComponentModel.BrowsableAttribute(true)]
  263. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  264. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  265. get {
  266. return this._schemaSerializationMode;
  267. }
  268. set {
  269. this._schemaSerializationMode = value;
  270. }
  271. }
  272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  274. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  275. public new global::System.Data.DataTableCollection Tables {
  276. get {
  277. return base.Tables;
  278. }
  279. }
  280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  282. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  283. public new global::System.Data.DataRelationCollection Relations {
  284. get {
  285. return base.Relations;
  286. }
  287. }
  288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  290. protected override void InitializeDerivedDataSet() {
  291. this.BeginInit();
  292. this.InitClass();
  293. this.EndInit();
  294. }
  295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  297. public override global::System.Data.DataSet Clone() {
  298. Хаустов_ПробныйДЭDataSet cln = ((Хаустов_ПробныйДЭDataSet)(base.Clone()));
  299. cln.InitVars();
  300. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  301. return cln;
  302. }
  303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  304. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  305. protected override bool ShouldSerializeTables() {
  306. return false;
  307. }
  308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  310. protected override bool ShouldSerializeRelations() {
  311. return false;
  312. }
  313. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  314. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  315. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  316. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  317. this.Reset();
  318. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  319. ds.ReadXml(reader);
  320. if ((ds.Tables["AttachedProduct"] != null)) {
  321. base.Tables.Add(new AttachedProductDataTable(ds.Tables["AttachedProduct"]));
  322. }
  323. if ((ds.Tables["Client"] != null)) {
  324. base.Tables.Add(new ClientDataTable(ds.Tables["Client"]));
  325. }
  326. if ((ds.Tables["ClientService"] != null)) {
  327. base.Tables.Add(new ClientServiceDataTable(ds.Tables["ClientService"]));
  328. }
  329. if ((ds.Tables["DocumentByService"] != null)) {
  330. base.Tables.Add(new DocumentByServiceDataTable(ds.Tables["DocumentByService"]));
  331. }
  332. if ((ds.Tables["Gender"] != null)) {
  333. base.Tables.Add(new GenderDataTable(ds.Tables["Gender"]));
  334. }
  335. if ((ds.Tables["Manufacturer"] != null)) {
  336. base.Tables.Add(new ManufacturerDataTable(ds.Tables["Manufacturer"]));
  337. }
  338. if ((ds.Tables["Product"] != null)) {
  339. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  340. }
  341. if ((ds.Tables["ProductPhoto"] != null)) {
  342. base.Tables.Add(new ProductPhotoDataTable(ds.Tables["ProductPhoto"]));
  343. }
  344. if ((ds.Tables["ProductSale"] != null)) {
  345. base.Tables.Add(new ProductSaleDataTable(ds.Tables["ProductSale"]));
  346. }
  347. if ((ds.Tables["Service"] != null)) {
  348. base.Tables.Add(new ServiceDataTable(ds.Tables["Service"]));
  349. }
  350. if ((ds.Tables["ServicePhoto"] != null)) {
  351. base.Tables.Add(new ServicePhotoDataTable(ds.Tables["ServicePhoto"]));
  352. }
  353. if ((ds.Tables["Tag"] != null)) {
  354. base.Tables.Add(new TagDataTable(ds.Tables["Tag"]));
  355. }
  356. if ((ds.Tables["TagOfClient"] != null)) {
  357. base.Tables.Add(new TagOfClientDataTable(ds.Tables["TagOfClient"]));
  358. }
  359. if ((ds.Tables["Учетки"] != null)) {
  360. base.Tables.Add(new УчеткиDataTable(ds.Tables["Учетки"]));
  361. }
  362. this.DataSetName = ds.DataSetName;
  363. this.Prefix = ds.Prefix;
  364. this.Namespace = ds.Namespace;
  365. this.Locale = ds.Locale;
  366. this.CaseSensitive = ds.CaseSensitive;
  367. this.EnforceConstraints = ds.EnforceConstraints;
  368. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  369. this.InitVars();
  370. }
  371. else {
  372. this.ReadXml(reader);
  373. this.InitVars();
  374. }
  375. }
  376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  378. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  379. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  380. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  381. stream.Position = 0;
  382. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  383. }
  384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  386. internal void InitVars() {
  387. this.InitVars(true);
  388. }
  389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  391. internal void InitVars(bool initTable) {
  392. this.tableAttachedProduct = ((AttachedProductDataTable)(base.Tables["AttachedProduct"]));
  393. if ((initTable == true)) {
  394. if ((this.tableAttachedProduct != null)) {
  395. this.tableAttachedProduct.InitVars();
  396. }
  397. }
  398. this.tableClient = ((ClientDataTable)(base.Tables["Client"]));
  399. if ((initTable == true)) {
  400. if ((this.tableClient != null)) {
  401. this.tableClient.InitVars();
  402. }
  403. }
  404. this.tableClientService = ((ClientServiceDataTable)(base.Tables["ClientService"]));
  405. if ((initTable == true)) {
  406. if ((this.tableClientService != null)) {
  407. this.tableClientService.InitVars();
  408. }
  409. }
  410. this.tableDocumentByService = ((DocumentByServiceDataTable)(base.Tables["DocumentByService"]));
  411. if ((initTable == true)) {
  412. if ((this.tableDocumentByService != null)) {
  413. this.tableDocumentByService.InitVars();
  414. }
  415. }
  416. this.tableGender = ((GenderDataTable)(base.Tables["Gender"]));
  417. if ((initTable == true)) {
  418. if ((this.tableGender != null)) {
  419. this.tableGender.InitVars();
  420. }
  421. }
  422. this.tableManufacturer = ((ManufacturerDataTable)(base.Tables["Manufacturer"]));
  423. if ((initTable == true)) {
  424. if ((this.tableManufacturer != null)) {
  425. this.tableManufacturer.InitVars();
  426. }
  427. }
  428. this.tableProduct = ((ProductDataTable)(base.Tables["Product"]));
  429. if ((initTable == true)) {
  430. if ((this.tableProduct != null)) {
  431. this.tableProduct.InitVars();
  432. }
  433. }
  434. this.tableProductPhoto = ((ProductPhotoDataTable)(base.Tables["ProductPhoto"]));
  435. if ((initTable == true)) {
  436. if ((this.tableProductPhoto != null)) {
  437. this.tableProductPhoto.InitVars();
  438. }
  439. }
  440. this.tableProductSale = ((ProductSaleDataTable)(base.Tables["ProductSale"]));
  441. if ((initTable == true)) {
  442. if ((this.tableProductSale != null)) {
  443. this.tableProductSale.InitVars();
  444. }
  445. }
  446. this.tableService = ((ServiceDataTable)(base.Tables["Service"]));
  447. if ((initTable == true)) {
  448. if ((this.tableService != null)) {
  449. this.tableService.InitVars();
  450. }
  451. }
  452. this.tableServicePhoto = ((ServicePhotoDataTable)(base.Tables["ServicePhoto"]));
  453. if ((initTable == true)) {
  454. if ((this.tableServicePhoto != null)) {
  455. this.tableServicePhoto.InitVars();
  456. }
  457. }
  458. this.tableTag = ((TagDataTable)(base.Tables["Tag"]));
  459. if ((initTable == true)) {
  460. if ((this.tableTag != null)) {
  461. this.tableTag.InitVars();
  462. }
  463. }
  464. this.tableTagOfClient = ((TagOfClientDataTable)(base.Tables["TagOfClient"]));
  465. if ((initTable == true)) {
  466. if ((this.tableTagOfClient != null)) {
  467. this.tableTagOfClient.InitVars();
  468. }
  469. }
  470. this.tableУчетки = ((УчеткиDataTable)(base.Tables["Учетки"]));
  471. if ((initTable == true)) {
  472. if ((this.tableУчетки != null)) {
  473. this.tableУчетки.InitVars();
  474. }
  475. }
  476. this.relationFK_AttachedProduct_Product = this.Relations["FK_AttachedProduct_Product"];
  477. this.relationFK_AttachedProduct_Product1 = this.Relations["FK_AttachedProduct_Product1"];
  478. this.relationFK_Client_Gender = this.Relations["FK_Client_Gender"];
  479. this.relationFK_ClientService_Client = this.Relations["FK_ClientService_Client"];
  480. this.relationFK_ClientService_Service = this.Relations["FK_ClientService_Service"];
  481. this.relationFK_DocumentByService_ClientService = this.Relations["FK_DocumentByService_ClientService"];
  482. this.relationFK_Product_Manufacturer = this.Relations["FK_Product_Manufacturer"];
  483. this.relationFK_ProductPhoto_Product = this.Relations["FK_ProductPhoto_Product"];
  484. this.relationFK_ProductSale_ClientService = this.Relations["FK_ProductSale_ClientService"];
  485. this.relationFK_ProductSale_Product = this.Relations["FK_ProductSale_Product"];
  486. this.relationFK_ServicePhoto_Service = this.Relations["FK_ServicePhoto_Service"];
  487. this.relationFK_TagOfClient_Client = this.Relations["FK_TagOfClient_Client"];
  488. this.relationFK_TagOfClient_Tag = this.Relations["FK_TagOfClient_Tag"];
  489. }
  490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  492. private void InitClass() {
  493. this.DataSetName = "Хаустов_ПробныйДЭDataSet";
  494. this.Prefix = "";
  495. this.Namespace = "http://tempuri.org/Хаустов_ПробныйДЭDataSet.xsd";
  496. this.EnforceConstraints = true;
  497. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  498. this.tableAttachedProduct = new AttachedProductDataTable();
  499. base.Tables.Add(this.tableAttachedProduct);
  500. this.tableClient = new ClientDataTable();
  501. base.Tables.Add(this.tableClient);
  502. this.tableClientService = new ClientServiceDataTable();
  503. base.Tables.Add(this.tableClientService);
  504. this.tableDocumentByService = new DocumentByServiceDataTable();
  505. base.Tables.Add(this.tableDocumentByService);
  506. this.tableGender = new GenderDataTable();
  507. base.Tables.Add(this.tableGender);
  508. this.tableManufacturer = new ManufacturerDataTable();
  509. base.Tables.Add(this.tableManufacturer);
  510. this.tableProduct = new ProductDataTable();
  511. base.Tables.Add(this.tableProduct);
  512. this.tableProductPhoto = new ProductPhotoDataTable();
  513. base.Tables.Add(this.tableProductPhoto);
  514. this.tableProductSale = new ProductSaleDataTable();
  515. base.Tables.Add(this.tableProductSale);
  516. this.tableService = new ServiceDataTable();
  517. base.Tables.Add(this.tableService);
  518. this.tableServicePhoto = new ServicePhotoDataTable();
  519. base.Tables.Add(this.tableServicePhoto);
  520. this.tableTag = new TagDataTable();
  521. base.Tables.Add(this.tableTag);
  522. this.tableTagOfClient = new TagOfClientDataTable();
  523. base.Tables.Add(this.tableTagOfClient);
  524. this.tableУчетки = new УчеткиDataTable();
  525. base.Tables.Add(this.tableУчетки);
  526. this.relationFK_AttachedProduct_Product = new global::System.Data.DataRelation("FK_AttachedProduct_Product", new global::System.Data.DataColumn[] {
  527. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  528. this.tableAttachedProduct.MainProductIDColumn}, false);
  529. this.Relations.Add(this.relationFK_AttachedProduct_Product);
  530. this.relationFK_AttachedProduct_Product1 = new global::System.Data.DataRelation("FK_AttachedProduct_Product1", new global::System.Data.DataColumn[] {
  531. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  532. this.tableAttachedProduct.AttachedProductIDColumn}, false);
  533. this.Relations.Add(this.relationFK_AttachedProduct_Product1);
  534. this.relationFK_Client_Gender = new global::System.Data.DataRelation("FK_Client_Gender", new global::System.Data.DataColumn[] {
  535. this.tableGender.CodeColumn}, new global::System.Data.DataColumn[] {
  536. this.tableClient.ПолColumn}, false);
  537. this.Relations.Add(this.relationFK_Client_Gender);
  538. this.relationFK_ClientService_Client = new global::System.Data.DataRelation("FK_ClientService_Client", new global::System.Data.DataColumn[] {
  539. this.tableClient.IDColumn}, new global::System.Data.DataColumn[] {
  540. this.tableClientService.КлиентColumn}, false);
  541. this.Relations.Add(this.relationFK_ClientService_Client);
  542. this.relationFK_ClientService_Service = new global::System.Data.DataRelation("FK_ClientService_Service", new global::System.Data.DataColumn[] {
  543. this.tableService.IDColumn}, new global::System.Data.DataColumn[] {
  544. this.tableClientService.УслугаColumn}, false);
  545. this.Relations.Add(this.relationFK_ClientService_Service);
  546. this.relationFK_DocumentByService_ClientService = new global::System.Data.DataRelation("FK_DocumentByService_ClientService", new global::System.Data.DataColumn[] {
  547. this.tableClientService.IDColumn}, new global::System.Data.DataColumn[] {
  548. this.tableDocumentByService.ClientServiceIDColumn}, false);
  549. this.Relations.Add(this.relationFK_DocumentByService_ClientService);
  550. this.relationFK_Product_Manufacturer = new global::System.Data.DataRelation("FK_Product_Manufacturer", new global::System.Data.DataColumn[] {
  551. this.tableManufacturer.IDColumn}, new global::System.Data.DataColumn[] {
  552. this.tableProduct.ManufacturerIDColumn}, false);
  553. this.Relations.Add(this.relationFK_Product_Manufacturer);
  554. this.relationFK_ProductPhoto_Product = new global::System.Data.DataRelation("FK_ProductPhoto_Product", new global::System.Data.DataColumn[] {
  555. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  556. this.tableProductPhoto.ProductIDColumn}, false);
  557. this.Relations.Add(this.relationFK_ProductPhoto_Product);
  558. this.relationFK_ProductSale_ClientService = new global::System.Data.DataRelation("FK_ProductSale_ClientService", new global::System.Data.DataColumn[] {
  559. this.tableClientService.IDColumn}, new global::System.Data.DataColumn[] {
  560. this.tableProductSale.ClientServiceIDColumn}, false);
  561. this.Relations.Add(this.relationFK_ProductSale_ClientService);
  562. this.relationFK_ProductSale_Product = new global::System.Data.DataRelation("FK_ProductSale_Product", new global::System.Data.DataColumn[] {
  563. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  564. this.tableProductSale.ProductIDColumn}, false);
  565. this.Relations.Add(this.relationFK_ProductSale_Product);
  566. this.relationFK_ServicePhoto_Service = new global::System.Data.DataRelation("FK_ServicePhoto_Service", new global::System.Data.DataColumn[] {
  567. this.tableService.IDColumn}, new global::System.Data.DataColumn[] {
  568. this.tableServicePhoto.ServiceIDColumn}, false);
  569. this.Relations.Add(this.relationFK_ServicePhoto_Service);
  570. this.relationFK_TagOfClient_Client = new global::System.Data.DataRelation("FK_TagOfClient_Client", new global::System.Data.DataColumn[] {
  571. this.tableClient.IDColumn}, new global::System.Data.DataColumn[] {
  572. this.tableTagOfClient.ClientIDColumn}, false);
  573. this.Relations.Add(this.relationFK_TagOfClient_Client);
  574. this.relationFK_TagOfClient_Tag = new global::System.Data.DataRelation("FK_TagOfClient_Tag", new global::System.Data.DataColumn[] {
  575. this.tableTag.IDColumn}, new global::System.Data.DataColumn[] {
  576. this.tableTagOfClient.TagIDColumn}, false);
  577. this.Relations.Add(this.relationFK_TagOfClient_Tag);
  578. }
  579. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  580. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  581. private bool ShouldSerializeAttachedProduct() {
  582. return false;
  583. }
  584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  586. private bool ShouldSerializeClient() {
  587. return false;
  588. }
  589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  591. private bool ShouldSerializeClientService() {
  592. return false;
  593. }
  594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  596. private bool ShouldSerializeDocumentByService() {
  597. return false;
  598. }
  599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  600. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  601. private bool ShouldSerializeGender() {
  602. return false;
  603. }
  604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  606. private bool ShouldSerializeManufacturer() {
  607. return false;
  608. }
  609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  611. private bool ShouldSerializeProduct() {
  612. return false;
  613. }
  614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  616. private bool ShouldSerializeProductPhoto() {
  617. return false;
  618. }
  619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  621. private bool ShouldSerializeProductSale() {
  622. return false;
  623. }
  624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  626. private bool ShouldSerializeService() {
  627. return false;
  628. }
  629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  631. private bool ShouldSerializeServicePhoto() {
  632. return false;
  633. }
  634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  636. private bool ShouldSerializeTag() {
  637. return false;
  638. }
  639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  641. private bool ShouldSerializeTagOfClient() {
  642. return false;
  643. }
  644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  646. private bool ShouldSerializeУчетки() {
  647. return false;
  648. }
  649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  651. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  652. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  653. this.InitVars();
  654. }
  655. }
  656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  657. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  658. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  659. Хаустов_ПробныйДЭDataSet ds = new Хаустов_ПробныйДЭDataSet();
  660. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  661. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  662. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  663. any.Namespace = ds.Namespace;
  664. sequence.Items.Add(any);
  665. type.Particle = sequence;
  666. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  667. if (xs.Contains(dsSchema.TargetNamespace)) {
  668. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  669. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  670. try {
  671. global::System.Xml.Schema.XmlSchema schema = null;
  672. dsSchema.Write(s1);
  673. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  674. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  675. s2.SetLength(0);
  676. schema.Write(s2);
  677. if ((s1.Length == s2.Length)) {
  678. s1.Position = 0;
  679. s2.Position = 0;
  680. for (; ((s1.Position != s1.Length)
  681. && (s1.ReadByte() == s2.ReadByte())); ) {
  682. ;
  683. }
  684. if ((s1.Position == s1.Length)) {
  685. return type;
  686. }
  687. }
  688. }
  689. }
  690. finally {
  691. if ((s1 != null)) {
  692. s1.Close();
  693. }
  694. if ((s2 != null)) {
  695. s2.Close();
  696. }
  697. }
  698. }
  699. xs.Add(dsSchema);
  700. return type;
  701. }
  702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  703. public delegate void AttachedProductRowChangeEventHandler(object sender, AttachedProductRowChangeEvent e);
  704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  705. public delegate void ClientRowChangeEventHandler(object sender, ClientRowChangeEvent e);
  706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  707. public delegate void ClientServiceRowChangeEventHandler(object sender, ClientServiceRowChangeEvent e);
  708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  709. public delegate void DocumentByServiceRowChangeEventHandler(object sender, DocumentByServiceRowChangeEvent e);
  710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  711. public delegate void GenderRowChangeEventHandler(object sender, GenderRowChangeEvent e);
  712. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  713. public delegate void ManufacturerRowChangeEventHandler(object sender, ManufacturerRowChangeEvent e);
  714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  715. public delegate void ProductRowChangeEventHandler(object sender, ProductRowChangeEvent e);
  716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  717. public delegate void ProductPhotoRowChangeEventHandler(object sender, ProductPhotoRowChangeEvent e);
  718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  719. public delegate void ProductSaleRowChangeEventHandler(object sender, ProductSaleRowChangeEvent e);
  720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  721. public delegate void ServiceRowChangeEventHandler(object sender, ServiceRowChangeEvent e);
  722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  723. public delegate void ServicePhotoRowChangeEventHandler(object sender, ServicePhotoRowChangeEvent e);
  724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  725. public delegate void TagRowChangeEventHandler(object sender, TagRowChangeEvent e);
  726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  727. public delegate void TagOfClientRowChangeEventHandler(object sender, TagOfClientRowChangeEvent e);
  728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  729. public delegate void УчеткиRowChangeEventHandler(object sender, УчеткиRowChangeEvent e);
  730. /// <summary>
  731. ///Represents the strongly named DataTable class.
  732. ///</summary>
  733. [global::System.Serializable()]
  734. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  735. public partial class AttachedProductDataTable : global::System.Data.TypedTableBase<AttachedProductRow> {
  736. private global::System.Data.DataColumn columnMainProductID;
  737. private global::System.Data.DataColumn columnAttachedProductID;
  738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  740. public AttachedProductDataTable() {
  741. this.TableName = "AttachedProduct";
  742. this.BeginInit();
  743. this.InitClass();
  744. this.EndInit();
  745. }
  746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  748. internal AttachedProductDataTable(global::System.Data.DataTable table) {
  749. this.TableName = table.TableName;
  750. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  751. this.CaseSensitive = table.CaseSensitive;
  752. }
  753. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  754. this.Locale = table.Locale;
  755. }
  756. if ((table.Namespace != table.DataSet.Namespace)) {
  757. this.Namespace = table.Namespace;
  758. }
  759. this.Prefix = table.Prefix;
  760. this.MinimumCapacity = table.MinimumCapacity;
  761. }
  762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  764. protected AttachedProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  765. base(info, context) {
  766. this.InitVars();
  767. }
  768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  770. public global::System.Data.DataColumn MainProductIDColumn {
  771. get {
  772. return this.columnMainProductID;
  773. }
  774. }
  775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  776. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  777. public global::System.Data.DataColumn AttachedProductIDColumn {
  778. get {
  779. return this.columnAttachedProductID;
  780. }
  781. }
  782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  784. [global::System.ComponentModel.Browsable(false)]
  785. public int Count {
  786. get {
  787. return this.Rows.Count;
  788. }
  789. }
  790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  792. public AttachedProductRow this[int index] {
  793. get {
  794. return ((AttachedProductRow)(this.Rows[index]));
  795. }
  796. }
  797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  798. public event AttachedProductRowChangeEventHandler AttachedProductRowChanging;
  799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  800. public event AttachedProductRowChangeEventHandler AttachedProductRowChanged;
  801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  802. public event AttachedProductRowChangeEventHandler AttachedProductRowDeleting;
  803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  804. public event AttachedProductRowChangeEventHandler AttachedProductRowDeleted;
  805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  806. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  807. public void AddAttachedProductRow(AttachedProductRow row) {
  808. this.Rows.Add(row);
  809. }
  810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  812. public AttachedProductRow AddAttachedProductRow(ProductRow parentProductRowByFK_AttachedProduct_Product, ProductRow parentProductRowByFK_AttachedProduct_Product1) {
  813. AttachedProductRow rowAttachedProductRow = ((AttachedProductRow)(this.NewRow()));
  814. object[] columnValuesArray = new object[] {
  815. null,
  816. null};
  817. if ((parentProductRowByFK_AttachedProduct_Product != null)) {
  818. columnValuesArray[0] = parentProductRowByFK_AttachedProduct_Product[0];
  819. }
  820. if ((parentProductRowByFK_AttachedProduct_Product1 != null)) {
  821. columnValuesArray[1] = parentProductRowByFK_AttachedProduct_Product1[0];
  822. }
  823. rowAttachedProductRow.ItemArray = columnValuesArray;
  824. this.Rows.Add(rowAttachedProductRow);
  825. return rowAttachedProductRow;
  826. }
  827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  829. public AttachedProductRow FindByMainProductIDAttachedProductID(int MainProductID, int AttachedProductID) {
  830. return ((AttachedProductRow)(this.Rows.Find(new object[] {
  831. MainProductID,
  832. AttachedProductID})));
  833. }
  834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  836. public override global::System.Data.DataTable Clone() {
  837. AttachedProductDataTable cln = ((AttachedProductDataTable)(base.Clone()));
  838. cln.InitVars();
  839. return cln;
  840. }
  841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  843. protected override global::System.Data.DataTable CreateInstance() {
  844. return new AttachedProductDataTable();
  845. }
  846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  848. internal void InitVars() {
  849. this.columnMainProductID = base.Columns["MainProductID"];
  850. this.columnAttachedProductID = base.Columns["AttachedProductID"];
  851. }
  852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  854. private void InitClass() {
  855. this.columnMainProductID = new global::System.Data.DataColumn("MainProductID", typeof(int), null, global::System.Data.MappingType.Element);
  856. base.Columns.Add(this.columnMainProductID);
  857. this.columnAttachedProductID = new global::System.Data.DataColumn("AttachedProductID", typeof(int), null, global::System.Data.MappingType.Element);
  858. base.Columns.Add(this.columnAttachedProductID);
  859. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  860. this.columnMainProductID,
  861. this.columnAttachedProductID}, true));
  862. this.columnMainProductID.AllowDBNull = false;
  863. this.columnAttachedProductID.AllowDBNull = false;
  864. }
  865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  867. public AttachedProductRow NewAttachedProductRow() {
  868. return ((AttachedProductRow)(this.NewRow()));
  869. }
  870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  872. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  873. return new AttachedProductRow(builder);
  874. }
  875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  877. protected override global::System.Type GetRowType() {
  878. return typeof(AttachedProductRow);
  879. }
  880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  881. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  882. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  883. base.OnRowChanged(e);
  884. if ((this.AttachedProductRowChanged != null)) {
  885. this.AttachedProductRowChanged(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  886. }
  887. }
  888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  890. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  891. base.OnRowChanging(e);
  892. if ((this.AttachedProductRowChanging != null)) {
  893. this.AttachedProductRowChanging(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  894. }
  895. }
  896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  898. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  899. base.OnRowDeleted(e);
  900. if ((this.AttachedProductRowDeleted != null)) {
  901. this.AttachedProductRowDeleted(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  902. }
  903. }
  904. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  905. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  906. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  907. base.OnRowDeleting(e);
  908. if ((this.AttachedProductRowDeleting != null)) {
  909. this.AttachedProductRowDeleting(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  910. }
  911. }
  912. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  913. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  914. public void RemoveAttachedProductRow(AttachedProductRow row) {
  915. this.Rows.Remove(row);
  916. }
  917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  919. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  920. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  921. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  922. Хаустов_ПробныйДЭDataSet ds = new Хаустов_ПробныйДЭDataSet();
  923. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  924. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  925. any1.MinOccurs = new decimal(0);
  926. any1.MaxOccurs = decimal.MaxValue;
  927. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  928. sequence.Items.Add(any1);
  929. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  930. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  931. any2.MinOccurs = new decimal(1);
  932. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  933. sequence.Items.Add(any2);
  934. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  935. attribute1.Name = "namespace";
  936. attribute1.FixedValue = ds.Namespace;
  937. type.Attributes.Add(attribute1);
  938. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  939. attribute2.Name = "tableTypeName";
  940. attribute2.FixedValue = "AttachedProductDataTable";
  941. type.Attributes.Add(attribute2);
  942. type.Particle = sequence;
  943. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  944. if (xs.Contains(dsSchema.TargetNamespace)) {
  945. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  946. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  947. try {
  948. global::System.Xml.Schema.XmlSchema schema = null;
  949. dsSchema.Write(s1);
  950. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  951. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  952. s2.SetLength(0);
  953. schema.Write(s2);
  954. if ((s1.Length == s2.Length)) {
  955. s1.Position = 0;
  956. s2.Position = 0;
  957. for (; ((s1.Position != s1.Length)
  958. && (s1.ReadByte() == s2.ReadByte())); ) {
  959. ;
  960. }
  961. if ((s1.Position == s1.Length)) {
  962. return type;
  963. }
  964. }
  965. }
  966. }
  967. finally {
  968. if ((s1 != null)) {
  969. s1.Close();
  970. }
  971. if ((s2 != null)) {
  972. s2.Close();
  973. }
  974. }
  975. }
  976. xs.Add(dsSchema);
  977. return type;
  978. }
  979. }
  980. /// <summary>
  981. ///Represents the strongly named DataTable class.
  982. ///</summary>
  983. [global::System.Serializable()]
  984. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  985. public partial class ClientDataTable : global::System.Data.TypedTableBase<ClientRow> {
  986. private global::System.Data.DataColumn columnID;
  987. private global::System.Data.DataColumn columnФамилия;
  988. private global::System.Data.DataColumn columnИмя;
  989. private global::System.Data.DataColumn columnОтчество;
  990. private global::System.Data.DataColumn columnПол;
  991. private global::System.Data.DataColumn columnТелефон;
  992. private global::System.Data.DataColumn columnДата_рождения;
  993. private global::System.Data.DataColumn columnEmail;
  994. private global::System.Data.DataColumn columnДата_регистрации;
  995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  997. public ClientDataTable() {
  998. this.TableName = "Client";
  999. this.BeginInit();
  1000. this.InitClass();
  1001. this.EndInit();
  1002. }
  1003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1005. internal ClientDataTable(global::System.Data.DataTable table) {
  1006. this.TableName = table.TableName;
  1007. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1008. this.CaseSensitive = table.CaseSensitive;
  1009. }
  1010. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1011. this.Locale = table.Locale;
  1012. }
  1013. if ((table.Namespace != table.DataSet.Namespace)) {
  1014. this.Namespace = table.Namespace;
  1015. }
  1016. this.Prefix = table.Prefix;
  1017. this.MinimumCapacity = table.MinimumCapacity;
  1018. }
  1019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1021. protected ClientDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1022. base(info, context) {
  1023. this.InitVars();
  1024. }
  1025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1027. public global::System.Data.DataColumn IDColumn {
  1028. get {
  1029. return this.columnID;
  1030. }
  1031. }
  1032. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1033. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1034. public global::System.Data.DataColumn ФамилияColumn {
  1035. get {
  1036. return this.columnФамилия;
  1037. }
  1038. }
  1039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1041. public global::System.Data.DataColumn ИмяColumn {
  1042. get {
  1043. return this.columnИмя;
  1044. }
  1045. }
  1046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1048. public global::System.Data.DataColumn ОтчествоColumn {
  1049. get {
  1050. return this.columnОтчество;
  1051. }
  1052. }
  1053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1055. public global::System.Data.DataColumn ПолColumn {
  1056. get {
  1057. return this.columnПол;
  1058. }
  1059. }
  1060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1062. public global::System.Data.DataColumn ТелефонColumn {
  1063. get {
  1064. return this.columnТелефон;
  1065. }
  1066. }
  1067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1069. public global::System.Data.DataColumn Дата_рожденияColumn {
  1070. get {
  1071. return this.columnДата_рождения;
  1072. }
  1073. }
  1074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1076. public global::System.Data.DataColumn EmailColumn {
  1077. get {
  1078. return this.columnEmail;
  1079. }
  1080. }
  1081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1083. public global::System.Data.DataColumn Дата_регистрацииColumn {
  1084. get {
  1085. return this.columnДата_регистрации;
  1086. }
  1087. }
  1088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1090. [global::System.ComponentModel.Browsable(false)]
  1091. public int Count {
  1092. get {
  1093. return this.Rows.Count;
  1094. }
  1095. }
  1096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1098. public ClientRow this[int index] {
  1099. get {
  1100. return ((ClientRow)(this.Rows[index]));
  1101. }
  1102. }
  1103. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1104. public event ClientRowChangeEventHandler ClientRowChanging;
  1105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1106. public event ClientRowChangeEventHandler ClientRowChanged;
  1107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1108. public event ClientRowChangeEventHandler ClientRowDeleting;
  1109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1110. public event ClientRowChangeEventHandler ClientRowDeleted;
  1111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1113. public void AddClientRow(ClientRow row) {
  1114. this.Rows.Add(row);
  1115. }
  1116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1118. public ClientRow AddClientRow(string Фамилия, string Имя, string Отчество, GenderRow parentGenderRowByFK_Client_Gender, string Телефон, System.DateTime Дата_рождения, string Email, System.DateTime Дата_регистрации) {
  1119. ClientRow rowClientRow = ((ClientRow)(this.NewRow()));
  1120. object[] columnValuesArray = new object[] {
  1121. null,
  1122. Фамилия,
  1123. Имя,
  1124. Отчество,
  1125. null,
  1126. Телефон,
  1127. Дата_рождения,
  1128. Email,
  1129. Дата_регистрации};
  1130. if ((parentGenderRowByFK_Client_Gender != null)) {
  1131. columnValuesArray[4] = parentGenderRowByFK_Client_Gender[0];
  1132. }
  1133. rowClientRow.ItemArray = columnValuesArray;
  1134. this.Rows.Add(rowClientRow);
  1135. return rowClientRow;
  1136. }
  1137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1138. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1139. public ClientRow FindByID(int ID) {
  1140. return ((ClientRow)(this.Rows.Find(new object[] {
  1141. ID})));
  1142. }
  1143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1145. public override global::System.Data.DataTable Clone() {
  1146. ClientDataTable cln = ((ClientDataTable)(base.Clone()));
  1147. cln.InitVars();
  1148. return cln;
  1149. }
  1150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1152. protected override global::System.Data.DataTable CreateInstance() {
  1153. return new ClientDataTable();
  1154. }
  1155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1157. internal void InitVars() {
  1158. this.columnID = base.Columns["ID"];
  1159. this.columnФамилия = base.Columns["Фамилия"];
  1160. this.columnИмя = base.Columns["Имя"];
  1161. this.columnОтчество = base.Columns["Отчество"];
  1162. this.columnПол = base.Columns["Пол"];
  1163. this.columnТелефон = base.Columns["Телефон"];
  1164. this.columnДата_рождения = base.Columns["Дата_рождения"];
  1165. this.columnEmail = base.Columns["Email"];
  1166. this.columnДата_регистрации = base.Columns["Дата_регистрации"];
  1167. }
  1168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1170. private void InitClass() {
  1171. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1172. base.Columns.Add(this.columnID);
  1173. this.columnФамилия = new global::System.Data.DataColumn("Фамилия", typeof(string), null, global::System.Data.MappingType.Element);
  1174. base.Columns.Add(this.columnФамилия);
  1175. this.columnИмя = new global::System.Data.DataColumn("Имя", typeof(string), null, global::System.Data.MappingType.Element);
  1176. base.Columns.Add(this.columnИмя);
  1177. this.columnОтчество = new global::System.Data.DataColumn("Отчество", typeof(string), null, global::System.Data.MappingType.Element);
  1178. base.Columns.Add(this.columnОтчество);
  1179. this.columnПол = new global::System.Data.DataColumn("Пол", typeof(int), null, global::System.Data.MappingType.Element);
  1180. base.Columns.Add(this.columnПол);
  1181. this.columnТелефон = new global::System.Data.DataColumn("Телефон", typeof(string), null, global::System.Data.MappingType.Element);
  1182. base.Columns.Add(this.columnТелефон);
  1183. this.columnДата_рождения = new global::System.Data.DataColumn("Дата_рождения", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1184. base.Columns.Add(this.columnДата_рождения);
  1185. this.columnEmail = new global::System.Data.DataColumn("Email", typeof(string), null, global::System.Data.MappingType.Element);
  1186. base.Columns.Add(this.columnEmail);
  1187. this.columnДата_регистрации = new global::System.Data.DataColumn("Дата_регистрации", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1188. base.Columns.Add(this.columnДата_регистрации);
  1189. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1190. this.columnID}, true));
  1191. this.columnID.AutoIncrement = true;
  1192. this.columnID.AutoIncrementSeed = -1;
  1193. this.columnID.AutoIncrementStep = -1;
  1194. this.columnID.AllowDBNull = false;
  1195. this.columnID.ReadOnly = true;
  1196. this.columnID.Unique = true;
  1197. this.columnФамилия.AllowDBNull = false;
  1198. this.columnФамилия.MaxLength = 50;
  1199. this.columnИмя.AllowDBNull = false;
  1200. this.columnИмя.MaxLength = 50;
  1201. this.columnОтчество.AllowDBNull = false;
  1202. this.columnОтчество.MaxLength = 50;
  1203. this.columnПол.AllowDBNull = false;
  1204. this.columnТелефон.AllowDBNull = false;
  1205. this.columnТелефон.MaxLength = 50;
  1206. this.columnДата_рождения.AllowDBNull = false;
  1207. this.columnEmail.AllowDBNull = false;
  1208. this.columnEmail.MaxLength = 50;
  1209. this.columnДата_регистрации.AllowDBNull = false;
  1210. }
  1211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1213. public ClientRow NewClientRow() {
  1214. return ((ClientRow)(this.NewRow()));
  1215. }
  1216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1218. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1219. return new ClientRow(builder);
  1220. }
  1221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1223. protected override global::System.Type GetRowType() {
  1224. return typeof(ClientRow);
  1225. }
  1226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1228. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1229. base.OnRowChanged(e);
  1230. if ((this.ClientRowChanged != null)) {
  1231. this.ClientRowChanged(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  1232. }
  1233. }
  1234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1236. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1237. base.OnRowChanging(e);
  1238. if ((this.ClientRowChanging != null)) {
  1239. this.ClientRowChanging(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  1240. }
  1241. }
  1242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1244. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1245. base.OnRowDeleted(e);
  1246. if ((this.ClientRowDeleted != null)) {
  1247. this.ClientRowDeleted(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  1248. }
  1249. }
  1250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1252. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1253. base.OnRowDeleting(e);
  1254. if ((this.ClientRowDeleting != null)) {
  1255. this.ClientRowDeleting(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  1256. }
  1257. }
  1258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1260. public void RemoveClientRow(ClientRow row) {
  1261. this.Rows.Remove(row);
  1262. }
  1263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1265. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1266. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1267. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1268. Хаустов_ПробныйДЭDataSet ds = new Хаустов_ПробныйДЭDataSet();
  1269. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1270. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1271. any1.MinOccurs = new decimal(0);
  1272. any1.MaxOccurs = decimal.MaxValue;
  1273. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1274. sequence.Items.Add(any1);
  1275. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1276. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1277. any2.MinOccurs = new decimal(1);
  1278. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1279. sequence.Items.Add(any2);
  1280. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1281. attribute1.Name = "namespace";
  1282. attribute1.FixedValue = ds.Namespace;
  1283. type.Attributes.Add(attribute1);
  1284. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1285. attribute2.Name = "tableTypeName";
  1286. attribute2.FixedValue = "ClientDataTable";
  1287. type.Attributes.Add(attribute2);
  1288. type.Particle = sequence;
  1289. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1290. if (xs.Contains(dsSchema.TargetNamespace)) {
  1291. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1292. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1293. try {
  1294. global::System.Xml.Schema.XmlSchema schema = null;
  1295. dsSchema.Write(s1);
  1296. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1297. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1298. s2.SetLength(0);
  1299. schema.Write(s2);
  1300. if ((s1.Length == s2.Length)) {
  1301. s1.Position = 0;
  1302. s2.Position = 0;
  1303. for (; ((s1.Position != s1.Length)
  1304. && (s1.ReadByte() == s2.ReadByte())); ) {
  1305. ;
  1306. }
  1307. if ((s1.Position == s1.Length)) {
  1308. return type;
  1309. }
  1310. }
  1311. }
  1312. }
  1313. finally {
  1314. if ((s1 != null)) {
  1315. s1.Close();
  1316. }
  1317. if ((s2 != null)) {
  1318. s2.Close();
  1319. }
  1320. }
  1321. }
  1322. xs.Add(dsSchema);
  1323. return type;
  1324. }
  1325. }
  1326. /// <summary>
  1327. ///Represents the strongly named DataTable class.
  1328. ///</summary>
  1329. [global::System.Serializable()]
  1330. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1331. public partial class ClientServiceDataTable : global::System.Data.TypedTableBase<ClientServiceRow> {
  1332. private global::System.Data.DataColumn columnID;
  1333. private global::System.Data.DataColumn columnУслуга;
  1334. private global::System.Data.DataColumn columnДата;
  1335. private global::System.Data.DataColumn columnКлиент;
  1336. private global::System.Data.DataColumn columnComment;
  1337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1339. public ClientServiceDataTable() {
  1340. this.TableName = "ClientService";
  1341. this.BeginInit();
  1342. this.InitClass();
  1343. this.EndInit();
  1344. }
  1345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1347. internal ClientServiceDataTable(global::System.Data.DataTable table) {
  1348. this.TableName = table.TableName;
  1349. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1350. this.CaseSensitive = table.CaseSensitive;
  1351. }
  1352. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1353. this.Locale = table.Locale;
  1354. }
  1355. if ((table.Namespace != table.DataSet.Namespace)) {
  1356. this.Namespace = table.Namespace;
  1357. }
  1358. this.Prefix = table.Prefix;
  1359. this.MinimumCapacity = table.MinimumCapacity;
  1360. }
  1361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1363. protected ClientServiceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1364. base(info, context) {
  1365. this.InitVars();
  1366. }
  1367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1369. public global::System.Data.DataColumn IDColumn {
  1370. get {
  1371. return this.columnID;
  1372. }
  1373. }
  1374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1376. public global::System.Data.DataColumn УслугаColumn {
  1377. get {
  1378. return this.columnУслуга;
  1379. }
  1380. }
  1381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1383. public global::System.Data.DataColumn ДатаColumn {
  1384. get {
  1385. return this.columnДата;
  1386. }
  1387. }
  1388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1390. public global::System.Data.DataColumn КлиентColumn {
  1391. get {
  1392. return this.columnКлиент;
  1393. }
  1394. }
  1395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1397. public global::System.Data.DataColumn CommentColumn {
  1398. get {
  1399. return this.columnComment;
  1400. }
  1401. }
  1402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1403. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1404. [global::System.ComponentModel.Browsable(false)]
  1405. public int Count {
  1406. get {
  1407. return this.Rows.Count;
  1408. }
  1409. }
  1410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1412. public ClientServiceRow this[int index] {
  1413. get {
  1414. return ((ClientServiceRow)(this.Rows[index]));
  1415. }
  1416. }
  1417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1418. public event ClientServiceRowChangeEventHandler ClientServiceRowChanging;
  1419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1420. public event ClientServiceRowChangeEventHandler ClientServiceRowChanged;
  1421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1422. public event ClientServiceRowChangeEventHandler ClientServiceRowDeleting;
  1423. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1424. public event ClientServiceRowChangeEventHandler ClientServiceRowDeleted;
  1425. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1427. public void AddClientServiceRow(ClientServiceRow row) {
  1428. this.Rows.Add(row);
  1429. }
  1430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1432. public ClientServiceRow AddClientServiceRow(ServiceRow parentServiceRowByFK_ClientService_Service, System.DateTime Дата, ClientRow parentClientRowByFK_ClientService_Client, string Comment) {
  1433. ClientServiceRow rowClientServiceRow = ((ClientServiceRow)(this.NewRow()));
  1434. object[] columnValuesArray = new object[] {
  1435. null,
  1436. null,
  1437. Дата,
  1438. null,
  1439. Comment};
  1440. if ((parentServiceRowByFK_ClientService_Service != null)) {
  1441. columnValuesArray[1] = parentServiceRowByFK_ClientService_Service[0];
  1442. }
  1443. if ((parentClientRowByFK_ClientService_Client != null)) {
  1444. columnValuesArray[3] = parentClientRowByFK_ClientService_Client[0];
  1445. }
  1446. rowClientServiceRow.ItemArray = columnValuesArray;
  1447. this.Rows.Add(rowClientServiceRow);
  1448. return rowClientServiceRow;
  1449. }
  1450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1452. public ClientServiceRow FindByID(int ID) {
  1453. return ((ClientServiceRow)(this.Rows.Find(new object[] {
  1454. ID})));
  1455. }
  1456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1458. public override global::System.Data.DataTable Clone() {
  1459. ClientServiceDataTable cln = ((ClientServiceDataTable)(base.Clone()));
  1460. cln.InitVars();
  1461. return cln;
  1462. }
  1463. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1464. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1465. protected override global::System.Data.DataTable CreateInstance() {
  1466. return new ClientServiceDataTable();
  1467. }
  1468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1470. internal void InitVars() {
  1471. this.columnID = base.Columns["ID"];
  1472. this.columnУслуга = base.Columns["Услуга"];
  1473. this.columnДата = base.Columns["Дата"];
  1474. this.columnКлиент = base.Columns["Клиент"];
  1475. this.columnComment = base.Columns["Comment"];
  1476. }
  1477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1479. private void InitClass() {
  1480. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1481. base.Columns.Add(this.columnID);
  1482. this.columnУслуга = new global::System.Data.DataColumn("Услуга", typeof(int), null, global::System.Data.MappingType.Element);
  1483. base.Columns.Add(this.columnУслуга);
  1484. this.columnДата = new global::System.Data.DataColumn("Дата", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1485. base.Columns.Add(this.columnДата);
  1486. this.columnКлиент = new global::System.Data.DataColumn("Клиент", typeof(int), null, global::System.Data.MappingType.Element);
  1487. base.Columns.Add(this.columnКлиент);
  1488. this.columnComment = new global::System.Data.DataColumn("Comment", typeof(string), null, global::System.Data.MappingType.Element);
  1489. base.Columns.Add(this.columnComment);
  1490. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1491. this.columnID}, true));
  1492. this.columnID.AutoIncrement = true;
  1493. this.columnID.AutoIncrementSeed = -1;
  1494. this.columnID.AutoIncrementStep = -1;
  1495. this.columnID.AllowDBNull = false;
  1496. this.columnID.ReadOnly = true;
  1497. this.columnID.Unique = true;
  1498. this.columnУслуга.AllowDBNull = false;
  1499. this.columnДата.AllowDBNull = false;
  1500. this.columnКлиент.AllowDBNull = false;
  1501. this.columnComment.MaxLength = 2147483647;
  1502. }
  1503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1505. public ClientServiceRow NewClientServiceRow() {
  1506. return ((ClientServiceRow)(this.NewRow()));
  1507. }
  1508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1510. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1511. return new ClientServiceRow(builder);
  1512. }
  1513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1515. protected override global::System.Type GetRowType() {
  1516. return typeof(ClientServiceRow);
  1517. }
  1518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1520. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1521. base.OnRowChanged(e);
  1522. if ((this.ClientServiceRowChanged != null)) {
  1523. this.ClientServiceRowChanged(this, new ClientServiceRowChangeEvent(((ClientServiceRow)(e.Row)), e.Action));
  1524. }
  1525. }
  1526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1528. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1529. base.OnRowChanging(e);
  1530. if ((this.ClientServiceRowChanging != null)) {
  1531. this.ClientServiceRowChanging(this, new ClientServiceRowChangeEvent(((ClientServiceRow)(e.Row)), e.Action));
  1532. }
  1533. }
  1534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1536. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1537. base.OnRowDeleted(e);
  1538. if ((this.ClientServiceRowDeleted != null)) {
  1539. this.ClientServiceRowDeleted(this, new ClientServiceRowChangeEvent(((ClientServiceRow)(e.Row)), e.Action));
  1540. }
  1541. }
  1542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1544. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1545. base.OnRowDeleting(e);
  1546. if ((this.ClientServiceRowDeleting != null)) {
  1547. this.ClientServiceRowDeleting(this, new ClientServiceRowChangeEvent(((ClientServiceRow)(e.Row)), e.Action));
  1548. }
  1549. }
  1550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1552. public void RemoveClientServiceRow(ClientServiceRow row) {
  1553. this.Rows.Remove(row);
  1554. }
  1555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1557. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1558. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1559. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1560. Хаустов_ПробныйДЭDataSet ds = new Хаустов_ПробныйДЭDataSet();
  1561. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1562. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1563. any1.MinOccurs = new decimal(0);
  1564. any1.MaxOccurs = decimal.MaxValue;
  1565. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1566. sequence.Items.Add(any1);
  1567. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1568. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1569. any2.MinOccurs = new decimal(1);
  1570. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1571. sequence.Items.Add(any2);
  1572. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1573. attribute1.Name = "namespace";
  1574. attribute1.FixedValue = ds.Namespace;
  1575. type.Attributes.Add(attribute1);
  1576. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1577. attribute2.Name = "tableTypeName";
  1578. attribute2.FixedValue = "ClientServiceDataTable";
  1579. type.Attributes.Add(attribute2);
  1580. type.Particle = sequence;
  1581. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1582. if (xs.Contains(dsSchema.TargetNamespace)) {
  1583. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1584. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1585. try {
  1586. global::System.Xml.Schema.XmlSchema schema = null;
  1587. dsSchema.Write(s1);
  1588. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1589. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1590. s2.SetLength(0);
  1591. schema.Write(s2);
  1592. if ((s1.Length == s2.Length)) {
  1593. s1.Position = 0;
  1594. s2.Position = 0;
  1595. for (; ((s1.Position != s1.Length)
  1596. && (s1.ReadByte() == s2.ReadByte())); ) {
  1597. ;
  1598. }
  1599. if ((s1.Position == s1.Length)) {
  1600. return type;
  1601. }
  1602. }
  1603. }
  1604. }
  1605. finally {
  1606. if ((s1 != null)) {
  1607. s1.Close();
  1608. }
  1609. if ((s2 != null)) {
  1610. s2.Close();
  1611. }
  1612. }
  1613. }
  1614. xs.Add(dsSchema);
  1615. return type;
  1616. }
  1617. }
  1618. /// <summary>
  1619. ///Represents the strongly named DataTable class.
  1620. ///</summary>
  1621. [global::System.Serializable()]
  1622. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1623. public partial class DocumentByServiceDataTable : global::System.Data.TypedTableBase<DocumentByServiceRow> {
  1624. private global::System.Data.DataColumn columnID;
  1625. private global::System.Data.DataColumn columnClientServiceID;
  1626. private global::System.Data.DataColumn columnDocumentPath;
  1627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1629. public DocumentByServiceDataTable() {
  1630. this.TableName = "DocumentByService";
  1631. this.BeginInit();
  1632. this.InitClass();
  1633. this.EndInit();
  1634. }
  1635. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1636. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1637. internal DocumentByServiceDataTable(global::System.Data.DataTable table) {
  1638. this.TableName = table.TableName;
  1639. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1640. this.CaseSensitive = table.CaseSensitive;
  1641. }
  1642. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1643. this.Locale = table.Locale;
  1644. }
  1645. if ((table.Namespace != table.DataSet.Namespace)) {
  1646. this.Namespace = table.Namespace;
  1647. }
  1648. this.Prefix = table.Prefix;
  1649. this.MinimumCapacity = table.MinimumCapacity;
  1650. }
  1651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1653. protected DocumentByServiceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1654. base(info, context) {
  1655. this.InitVars();
  1656. }
  1657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1659. public global::System.Data.DataColumn IDColumn {
  1660. get {
  1661. return this.columnID;
  1662. }
  1663. }
  1664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1666. public global::System.Data.DataColumn ClientServiceIDColumn {
  1667. get {
  1668. return this.columnClientServiceID;
  1669. }
  1670. }
  1671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1673. public global::System.Data.DataColumn DocumentPathColumn {
  1674. get {
  1675. return this.columnDocumentPath;
  1676. }
  1677. }
  1678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1680. [global::System.ComponentModel.Browsable(false)]
  1681. public int Count {
  1682. get {
  1683. return this.Rows.Count;
  1684. }
  1685. }
  1686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1688. public DocumentByServiceRow this[int index] {
  1689. get {
  1690. return ((DocumentByServiceRow)(this.Rows[index]));
  1691. }
  1692. }
  1693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1694. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowChanging;
  1695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1696. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowChanged;
  1697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1698. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowDeleting;
  1699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1700. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowDeleted;
  1701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1703. public void AddDocumentByServiceRow(DocumentByServiceRow row) {
  1704. this.Rows.Add(row);
  1705. }
  1706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1708. public DocumentByServiceRow AddDocumentByServiceRow(ClientServiceRow parentClientServiceRowByFK_DocumentByService_ClientService, string DocumentPath) {
  1709. DocumentByServiceRow rowDocumentByServiceRow = ((DocumentByServiceRow)(this.NewRow()));
  1710. object[] columnValuesArray = new object[] {
  1711. null,
  1712. null,
  1713. DocumentPath};
  1714. if ((parentClientServiceRowByFK_DocumentByService_ClientService != null)) {
  1715. columnValuesArray[1] = parentClientServiceRowByFK_DocumentByService_ClientService[0];
  1716. }
  1717. rowDocumentByServiceRow.ItemArray = columnValuesArray;
  1718. this.Rows.Add(rowDocumentByServiceRow);
  1719. return rowDocumentByServiceRow;
  1720. }
  1721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1723. public DocumentByServiceRow FindByID(int ID) {
  1724. return ((DocumentByServiceRow)(this.Rows.Find(new object[] {
  1725. ID})));
  1726. }
  1727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1729. public override global::System.Data.DataTable Clone() {
  1730. DocumentByServiceDataTable cln = ((DocumentByServiceDataTable)(base.Clone()));
  1731. cln.InitVars();
  1732. return cln;
  1733. }
  1734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1736. protected override global::System.Data.DataTable CreateInstance() {
  1737. return new DocumentByServiceDataTable();
  1738. }
  1739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1741. internal void InitVars() {
  1742. this.columnID = base.Columns["ID"];
  1743. this.columnClientServiceID = base.Columns["ClientServiceID"];
  1744. this.columnDocumentPath = base.Columns["DocumentPath"];
  1745. }
  1746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1748. private void InitClass() {
  1749. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1750. base.Columns.Add(this.columnID);
  1751. this.columnClientServiceID = new global::System.Data.DataColumn("ClientServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  1752. base.Columns.Add(this.columnClientServiceID);
  1753. this.columnDocumentPath = new global::System.Data.DataColumn("DocumentPath", typeof(string), null, global::System.Data.MappingType.Element);
  1754. base.Columns.Add(this.columnDocumentPath);
  1755. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1756. this.columnID}, true));
  1757. this.columnID.AutoIncrement = true;
  1758. this.columnID.AutoIncrementSeed = -1;
  1759. this.columnID.AutoIncrementStep = -1;
  1760. this.columnID.AllowDBNull = false;
  1761. this.columnID.ReadOnly = true;
  1762. this.columnID.Unique = true;
  1763. this.columnClientServiceID.AllowDBNull = false;
  1764. this.columnDocumentPath.AllowDBNull = false;
  1765. this.columnDocumentPath.MaxLength = 1000;
  1766. }
  1767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1769. public DocumentByServiceRow NewDocumentByServiceRow() {
  1770. return ((DocumentByServiceRow)(this.NewRow()));
  1771. }
  1772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1774. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1775. return new DocumentByServiceRow(builder);
  1776. }
  1777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1779. protected override global::System.Type GetRowType() {
  1780. return typeof(DocumentByServiceRow);
  1781. }
  1782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1784. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1785. base.OnRowChanged(e);
  1786. if ((this.DocumentByServiceRowChanged != null)) {
  1787. this.DocumentByServiceRowChanged(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  1788. }
  1789. }
  1790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1792. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1793. base.OnRowChanging(e);
  1794. if ((this.DocumentByServiceRowChanging != null)) {
  1795. this.DocumentByServiceRowChanging(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  1796. }
  1797. }
  1798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1800. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1801. base.OnRowDeleted(e);
  1802. if ((this.DocumentByServiceRowDeleted != null)) {
  1803. this.DocumentByServiceRowDeleted(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  1804. }
  1805. }
  1806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1808. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1809. base.OnRowDeleting(e);
  1810. if ((this.DocumentByServiceRowDeleting != null)) {
  1811. this.DocumentByServiceRowDeleting(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  1812. }
  1813. }
  1814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1816. public void RemoveDocumentByServiceRow(DocumentByServiceRow row) {
  1817. this.Rows.Remove(row);
  1818. }
  1819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1821. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1822. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1823. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1824. Хаустов_ПробныйДЭDataSet ds = new Хаустов_ПробныйДЭDataSet();
  1825. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1826. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1827. any1.MinOccurs = new decimal(0);
  1828. any1.MaxOccurs = decimal.MaxValue;
  1829. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1830. sequence.Items.Add(any1);
  1831. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1832. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1833. any2.MinOccurs = new decimal(1);
  1834. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1835. sequence.Items.Add(any2);
  1836. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1837. attribute1.Name = "namespace";
  1838. attribute1.FixedValue = ds.Namespace;
  1839. type.Attributes.Add(attribute1);
  1840. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1841. attribute2.Name = "tableTypeName";
  1842. attribute2.FixedValue = "DocumentByServiceDataTable";
  1843. type.Attributes.Add(attribute2);
  1844. type.Particle = sequence;
  1845. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1846. if (xs.Contains(dsSchema.TargetNamespace)) {
  1847. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1848. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1849. try {
  1850. global::System.Xml.Schema.XmlSchema schema = null;
  1851. dsSchema.Write(s1);
  1852. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1853. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1854. s2.SetLength(0);
  1855. schema.Write(s2);
  1856. if ((s1.Length == s2.Length)) {
  1857. s1.Position = 0;
  1858. s2.Position = 0;
  1859. for (; ((s1.Position != s1.Length)
  1860. && (s1.ReadByte() == s2.ReadByte())); ) {
  1861. ;
  1862. }
  1863. if ((s1.Position == s1.Length)) {
  1864. return type;
  1865. }
  1866. }
  1867. }
  1868. }
  1869. finally {
  1870. if ((s1 != null)) {
  1871. s1.Close();
  1872. }
  1873. if ((s2 != null)) {
  1874. s2.Close();
  1875. }
  1876. }
  1877. }
  1878. xs.Add(dsSchema);
  1879. return type;
  1880. }
  1881. }
  1882. /// <summary>
  1883. ///Represents the strongly named DataTable class.
  1884. ///</summary>
  1885. [global::System.Serializable()]
  1886. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1887. public partial class GenderDataTable : global::System.Data.TypedTableBase<GenderRow> {
  1888. private global::System.Data.DataColumn columnCode;
  1889. private global::System.Data.DataColumn columnName;
  1890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1892. public GenderDataTable() {
  1893. this.TableName = "Gender";
  1894. this.BeginInit();
  1895. this.InitClass();
  1896. this.EndInit();
  1897. }
  1898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1900. internal GenderDataTable(global::System.Data.DataTable table) {
  1901. this.TableName = table.TableName;
  1902. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1903. this.CaseSensitive = table.CaseSensitive;
  1904. }
  1905. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1906. this.Locale = table.Locale;
  1907. }
  1908. if ((table.Namespace != table.DataSet.Namespace)) {
  1909. this.Namespace = table.Namespace;
  1910. }
  1911. this.Prefix = table.Prefix;
  1912. this.MinimumCapacity = table.MinimumCapacity;
  1913. }
  1914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1915. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1916. protected GenderDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1917. base(info, context) {
  1918. this.InitVars();
  1919. }
  1920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1921. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1922. public global::System.Data.DataColumn CodeColumn {
  1923. get {
  1924. return this.columnCode;
  1925. }
  1926. }
  1927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1929. public global::System.Data.DataColumn NameColumn {
  1930. get {
  1931. return this.columnName;
  1932. }
  1933. }
  1934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1935. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1936. [global::System.ComponentModel.Browsable(false)]
  1937. public int Count {
  1938. get {
  1939. return this.Rows.Count;
  1940. }
  1941. }
  1942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1944. public GenderRow this[int index] {
  1945. get {
  1946. return ((GenderRow)(this.Rows[index]));
  1947. }
  1948. }
  1949. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1950. public event GenderRowChangeEventHandler GenderRowChanging;
  1951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1952. public event GenderRowChangeEventHandler GenderRowChanged;
  1953. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1954. public event GenderRowChangeEventHandler GenderRowDeleting;
  1955. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1956. public event GenderRowChangeEventHandler GenderRowDeleted;
  1957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1959. public void AddGenderRow(GenderRow row) {
  1960. this.Rows.Add(row);
  1961. }
  1962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1964. public GenderRow AddGenderRow(int Code, string Name) {
  1965. GenderRow rowGenderRow = ((GenderRow)(this.NewRow()));
  1966. object[] columnValuesArray = new object[] {
  1967. Code,
  1968. Name};
  1969. rowGenderRow.ItemArray = columnValuesArray;
  1970. this.Rows.Add(rowGenderRow);
  1971. return rowGenderRow;
  1972. }
  1973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1975. public GenderRow FindByCode(int Code) {
  1976. return ((GenderRow)(this.Rows.Find(new object[] {
  1977. Code})));
  1978. }
  1979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1981. public override global::System.Data.DataTable Clone() {
  1982. GenderDataTable cln = ((GenderDataTable)(base.Clone()));
  1983. cln.InitVars();
  1984. return cln;
  1985. }
  1986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1987. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1988. protected override global::System.Data.DataTable CreateInstance() {
  1989. return new GenderDataTable();
  1990. }
  1991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1993. internal void InitVars() {
  1994. this.columnCode = base.Columns["Code"];
  1995. this.columnName = base.Columns["Name"];
  1996. }
  1997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1998. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1999. private void InitClass() {
  2000. this.columnCode = new global::System.Data.DataColumn("Code", typeof(int), null, global::System.Data.MappingType.Element);
  2001. base.Columns.Add(this.columnCode);
  2002. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  2003. base.Columns.Add(this.columnName);
  2004. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2005. this.columnCode}, true));
  2006. this.columnCode.AllowDBNull = false;
  2007. this.columnCode.Unique = true;
  2008. this.columnName.MaxLength = 10;
  2009. }
  2010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2011. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2012. public GenderRow NewGenderRow() {
  2013. return ((GenderRow)(this.NewRow()));
  2014. }
  2015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2017. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2018. return new GenderRow(builder);
  2019. }
  2020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2022. protected override global::System.Type GetRowType() {
  2023. return typeof(GenderRow);
  2024. }
  2025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2027. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2028. base.OnRowChanged(e);
  2029. if ((this.GenderRowChanged != null)) {
  2030. this.GenderRowChanged(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2031. }
  2032. }
  2033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2034. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2035. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2036. base.OnRowChanging(e);
  2037. if ((this.GenderRowChanging != null)) {
  2038. this.GenderRowChanging(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2039. }
  2040. }
  2041. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2042. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2043. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2044. base.OnRowDeleted(e);
  2045. if ((this.GenderRowDeleted != null)) {
  2046. this.GenderRowDeleted(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2047. }
  2048. }
  2049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2051. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2052. base.OnRowDeleting(e);
  2053. if ((this.GenderRowDeleting != null)) {
  2054. this.GenderRowDeleting(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2055. }
  2056. }
  2057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2059. public void RemoveGenderRow(GenderRow row) {
  2060. this.Rows.Remove(row);
  2061. }
  2062. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2063. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2064. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2065. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2066. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2067. Хаустов_ПробныйДЭDataSet ds = new Хаустов_ПробныйДЭDataSet();
  2068. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2069. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2070. any1.MinOccurs = new decimal(0);
  2071. any1.MaxOccurs = decimal.MaxValue;
  2072. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2073. sequence.Items.Add(any1);
  2074. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2075. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2076. any2.MinOccurs = new decimal(1);
  2077. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2078. sequence.Items.Add(any2);
  2079. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2080. attribute1.Name = "namespace";
  2081. attribute1.FixedValue = ds.Namespace;
  2082. type.Attributes.Add(attribute1);
  2083. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2084. attribute2.Name = "tableTypeName";
  2085. attribute2.FixedValue = "GenderDataTable";
  2086. type.Attributes.Add(attribute2);
  2087. type.Particle = sequence;
  2088. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2089. if (xs.Contains(dsSchema.TargetNamespace)) {
  2090. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2091. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2092. try {
  2093. global::System.Xml.Schema.XmlSchema schema = null;
  2094. dsSchema.Write(s1);
  2095. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2096. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2097. s2.SetLength(0);
  2098. schema.Write(s2);
  2099. if ((s1.Length == s2.Length)) {
  2100. s1.Position = 0;
  2101. s2.Position = 0;
  2102. for (; ((s1.Position != s1.Length)
  2103. && (s1.ReadByte() == s2.ReadByte())); ) {
  2104. ;
  2105. }
  2106. if ((s1.Position == s1.Length)) {
  2107. return type;
  2108. }
  2109. }
  2110. }
  2111. }
  2112. finally {
  2113. if ((s1 != null)) {
  2114. s1.Close();
  2115. }
  2116. if ((s2 != null)) {
  2117. s2.Close();
  2118. }
  2119. }
  2120. }
  2121. xs.Add(dsSchema);
  2122. return type;
  2123. }
  2124. }
  2125. /// <summary>
  2126. ///Represents the strongly named DataTable class.
  2127. ///</summary>
  2128. [global::System.Serializable()]
  2129. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2130. public partial class ManufacturerDataTable : global::System.Data.TypedTableBase<ManufacturerRow> {
  2131. private global::System.Data.DataColumn columnID;
  2132. private global::System.Data.DataColumn columnName;
  2133. private global::System.Data.DataColumn columnStartDate;
  2134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2136. public ManufacturerDataTable() {
  2137. this.TableName = "Manufacturer";
  2138. this.BeginInit();
  2139. this.InitClass();
  2140. this.EndInit();
  2141. }
  2142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2144. internal ManufacturerDataTable(global::System.Data.DataTable table) {
  2145. this.TableName = table.TableName;
  2146. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2147. this.CaseSensitive = table.CaseSensitive;
  2148. }
  2149. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2150. this.Locale = table.Locale;
  2151. }
  2152. if ((table.Namespace != table.DataSet.Namespace)) {
  2153. this.Namespace = table.Namespace;
  2154. }
  2155. this.Prefix = table.Prefix;
  2156. this.MinimumCapacity = table.MinimumCapacity;
  2157. }
  2158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2160. protected ManufacturerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2161. base(info, context) {
  2162. this.InitVars();
  2163. }
  2164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2166. public global::System.Data.DataColumn IDColumn {
  2167. get {
  2168. return this.columnID;
  2169. }
  2170. }
  2171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2173. public global::System.Data.DataColumn NameColumn {
  2174. get {
  2175. return this.columnName;
  2176. }
  2177. }
  2178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2180. public global::System.Data.DataColumn StartDateColumn {
  2181. get {
  2182. return this.columnStartDate;
  2183. }
  2184. }
  2185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2187. [global::System.ComponentModel.Browsable(false)]
  2188. public int Count {
  2189. get {
  2190. return this.Rows.Count;
  2191. }
  2192. }
  2193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2195. public ManufacturerRow this[int index] {
  2196. get {
  2197. return ((ManufacturerRow)(this.Rows[index]));
  2198. }
  2199. }
  2200. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2201. public event ManufacturerRowChangeEventHandler ManufacturerRowChanging;
  2202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2203. public event ManufacturerRowChangeEventHandler ManufacturerRowChanged;
  2204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2205. public event ManufacturerRowChangeEventHandler ManufacturerRowDeleting;
  2206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2207. public event ManufacturerRowChangeEventHandler ManufacturerRowDeleted;
  2208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2210. public void AddManufacturerRow(ManufacturerRow row) {
  2211. this.Rows.Add(row);
  2212. }
  2213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2215. public ManufacturerRow AddManufacturerRow(string Name, System.DateTime StartDate) {
  2216. ManufacturerRow rowManufacturerRow = ((ManufacturerRow)(this.NewRow()));
  2217. object[] columnValuesArray = new object[] {
  2218. null,
  2219. Name,
  2220. StartDate};
  2221. rowManufacturerRow.ItemArray = columnValuesArray;
  2222. this.Rows.Add(rowManufacturerRow);
  2223. return rowManufacturerRow;
  2224. }
  2225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2227. public ManufacturerRow FindByID(int ID) {
  2228. return ((ManufacturerRow)(this.Rows.Find(new object[] {
  2229. ID})));
  2230. }
  2231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2233. public override global::System.Data.DataTable Clone() {
  2234. ManufacturerDataTable cln = ((ManufacturerDataTable)(base.Clone()));
  2235. cln.InitVars();
  2236. return cln;
  2237. }
  2238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2240. protected override global::System.Data.DataTable CreateInstance() {
  2241. return new ManufacturerDataTable();
  2242. }
  2243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2245. internal void InitVars() {
  2246. this.columnID = base.Columns["ID"];
  2247. this.columnName = base.Columns["Name"];
  2248. this.columnStartDate = base.Columns["StartDate"];
  2249. }
  2250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2252. private void InitClass() {
  2253. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2254. base.Columns.Add(this.columnID);
  2255. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  2256. base.Columns.Add(this.columnName);
  2257. this.columnStartDate = new global::System.Data.DataColumn("StartDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  2258. base.Columns.Add(this.columnStartDate);
  2259. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2260. this.columnID}, true));
  2261. this.columnID.AutoIncrement = true;
  2262. this.columnID.AutoIncrementSeed = -1;
  2263. this.columnID.AutoIncrementStep = -1;
  2264. this.columnID.AllowDBNull = false;
  2265. this.columnID.ReadOnly = true;
  2266. this.columnID.Unique = true;
  2267. this.columnName.AllowDBNull = false;
  2268. this.columnName.MaxLength = 100;
  2269. }
  2270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2271. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2272. public ManufacturerRow NewManufacturerRow() {
  2273. return ((ManufacturerRow)(this.NewRow()));
  2274. }
  2275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2277. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2278. return new ManufacturerRow(builder);
  2279. }
  2280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2282. protected override global::System.Type GetRowType() {
  2283. return typeof(ManufacturerRow);
  2284. }
  2285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2287. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2288. base.OnRowChanged(e);
  2289. if ((this.ManufacturerRowChanged != null)) {
  2290. this.ManufacturerRowChanged(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  2291. }
  2292. }
  2293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2295. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2296. base.OnRowChanging(e);
  2297. if ((this.ManufacturerRowChanging != null)) {
  2298. this.ManufacturerRowChanging(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  2299. }
  2300. }
  2301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2303. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2304. base.OnRowDeleted(e);
  2305. if ((this.ManufacturerRowDeleted != null)) {
  2306. this.ManufacturerRowDeleted(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  2307. }
  2308. }
  2309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2311. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2312. base.OnRowDeleting(e);
  2313. if ((this.ManufacturerRowDeleting != null)) {
  2314. this.ManufacturerRowDeleting(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  2315. }
  2316. }
  2317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2319. public void RemoveManufacturerRow(ManufacturerRow row) {
  2320. this.Rows.Remove(row);
  2321. }
  2322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2324. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2325. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2326. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2327. Хаустов_ПробныйДЭDataSet ds = new Хаустов_ПробныйДЭDataSet();
  2328. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2329. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2330. any1.MinOccurs = new decimal(0);
  2331. any1.MaxOccurs = decimal.MaxValue;
  2332. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2333. sequence.Items.Add(any1);
  2334. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2335. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2336. any2.MinOccurs = new decimal(1);
  2337. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2338. sequence.Items.Add(any2);
  2339. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2340. attribute1.Name = "namespace";
  2341. attribute1.FixedValue = ds.Namespace;
  2342. type.Attributes.Add(attribute1);
  2343. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2344. attribute2.Name = "tableTypeName";
  2345. attribute2.FixedValue = "ManufacturerDataTable";
  2346. type.Attributes.Add(attribute2);
  2347. type.Particle = sequence;
  2348. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2349. if (xs.Contains(dsSchema.TargetNamespace)) {
  2350. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2351. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2352. try {
  2353. global::System.Xml.Schema.XmlSchema schema = null;
  2354. dsSchema.Write(s1);
  2355. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2356. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2357. s2.SetLength(0);
  2358. schema.Write(s2);
  2359. if ((s1.Length == s2.Length)) {
  2360. s1.Position = 0;
  2361. s2.Position = 0;
  2362. for (; ((s1.Position != s1.Length)
  2363. && (s1.ReadByte() == s2.ReadByte())); ) {
  2364. ;
  2365. }
  2366. if ((s1.Position == s1.Length)) {
  2367. return type;
  2368. }
  2369. }
  2370. }
  2371. }
  2372. finally {
  2373. if ((s1 != null)) {
  2374. s1.Close();
  2375. }
  2376. if ((s2 != null)) {
  2377. s2.Close();
  2378. }
  2379. }
  2380. }
  2381. xs.Add(dsSchema);
  2382. return type;
  2383. }
  2384. }
  2385. /// <summary>
  2386. ///Represents the strongly named DataTable class.
  2387. ///</summary>
  2388. [global::System.Serializable()]
  2389. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2390. public partial class ProductDataTable : global::System.Data.TypedTableBase<ProductRow> {
  2391. private global::System.Data.DataColumn columnID;
  2392. private global::System.Data.DataColumn columnTitle;
  2393. private global::System.Data.DataColumn columnCost;
  2394. private global::System.Data.DataColumn columnDescription;
  2395. private global::System.Data.DataColumn columnMainImagePath;
  2396. private global::System.Data.DataColumn columnIsActive;
  2397. private global::System.Data.DataColumn columnManufacturerID;
  2398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2400. public ProductDataTable() {
  2401. this.TableName = "Product";
  2402. this.BeginInit();
  2403. this.InitClass();
  2404. this.EndInit();
  2405. }
  2406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2408. internal ProductDataTable(global::System.Data.DataTable table) {
  2409. this.TableName = table.TableName;
  2410. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2411. this.CaseSensitive = table.CaseSensitive;
  2412. }
  2413. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2414. this.Locale = table.Locale;
  2415. }
  2416. if ((table.Namespace != table.DataSet.Namespace)) {
  2417. this.Namespace = table.Namespace;
  2418. }
  2419. this.Prefix = table.Prefix;
  2420. this.MinimumCapacity = table.MinimumCapacity;
  2421. }
  2422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2423. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2424. protected ProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2425. base(info, context) {
  2426. this.InitVars();
  2427. }
  2428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2429. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2430. public global::System.Data.DataColumn IDColumn {
  2431. get {
  2432. return this.columnID;
  2433. }
  2434. }
  2435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2437. public global::System.Data.DataColumn TitleColumn {
  2438. get {
  2439. return this.columnTitle;
  2440. }
  2441. }
  2442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2444. public global::System.Data.DataColumn CostColumn {
  2445. get {
  2446. return this.columnCost;
  2447. }
  2448. }
  2449. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2450. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2451. public global::System.Data.DataColumn DescriptionColumn {
  2452. get {
  2453. return this.columnDescription;
  2454. }
  2455. }
  2456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2458. public global::System.Data.DataColumn MainImagePathColumn {
  2459. get {
  2460. return this.columnMainImagePath;
  2461. }
  2462. }
  2463. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2464. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2465. public global::System.Data.DataColumn IsActiveColumn {
  2466. get {
  2467. return this.columnIsActive;
  2468. }
  2469. }
  2470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2471. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2472. public global::System.Data.DataColumn ManufacturerIDColumn {
  2473. get {
  2474. return this.columnManufacturerID;
  2475. }
  2476. }
  2477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2479. [global::System.ComponentModel.Browsable(false)]
  2480. public int Count {
  2481. get {
  2482. return this.Rows.Count;
  2483. }
  2484. }
  2485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2487. public ProductRow this[int index] {
  2488. get {
  2489. return ((ProductRow)(this.Rows[index]));
  2490. }
  2491. }
  2492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2493. public event ProductRowChangeEventHandler ProductRowChanging;
  2494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2495. public event ProductRowChangeEventHandler ProductRowChanged;
  2496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2497. public event ProductRowChangeEventHandler ProductRowDeleting;
  2498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2499. public event ProductRowChangeEventHandler ProductRowDeleted;
  2500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2502. public void AddProductRow(ProductRow row) {
  2503. this.Rows.Add(row);
  2504. }
  2505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2507. public ProductRow AddProductRow(string Title, decimal Cost, string Description, string MainImagePath, bool IsActive, ManufacturerRow parentManufacturerRowByFK_Product_Manufacturer) {
  2508. ProductRow rowProductRow = ((ProductRow)(this.NewRow()));
  2509. object[] columnValuesArray = new object[] {
  2510. null,
  2511. Title,
  2512. Cost,
  2513. Description,
  2514. MainImagePath,
  2515. IsActive,
  2516. null};
  2517. if ((parentManufacturerRowByFK_Product_Manufacturer != null)) {
  2518. columnValuesArray[6] = parentManufacturerRowByFK_Product_Manufacturer[0];
  2519. }
  2520. rowProductRow.ItemArray = columnValuesArray;
  2521. this.Rows.Add(rowProductRow);
  2522. return rowProductRow;
  2523. }
  2524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2526. public ProductRow FindByID(int ID) {
  2527. return ((ProductRow)(this.Rows.Find(new object[] {
  2528. ID})));
  2529. }
  2530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2532. public override global::System.Data.DataTable Clone() {
  2533. ProductDataTable cln = ((ProductDataTable)(base.Clone()));
  2534. cln.InitVars();
  2535. return cln;
  2536. }
  2537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2539. protected override global::System.Data.DataTable CreateInstance() {
  2540. return new ProductDataTable();
  2541. }
  2542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2544. internal void InitVars() {
  2545. this.columnID = base.Columns["ID"];
  2546. this.columnTitle = base.Columns["Title"];
  2547. this.columnCost = base.Columns["Cost"];
  2548. this.columnDescription = base.Columns["Description"];
  2549. this.columnMainImagePath = base.Columns["MainImagePath"];
  2550. this.columnIsActive = base.Columns["IsActive"];
  2551. this.columnManufacturerID = base.Columns["ManufacturerID"];
  2552. }
  2553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2555. private void InitClass() {
  2556. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2557. base.Columns.Add(this.columnID);
  2558. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  2559. base.Columns.Add(this.columnTitle);
  2560. this.columnCost = new global::System.Data.DataColumn("Cost", typeof(decimal), null, global::System.Data.MappingType.Element);
  2561. base.Columns.Add(this.columnCost);
  2562. this.columnDescription = new global::System.Data.DataColumn("Description", typeof(string), null, global::System.Data.MappingType.Element);
  2563. base.Columns.Add(this.columnDescription);
  2564. this.columnMainImagePath = new global::System.Data.DataColumn("MainImagePath", typeof(string), null, global::System.Data.MappingType.Element);
  2565. base.Columns.Add(this.columnMainImagePath);
  2566. this.columnIsActive = new global::System.Data.DataColumn("IsActive", typeof(bool), null, global::System.Data.MappingType.Element);
  2567. base.Columns.Add(this.columnIsActive);
  2568. this.columnManufacturerID = new global::System.Data.DataColumn("ManufacturerID", typeof(int), null, global::System.Data.MappingType.Element);
  2569. base.Columns.Add(this.columnManufacturerID);
  2570. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2571. this.columnID}, true));
  2572. this.columnID.AutoIncrement = true;
  2573. this.columnID.AutoIncrementSeed = -1;
  2574. this.columnID.AutoIncrementStep = -1;
  2575. this.columnID.AllowDBNull = false;
  2576. this.columnID.ReadOnly = true;
  2577. this.columnID.Unique = true;
  2578. this.columnTitle.AllowDBNull = false;
  2579. this.columnTitle.MaxLength = 100;
  2580. this.columnCost.AllowDBNull = false;
  2581. this.columnDescription.MaxLength = 2147483647;
  2582. this.columnMainImagePath.MaxLength = 1000;
  2583. this.columnIsActive.AllowDBNull = false;
  2584. }
  2585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2587. public ProductRow NewProductRow() {
  2588. return ((ProductRow)(this.NewRow()));
  2589. }
  2590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2592. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2593. return new ProductRow(builder);
  2594. }
  2595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2597. protected override global::System.Type GetRowType() {
  2598. return typeof(ProductRow);
  2599. }
  2600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2602. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2603. base.OnRowChanged(e);
  2604. if ((this.ProductRowChanged != null)) {
  2605. this.ProductRowChanged(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2606. }
  2607. }
  2608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2610. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2611. base.OnRowChanging(e);
  2612. if ((this.ProductRowChanging != null)) {
  2613. this.ProductRowChanging(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2614. }
  2615. }
  2616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2618. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2619. base.OnRowDeleted(e);
  2620. if ((this.ProductRowDeleted != null)) {
  2621. this.ProductRowDeleted(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2622. }
  2623. }
  2624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2626. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2627. base.OnRowDeleting(e);
  2628. if ((this.ProductRowDeleting != null)) {
  2629. this.ProductRowDeleting(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2630. }
  2631. }
  2632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2634. public void RemoveProductRow(ProductRow row) {
  2635. this.Rows.Remove(row);
  2636. }
  2637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2639. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2640. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2641. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2642. Хаустов_ПробныйДЭDataSet ds = new Хаустов_ПробныйДЭDataSet();
  2643. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2644. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2645. any1.MinOccurs = new decimal(0);
  2646. any1.MaxOccurs = decimal.MaxValue;
  2647. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2648. sequence.Items.Add(any1);
  2649. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2650. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2651. any2.MinOccurs = new decimal(1);
  2652. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2653. sequence.Items.Add(any2);
  2654. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2655. attribute1.Name = "namespace";
  2656. attribute1.FixedValue = ds.Namespace;
  2657. type.Attributes.Add(attribute1);
  2658. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2659. attribute2.Name = "tableTypeName";
  2660. attribute2.FixedValue = "ProductDataTable";
  2661. type.Attributes.Add(attribute2);
  2662. type.Particle = sequence;
  2663. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2664. if (xs.Contains(dsSchema.TargetNamespace)) {
  2665. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2666. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2667. try {
  2668. global::System.Xml.Schema.XmlSchema schema = null;
  2669. dsSchema.Write(s1);
  2670. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2671. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2672. s2.SetLength(0);
  2673. schema.Write(s2);
  2674. if ((s1.Length == s2.Length)) {
  2675. s1.Position = 0;
  2676. s2.Position = 0;
  2677. for (; ((s1.Position != s1.Length)
  2678. && (s1.ReadByte() == s2.ReadByte())); ) {
  2679. ;
  2680. }
  2681. if ((s1.Position == s1.Length)) {
  2682. return type;
  2683. }
  2684. }
  2685. }
  2686. }
  2687. finally {
  2688. if ((s1 != null)) {
  2689. s1.Close();
  2690. }
  2691. if ((s2 != null)) {
  2692. s2.Close();
  2693. }
  2694. }
  2695. }
  2696. xs.Add(dsSchema);
  2697. return type;
  2698. }
  2699. }
  2700. /// <summary>
  2701. ///Represents the strongly named DataTable class.
  2702. ///</summary>
  2703. [global::System.Serializable()]
  2704. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2705. public partial class ProductPhotoDataTable : global::System.Data.TypedTableBase<ProductPhotoRow> {
  2706. private global::System.Data.DataColumn columnID;
  2707. private global::System.Data.DataColumn columnProductID;
  2708. private global::System.Data.DataColumn columnPhotoPath;
  2709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2711. public ProductPhotoDataTable() {
  2712. this.TableName = "ProductPhoto";
  2713. this.BeginInit();
  2714. this.InitClass();
  2715. this.EndInit();
  2716. }
  2717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2719. internal ProductPhotoDataTable(global::System.Data.DataTable table) {
  2720. this.TableName = table.TableName;
  2721. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2722. this.CaseSensitive = table.CaseSensitive;
  2723. }
  2724. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2725. this.Locale = table.Locale;
  2726. }
  2727. if ((table.Namespace != table.DataSet.Namespace)) {
  2728. this.Namespace = table.Namespace;
  2729. }
  2730. this.Prefix = table.Prefix;
  2731. this.MinimumCapacity = table.MinimumCapacity;
  2732. }
  2733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2735. protected ProductPhotoDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2736. base(info, context) {
  2737. this.InitVars();
  2738. }
  2739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2741. public global::System.Data.DataColumn IDColumn {
  2742. get {
  2743. return this.columnID;
  2744. }
  2745. }
  2746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2748. public global::System.Data.DataColumn ProductIDColumn {
  2749. get {
  2750. return this.columnProductID;
  2751. }
  2752. }
  2753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2755. public global::System.Data.DataColumn PhotoPathColumn {
  2756. get {
  2757. return this.columnPhotoPath;
  2758. }
  2759. }
  2760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2761. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2762. [global::System.ComponentModel.Browsable(false)]
  2763. public int Count {
  2764. get {
  2765. return this.Rows.Count;
  2766. }
  2767. }
  2768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2770. public ProductPhotoRow this[int index] {
  2771. get {
  2772. return ((ProductPhotoRow)(this.Rows[index]));
  2773. }
  2774. }
  2775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2776. public event ProductPhotoRowChangeEventHandler ProductPhotoRowChanging;
  2777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2778. public event ProductPhotoRowChangeEventHandler ProductPhotoRowChanged;
  2779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2780. public event ProductPhotoRowChangeEventHandler ProductPhotoRowDeleting;
  2781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2782. public event ProductPhotoRowChangeEventHandler ProductPhotoRowDeleted;
  2783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2785. public void AddProductPhotoRow(ProductPhotoRow row) {
  2786. this.Rows.Add(row);
  2787. }
  2788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2790. public ProductPhotoRow AddProductPhotoRow(ProductRow parentProductRowByFK_ProductPhoto_Product, string PhotoPath) {
  2791. ProductPhotoRow rowProductPhotoRow = ((ProductPhotoRow)(this.NewRow()));
  2792. object[] columnValuesArray = new object[] {
  2793. null,
  2794. null,
  2795. PhotoPath};
  2796. if ((parentProductRowByFK_ProductPhoto_Product != null)) {
  2797. columnValuesArray[1] = parentProductRowByFK_ProductPhoto_Product[0];
  2798. }
  2799. rowProductPhotoRow.ItemArray = columnValuesArray;
  2800. this.Rows.Add(rowProductPhotoRow);
  2801. return rowProductPhotoRow;
  2802. }
  2803. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2804. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2805. public ProductPhotoRow FindByID(int ID) {
  2806. return ((ProductPhotoRow)(this.Rows.Find(new object[] {
  2807. ID})));
  2808. }
  2809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2811. public override global::System.Data.DataTable Clone() {
  2812. ProductPhotoDataTable cln = ((ProductPhotoDataTable)(base.Clone()));
  2813. cln.InitVars();
  2814. return cln;
  2815. }
  2816. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2817. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2818. protected override global::System.Data.DataTable CreateInstance() {
  2819. return new ProductPhotoDataTable();
  2820. }
  2821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2823. internal void InitVars() {
  2824. this.columnID = base.Columns["ID"];
  2825. this.columnProductID = base.Columns["ProductID"];
  2826. this.columnPhotoPath = base.Columns["PhotoPath"];
  2827. }
  2828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2830. private void InitClass() {
  2831. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2832. base.Columns.Add(this.columnID);
  2833. this.columnProductID = new global::System.Data.DataColumn("ProductID", typeof(int), null, global::System.Data.MappingType.Element);
  2834. base.Columns.Add(this.columnProductID);
  2835. this.columnPhotoPath = new global::System.Data.DataColumn("PhotoPath", typeof(string), null, global::System.Data.MappingType.Element);
  2836. base.Columns.Add(this.columnPhotoPath);
  2837. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2838. this.columnID}, true));
  2839. this.columnID.AutoIncrement = true;
  2840. this.columnID.AutoIncrementSeed = -1;
  2841. this.columnID.AutoIncrementStep = -1;
  2842. this.columnID.AllowDBNull = false;
  2843. this.columnID.ReadOnly = true;
  2844. this.columnID.Unique = true;
  2845. this.columnProductID.AllowDBNull = false;
  2846. this.columnPhotoPath.AllowDBNull = false;
  2847. this.columnPhotoPath.MaxLength = 1000;
  2848. }
  2849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2851. public ProductPhotoRow NewProductPhotoRow() {
  2852. return ((ProductPhotoRow)(this.NewRow()));
  2853. }
  2854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2856. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2857. return new ProductPhotoRow(builder);
  2858. }
  2859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2861. protected override global::System.Type GetRowType() {
  2862. return typeof(ProductPhotoRow);
  2863. }
  2864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2866. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2867. base.OnRowChanged(e);
  2868. if ((this.ProductPhotoRowChanged != null)) {
  2869. this.ProductPhotoRowChanged(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  2870. }
  2871. }
  2872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2874. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2875. base.OnRowChanging(e);
  2876. if ((this.ProductPhotoRowChanging != null)) {
  2877. this.ProductPhotoRowChanging(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  2878. }
  2879. }
  2880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2881. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2882. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2883. base.OnRowDeleted(e);
  2884. if ((this.ProductPhotoRowDeleted != null)) {
  2885. this.ProductPhotoRowDeleted(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  2886. }
  2887. }
  2888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2890. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2891. base.OnRowDeleting(e);
  2892. if ((this.ProductPhotoRowDeleting != null)) {
  2893. this.ProductPhotoRowDeleting(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  2894. }
  2895. }
  2896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2898. public void RemoveProductPhotoRow(ProductPhotoRow row) {
  2899. this.Rows.Remove(row);
  2900. }
  2901. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2902. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2903. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2904. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2905. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2906. Хаустов_ПробныйДЭDataSet ds = new Хаустов_ПробныйДЭDataSet();
  2907. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2908. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2909. any1.MinOccurs = new decimal(0);
  2910. any1.MaxOccurs = decimal.MaxValue;
  2911. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2912. sequence.Items.Add(any1);
  2913. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2914. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2915. any2.MinOccurs = new decimal(1);
  2916. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2917. sequence.Items.Add(any2);
  2918. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2919. attribute1.Name = "namespace";
  2920. attribute1.FixedValue = ds.Namespace;
  2921. type.Attributes.Add(attribute1);
  2922. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2923. attribute2.Name = "tableTypeName";
  2924. attribute2.FixedValue = "ProductPhotoDataTable";
  2925. type.Attributes.Add(attribute2);
  2926. type.Particle = sequence;
  2927. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2928. if (xs.Contains(dsSchema.TargetNamespace)) {
  2929. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2930. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2931. try {
  2932. global::System.Xml.Schema.XmlSchema schema = null;
  2933. dsSchema.Write(s1);
  2934. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2935. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2936. s2.SetLength(0);
  2937. schema.Write(s2);
  2938. if ((s1.Length == s2.Length)) {
  2939. s1.Position = 0;
  2940. s2.Position = 0;
  2941. for (; ((s1.Position != s1.Length)
  2942. && (s1.ReadByte() == s2.ReadByte())); ) {
  2943. ;
  2944. }
  2945. if ((s1.Position == s1.Length)) {
  2946. return type;
  2947. }
  2948. }
  2949. }
  2950. }
  2951. finally {
  2952. if ((s1 != null)) {
  2953. s1.Close();
  2954. }
  2955. if ((s2 != null)) {
  2956. s2.Close();
  2957. }
  2958. }
  2959. }
  2960. xs.Add(dsSchema);
  2961. return type;
  2962. }
  2963. }
  2964. /// <summary>
  2965. ///Represents the strongly named DataTable class.
  2966. ///</summary>
  2967. [global::System.Serializable()]
  2968. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2969. public partial class ProductSaleDataTable : global::System.Data.TypedTableBase<ProductSaleRow> {
  2970. private global::System.Data.DataColumn columnID;
  2971. private global::System.Data.DataColumn columnSaleDate;
  2972. private global::System.Data.DataColumn columnProductID;
  2973. private global::System.Data.DataColumn columnQuantity;
  2974. private global::System.Data.DataColumn columnClientServiceID;
  2975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2976. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2977. public ProductSaleDataTable() {
  2978. this.TableName = "ProductSale";
  2979. this.BeginInit();
  2980. this.InitClass();
  2981. this.EndInit();
  2982. }
  2983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2984. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2985. internal ProductSaleDataTable(global::System.Data.DataTable table) {
  2986. this.TableName = table.TableName;
  2987. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2988. this.CaseSensitive = table.CaseSensitive;
  2989. }
  2990. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2991. this.Locale = table.Locale;
  2992. }
  2993. if ((table.Namespace != table.DataSet.Namespace)) {
  2994. this.Namespace = table.Namespace;
  2995. }
  2996. this.Prefix = table.Prefix;
  2997. this.MinimumCapacity = table.MinimumCapacity;
  2998. }
  2999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3001. protected ProductSaleDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3002. base(info, context) {
  3003. this.InitVars();
  3004. }
  3005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3007. public global::System.Data.DataColumn IDColumn {
  3008. get {
  3009. return this.columnID;
  3010. }
  3011. }
  3012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3014. public global::System.Data.DataColumn SaleDateColumn {
  3015. get {
  3016. return this.columnSaleDate;
  3017. }
  3018. }
  3019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3021. public global::System.Data.DataColumn ProductIDColumn {
  3022. get {
  3023. return this.columnProductID;
  3024. }
  3025. }
  3026. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3027. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3028. public global::System.Data.DataColumn QuantityColumn {
  3029. get {
  3030. return this.columnQuantity;
  3031. }
  3032. }
  3033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3034. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3035. public global::System.Data.DataColumn ClientServiceIDColumn {
  3036. get {
  3037. return this.columnClientServiceID;
  3038. }
  3039. }
  3040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3042. [global::System.ComponentModel.Browsable(false)]
  3043. public int Count {
  3044. get {
  3045. return this.Rows.Count;
  3046. }
  3047. }
  3048. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3049. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3050. public ProductSaleRow this[int index] {
  3051. get {
  3052. return ((ProductSaleRow)(this.Rows[index]));
  3053. }
  3054. }
  3055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3056. public event ProductSaleRowChangeEventHandler ProductSaleRowChanging;
  3057. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3058. public event ProductSaleRowChangeEventHandler ProductSaleRowChanged;
  3059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3060. public event ProductSaleRowChangeEventHandler ProductSaleRowDeleting;
  3061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3062. public event ProductSaleRowChangeEventHandler ProductSaleRowDeleted;
  3063. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3064. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3065. public void AddProductSaleRow(ProductSaleRow row) {
  3066. this.Rows.Add(row);
  3067. }
  3068. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3069. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3070. public ProductSaleRow AddProductSaleRow(System.DateTime SaleDate, ProductRow parentProductRowByFK_ProductSale_Product, int Quantity, ClientServiceRow parentClientServiceRowByFK_ProductSale_ClientService) {
  3071. ProductSaleRow rowProductSaleRow = ((ProductSaleRow)(this.NewRow()));
  3072. object[] columnValuesArray = new object[] {
  3073. null,
  3074. SaleDate,
  3075. null,
  3076. Quantity,
  3077. null};
  3078. if ((parentProductRowByFK_ProductSale_Product != null)) {
  3079. columnValuesArray[2] = parentProductRowByFK_ProductSale_Product[0];
  3080. }
  3081. if ((parentClientServiceRowByFK_ProductSale_ClientService != null)) {
  3082. columnValuesArray[4] = parentClientServiceRowByFK_ProductSale_ClientService[0];
  3083. }
  3084. rowProductSaleRow.ItemArray = columnValuesArray;
  3085. this.Rows.Add(rowProductSaleRow);
  3086. return rowProductSaleRow;
  3087. }
  3088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3090. public ProductSaleRow FindByID(int ID) {
  3091. return ((ProductSaleRow)(this.Rows.Find(new object[] {
  3092. ID})));
  3093. }
  3094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3095. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3096. public override global::System.Data.DataTable Clone() {
  3097. ProductSaleDataTable cln = ((ProductSaleDataTable)(base.Clone()));
  3098. cln.InitVars();
  3099. return cln;
  3100. }
  3101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3103. protected override global::System.Data.DataTable CreateInstance() {
  3104. return new ProductSaleDataTable();
  3105. }
  3106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3108. internal void InitVars() {
  3109. this.columnID = base.Columns["ID"];
  3110. this.columnSaleDate = base.Columns["SaleDate"];
  3111. this.columnProductID = base.Columns["ProductID"];
  3112. this.columnQuantity = base.Columns["Quantity"];
  3113. this.columnClientServiceID = base.Columns["ClientServiceID"];
  3114. }
  3115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3117. private void InitClass() {
  3118. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3119. base.Columns.Add(this.columnID);
  3120. this.columnSaleDate = new global::System.Data.DataColumn("SaleDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  3121. base.Columns.Add(this.columnSaleDate);
  3122. this.columnProductID = new global::System.Data.DataColumn("ProductID", typeof(int), null, global::System.Data.MappingType.Element);
  3123. base.Columns.Add(this.columnProductID);
  3124. this.columnQuantity = new global::System.Data.DataColumn("Quantity", typeof(int), null, global::System.Data.MappingType.Element);
  3125. base.Columns.Add(this.columnQuantity);
  3126. this.columnClientServiceID = new global::System.Data.DataColumn("ClientServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  3127. base.Columns.Add(this.columnClientServiceID);
  3128. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3129. this.columnID}, true));
  3130. this.columnID.AutoIncrement = true;
  3131. this.columnID.AutoIncrementSeed = -1;
  3132. this.columnID.AutoIncrementStep = -1;
  3133. this.columnID.AllowDBNull = false;
  3134. this.columnID.ReadOnly = true;
  3135. this.columnID.Unique = true;
  3136. this.columnSaleDate.AllowDBNull = false;
  3137. this.columnProductID.AllowDBNull = false;
  3138. this.columnQuantity.AllowDBNull = false;
  3139. }
  3140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3142. public ProductSaleRow NewProductSaleRow() {
  3143. return ((ProductSaleRow)(this.NewRow()));
  3144. }
  3145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3147. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3148. return new ProductSaleRow(builder);
  3149. }
  3150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3152. protected override global::System.Type GetRowType() {
  3153. return typeof(ProductSaleRow);
  3154. }
  3155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3157. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3158. base.OnRowChanged(e);
  3159. if ((this.ProductSaleRowChanged != null)) {
  3160. this.ProductSaleRowChanged(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3161. }
  3162. }
  3163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3165. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3166. base.OnRowChanging(e);
  3167. if ((this.ProductSaleRowChanging != null)) {
  3168. this.ProductSaleRowChanging(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3169. }
  3170. }
  3171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3173. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3174. base.OnRowDeleted(e);
  3175. if ((this.ProductSaleRowDeleted != null)) {
  3176. this.ProductSaleRowDeleted(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3177. }
  3178. }
  3179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3181. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3182. base.OnRowDeleting(e);
  3183. if ((this.ProductSaleRowDeleting != null)) {
  3184. this.ProductSaleRowDeleting(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3185. }
  3186. }
  3187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3189. public void RemoveProductSaleRow(ProductSaleRow row) {
  3190. this.Rows.Remove(row);
  3191. }
  3192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3194. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3195. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3196. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3197. Хаустов_ПробныйДЭDataSet ds = new Хаустов_ПробныйДЭDataSet();
  3198. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3199. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3200. any1.MinOccurs = new decimal(0);
  3201. any1.MaxOccurs = decimal.MaxValue;
  3202. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3203. sequence.Items.Add(any1);
  3204. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3205. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3206. any2.MinOccurs = new decimal(1);
  3207. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3208. sequence.Items.Add(any2);
  3209. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3210. attribute1.Name = "namespace";
  3211. attribute1.FixedValue = ds.Namespace;
  3212. type.Attributes.Add(attribute1);
  3213. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3214. attribute2.Name = "tableTypeName";
  3215. attribute2.FixedValue = "ProductSaleDataTable";
  3216. type.Attributes.Add(attribute2);
  3217. type.Particle = sequence;
  3218. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3219. if (xs.Contains(dsSchema.TargetNamespace)) {
  3220. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3221. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3222. try {
  3223. global::System.Xml.Schema.XmlSchema schema = null;
  3224. dsSchema.Write(s1);
  3225. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3226. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3227. s2.SetLength(0);
  3228. schema.Write(s2);
  3229. if ((s1.Length == s2.Length)) {
  3230. s1.Position = 0;
  3231. s2.Position = 0;
  3232. for (; ((s1.Position != s1.Length)
  3233. && (s1.ReadByte() == s2.ReadByte())); ) {
  3234. ;
  3235. }
  3236. if ((s1.Position == s1.Length)) {
  3237. return type;
  3238. }
  3239. }
  3240. }
  3241. }
  3242. finally {
  3243. if ((s1 != null)) {
  3244. s1.Close();
  3245. }
  3246. if ((s2 != null)) {
  3247. s2.Close();
  3248. }
  3249. }
  3250. }
  3251. xs.Add(dsSchema);
  3252. return type;
  3253. }
  3254. }
  3255. /// <summary>
  3256. ///Represents the strongly named DataTable class.
  3257. ///</summary>
  3258. [global::System.Serializable()]
  3259. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3260. public partial class ServiceDataTable : global::System.Data.TypedTableBase<ServiceRow> {
  3261. private global::System.Data.DataColumn columnID;
  3262. private global::System.Data.DataColumn columnНаименование_услуги;
  3263. private global::System.Data.DataColumn columnГлавное_изображение;
  3264. private global::System.Data.DataColumn columnДлительность;
  3265. private global::System.Data.DataColumn columnСтоимость;
  3266. private global::System.Data.DataColumn columnДействующая_скидка;
  3267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3269. public ServiceDataTable() {
  3270. this.TableName = "Service";
  3271. this.BeginInit();
  3272. this.InitClass();
  3273. this.EndInit();
  3274. }
  3275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3277. internal ServiceDataTable(global::System.Data.DataTable table) {
  3278. this.TableName = table.TableName;
  3279. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3280. this.CaseSensitive = table.CaseSensitive;
  3281. }
  3282. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3283. this.Locale = table.Locale;
  3284. }
  3285. if ((table.Namespace != table.DataSet.Namespace)) {
  3286. this.Namespace = table.Namespace;
  3287. }
  3288. this.Prefix = table.Prefix;
  3289. this.MinimumCapacity = table.MinimumCapacity;
  3290. }
  3291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3293. protected ServiceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3294. base(info, context) {
  3295. this.InitVars();
  3296. }
  3297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3299. public global::System.Data.DataColumn IDColumn {
  3300. get {
  3301. return this.columnID;
  3302. }
  3303. }
  3304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3306. public global::System.Data.DataColumn Наименование_услугиColumn {
  3307. get {
  3308. return this.columnНаименование_услуги;
  3309. }
  3310. }
  3311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3313. public global::System.Data.DataColumn Главное_изображениеColumn {
  3314. get {
  3315. return this.columnГлавное_изображение;
  3316. }
  3317. }
  3318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3320. public global::System.Data.DataColumn ДлительностьColumn {
  3321. get {
  3322. return this.columnДлительность;
  3323. }
  3324. }
  3325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3327. public global::System.Data.DataColumn СтоимостьColumn {
  3328. get {
  3329. return this.columnСтоимость;
  3330. }
  3331. }
  3332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3334. public global::System.Data.DataColumn Действующая_скидкаColumn {
  3335. get {
  3336. return this.columnДействующая_скидка;
  3337. }
  3338. }
  3339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3341. [global::System.ComponentModel.Browsable(false)]
  3342. public int Count {
  3343. get {
  3344. return this.Rows.Count;
  3345. }
  3346. }
  3347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3349. public ServiceRow this[int index] {
  3350. get {
  3351. return ((ServiceRow)(this.Rows[index]));
  3352. }
  3353. }
  3354. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3355. public event ServiceRowChangeEventHandler ServiceRowChanging;
  3356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3357. public event ServiceRowChangeEventHandler ServiceRowChanged;
  3358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3359. public event ServiceRowChangeEventHandler ServiceRowDeleting;
  3360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3361. public event ServiceRowChangeEventHandler ServiceRowDeleted;
  3362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3364. public void AddServiceRow(ServiceRow row) {
  3365. this.Rows.Add(row);
  3366. }
  3367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3369. public ServiceRow AddServiceRow(string Наименование_услуги, byte[] Главное_изображение, int Длительность, int Стоимость, int Действующая_скидка) {
  3370. ServiceRow rowServiceRow = ((ServiceRow)(this.NewRow()));
  3371. object[] columnValuesArray = new object[] {
  3372. null,
  3373. Наименование_услуги,
  3374. Главное_изображение,
  3375. Длительность,
  3376. Стоимость,
  3377. Действующая_скидка};
  3378. rowServiceRow.ItemArray = columnValuesArray;
  3379. this.Rows.Add(rowServiceRow);
  3380. return rowServiceRow;
  3381. }
  3382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3384. public ServiceRow FindByID(int ID) {
  3385. return ((ServiceRow)(this.Rows.Find(new object[] {
  3386. ID})));
  3387. }
  3388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3390. public override global::System.Data.DataTable Clone() {
  3391. ServiceDataTable cln = ((ServiceDataTable)(base.Clone()));
  3392. cln.InitVars();
  3393. return cln;
  3394. }
  3395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3397. protected override global::System.Data.DataTable CreateInstance() {
  3398. return new ServiceDataTable();
  3399. }
  3400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3402. internal void InitVars() {
  3403. this.columnID = base.Columns["ID"];
  3404. this.columnНаименование_услуги = base.Columns["Наименование_услуги"];
  3405. this.columnГлавное_изображение = base.Columns["Главное_изображение"];
  3406. this.columnДлительность = base.Columns["Длительность"];
  3407. this.columnСтоимость = base.Columns["Стоимость"];
  3408. this.columnДействующая_скидка = base.Columns["Действующая_скидка"];
  3409. }
  3410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3412. private void InitClass() {
  3413. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3414. base.Columns.Add(this.columnID);
  3415. this.columnНаименование_услуги = new global::System.Data.DataColumn("Наименование_услуги", typeof(string), null, global::System.Data.MappingType.Element);
  3416. base.Columns.Add(this.columnНаименование_услуги);
  3417. this.columnГлавное_изображение = new global::System.Data.DataColumn("Главное_изображение", typeof(byte[]), null, global::System.Data.MappingType.Element);
  3418. base.Columns.Add(this.columnГлавное_изображение);
  3419. this.columnДлительность = new global::System.Data.DataColumn("Длительность", typeof(int), null, global::System.Data.MappingType.Element);
  3420. base.Columns.Add(this.columnДлительность);
  3421. this.columnСтоимость = new global::System.Data.DataColumn("Стоимость", typeof(int), null, global::System.Data.MappingType.Element);
  3422. base.Columns.Add(this.columnСтоимость);
  3423. this.columnДействующая_скидка = new global::System.Data.DataColumn("Действующая_скидка", typeof(int), null, global::System.Data.MappingType.Element);
  3424. base.Columns.Add(this.columnДействующая_скидка);
  3425. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3426. this.columnID}, true));
  3427. this.columnID.AutoIncrement = true;
  3428. this.columnID.AutoIncrementSeed = -1;
  3429. this.columnID.AutoIncrementStep = -1;
  3430. this.columnID.AllowDBNull = false;
  3431. this.columnID.ReadOnly = true;
  3432. this.columnID.Unique = true;
  3433. this.columnНаименование_услуги.AllowDBNull = false;
  3434. this.columnНаименование_услуги.MaxLength = 50;
  3435. this.columnГлавное_изображение.AllowDBNull = false;
  3436. this.columnДлительность.AllowDBNull = false;
  3437. this.columnСтоимость.AllowDBNull = false;
  3438. this.columnДействующая_скидка.AllowDBNull = false;
  3439. }
  3440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3442. public ServiceRow NewServiceRow() {
  3443. return ((ServiceRow)(this.NewRow()));
  3444. }
  3445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3446. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3447. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3448. return new ServiceRow(builder);
  3449. }
  3450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3452. protected override global::System.Type GetRowType() {
  3453. return typeof(ServiceRow);
  3454. }
  3455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3456. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3457. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3458. base.OnRowChanged(e);
  3459. if ((this.ServiceRowChanged != null)) {
  3460. this.ServiceRowChanged(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3461. }
  3462. }
  3463. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3464. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3465. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3466. base.OnRowChanging(e);
  3467. if ((this.ServiceRowChanging != null)) {
  3468. this.ServiceRowChanging(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3469. }
  3470. }
  3471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3473. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3474. base.OnRowDeleted(e);
  3475. if ((this.ServiceRowDeleted != null)) {
  3476. this.ServiceRowDeleted(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3477. }
  3478. }
  3479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3480. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3481. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3482. base.OnRowDeleting(e);
  3483. if ((this.ServiceRowDeleting != null)) {
  3484. this.ServiceRowDeleting(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3485. }
  3486. }
  3487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3489. public void RemoveServiceRow(ServiceRow row) {
  3490. this.Rows.Remove(row);
  3491. }
  3492. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3493. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3494. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3495. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3496. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3497. Хаустов_ПробныйДЭDataSet ds = new Хаустов_ПробныйДЭDataSet();
  3498. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3499. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3500. any1.MinOccurs = new decimal(0);
  3501. any1.MaxOccurs = decimal.MaxValue;
  3502. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3503. sequence.Items.Add(any1);
  3504. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3505. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3506. any2.MinOccurs = new decimal(1);
  3507. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3508. sequence.Items.Add(any2);
  3509. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3510. attribute1.Name = "namespace";
  3511. attribute1.FixedValue = ds.Namespace;
  3512. type.Attributes.Add(attribute1);
  3513. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3514. attribute2.Name = "tableTypeName";
  3515. attribute2.FixedValue = "ServiceDataTable";
  3516. type.Attributes.Add(attribute2);
  3517. type.Particle = sequence;
  3518. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3519. if (xs.Contains(dsSchema.TargetNamespace)) {
  3520. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3521. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3522. try {
  3523. global::System.Xml.Schema.XmlSchema schema = null;
  3524. dsSchema.Write(s1);
  3525. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3526. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3527. s2.SetLength(0);
  3528. schema.Write(s2);
  3529. if ((s1.Length == s2.Length)) {
  3530. s1.Position = 0;
  3531. s2.Position = 0;
  3532. for (; ((s1.Position != s1.Length)
  3533. && (s1.ReadByte() == s2.ReadByte())); ) {
  3534. ;
  3535. }
  3536. if ((s1.Position == s1.Length)) {
  3537. return type;
  3538. }
  3539. }
  3540. }
  3541. }
  3542. finally {
  3543. if ((s1 != null)) {
  3544. s1.Close();
  3545. }
  3546. if ((s2 != null)) {
  3547. s2.Close();
  3548. }
  3549. }
  3550. }
  3551. xs.Add(dsSchema);
  3552. return type;
  3553. }
  3554. }
  3555. /// <summary>
  3556. ///Represents the strongly named DataTable class.
  3557. ///</summary>
  3558. [global::System.Serializable()]
  3559. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3560. public partial class ServicePhotoDataTable : global::System.Data.TypedTableBase<ServicePhotoRow> {
  3561. private global::System.Data.DataColumn columnID;
  3562. private global::System.Data.DataColumn columnServiceID;
  3563. private global::System.Data.DataColumn columnPhotoPath;
  3564. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3566. public ServicePhotoDataTable() {
  3567. this.TableName = "ServicePhoto";
  3568. this.BeginInit();
  3569. this.InitClass();
  3570. this.EndInit();
  3571. }
  3572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3574. internal ServicePhotoDataTable(global::System.Data.DataTable table) {
  3575. this.TableName = table.TableName;
  3576. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3577. this.CaseSensitive = table.CaseSensitive;
  3578. }
  3579. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3580. this.Locale = table.Locale;
  3581. }
  3582. if ((table.Namespace != table.DataSet.Namespace)) {
  3583. this.Namespace = table.Namespace;
  3584. }
  3585. this.Prefix = table.Prefix;
  3586. this.MinimumCapacity = table.MinimumCapacity;
  3587. }
  3588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3590. protected ServicePhotoDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3591. base(info, context) {
  3592. this.InitVars();
  3593. }
  3594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3596. public global::System.Data.DataColumn IDColumn {
  3597. get {
  3598. return this.columnID;
  3599. }
  3600. }
  3601. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3602. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3603. public global::System.Data.DataColumn ServiceIDColumn {
  3604. get {
  3605. return this.columnServiceID;
  3606. }
  3607. }
  3608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3610. public global::System.Data.DataColumn PhotoPathColumn {
  3611. get {
  3612. return this.columnPhotoPath;
  3613. }
  3614. }
  3615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3617. [global::System.ComponentModel.Browsable(false)]
  3618. public int Count {
  3619. get {
  3620. return this.Rows.Count;
  3621. }
  3622. }
  3623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3625. public ServicePhotoRow this[int index] {
  3626. get {
  3627. return ((ServicePhotoRow)(this.Rows[index]));
  3628. }
  3629. }
  3630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3631. public event ServicePhotoRowChangeEventHandler ServicePhotoRowChanging;
  3632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3633. public event ServicePhotoRowChangeEventHandler ServicePhotoRowChanged;
  3634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3635. public event ServicePhotoRowChangeEventHandler ServicePhotoRowDeleting;
  3636. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3637. public event ServicePhotoRowChangeEventHandler ServicePhotoRowDeleted;
  3638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3640. public void AddServicePhotoRow(ServicePhotoRow row) {
  3641. this.Rows.Add(row);
  3642. }
  3643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3645. public ServicePhotoRow AddServicePhotoRow(ServiceRow parentServiceRowByFK_ServicePhoto_Service, byte[] PhotoPath) {
  3646. ServicePhotoRow rowServicePhotoRow = ((ServicePhotoRow)(this.NewRow()));
  3647. object[] columnValuesArray = new object[] {
  3648. null,
  3649. null,
  3650. PhotoPath};
  3651. if ((parentServiceRowByFK_ServicePhoto_Service != null)) {
  3652. columnValuesArray[1] = parentServiceRowByFK_ServicePhoto_Service[0];
  3653. }
  3654. rowServicePhotoRow.ItemArray = columnValuesArray;
  3655. this.Rows.Add(rowServicePhotoRow);
  3656. return rowServicePhotoRow;
  3657. }
  3658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3660. public ServicePhotoRow FindByID(int ID) {
  3661. return ((ServicePhotoRow)(this.Rows.Find(new object[] {
  3662. ID})));
  3663. }
  3664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3666. public override global::System.Data.DataTable Clone() {
  3667. ServicePhotoDataTable cln = ((ServicePhotoDataTable)(base.Clone()));
  3668. cln.InitVars();
  3669. return cln;
  3670. }
  3671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3673. protected override global::System.Data.DataTable CreateInstance() {
  3674. return new ServicePhotoDataTable();
  3675. }
  3676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3678. internal void InitVars() {
  3679. this.columnID = base.Columns["ID"];
  3680. this.columnServiceID = base.Columns["ServiceID"];
  3681. this.columnPhotoPath = base.Columns["PhotoPath"];
  3682. }
  3683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3685. private void InitClass() {
  3686. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3687. base.Columns.Add(this.columnID);
  3688. this.columnServiceID = new global::System.Data.DataColumn("ServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  3689. base.Columns.Add(this.columnServiceID);
  3690. this.columnPhotoPath = new global::System.Data.DataColumn("PhotoPath", typeof(byte[]), null, global::System.Data.MappingType.Element);
  3691. base.Columns.Add(this.columnPhotoPath);
  3692. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3693. this.columnID}, true));
  3694. this.columnID.AutoIncrement = true;
  3695. this.columnID.AutoIncrementSeed = -1;
  3696. this.columnID.AutoIncrementStep = -1;
  3697. this.columnID.AllowDBNull = false;
  3698. this.columnID.ReadOnly = true;
  3699. this.columnID.Unique = true;
  3700. this.columnServiceID.AllowDBNull = false;
  3701. this.columnPhotoPath.AllowDBNull = false;
  3702. }
  3703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3705. public ServicePhotoRow NewServicePhotoRow() {
  3706. return ((ServicePhotoRow)(this.NewRow()));
  3707. }
  3708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3710. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3711. return new ServicePhotoRow(builder);
  3712. }
  3713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3715. protected override global::System.Type GetRowType() {
  3716. return typeof(ServicePhotoRow);
  3717. }
  3718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3720. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3721. base.OnRowChanged(e);
  3722. if ((this.ServicePhotoRowChanged != null)) {
  3723. this.ServicePhotoRowChanged(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  3724. }
  3725. }
  3726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3728. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3729. base.OnRowChanging(e);
  3730. if ((this.ServicePhotoRowChanging != null)) {
  3731. this.ServicePhotoRowChanging(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  3732. }
  3733. }
  3734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3736. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3737. base.OnRowDeleted(e);
  3738. if ((this.ServicePhotoRowDeleted != null)) {
  3739. this.ServicePhotoRowDeleted(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  3740. }
  3741. }
  3742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3744. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3745. base.OnRowDeleting(e);
  3746. if ((this.ServicePhotoRowDeleting != null)) {
  3747. this.ServicePhotoRowDeleting(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  3748. }
  3749. }
  3750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3752. public void RemoveServicePhotoRow(ServicePhotoRow row) {
  3753. this.Rows.Remove(row);
  3754. }
  3755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3757. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3758. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3759. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3760. Хаустов_ПробныйДЭDataSet ds = new Хаустов_ПробныйДЭDataSet();
  3761. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3762. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3763. any1.MinOccurs = new decimal(0);
  3764. any1.MaxOccurs = decimal.MaxValue;
  3765. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3766. sequence.Items.Add(any1);
  3767. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3768. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3769. any2.MinOccurs = new decimal(1);
  3770. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3771. sequence.Items.Add(any2);
  3772. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3773. attribute1.Name = "namespace";
  3774. attribute1.FixedValue = ds.Namespace;
  3775. type.Attributes.Add(attribute1);
  3776. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3777. attribute2.Name = "tableTypeName";
  3778. attribute2.FixedValue = "ServicePhotoDataTable";
  3779. type.Attributes.Add(attribute2);
  3780. type.Particle = sequence;
  3781. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3782. if (xs.Contains(dsSchema.TargetNamespace)) {
  3783. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3784. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3785. try {
  3786. global::System.Xml.Schema.XmlSchema schema = null;
  3787. dsSchema.Write(s1);
  3788. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3789. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3790. s2.SetLength(0);
  3791. schema.Write(s2);
  3792. if ((s1.Length == s2.Length)) {
  3793. s1.Position = 0;
  3794. s2.Position = 0;
  3795. for (; ((s1.Position != s1.Length)
  3796. && (s1.ReadByte() == s2.ReadByte())); ) {
  3797. ;
  3798. }
  3799. if ((s1.Position == s1.Length)) {
  3800. return type;
  3801. }
  3802. }
  3803. }
  3804. }
  3805. finally {
  3806. if ((s1 != null)) {
  3807. s1.Close();
  3808. }
  3809. if ((s2 != null)) {
  3810. s2.Close();
  3811. }
  3812. }
  3813. }
  3814. xs.Add(dsSchema);
  3815. return type;
  3816. }
  3817. }
  3818. /// <summary>
  3819. ///Represents the strongly named DataTable class.
  3820. ///</summary>
  3821. [global::System.Serializable()]
  3822. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3823. public partial class TagDataTable : global::System.Data.TypedTableBase<TagRow> {
  3824. private global::System.Data.DataColumn columnID;
  3825. private global::System.Data.DataColumn columnTitle;
  3826. private global::System.Data.DataColumn columnColor;
  3827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3829. public TagDataTable() {
  3830. this.TableName = "Tag";
  3831. this.BeginInit();
  3832. this.InitClass();
  3833. this.EndInit();
  3834. }
  3835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3837. internal TagDataTable(global::System.Data.DataTable table) {
  3838. this.TableName = table.TableName;
  3839. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3840. this.CaseSensitive = table.CaseSensitive;
  3841. }
  3842. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3843. this.Locale = table.Locale;
  3844. }
  3845. if ((table.Namespace != table.DataSet.Namespace)) {
  3846. this.Namespace = table.Namespace;
  3847. }
  3848. this.Prefix = table.Prefix;
  3849. this.MinimumCapacity = table.MinimumCapacity;
  3850. }
  3851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3853. protected TagDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3854. base(info, context) {
  3855. this.InitVars();
  3856. }
  3857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3859. public global::System.Data.DataColumn IDColumn {
  3860. get {
  3861. return this.columnID;
  3862. }
  3863. }
  3864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3866. public global::System.Data.DataColumn TitleColumn {
  3867. get {
  3868. return this.columnTitle;
  3869. }
  3870. }
  3871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3872. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3873. public global::System.Data.DataColumn ColorColumn {
  3874. get {
  3875. return this.columnColor;
  3876. }
  3877. }
  3878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3880. [global::System.ComponentModel.Browsable(false)]
  3881. public int Count {
  3882. get {
  3883. return this.Rows.Count;
  3884. }
  3885. }
  3886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3888. public TagRow this[int index] {
  3889. get {
  3890. return ((TagRow)(this.Rows[index]));
  3891. }
  3892. }
  3893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3894. public event TagRowChangeEventHandler TagRowChanging;
  3895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3896. public event TagRowChangeEventHandler TagRowChanged;
  3897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3898. public event TagRowChangeEventHandler TagRowDeleting;
  3899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3900. public event TagRowChangeEventHandler TagRowDeleted;
  3901. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3902. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3903. public void AddTagRow(TagRow row) {
  3904. this.Rows.Add(row);
  3905. }
  3906. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3907. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3908. public TagRow AddTagRow(string Title, string Color) {
  3909. TagRow rowTagRow = ((TagRow)(this.NewRow()));
  3910. object[] columnValuesArray = new object[] {
  3911. null,
  3912. Title,
  3913. Color};
  3914. rowTagRow.ItemArray = columnValuesArray;
  3915. this.Rows.Add(rowTagRow);
  3916. return rowTagRow;
  3917. }
  3918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3920. public TagRow FindByID(int ID) {
  3921. return ((TagRow)(this.Rows.Find(new object[] {
  3922. ID})));
  3923. }
  3924. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3925. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3926. public override global::System.Data.DataTable Clone() {
  3927. TagDataTable cln = ((TagDataTable)(base.Clone()));
  3928. cln.InitVars();
  3929. return cln;
  3930. }
  3931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3933. protected override global::System.Data.DataTable CreateInstance() {
  3934. return new TagDataTable();
  3935. }
  3936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3938. internal void InitVars() {
  3939. this.columnID = base.Columns["ID"];
  3940. this.columnTitle = base.Columns["Title"];
  3941. this.columnColor = base.Columns["Color"];
  3942. }
  3943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3945. private void InitClass() {
  3946. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3947. base.Columns.Add(this.columnID);
  3948. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  3949. base.Columns.Add(this.columnTitle);
  3950. this.columnColor = new global::System.Data.DataColumn("Color", typeof(string), null, global::System.Data.MappingType.Element);
  3951. base.Columns.Add(this.columnColor);
  3952. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3953. this.columnID}, true));
  3954. this.columnID.AutoIncrement = true;
  3955. this.columnID.AutoIncrementSeed = -1;
  3956. this.columnID.AutoIncrementStep = -1;
  3957. this.columnID.AllowDBNull = false;
  3958. this.columnID.ReadOnly = true;
  3959. this.columnID.Unique = true;
  3960. this.columnTitle.AllowDBNull = false;
  3961. this.columnTitle.MaxLength = 30;
  3962. this.columnColor.AllowDBNull = false;
  3963. this.columnColor.MaxLength = 6;
  3964. }
  3965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3967. public TagRow NewTagRow() {
  3968. return ((TagRow)(this.NewRow()));
  3969. }
  3970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3972. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3973. return new TagRow(builder);
  3974. }
  3975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3976. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3977. protected override global::System.Type GetRowType() {
  3978. return typeof(TagRow);
  3979. }
  3980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3981. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3982. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3983. base.OnRowChanged(e);
  3984. if ((this.TagRowChanged != null)) {
  3985. this.TagRowChanged(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  3986. }
  3987. }
  3988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3989. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3990. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3991. base.OnRowChanging(e);
  3992. if ((this.TagRowChanging != null)) {
  3993. this.TagRowChanging(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  3994. }
  3995. }
  3996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3998. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3999. base.OnRowDeleted(e);
  4000. if ((this.TagRowDeleted != null)) {
  4001. this.TagRowDeleted(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  4002. }
  4003. }
  4004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4006. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4007. base.OnRowDeleting(e);
  4008. if ((this.TagRowDeleting != null)) {
  4009. this.TagRowDeleting(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  4010. }
  4011. }
  4012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4014. public void RemoveTagRow(TagRow row) {
  4015. this.Rows.Remove(row);
  4016. }
  4017. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4019. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4020. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4021. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4022. Хаустов_ПробныйДЭDataSet ds = new Хаустов_ПробныйДЭDataSet();
  4023. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4024. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4025. any1.MinOccurs = new decimal(0);
  4026. any1.MaxOccurs = decimal.MaxValue;
  4027. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4028. sequence.Items.Add(any1);
  4029. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4030. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4031. any2.MinOccurs = new decimal(1);
  4032. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4033. sequence.Items.Add(any2);
  4034. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4035. attribute1.Name = "namespace";
  4036. attribute1.FixedValue = ds.Namespace;
  4037. type.Attributes.Add(attribute1);
  4038. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4039. attribute2.Name = "tableTypeName";
  4040. attribute2.FixedValue = "TagDataTable";
  4041. type.Attributes.Add(attribute2);
  4042. type.Particle = sequence;
  4043. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4044. if (xs.Contains(dsSchema.TargetNamespace)) {
  4045. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4046. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4047. try {
  4048. global::System.Xml.Schema.XmlSchema schema = null;
  4049. dsSchema.Write(s1);
  4050. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4051. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4052. s2.SetLength(0);
  4053. schema.Write(s2);
  4054. if ((s1.Length == s2.Length)) {
  4055. s1.Position = 0;
  4056. s2.Position = 0;
  4057. for (; ((s1.Position != s1.Length)
  4058. && (s1.ReadByte() == s2.ReadByte())); ) {
  4059. ;
  4060. }
  4061. if ((s1.Position == s1.Length)) {
  4062. return type;
  4063. }
  4064. }
  4065. }
  4066. }
  4067. finally {
  4068. if ((s1 != null)) {
  4069. s1.Close();
  4070. }
  4071. if ((s2 != null)) {
  4072. s2.Close();
  4073. }
  4074. }
  4075. }
  4076. xs.Add(dsSchema);
  4077. return type;
  4078. }
  4079. }
  4080. /// <summary>
  4081. ///Represents the strongly named DataTable class.
  4082. ///</summary>
  4083. [global::System.Serializable()]
  4084. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  4085. public partial class TagOfClientDataTable : global::System.Data.TypedTableBase<TagOfClientRow> {
  4086. private global::System.Data.DataColumn columnClientID;
  4087. private global::System.Data.DataColumn columnTagID;
  4088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4090. public TagOfClientDataTable() {
  4091. this.TableName = "TagOfClient";
  4092. this.BeginInit();
  4093. this.InitClass();
  4094. this.EndInit();
  4095. }
  4096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4098. internal TagOfClientDataTable(global::System.Data.DataTable table) {
  4099. this.TableName = table.TableName;
  4100. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  4101. this.CaseSensitive = table.CaseSensitive;
  4102. }
  4103. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  4104. this.Locale = table.Locale;
  4105. }
  4106. if ((table.Namespace != table.DataSet.Namespace)) {
  4107. this.Namespace = table.Namespace;
  4108. }
  4109. this.Prefix = table.Prefix;
  4110. this.MinimumCapacity = table.MinimumCapacity;
  4111. }
  4112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4113. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4114. protected TagOfClientDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  4115. base(info, context) {
  4116. this.InitVars();
  4117. }
  4118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4120. public global::System.Data.DataColumn ClientIDColumn {
  4121. get {
  4122. return this.columnClientID;
  4123. }
  4124. }
  4125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4126. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4127. public global::System.Data.DataColumn TagIDColumn {
  4128. get {
  4129. return this.columnTagID;
  4130. }
  4131. }
  4132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4133. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4134. [global::System.ComponentModel.Browsable(false)]
  4135. public int Count {
  4136. get {
  4137. return this.Rows.Count;
  4138. }
  4139. }
  4140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4142. public TagOfClientRow this[int index] {
  4143. get {
  4144. return ((TagOfClientRow)(this.Rows[index]));
  4145. }
  4146. }
  4147. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4148. public event TagOfClientRowChangeEventHandler TagOfClientRowChanging;
  4149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4150. public event TagOfClientRowChangeEventHandler TagOfClientRowChanged;
  4151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4152. public event TagOfClientRowChangeEventHandler TagOfClientRowDeleting;
  4153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4154. public event TagOfClientRowChangeEventHandler TagOfClientRowDeleted;
  4155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4157. public void AddTagOfClientRow(TagOfClientRow row) {
  4158. this.Rows.Add(row);
  4159. }
  4160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4162. public TagOfClientRow AddTagOfClientRow(ClientRow parentClientRowByFK_TagOfClient_Client, TagRow parentTagRowByFK_TagOfClient_Tag) {
  4163. TagOfClientRow rowTagOfClientRow = ((TagOfClientRow)(this.NewRow()));
  4164. object[] columnValuesArray = new object[] {
  4165. null,
  4166. null};
  4167. if ((parentClientRowByFK_TagOfClient_Client != null)) {
  4168. columnValuesArray[0] = parentClientRowByFK_TagOfClient_Client[0];
  4169. }
  4170. if ((parentTagRowByFK_TagOfClient_Tag != null)) {
  4171. columnValuesArray[1] = parentTagRowByFK_TagOfClient_Tag[0];
  4172. }
  4173. rowTagOfClientRow.ItemArray = columnValuesArray;
  4174. this.Rows.Add(rowTagOfClientRow);
  4175. return rowTagOfClientRow;
  4176. }
  4177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4179. public TagOfClientRow FindByClientIDTagID(int ClientID, int TagID) {
  4180. return ((TagOfClientRow)(this.Rows.Find(new object[] {
  4181. ClientID,
  4182. TagID})));
  4183. }
  4184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4186. public override global::System.Data.DataTable Clone() {
  4187. TagOfClientDataTable cln = ((TagOfClientDataTable)(base.Clone()));
  4188. cln.InitVars();
  4189. return cln;
  4190. }
  4191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4193. protected override global::System.Data.DataTable CreateInstance() {
  4194. return new TagOfClientDataTable();
  4195. }
  4196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4198. internal void InitVars() {
  4199. this.columnClientID = base.Columns["ClientID"];
  4200. this.columnTagID = base.Columns["TagID"];
  4201. }
  4202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4204. private void InitClass() {
  4205. this.columnClientID = new global::System.Data.DataColumn("ClientID", typeof(int), null, global::System.Data.MappingType.Element);
  4206. base.Columns.Add(this.columnClientID);
  4207. this.columnTagID = new global::System.Data.DataColumn("TagID", typeof(int), null, global::System.Data.MappingType.Element);
  4208. base.Columns.Add(this.columnTagID);
  4209. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  4210. this.columnClientID,
  4211. this.columnTagID}, true));
  4212. this.columnClientID.AllowDBNull = false;
  4213. this.columnTagID.AllowDBNull = false;
  4214. }
  4215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4217. public TagOfClientRow NewTagOfClientRow() {
  4218. return ((TagOfClientRow)(this.NewRow()));
  4219. }
  4220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4222. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4223. return new TagOfClientRow(builder);
  4224. }
  4225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4227. protected override global::System.Type GetRowType() {
  4228. return typeof(TagOfClientRow);
  4229. }
  4230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4232. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4233. base.OnRowChanged(e);
  4234. if ((this.TagOfClientRowChanged != null)) {
  4235. this.TagOfClientRowChanged(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  4236. }
  4237. }
  4238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4240. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4241. base.OnRowChanging(e);
  4242. if ((this.TagOfClientRowChanging != null)) {
  4243. this.TagOfClientRowChanging(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  4244. }
  4245. }
  4246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4248. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4249. base.OnRowDeleted(e);
  4250. if ((this.TagOfClientRowDeleted != null)) {
  4251. this.TagOfClientRowDeleted(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  4252. }
  4253. }
  4254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4255. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4256. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4257. base.OnRowDeleting(e);
  4258. if ((this.TagOfClientRowDeleting != null)) {
  4259. this.TagOfClientRowDeleting(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  4260. }
  4261. }
  4262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4264. public void RemoveTagOfClientRow(TagOfClientRow row) {
  4265. this.Rows.Remove(row);
  4266. }
  4267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4269. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4270. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4271. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4272. Хаустов_ПробныйДЭDataSet ds = new Хаустов_ПробныйДЭDataSet();
  4273. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4274. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4275. any1.MinOccurs = new decimal(0);
  4276. any1.MaxOccurs = decimal.MaxValue;
  4277. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4278. sequence.Items.Add(any1);
  4279. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4280. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4281. any2.MinOccurs = new decimal(1);
  4282. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4283. sequence.Items.Add(any2);
  4284. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4285. attribute1.Name = "namespace";
  4286. attribute1.FixedValue = ds.Namespace;
  4287. type.Attributes.Add(attribute1);
  4288. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4289. attribute2.Name = "tableTypeName";
  4290. attribute2.FixedValue = "TagOfClientDataTable";
  4291. type.Attributes.Add(attribute2);
  4292. type.Particle = sequence;
  4293. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4294. if (xs.Contains(dsSchema.TargetNamespace)) {
  4295. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4296. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4297. try {
  4298. global::System.Xml.Schema.XmlSchema schema = null;
  4299. dsSchema.Write(s1);
  4300. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4301. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4302. s2.SetLength(0);
  4303. schema.Write(s2);
  4304. if ((s1.Length == s2.Length)) {
  4305. s1.Position = 0;
  4306. s2.Position = 0;
  4307. for (; ((s1.Position != s1.Length)
  4308. && (s1.ReadByte() == s2.ReadByte())); ) {
  4309. ;
  4310. }
  4311. if ((s1.Position == s1.Length)) {
  4312. return type;
  4313. }
  4314. }
  4315. }
  4316. }
  4317. finally {
  4318. if ((s1 != null)) {
  4319. s1.Close();
  4320. }
  4321. if ((s2 != null)) {
  4322. s2.Close();
  4323. }
  4324. }
  4325. }
  4326. xs.Add(dsSchema);
  4327. return type;
  4328. }
  4329. }
  4330. /// <summary>
  4331. ///Represents the strongly named DataTable class.
  4332. ///</summary>
  4333. [global::System.Serializable()]
  4334. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  4335. public partial class УчеткиDataTable : global::System.Data.TypedTableBase<УчеткиRow> {
  4336. private global::System.Data.DataColumn columnЛогин;
  4337. private global::System.Data.DataColumn columnПароль;
  4338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4340. public УчеткиDataTable() {
  4341. this.TableName = "Учетки";
  4342. this.BeginInit();
  4343. this.InitClass();
  4344. this.EndInit();
  4345. }
  4346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4348. internal УчеткиDataTable(global::System.Data.DataTable table) {
  4349. this.TableName = table.TableName;
  4350. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  4351. this.CaseSensitive = table.CaseSensitive;
  4352. }
  4353. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  4354. this.Locale = table.Locale;
  4355. }
  4356. if ((table.Namespace != table.DataSet.Namespace)) {
  4357. this.Namespace = table.Namespace;
  4358. }
  4359. this.Prefix = table.Prefix;
  4360. this.MinimumCapacity = table.MinimumCapacity;
  4361. }
  4362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4364. protected УчеткиDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  4365. base(info, context) {
  4366. this.InitVars();
  4367. }
  4368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4370. public global::System.Data.DataColumn ЛогинColumn {
  4371. get {
  4372. return this.columnЛогин;
  4373. }
  4374. }
  4375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4377. public global::System.Data.DataColumn ПарольColumn {
  4378. get {
  4379. return this.columnПароль;
  4380. }
  4381. }
  4382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4384. [global::System.ComponentModel.Browsable(false)]
  4385. public int Count {
  4386. get {
  4387. return this.Rows.Count;
  4388. }
  4389. }
  4390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4392. public УчеткиRow this[int index] {
  4393. get {
  4394. return ((УчеткиRow)(this.Rows[index]));
  4395. }
  4396. }
  4397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4398. public event УчеткиRowChangeEventHandler УчеткиRowChanging;
  4399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4400. public event УчеткиRowChangeEventHandler УчеткиRowChanged;
  4401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4402. public event УчеткиRowChangeEventHandler УчеткиRowDeleting;
  4403. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4404. public event УчеткиRowChangeEventHandler УчеткиRowDeleted;
  4405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4407. public void AddУчеткиRow(УчеткиRow row) {
  4408. this.Rows.Add(row);
  4409. }
  4410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4412. public УчеткиRow AddУчеткиRow(string Логин, string Пароль) {
  4413. УчеткиRow rowУчеткиRow = ((УчеткиRow)(this.NewRow()));
  4414. object[] columnValuesArray = new object[] {
  4415. Логин,
  4416. Пароль};
  4417. rowУчеткиRow.ItemArray = columnValuesArray;
  4418. this.Rows.Add(rowУчеткиRow);
  4419. return rowУчеткиRow;
  4420. }
  4421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4423. public УчеткиRow FindByЛогин(string Логин) {
  4424. return ((УчеткиRow)(this.Rows.Find(new object[] {
  4425. Логин})));
  4426. }
  4427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4429. public override global::System.Data.DataTable Clone() {
  4430. УчеткиDataTable cln = ((УчеткиDataTable)(base.Clone()));
  4431. cln.InitVars();
  4432. return cln;
  4433. }
  4434. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4435. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4436. protected override global::System.Data.DataTable CreateInstance() {
  4437. return new УчеткиDataTable();
  4438. }
  4439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4441. internal void InitVars() {
  4442. this.columnЛогин = base.Columns["Логин"];
  4443. this.columnПароль = base.Columns["Пароль"];
  4444. }
  4445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4446. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4447. private void InitClass() {
  4448. this.columnЛогин = new global::System.Data.DataColumn("Логин", typeof(string), null, global::System.Data.MappingType.Element);
  4449. base.Columns.Add(this.columnЛогин);
  4450. this.columnПароль = new global::System.Data.DataColumn("Пароль", typeof(string), null, global::System.Data.MappingType.Element);
  4451. base.Columns.Add(this.columnПароль);
  4452. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  4453. this.columnЛогин}, true));
  4454. this.columnЛогин.AllowDBNull = false;
  4455. this.columnЛогин.Unique = true;
  4456. this.columnЛогин.MaxLength = 30;
  4457. this.columnПароль.AllowDBNull = false;
  4458. this.columnПароль.MaxLength = 30;
  4459. }
  4460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4462. public УчеткиRow NewУчеткиRow() {
  4463. return ((УчеткиRow)(this.NewRow()));
  4464. }
  4465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4467. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4468. return new УчеткиRow(builder);
  4469. }
  4470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4471. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4472. protected override global::System.Type GetRowType() {
  4473. return typeof(УчеткиRow);
  4474. }
  4475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4477. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4478. base.OnRowChanged(e);
  4479. if ((this.УчеткиRowChanged != null)) {
  4480. this.УчеткиRowChanged(this, new УчеткиRowChangeEvent(((УчеткиRow)(e.Row)), e.Action));
  4481. }
  4482. }
  4483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4485. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4486. base.OnRowChanging(e);
  4487. if ((this.УчеткиRowChanging != null)) {
  4488. this.УчеткиRowChanging(this, new УчеткиRowChangeEvent(((УчеткиRow)(e.Row)), e.Action));
  4489. }
  4490. }
  4491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4493. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4494. base.OnRowDeleted(e);
  4495. if ((this.УчеткиRowDeleted != null)) {
  4496. this.УчеткиRowDeleted(this, new УчеткиRowChangeEvent(((УчеткиRow)(e.Row)), e.Action));
  4497. }
  4498. }
  4499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4500. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4501. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4502. base.OnRowDeleting(e);
  4503. if ((this.УчеткиRowDeleting != null)) {
  4504. this.УчеткиRowDeleting(this, new УчеткиRowChangeEvent(((УчеткиRow)(e.Row)), e.Action));
  4505. }
  4506. }
  4507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4509. public void RemoveУчеткиRow(УчеткиRow row) {
  4510. this.Rows.Remove(row);
  4511. }
  4512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4514. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4515. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4516. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4517. Хаустов_ПробныйДЭDataSet ds = new Хаустов_ПробныйДЭDataSet();
  4518. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4519. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4520. any1.MinOccurs = new decimal(0);
  4521. any1.MaxOccurs = decimal.MaxValue;
  4522. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4523. sequence.Items.Add(any1);
  4524. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4525. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4526. any2.MinOccurs = new decimal(1);
  4527. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4528. sequence.Items.Add(any2);
  4529. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4530. attribute1.Name = "namespace";
  4531. attribute1.FixedValue = ds.Namespace;
  4532. type.Attributes.Add(attribute1);
  4533. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4534. attribute2.Name = "tableTypeName";
  4535. attribute2.FixedValue = "УчеткиDataTable";
  4536. type.Attributes.Add(attribute2);
  4537. type.Particle = sequence;
  4538. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4539. if (xs.Contains(dsSchema.TargetNamespace)) {
  4540. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4541. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4542. try {
  4543. global::System.Xml.Schema.XmlSchema schema = null;
  4544. dsSchema.Write(s1);
  4545. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4546. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4547. s2.SetLength(0);
  4548. schema.Write(s2);
  4549. if ((s1.Length == s2.Length)) {
  4550. s1.Position = 0;
  4551. s2.Position = 0;
  4552. for (; ((s1.Position != s1.Length)
  4553. && (s1.ReadByte() == s2.ReadByte())); ) {
  4554. ;
  4555. }
  4556. if ((s1.Position == s1.Length)) {
  4557. return type;
  4558. }
  4559. }
  4560. }
  4561. }
  4562. finally {
  4563. if ((s1 != null)) {
  4564. s1.Close();
  4565. }
  4566. if ((s2 != null)) {
  4567. s2.Close();
  4568. }
  4569. }
  4570. }
  4571. xs.Add(dsSchema);
  4572. return type;
  4573. }
  4574. }
  4575. /// <summary>
  4576. ///Represents strongly named DataRow class.
  4577. ///</summary>
  4578. public partial class AttachedProductRow : global::System.Data.DataRow {
  4579. private AttachedProductDataTable tableAttachedProduct;
  4580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4582. internal AttachedProductRow(global::System.Data.DataRowBuilder rb) :
  4583. base(rb) {
  4584. this.tableAttachedProduct = ((AttachedProductDataTable)(this.Table));
  4585. }
  4586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4588. public int MainProductID {
  4589. get {
  4590. return ((int)(this[this.tableAttachedProduct.MainProductIDColumn]));
  4591. }
  4592. set {
  4593. this[this.tableAttachedProduct.MainProductIDColumn] = value;
  4594. }
  4595. }
  4596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4598. public int AttachedProductID {
  4599. get {
  4600. return ((int)(this[this.tableAttachedProduct.AttachedProductIDColumn]));
  4601. }
  4602. set {
  4603. this[this.tableAttachedProduct.AttachedProductIDColumn] = value;
  4604. }
  4605. }
  4606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4608. public ProductRow ProductRowByFK_AttachedProduct_Product {
  4609. get {
  4610. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_AttachedProduct_Product"])));
  4611. }
  4612. set {
  4613. this.SetParentRow(value, this.Table.ParentRelations["FK_AttachedProduct_Product"]);
  4614. }
  4615. }
  4616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4618. public ProductRow ProductRowByFK_AttachedProduct_Product1 {
  4619. get {
  4620. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_AttachedProduct_Product1"])));
  4621. }
  4622. set {
  4623. this.SetParentRow(value, this.Table.ParentRelations["FK_AttachedProduct_Product1"]);
  4624. }
  4625. }
  4626. }
  4627. /// <summary>
  4628. ///Represents strongly named DataRow class.
  4629. ///</summary>
  4630. public partial class ClientRow : global::System.Data.DataRow {
  4631. private ClientDataTable tableClient;
  4632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4634. internal ClientRow(global::System.Data.DataRowBuilder rb) :
  4635. base(rb) {
  4636. this.tableClient = ((ClientDataTable)(this.Table));
  4637. }
  4638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4640. public int ID {
  4641. get {
  4642. return ((int)(this[this.tableClient.IDColumn]));
  4643. }
  4644. set {
  4645. this[this.tableClient.IDColumn] = value;
  4646. }
  4647. }
  4648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4649. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4650. public string Фамилия {
  4651. get {
  4652. return ((string)(this[this.tableClient.ФамилияColumn]));
  4653. }
  4654. set {
  4655. this[this.tableClient.ФамилияColumn] = value;
  4656. }
  4657. }
  4658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4660. public string Имя {
  4661. get {
  4662. return ((string)(this[this.tableClient.ИмяColumn]));
  4663. }
  4664. set {
  4665. this[this.tableClient.ИмяColumn] = value;
  4666. }
  4667. }
  4668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4670. public string Отчество {
  4671. get {
  4672. return ((string)(this[this.tableClient.ОтчествоColumn]));
  4673. }
  4674. set {
  4675. this[this.tableClient.ОтчествоColumn] = value;
  4676. }
  4677. }
  4678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4680. public int Пол {
  4681. get {
  4682. return ((int)(this[this.tableClient.ПолColumn]));
  4683. }
  4684. set {
  4685. this[this.tableClient.ПолColumn] = value;
  4686. }
  4687. }
  4688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4690. public string Телефон {
  4691. get {
  4692. return ((string)(this[this.tableClient.ТелефонColumn]));
  4693. }
  4694. set {
  4695. this[this.tableClient.ТелефонColumn] = value;
  4696. }
  4697. }
  4698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4700. public System.DateTime Дата_рождения {
  4701. get {
  4702. return ((global::System.DateTime)(this[this.tableClient.Дата_рожденияColumn]));
  4703. }
  4704. set {
  4705. this[this.tableClient.Дата_рожденияColumn] = value;
  4706. }
  4707. }
  4708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4710. public string Email {
  4711. get {
  4712. return ((string)(this[this.tableClient.EmailColumn]));
  4713. }
  4714. set {
  4715. this[this.tableClient.EmailColumn] = value;
  4716. }
  4717. }
  4718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4720. public System.DateTime Дата_регистрации {
  4721. get {
  4722. return ((global::System.DateTime)(this[this.tableClient.Дата_регистрацииColumn]));
  4723. }
  4724. set {
  4725. this[this.tableClient.Дата_регистрацииColumn] = value;
  4726. }
  4727. }
  4728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4730. public GenderRow GenderRow {
  4731. get {
  4732. return ((GenderRow)(this.GetParentRow(this.Table.ParentRelations["FK_Client_Gender"])));
  4733. }
  4734. set {
  4735. this.SetParentRow(value, this.Table.ParentRelations["FK_Client_Gender"]);
  4736. }
  4737. }
  4738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4740. public ClientServiceRow[] GetClientServiceRows() {
  4741. if ((this.Table.ChildRelations["FK_ClientService_Client"] == null)) {
  4742. return new ClientServiceRow[0];
  4743. }
  4744. else {
  4745. return ((ClientServiceRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ClientService_Client"])));
  4746. }
  4747. }
  4748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4750. public TagOfClientRow[] GetTagOfClientRows() {
  4751. if ((this.Table.ChildRelations["FK_TagOfClient_Client"] == null)) {
  4752. return new TagOfClientRow[0];
  4753. }
  4754. else {
  4755. return ((TagOfClientRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TagOfClient_Client"])));
  4756. }
  4757. }
  4758. }
  4759. /// <summary>
  4760. ///Represents strongly named DataRow class.
  4761. ///</summary>
  4762. public partial class ClientServiceRow : global::System.Data.DataRow {
  4763. private ClientServiceDataTable tableClientService;
  4764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4766. internal ClientServiceRow(global::System.Data.DataRowBuilder rb) :
  4767. base(rb) {
  4768. this.tableClientService = ((ClientServiceDataTable)(this.Table));
  4769. }
  4770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4772. public int ID {
  4773. get {
  4774. return ((int)(this[this.tableClientService.IDColumn]));
  4775. }
  4776. set {
  4777. this[this.tableClientService.IDColumn] = value;
  4778. }
  4779. }
  4780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4782. public int Услуга {
  4783. get {
  4784. return ((int)(this[this.tableClientService.УслугаColumn]));
  4785. }
  4786. set {
  4787. this[this.tableClientService.УслугаColumn] = value;
  4788. }
  4789. }
  4790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4792. public System.DateTime Дата {
  4793. get {
  4794. return ((global::System.DateTime)(this[this.tableClientService.ДатаColumn]));
  4795. }
  4796. set {
  4797. this[this.tableClientService.ДатаColumn] = value;
  4798. }
  4799. }
  4800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4802. public int Клиент {
  4803. get {
  4804. return ((int)(this[this.tableClientService.КлиентColumn]));
  4805. }
  4806. set {
  4807. this[this.tableClientService.КлиентColumn] = value;
  4808. }
  4809. }
  4810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4812. public string Comment {
  4813. get {
  4814. try {
  4815. return ((string)(this[this.tableClientService.CommentColumn]));
  4816. }
  4817. catch (global::System.InvalidCastException e) {
  4818. throw new global::System.Data.StrongTypingException("Значение для столбца \'Comment\' в таблице \'ClientService\' равно DBNull.", e);
  4819. }
  4820. }
  4821. set {
  4822. this[this.tableClientService.CommentColumn] = value;
  4823. }
  4824. }
  4825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4827. public ClientRow ClientRow {
  4828. get {
  4829. return ((ClientRow)(this.GetParentRow(this.Table.ParentRelations["FK_ClientService_Client"])));
  4830. }
  4831. set {
  4832. this.SetParentRow(value, this.Table.ParentRelations["FK_ClientService_Client"]);
  4833. }
  4834. }
  4835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4837. public ServiceRow ServiceRow {
  4838. get {
  4839. return ((ServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_ClientService_Service"])));
  4840. }
  4841. set {
  4842. this.SetParentRow(value, this.Table.ParentRelations["FK_ClientService_Service"]);
  4843. }
  4844. }
  4845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4847. public bool IsCommentNull() {
  4848. return this.IsNull(this.tableClientService.CommentColumn);
  4849. }
  4850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4852. public void SetCommentNull() {
  4853. this[this.tableClientService.CommentColumn] = global::System.Convert.DBNull;
  4854. }
  4855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4857. public DocumentByServiceRow[] GetDocumentByServiceRows() {
  4858. if ((this.Table.ChildRelations["FK_DocumentByService_ClientService"] == null)) {
  4859. return new DocumentByServiceRow[0];
  4860. }
  4861. else {
  4862. return ((DocumentByServiceRow[])(base.GetChildRows(this.Table.ChildRelations["FK_DocumentByService_ClientService"])));
  4863. }
  4864. }
  4865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4867. public ProductSaleRow[] GetProductSaleRows() {
  4868. if ((this.Table.ChildRelations["FK_ProductSale_ClientService"] == null)) {
  4869. return new ProductSaleRow[0];
  4870. }
  4871. else {
  4872. return ((ProductSaleRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductSale_ClientService"])));
  4873. }
  4874. }
  4875. }
  4876. /// <summary>
  4877. ///Represents strongly named DataRow class.
  4878. ///</summary>
  4879. public partial class DocumentByServiceRow : global::System.Data.DataRow {
  4880. private DocumentByServiceDataTable tableDocumentByService;
  4881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4883. internal DocumentByServiceRow(global::System.Data.DataRowBuilder rb) :
  4884. base(rb) {
  4885. this.tableDocumentByService = ((DocumentByServiceDataTable)(this.Table));
  4886. }
  4887. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4888. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4889. public int ID {
  4890. get {
  4891. return ((int)(this[this.tableDocumentByService.IDColumn]));
  4892. }
  4893. set {
  4894. this[this.tableDocumentByService.IDColumn] = value;
  4895. }
  4896. }
  4897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4899. public int ClientServiceID {
  4900. get {
  4901. return ((int)(this[this.tableDocumentByService.ClientServiceIDColumn]));
  4902. }
  4903. set {
  4904. this[this.tableDocumentByService.ClientServiceIDColumn] = value;
  4905. }
  4906. }
  4907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4909. public string DocumentPath {
  4910. get {
  4911. return ((string)(this[this.tableDocumentByService.DocumentPathColumn]));
  4912. }
  4913. set {
  4914. this[this.tableDocumentByService.DocumentPathColumn] = value;
  4915. }
  4916. }
  4917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4919. public ClientServiceRow ClientServiceRow {
  4920. get {
  4921. return ((ClientServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_DocumentByService_ClientService"])));
  4922. }
  4923. set {
  4924. this.SetParentRow(value, this.Table.ParentRelations["FK_DocumentByService_ClientService"]);
  4925. }
  4926. }
  4927. }
  4928. /// <summary>
  4929. ///Represents strongly named DataRow class.
  4930. ///</summary>
  4931. public partial class GenderRow : global::System.Data.DataRow {
  4932. private GenderDataTable tableGender;
  4933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4934. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4935. internal GenderRow(global::System.Data.DataRowBuilder rb) :
  4936. base(rb) {
  4937. this.tableGender = ((GenderDataTable)(this.Table));
  4938. }
  4939. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4940. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4941. public int Code {
  4942. get {
  4943. return ((int)(this[this.tableGender.CodeColumn]));
  4944. }
  4945. set {
  4946. this[this.tableGender.CodeColumn] = value;
  4947. }
  4948. }
  4949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4950. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4951. public string Name {
  4952. get {
  4953. try {
  4954. return ((string)(this[this.tableGender.NameColumn]));
  4955. }
  4956. catch (global::System.InvalidCastException e) {
  4957. throw new global::System.Data.StrongTypingException("Значение для столбца \'Name\' в таблице \'Gender\' равно DBNull.", e);
  4958. }
  4959. }
  4960. set {
  4961. this[this.tableGender.NameColumn] = value;
  4962. }
  4963. }
  4964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4966. public bool IsNameNull() {
  4967. return this.IsNull(this.tableGender.NameColumn);
  4968. }
  4969. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4970. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4971. public void SetNameNull() {
  4972. this[this.tableGender.NameColumn] = global::System.Convert.DBNull;
  4973. }
  4974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4976. public ClientRow[] GetClientRows() {
  4977. if ((this.Table.ChildRelations["FK_Client_Gender"] == null)) {
  4978. return new ClientRow[0];
  4979. }
  4980. else {
  4981. return ((ClientRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Client_Gender"])));
  4982. }
  4983. }
  4984. }
  4985. /// <summary>
  4986. ///Represents strongly named DataRow class.
  4987. ///</summary>
  4988. public partial class ManufacturerRow : global::System.Data.DataRow {
  4989. private ManufacturerDataTable tableManufacturer;
  4990. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4991. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4992. internal ManufacturerRow(global::System.Data.DataRowBuilder rb) :
  4993. base(rb) {
  4994. this.tableManufacturer = ((ManufacturerDataTable)(this.Table));
  4995. }
  4996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4998. public int ID {
  4999. get {
  5000. return ((int)(this[this.tableManufacturer.IDColumn]));
  5001. }
  5002. set {
  5003. this[this.tableManufacturer.IDColumn] = value;
  5004. }
  5005. }
  5006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5008. public string Name {
  5009. get {
  5010. return ((string)(this[this.tableManufacturer.NameColumn]));
  5011. }
  5012. set {
  5013. this[this.tableManufacturer.NameColumn] = value;
  5014. }
  5015. }
  5016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5018. public System.DateTime StartDate {
  5019. get {
  5020. try {
  5021. return ((global::System.DateTime)(this[this.tableManufacturer.StartDateColumn]));
  5022. }
  5023. catch (global::System.InvalidCastException e) {
  5024. throw new global::System.Data.StrongTypingException("Значение для столбца \'StartDate\' в таблице \'Manufacturer\' равно DBNull.", e);
  5025. }
  5026. }
  5027. set {
  5028. this[this.tableManufacturer.StartDateColumn] = value;
  5029. }
  5030. }
  5031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5032. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5033. public bool IsStartDateNull() {
  5034. return this.IsNull(this.tableManufacturer.StartDateColumn);
  5035. }
  5036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5038. public void SetStartDateNull() {
  5039. this[this.tableManufacturer.StartDateColumn] = global::System.Convert.DBNull;
  5040. }
  5041. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5042. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5043. public ProductRow[] GetProductRows() {
  5044. if ((this.Table.ChildRelations["FK_Product_Manufacturer"] == null)) {
  5045. return new ProductRow[0];
  5046. }
  5047. else {
  5048. return ((ProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Product_Manufacturer"])));
  5049. }
  5050. }
  5051. }
  5052. /// <summary>
  5053. ///Represents strongly named DataRow class.
  5054. ///</summary>
  5055. public partial class ProductRow : global::System.Data.DataRow {
  5056. private ProductDataTable tableProduct;
  5057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5059. internal ProductRow(global::System.Data.DataRowBuilder rb) :
  5060. base(rb) {
  5061. this.tableProduct = ((ProductDataTable)(this.Table));
  5062. }
  5063. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5064. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5065. public int ID {
  5066. get {
  5067. return ((int)(this[this.tableProduct.IDColumn]));
  5068. }
  5069. set {
  5070. this[this.tableProduct.IDColumn] = value;
  5071. }
  5072. }
  5073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5075. public string Title {
  5076. get {
  5077. return ((string)(this[this.tableProduct.TitleColumn]));
  5078. }
  5079. set {
  5080. this[this.tableProduct.TitleColumn] = value;
  5081. }
  5082. }
  5083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5085. public decimal Cost {
  5086. get {
  5087. return ((decimal)(this[this.tableProduct.CostColumn]));
  5088. }
  5089. set {
  5090. this[this.tableProduct.CostColumn] = value;
  5091. }
  5092. }
  5093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5095. public string Description {
  5096. get {
  5097. try {
  5098. return ((string)(this[this.tableProduct.DescriptionColumn]));
  5099. }
  5100. catch (global::System.InvalidCastException e) {
  5101. throw new global::System.Data.StrongTypingException("Значение для столбца \'Description\' в таблице \'Product\' равно DBNull.", e);
  5102. }
  5103. }
  5104. set {
  5105. this[this.tableProduct.DescriptionColumn] = value;
  5106. }
  5107. }
  5108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5110. public string MainImagePath {
  5111. get {
  5112. try {
  5113. return ((string)(this[this.tableProduct.MainImagePathColumn]));
  5114. }
  5115. catch (global::System.InvalidCastException e) {
  5116. throw new global::System.Data.StrongTypingException("Значение для столбца \'MainImagePath\' в таблице \'Product\' равно DBNull.", e);
  5117. }
  5118. }
  5119. set {
  5120. this[this.tableProduct.MainImagePathColumn] = value;
  5121. }
  5122. }
  5123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5125. public bool IsActive {
  5126. get {
  5127. return ((bool)(this[this.tableProduct.IsActiveColumn]));
  5128. }
  5129. set {
  5130. this[this.tableProduct.IsActiveColumn] = value;
  5131. }
  5132. }
  5133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5135. public int ManufacturerID {
  5136. get {
  5137. try {
  5138. return ((int)(this[this.tableProduct.ManufacturerIDColumn]));
  5139. }
  5140. catch (global::System.InvalidCastException e) {
  5141. throw new global::System.Data.StrongTypingException("Значение для столбца \'ManufacturerID\' в таблице \'Product\' равно DBNull.", e);
  5142. }
  5143. }
  5144. set {
  5145. this[this.tableProduct.ManufacturerIDColumn] = value;
  5146. }
  5147. }
  5148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5150. public ManufacturerRow ManufacturerRow {
  5151. get {
  5152. return ((ManufacturerRow)(this.GetParentRow(this.Table.ParentRelations["FK_Product_Manufacturer"])));
  5153. }
  5154. set {
  5155. this.SetParentRow(value, this.Table.ParentRelations["FK_Product_Manufacturer"]);
  5156. }
  5157. }
  5158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5160. public bool IsDescriptionNull() {
  5161. return this.IsNull(this.tableProduct.DescriptionColumn);
  5162. }
  5163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5165. public void SetDescriptionNull() {
  5166. this[this.tableProduct.DescriptionColumn] = global::System.Convert.DBNull;
  5167. }
  5168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5170. public bool IsMainImagePathNull() {
  5171. return this.IsNull(this.tableProduct.MainImagePathColumn);
  5172. }
  5173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5175. public void SetMainImagePathNull() {
  5176. this[this.tableProduct.MainImagePathColumn] = global::System.Convert.DBNull;
  5177. }
  5178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5180. public bool IsManufacturerIDNull() {
  5181. return this.IsNull(this.tableProduct.ManufacturerIDColumn);
  5182. }
  5183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5185. public void SetManufacturerIDNull() {
  5186. this[this.tableProduct.ManufacturerIDColumn] = global::System.Convert.DBNull;
  5187. }
  5188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5190. public AttachedProductRow[] GetAttachedProductRowsByFK_AttachedProduct_Product() {
  5191. if ((this.Table.ChildRelations["FK_AttachedProduct_Product"] == null)) {
  5192. return new AttachedProductRow[0];
  5193. }
  5194. else {
  5195. return ((AttachedProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AttachedProduct_Product"])));
  5196. }
  5197. }
  5198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5200. public AttachedProductRow[] GetAttachedProductRowsByFK_AttachedProduct_Product1() {
  5201. if ((this.Table.ChildRelations["FK_AttachedProduct_Product1"] == null)) {
  5202. return new AttachedProductRow[0];
  5203. }
  5204. else {
  5205. return ((AttachedProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AttachedProduct_Product1"])));
  5206. }
  5207. }
  5208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5210. public ProductPhotoRow[] GetProductPhotoRows() {
  5211. if ((this.Table.ChildRelations["FK_ProductPhoto_Product"] == null)) {
  5212. return new ProductPhotoRow[0];
  5213. }
  5214. else {
  5215. return ((ProductPhotoRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductPhoto_Product"])));
  5216. }
  5217. }
  5218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5220. public ProductSaleRow[] GetProductSaleRows() {
  5221. if ((this.Table.ChildRelations["FK_ProductSale_Product"] == null)) {
  5222. return new ProductSaleRow[0];
  5223. }
  5224. else {
  5225. return ((ProductSaleRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductSale_Product"])));
  5226. }
  5227. }
  5228. }
  5229. /// <summary>
  5230. ///Represents strongly named DataRow class.
  5231. ///</summary>
  5232. public partial class ProductPhotoRow : global::System.Data.DataRow {
  5233. private ProductPhotoDataTable tableProductPhoto;
  5234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5236. internal ProductPhotoRow(global::System.Data.DataRowBuilder rb) :
  5237. base(rb) {
  5238. this.tableProductPhoto = ((ProductPhotoDataTable)(this.Table));
  5239. }
  5240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5242. public int ID {
  5243. get {
  5244. return ((int)(this[this.tableProductPhoto.IDColumn]));
  5245. }
  5246. set {
  5247. this[this.tableProductPhoto.IDColumn] = value;
  5248. }
  5249. }
  5250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5252. public int ProductID {
  5253. get {
  5254. return ((int)(this[this.tableProductPhoto.ProductIDColumn]));
  5255. }
  5256. set {
  5257. this[this.tableProductPhoto.ProductIDColumn] = value;
  5258. }
  5259. }
  5260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5262. public string PhotoPath {
  5263. get {
  5264. return ((string)(this[this.tableProductPhoto.PhotoPathColumn]));
  5265. }
  5266. set {
  5267. this[this.tableProductPhoto.PhotoPathColumn] = value;
  5268. }
  5269. }
  5270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5271. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5272. public ProductRow ProductRow {
  5273. get {
  5274. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductPhoto_Product"])));
  5275. }
  5276. set {
  5277. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductPhoto_Product"]);
  5278. }
  5279. }
  5280. }
  5281. /// <summary>
  5282. ///Represents strongly named DataRow class.
  5283. ///</summary>
  5284. public partial class ProductSaleRow : global::System.Data.DataRow {
  5285. private ProductSaleDataTable tableProductSale;
  5286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5287. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5288. internal ProductSaleRow(global::System.Data.DataRowBuilder rb) :
  5289. base(rb) {
  5290. this.tableProductSale = ((ProductSaleDataTable)(this.Table));
  5291. }
  5292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5294. public int ID {
  5295. get {
  5296. return ((int)(this[this.tableProductSale.IDColumn]));
  5297. }
  5298. set {
  5299. this[this.tableProductSale.IDColumn] = value;
  5300. }
  5301. }
  5302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5304. public System.DateTime SaleDate {
  5305. get {
  5306. return ((global::System.DateTime)(this[this.tableProductSale.SaleDateColumn]));
  5307. }
  5308. set {
  5309. this[this.tableProductSale.SaleDateColumn] = value;
  5310. }
  5311. }
  5312. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5313. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5314. public int ProductID {
  5315. get {
  5316. return ((int)(this[this.tableProductSale.ProductIDColumn]));
  5317. }
  5318. set {
  5319. this[this.tableProductSale.ProductIDColumn] = value;
  5320. }
  5321. }
  5322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5324. public int Quantity {
  5325. get {
  5326. return ((int)(this[this.tableProductSale.QuantityColumn]));
  5327. }
  5328. set {
  5329. this[this.tableProductSale.QuantityColumn] = value;
  5330. }
  5331. }
  5332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5334. public int ClientServiceID {
  5335. get {
  5336. try {
  5337. return ((int)(this[this.tableProductSale.ClientServiceIDColumn]));
  5338. }
  5339. catch (global::System.InvalidCastException e) {
  5340. throw new global::System.Data.StrongTypingException("Значение для столбца \'ClientServiceID\' в таблице \'ProductSale\' равно DBNull.", e);
  5341. }
  5342. }
  5343. set {
  5344. this[this.tableProductSale.ClientServiceIDColumn] = value;
  5345. }
  5346. }
  5347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5349. public ClientServiceRow ClientServiceRow {
  5350. get {
  5351. return ((ClientServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductSale_ClientService"])));
  5352. }
  5353. set {
  5354. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductSale_ClientService"]);
  5355. }
  5356. }
  5357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5359. public ProductRow ProductRow {
  5360. get {
  5361. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductSale_Product"])));
  5362. }
  5363. set {
  5364. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductSale_Product"]);
  5365. }
  5366. }
  5367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5369. public bool IsClientServiceIDNull() {
  5370. return this.IsNull(this.tableProductSale.ClientServiceIDColumn);
  5371. }
  5372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5374. public void SetClientServiceIDNull() {
  5375. this[this.tableProductSale.ClientServiceIDColumn] = global::System.Convert.DBNull;
  5376. }
  5377. }
  5378. /// <summary>
  5379. ///Represents strongly named DataRow class.
  5380. ///</summary>
  5381. public partial class ServiceRow : global::System.Data.DataRow {
  5382. private ServiceDataTable tableService;
  5383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5385. internal ServiceRow(global::System.Data.DataRowBuilder rb) :
  5386. base(rb) {
  5387. this.tableService = ((ServiceDataTable)(this.Table));
  5388. }
  5389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5391. public int ID {
  5392. get {
  5393. return ((int)(this[this.tableService.IDColumn]));
  5394. }
  5395. set {
  5396. this[this.tableService.IDColumn] = value;
  5397. }
  5398. }
  5399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5401. public string Наименование_услуги {
  5402. get {
  5403. return ((string)(this[this.tableService.Наименование_услугиColumn]));
  5404. }
  5405. set {
  5406. this[this.tableService.Наименование_услугиColumn] = value;
  5407. }
  5408. }
  5409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5411. public byte[] Главное_изображение {
  5412. get {
  5413. return ((byte[])(this[this.tableService.Главное_изображениеColumn]));
  5414. }
  5415. set {
  5416. this[this.tableService.Главное_изображениеColumn] = value;
  5417. }
  5418. }
  5419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5421. public int Длительность {
  5422. get {
  5423. return ((int)(this[this.tableService.ДлительностьColumn]));
  5424. }
  5425. set {
  5426. this[this.tableService.ДлительностьColumn] = value;
  5427. }
  5428. }
  5429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5431. public int Стоимость {
  5432. get {
  5433. return ((int)(this[this.tableService.СтоимостьColumn]));
  5434. }
  5435. set {
  5436. this[this.tableService.СтоимостьColumn] = value;
  5437. }
  5438. }
  5439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5441. public int Действующая_скидка {
  5442. get {
  5443. return ((int)(this[this.tableService.Действующая_скидкаColumn]));
  5444. }
  5445. set {
  5446. this[this.tableService.Действующая_скидкаColumn] = value;
  5447. }
  5448. }
  5449. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5450. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5451. public ClientServiceRow[] GetClientServiceRows() {
  5452. if ((this.Table.ChildRelations["FK_ClientService_Service"] == null)) {
  5453. return new ClientServiceRow[0];
  5454. }
  5455. else {
  5456. return ((ClientServiceRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ClientService_Service"])));
  5457. }
  5458. }
  5459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5461. public ServicePhotoRow[] GetServicePhotoRows() {
  5462. if ((this.Table.ChildRelations["FK_ServicePhoto_Service"] == null)) {
  5463. return new ServicePhotoRow[0];
  5464. }
  5465. else {
  5466. return ((ServicePhotoRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ServicePhoto_Service"])));
  5467. }
  5468. }
  5469. }
  5470. /// <summary>
  5471. ///Represents strongly named DataRow class.
  5472. ///</summary>
  5473. public partial class ServicePhotoRow : global::System.Data.DataRow {
  5474. private ServicePhotoDataTable tableServicePhoto;
  5475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5477. internal ServicePhotoRow(global::System.Data.DataRowBuilder rb) :
  5478. base(rb) {
  5479. this.tableServicePhoto = ((ServicePhotoDataTable)(this.Table));
  5480. }
  5481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5483. public int ID {
  5484. get {
  5485. return ((int)(this[this.tableServicePhoto.IDColumn]));
  5486. }
  5487. set {
  5488. this[this.tableServicePhoto.IDColumn] = value;
  5489. }
  5490. }
  5491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5493. public int ServiceID {
  5494. get {
  5495. return ((int)(this[this.tableServicePhoto.ServiceIDColumn]));
  5496. }
  5497. set {
  5498. this[this.tableServicePhoto.ServiceIDColumn] = value;
  5499. }
  5500. }
  5501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5503. public byte[] PhotoPath {
  5504. get {
  5505. return ((byte[])(this[this.tableServicePhoto.PhotoPathColumn]));
  5506. }
  5507. set {
  5508. this[this.tableServicePhoto.PhotoPathColumn] = value;
  5509. }
  5510. }
  5511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5513. public ServiceRow ServiceRow {
  5514. get {
  5515. return ((ServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_ServicePhoto_Service"])));
  5516. }
  5517. set {
  5518. this.SetParentRow(value, this.Table.ParentRelations["FK_ServicePhoto_Service"]);
  5519. }
  5520. }
  5521. }
  5522. /// <summary>
  5523. ///Represents strongly named DataRow class.
  5524. ///</summary>
  5525. public partial class TagRow : global::System.Data.DataRow {
  5526. private TagDataTable tableTag;
  5527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5529. internal TagRow(global::System.Data.DataRowBuilder rb) :
  5530. base(rb) {
  5531. this.tableTag = ((TagDataTable)(this.Table));
  5532. }
  5533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5535. public int ID {
  5536. get {
  5537. return ((int)(this[this.tableTag.IDColumn]));
  5538. }
  5539. set {
  5540. this[this.tableTag.IDColumn] = value;
  5541. }
  5542. }
  5543. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5544. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5545. public string Title {
  5546. get {
  5547. return ((string)(this[this.tableTag.TitleColumn]));
  5548. }
  5549. set {
  5550. this[this.tableTag.TitleColumn] = value;
  5551. }
  5552. }
  5553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5555. public string Color {
  5556. get {
  5557. return ((string)(this[this.tableTag.ColorColumn]));
  5558. }
  5559. set {
  5560. this[this.tableTag.ColorColumn] = value;
  5561. }
  5562. }
  5563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5565. public TagOfClientRow[] GetTagOfClientRows() {
  5566. if ((this.Table.ChildRelations["FK_TagOfClient_Tag"] == null)) {
  5567. return new TagOfClientRow[0];
  5568. }
  5569. else {
  5570. return ((TagOfClientRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TagOfClient_Tag"])));
  5571. }
  5572. }
  5573. }
  5574. /// <summary>
  5575. ///Represents strongly named DataRow class.
  5576. ///</summary>
  5577. public partial class TagOfClientRow : global::System.Data.DataRow {
  5578. private TagOfClientDataTable tableTagOfClient;
  5579. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5580. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5581. internal TagOfClientRow(global::System.Data.DataRowBuilder rb) :
  5582. base(rb) {
  5583. this.tableTagOfClient = ((TagOfClientDataTable)(this.Table));
  5584. }
  5585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5587. public int ClientID {
  5588. get {
  5589. return ((int)(this[this.tableTagOfClient.ClientIDColumn]));
  5590. }
  5591. set {
  5592. this[this.tableTagOfClient.ClientIDColumn] = value;
  5593. }
  5594. }
  5595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5597. public int TagID {
  5598. get {
  5599. return ((int)(this[this.tableTagOfClient.TagIDColumn]));
  5600. }
  5601. set {
  5602. this[this.tableTagOfClient.TagIDColumn] = value;
  5603. }
  5604. }
  5605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5607. public ClientRow ClientRow {
  5608. get {
  5609. return ((ClientRow)(this.GetParentRow(this.Table.ParentRelations["FK_TagOfClient_Client"])));
  5610. }
  5611. set {
  5612. this.SetParentRow(value, this.Table.ParentRelations["FK_TagOfClient_Client"]);
  5613. }
  5614. }
  5615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5617. public TagRow TagRow {
  5618. get {
  5619. return ((TagRow)(this.GetParentRow(this.Table.ParentRelations["FK_TagOfClient_Tag"])));
  5620. }
  5621. set {
  5622. this.SetParentRow(value, this.Table.ParentRelations["FK_TagOfClient_Tag"]);
  5623. }
  5624. }
  5625. }
  5626. /// <summary>
  5627. ///Represents strongly named DataRow class.
  5628. ///</summary>
  5629. public partial class УчеткиRow : global::System.Data.DataRow {
  5630. private УчеткиDataTable tableУчетки;
  5631. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5633. internal УчеткиRow(global::System.Data.DataRowBuilder rb) :
  5634. base(rb) {
  5635. this.tableУчетки = ((УчеткиDataTable)(this.Table));
  5636. }
  5637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5639. public string Логин {
  5640. get {
  5641. return ((string)(this[this.tableУчетки.ЛогинColumn]));
  5642. }
  5643. set {
  5644. this[this.tableУчетки.ЛогинColumn] = value;
  5645. }
  5646. }
  5647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5649. public string Пароль {
  5650. get {
  5651. return ((string)(this[this.tableУчетки.ПарольColumn]));
  5652. }
  5653. set {
  5654. this[this.tableУчетки.ПарольColumn] = value;
  5655. }
  5656. }
  5657. }
  5658. /// <summary>
  5659. ///Row event argument class
  5660. ///</summary>
  5661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5662. public class AttachedProductRowChangeEvent : global::System.EventArgs {
  5663. private AttachedProductRow eventRow;
  5664. private global::System.Data.DataRowAction eventAction;
  5665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5666. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5667. public AttachedProductRowChangeEvent(AttachedProductRow row, global::System.Data.DataRowAction action) {
  5668. this.eventRow = row;
  5669. this.eventAction = action;
  5670. }
  5671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5673. public AttachedProductRow Row {
  5674. get {
  5675. return this.eventRow;
  5676. }
  5677. }
  5678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5680. public global::System.Data.DataRowAction Action {
  5681. get {
  5682. return this.eventAction;
  5683. }
  5684. }
  5685. }
  5686. /// <summary>
  5687. ///Row event argument class
  5688. ///</summary>
  5689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5690. public class ClientRowChangeEvent : global::System.EventArgs {
  5691. private ClientRow eventRow;
  5692. private global::System.Data.DataRowAction eventAction;
  5693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5695. public ClientRowChangeEvent(ClientRow row, global::System.Data.DataRowAction action) {
  5696. this.eventRow = row;
  5697. this.eventAction = action;
  5698. }
  5699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5701. public ClientRow Row {
  5702. get {
  5703. return this.eventRow;
  5704. }
  5705. }
  5706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5708. public global::System.Data.DataRowAction Action {
  5709. get {
  5710. return this.eventAction;
  5711. }
  5712. }
  5713. }
  5714. /// <summary>
  5715. ///Row event argument class
  5716. ///</summary>
  5717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5718. public class ClientServiceRowChangeEvent : global::System.EventArgs {
  5719. private ClientServiceRow eventRow;
  5720. private global::System.Data.DataRowAction eventAction;
  5721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5723. public ClientServiceRowChangeEvent(ClientServiceRow row, global::System.Data.DataRowAction action) {
  5724. this.eventRow = row;
  5725. this.eventAction = action;
  5726. }
  5727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5729. public ClientServiceRow Row {
  5730. get {
  5731. return this.eventRow;
  5732. }
  5733. }
  5734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5736. public global::System.Data.DataRowAction Action {
  5737. get {
  5738. return this.eventAction;
  5739. }
  5740. }
  5741. }
  5742. /// <summary>
  5743. ///Row event argument class
  5744. ///</summary>
  5745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5746. public class DocumentByServiceRowChangeEvent : global::System.EventArgs {
  5747. private DocumentByServiceRow eventRow;
  5748. private global::System.Data.DataRowAction eventAction;
  5749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5751. public DocumentByServiceRowChangeEvent(DocumentByServiceRow row, global::System.Data.DataRowAction action) {
  5752. this.eventRow = row;
  5753. this.eventAction = action;
  5754. }
  5755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5757. public DocumentByServiceRow Row {
  5758. get {
  5759. return this.eventRow;
  5760. }
  5761. }
  5762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5764. public global::System.Data.DataRowAction Action {
  5765. get {
  5766. return this.eventAction;
  5767. }
  5768. }
  5769. }
  5770. /// <summary>
  5771. ///Row event argument class
  5772. ///</summary>
  5773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5774. public class GenderRowChangeEvent : global::System.EventArgs {
  5775. private GenderRow eventRow;
  5776. private global::System.Data.DataRowAction eventAction;
  5777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5779. public GenderRowChangeEvent(GenderRow row, global::System.Data.DataRowAction action) {
  5780. this.eventRow = row;
  5781. this.eventAction = action;
  5782. }
  5783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5785. public GenderRow Row {
  5786. get {
  5787. return this.eventRow;
  5788. }
  5789. }
  5790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5792. public global::System.Data.DataRowAction Action {
  5793. get {
  5794. return this.eventAction;
  5795. }
  5796. }
  5797. }
  5798. /// <summary>
  5799. ///Row event argument class
  5800. ///</summary>
  5801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5802. public class ManufacturerRowChangeEvent : global::System.EventArgs {
  5803. private ManufacturerRow eventRow;
  5804. private global::System.Data.DataRowAction eventAction;
  5805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5806. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5807. public ManufacturerRowChangeEvent(ManufacturerRow row, global::System.Data.DataRowAction action) {
  5808. this.eventRow = row;
  5809. this.eventAction = action;
  5810. }
  5811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5813. public ManufacturerRow Row {
  5814. get {
  5815. return this.eventRow;
  5816. }
  5817. }
  5818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5820. public global::System.Data.DataRowAction Action {
  5821. get {
  5822. return this.eventAction;
  5823. }
  5824. }
  5825. }
  5826. /// <summary>
  5827. ///Row event argument class
  5828. ///</summary>
  5829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5830. public class ProductRowChangeEvent : global::System.EventArgs {
  5831. private ProductRow eventRow;
  5832. private global::System.Data.DataRowAction eventAction;
  5833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5835. public ProductRowChangeEvent(ProductRow row, global::System.Data.DataRowAction action) {
  5836. this.eventRow = row;
  5837. this.eventAction = action;
  5838. }
  5839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5841. public ProductRow Row {
  5842. get {
  5843. return this.eventRow;
  5844. }
  5845. }
  5846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5848. public global::System.Data.DataRowAction Action {
  5849. get {
  5850. return this.eventAction;
  5851. }
  5852. }
  5853. }
  5854. /// <summary>
  5855. ///Row event argument class
  5856. ///</summary>
  5857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5858. public class ProductPhotoRowChangeEvent : global::System.EventArgs {
  5859. private ProductPhotoRow eventRow;
  5860. private global::System.Data.DataRowAction eventAction;
  5861. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5862. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5863. public ProductPhotoRowChangeEvent(ProductPhotoRow row, global::System.Data.DataRowAction action) {
  5864. this.eventRow = row;
  5865. this.eventAction = action;
  5866. }
  5867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5868. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5869. public ProductPhotoRow Row {
  5870. get {
  5871. return this.eventRow;
  5872. }
  5873. }
  5874. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5875. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5876. public global::System.Data.DataRowAction Action {
  5877. get {
  5878. return this.eventAction;
  5879. }
  5880. }
  5881. }
  5882. /// <summary>
  5883. ///Row event argument class
  5884. ///</summary>
  5885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5886. public class ProductSaleRowChangeEvent : global::System.EventArgs {
  5887. private ProductSaleRow eventRow;
  5888. private global::System.Data.DataRowAction eventAction;
  5889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5891. public ProductSaleRowChangeEvent(ProductSaleRow row, global::System.Data.DataRowAction action) {
  5892. this.eventRow = row;
  5893. this.eventAction = action;
  5894. }
  5895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5897. public ProductSaleRow Row {
  5898. get {
  5899. return this.eventRow;
  5900. }
  5901. }
  5902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5904. public global::System.Data.DataRowAction Action {
  5905. get {
  5906. return this.eventAction;
  5907. }
  5908. }
  5909. }
  5910. /// <summary>
  5911. ///Row event argument class
  5912. ///</summary>
  5913. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5914. public class ServiceRowChangeEvent : global::System.EventArgs {
  5915. private ServiceRow eventRow;
  5916. private global::System.Data.DataRowAction eventAction;
  5917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5919. public ServiceRowChangeEvent(ServiceRow row, global::System.Data.DataRowAction action) {
  5920. this.eventRow = row;
  5921. this.eventAction = action;
  5922. }
  5923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5925. public ServiceRow Row {
  5926. get {
  5927. return this.eventRow;
  5928. }
  5929. }
  5930. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5931. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5932. public global::System.Data.DataRowAction Action {
  5933. get {
  5934. return this.eventAction;
  5935. }
  5936. }
  5937. }
  5938. /// <summary>
  5939. ///Row event argument class
  5940. ///</summary>
  5941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5942. public class ServicePhotoRowChangeEvent : global::System.EventArgs {
  5943. private ServicePhotoRow eventRow;
  5944. private global::System.Data.DataRowAction eventAction;
  5945. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5946. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5947. public ServicePhotoRowChangeEvent(ServicePhotoRow row, global::System.Data.DataRowAction action) {
  5948. this.eventRow = row;
  5949. this.eventAction = action;
  5950. }
  5951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5952. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5953. public ServicePhotoRow Row {
  5954. get {
  5955. return this.eventRow;
  5956. }
  5957. }
  5958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5959. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5960. public global::System.Data.DataRowAction Action {
  5961. get {
  5962. return this.eventAction;
  5963. }
  5964. }
  5965. }
  5966. /// <summary>
  5967. ///Row event argument class
  5968. ///</summary>
  5969. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5970. public class TagRowChangeEvent : global::System.EventArgs {
  5971. private TagRow eventRow;
  5972. private global::System.Data.DataRowAction eventAction;
  5973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5975. public TagRowChangeEvent(TagRow row, global::System.Data.DataRowAction action) {
  5976. this.eventRow = row;
  5977. this.eventAction = action;
  5978. }
  5979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5981. public TagRow Row {
  5982. get {
  5983. return this.eventRow;
  5984. }
  5985. }
  5986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5987. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5988. public global::System.Data.DataRowAction Action {
  5989. get {
  5990. return this.eventAction;
  5991. }
  5992. }
  5993. }
  5994. /// <summary>
  5995. ///Row event argument class
  5996. ///</summary>
  5997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5998. public class TagOfClientRowChangeEvent : global::System.EventArgs {
  5999. private TagOfClientRow eventRow;
  6000. private global::System.Data.DataRowAction eventAction;
  6001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6003. public TagOfClientRowChangeEvent(TagOfClientRow row, global::System.Data.DataRowAction action) {
  6004. this.eventRow = row;
  6005. this.eventAction = action;
  6006. }
  6007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6008. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6009. public TagOfClientRow Row {
  6010. get {
  6011. return this.eventRow;
  6012. }
  6013. }
  6014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6016. public global::System.Data.DataRowAction Action {
  6017. get {
  6018. return this.eventAction;
  6019. }
  6020. }
  6021. }
  6022. /// <summary>
  6023. ///Row event argument class
  6024. ///</summary>
  6025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6026. public class УчеткиRowChangeEvent : global::System.EventArgs {
  6027. private УчеткиRow eventRow;
  6028. private global::System.Data.DataRowAction eventAction;
  6029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6031. public УчеткиRowChangeEvent(УчеткиRow row, global::System.Data.DataRowAction action) {
  6032. this.eventRow = row;
  6033. this.eventAction = action;
  6034. }
  6035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6037. public УчеткиRow Row {
  6038. get {
  6039. return this.eventRow;
  6040. }
  6041. }
  6042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6044. public global::System.Data.DataRowAction Action {
  6045. get {
  6046. return this.eventAction;
  6047. }
  6048. }
  6049. }
  6050. }
  6051. }
  6052. namespace Khaustov_ProbniyDE.Хаустов_ПробныйДЭDataSetTableAdapters {
  6053. /// <summary>
  6054. ///Represents the connection and commands used to retrieve and save data.
  6055. ///</summary>
  6056. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6057. [global::System.ComponentModel.ToolboxItem(true)]
  6058. [global::System.ComponentModel.DataObjectAttribute(true)]
  6059. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6060. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6061. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6062. public partial class AttachedProductTableAdapter : global::System.ComponentModel.Component {
  6063. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6064. private global::System.Data.SqlClient.SqlConnection _connection;
  6065. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6066. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6067. private bool _clearBeforeFill;
  6068. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6069. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6070. public AttachedProductTableAdapter() {
  6071. this.ClearBeforeFill = true;
  6072. }
  6073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6075. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6076. get {
  6077. if ((this._adapter == null)) {
  6078. this.InitAdapter();
  6079. }
  6080. return this._adapter;
  6081. }
  6082. }
  6083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6085. internal global::System.Data.SqlClient.SqlConnection Connection {
  6086. get {
  6087. if ((this._connection == null)) {
  6088. this.InitConnection();
  6089. }
  6090. return this._connection;
  6091. }
  6092. set {
  6093. this._connection = value;
  6094. if ((this.Adapter.InsertCommand != null)) {
  6095. this.Adapter.InsertCommand.Connection = value;
  6096. }
  6097. if ((this.Adapter.DeleteCommand != null)) {
  6098. this.Adapter.DeleteCommand.Connection = value;
  6099. }
  6100. if ((this.Adapter.UpdateCommand != null)) {
  6101. this.Adapter.UpdateCommand.Connection = value;
  6102. }
  6103. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6104. if ((this.CommandCollection[i] != null)) {
  6105. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6106. }
  6107. }
  6108. }
  6109. }
  6110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6112. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6113. get {
  6114. return this._transaction;
  6115. }
  6116. set {
  6117. this._transaction = value;
  6118. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6119. this.CommandCollection[i].Transaction = this._transaction;
  6120. }
  6121. if (((this.Adapter != null)
  6122. && (this.Adapter.DeleteCommand != null))) {
  6123. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6124. }
  6125. if (((this.Adapter != null)
  6126. && (this.Adapter.InsertCommand != null))) {
  6127. this.Adapter.InsertCommand.Transaction = this._transaction;
  6128. }
  6129. if (((this.Adapter != null)
  6130. && (this.Adapter.UpdateCommand != null))) {
  6131. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6132. }
  6133. }
  6134. }
  6135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6137. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6138. get {
  6139. if ((this._commandCollection == null)) {
  6140. this.InitCommandCollection();
  6141. }
  6142. return this._commandCollection;
  6143. }
  6144. }
  6145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6147. public bool ClearBeforeFill {
  6148. get {
  6149. return this._clearBeforeFill;
  6150. }
  6151. set {
  6152. this._clearBeforeFill = value;
  6153. }
  6154. }
  6155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6157. private void InitAdapter() {
  6158. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6159. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6160. tableMapping.SourceTable = "Table";
  6161. tableMapping.DataSetTable = "AttachedProduct";
  6162. tableMapping.ColumnMappings.Add("MainProductID", "MainProductID");
  6163. tableMapping.ColumnMappings.Add("AttachedProductID", "AttachedProductID");
  6164. this._adapter.TableMappings.Add(tableMapping);
  6165. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6166. this._adapter.DeleteCommand.Connection = this.Connection;
  6167. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[AttachedProduct] WHERE (([MainProductID] = @Original_MainProdu" +
  6168. "ctID) AND ([AttachedProductID] = @Original_AttachedProductID))";
  6169. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6170. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MainProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6171. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_AttachedProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AttachedProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6172. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6173. this._adapter.InsertCommand.Connection = this.Connection;
  6174. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[AttachedProduct] ([MainProductID], [AttachedProductID]) VALUES (@MainProductID, @AttachedProductID);
  6175. SELECT MainProductID, AttachedProductID FROM AttachedProduct WHERE (AttachedProductID = @AttachedProductID) AND (MainProductID = @MainProductID)";
  6176. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6177. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MainProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6178. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@AttachedProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AttachedProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6179. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6180. this._adapter.UpdateCommand.Connection = this.Connection;
  6181. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AttachedProduct] SET [MainProductID] = @MainProductID, [AttachedProductID] = @AttachedProductID WHERE (([MainProductID] = @Original_MainProductID) AND ([AttachedProductID] = @Original_AttachedProductID));
  6182. SELECT MainProductID, AttachedProductID FROM AttachedProduct WHERE (AttachedProductID = @AttachedProductID) AND (MainProductID = @MainProductID)";
  6183. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6184. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MainProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6185. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@AttachedProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AttachedProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6186. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MainProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6187. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_AttachedProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AttachedProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6188. }
  6189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6191. private void InitConnection() {
  6192. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6193. this._connection.ConnectionString = global::Khaustov_ProbniyDE.Properties.Settings.Default.Хаустов_ПробныйДЭConnectionString;
  6194. }
  6195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6197. private void InitCommandCollection() {
  6198. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6199. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6200. this._commandCollection[0].Connection = this.Connection;
  6201. this._commandCollection[0].CommandText = "SELECT MainProductID, AttachedProductID FROM dbo.AttachedProduct";
  6202. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6203. }
  6204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6206. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6207. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6208. public virtual int Fill(Хаустов_ПробныйДЭDataSet.AttachedProductDataTable dataTable) {
  6209. this.Adapter.SelectCommand = this.CommandCollection[0];
  6210. if ((this.ClearBeforeFill == true)) {
  6211. dataTable.Clear();
  6212. }
  6213. int returnValue = this.Adapter.Fill(dataTable);
  6214. return returnValue;
  6215. }
  6216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6218. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6219. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6220. public virtual Хаустов_ПробныйДЭDataSet.AttachedProductDataTable GetData() {
  6221. this.Adapter.SelectCommand = this.CommandCollection[0];
  6222. Хаустов_ПробныйДЭDataSet.AttachedProductDataTable dataTable = new Хаустов_ПробныйДЭDataSet.AttachedProductDataTable();
  6223. this.Adapter.Fill(dataTable);
  6224. return dataTable;
  6225. }
  6226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6228. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6229. public virtual int Update(Хаустов_ПробныйДЭDataSet.AttachedProductDataTable dataTable) {
  6230. return this.Adapter.Update(dataTable);
  6231. }
  6232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6234. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6235. public virtual int Update(Хаустов_ПробныйДЭDataSet dataSet) {
  6236. return this.Adapter.Update(dataSet, "AttachedProduct");
  6237. }
  6238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6240. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6241. public virtual int Update(global::System.Data.DataRow dataRow) {
  6242. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6243. dataRow});
  6244. }
  6245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6247. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6248. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6249. return this.Adapter.Update(dataRows);
  6250. }
  6251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6253. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6254. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6255. public virtual int Delete(int Original_MainProductID, int Original_AttachedProductID) {
  6256. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_MainProductID));
  6257. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_AttachedProductID));
  6258. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6259. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6260. != global::System.Data.ConnectionState.Open)) {
  6261. this.Adapter.DeleteCommand.Connection.Open();
  6262. }
  6263. try {
  6264. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6265. return returnValue;
  6266. }
  6267. finally {
  6268. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6269. this.Adapter.DeleteCommand.Connection.Close();
  6270. }
  6271. }
  6272. }
  6273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6275. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6276. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6277. public virtual int Insert(int MainProductID, int AttachedProductID) {
  6278. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(MainProductID));
  6279. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(AttachedProductID));
  6280. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6281. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6282. != global::System.Data.ConnectionState.Open)) {
  6283. this.Adapter.InsertCommand.Connection.Open();
  6284. }
  6285. try {
  6286. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6287. return returnValue;
  6288. }
  6289. finally {
  6290. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6291. this.Adapter.InsertCommand.Connection.Close();
  6292. }
  6293. }
  6294. }
  6295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6297. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6298. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6299. public virtual int Update(int MainProductID, int AttachedProductID, int Original_MainProductID, int Original_AttachedProductID) {
  6300. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(MainProductID));
  6301. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(AttachedProductID));
  6302. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_MainProductID));
  6303. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_AttachedProductID));
  6304. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6305. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6306. != global::System.Data.ConnectionState.Open)) {
  6307. this.Adapter.UpdateCommand.Connection.Open();
  6308. }
  6309. try {
  6310. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6311. return returnValue;
  6312. }
  6313. finally {
  6314. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6315. this.Adapter.UpdateCommand.Connection.Close();
  6316. }
  6317. }
  6318. }
  6319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6321. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6322. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6323. public virtual int Update(int Original_MainProductID, int Original_AttachedProductID) {
  6324. return this.Update(Original_MainProductID, Original_AttachedProductID, Original_MainProductID, Original_AttachedProductID);
  6325. }
  6326. }
  6327. /// <summary>
  6328. ///Represents the connection and commands used to retrieve and save data.
  6329. ///</summary>
  6330. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6331. [global::System.ComponentModel.ToolboxItem(true)]
  6332. [global::System.ComponentModel.DataObjectAttribute(true)]
  6333. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6334. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6335. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6336. public partial class ClientTableAdapter : global::System.ComponentModel.Component {
  6337. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6338. private global::System.Data.SqlClient.SqlConnection _connection;
  6339. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6340. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6341. private bool _clearBeforeFill;
  6342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6344. public ClientTableAdapter() {
  6345. this.ClearBeforeFill = true;
  6346. }
  6347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6349. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6350. get {
  6351. if ((this._adapter == null)) {
  6352. this.InitAdapter();
  6353. }
  6354. return this._adapter;
  6355. }
  6356. }
  6357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6359. internal global::System.Data.SqlClient.SqlConnection Connection {
  6360. get {
  6361. if ((this._connection == null)) {
  6362. this.InitConnection();
  6363. }
  6364. return this._connection;
  6365. }
  6366. set {
  6367. this._connection = value;
  6368. if ((this.Adapter.InsertCommand != null)) {
  6369. this.Adapter.InsertCommand.Connection = value;
  6370. }
  6371. if ((this.Adapter.DeleteCommand != null)) {
  6372. this.Adapter.DeleteCommand.Connection = value;
  6373. }
  6374. if ((this.Adapter.UpdateCommand != null)) {
  6375. this.Adapter.UpdateCommand.Connection = value;
  6376. }
  6377. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6378. if ((this.CommandCollection[i] != null)) {
  6379. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6380. }
  6381. }
  6382. }
  6383. }
  6384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6386. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6387. get {
  6388. return this._transaction;
  6389. }
  6390. set {
  6391. this._transaction = value;
  6392. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6393. this.CommandCollection[i].Transaction = this._transaction;
  6394. }
  6395. if (((this.Adapter != null)
  6396. && (this.Adapter.DeleteCommand != null))) {
  6397. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6398. }
  6399. if (((this.Adapter != null)
  6400. && (this.Adapter.InsertCommand != null))) {
  6401. this.Adapter.InsertCommand.Transaction = this._transaction;
  6402. }
  6403. if (((this.Adapter != null)
  6404. && (this.Adapter.UpdateCommand != null))) {
  6405. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6406. }
  6407. }
  6408. }
  6409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6411. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6412. get {
  6413. if ((this._commandCollection == null)) {
  6414. this.InitCommandCollection();
  6415. }
  6416. return this._commandCollection;
  6417. }
  6418. }
  6419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6421. public bool ClearBeforeFill {
  6422. get {
  6423. return this._clearBeforeFill;
  6424. }
  6425. set {
  6426. this._clearBeforeFill = value;
  6427. }
  6428. }
  6429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6431. private void InitAdapter() {
  6432. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6433. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6434. tableMapping.SourceTable = "Table";
  6435. tableMapping.DataSetTable = "Client";
  6436. tableMapping.ColumnMappings.Add("ID", "ID");
  6437. tableMapping.ColumnMappings.Add("Фамилия", "Фамилия");
  6438. tableMapping.ColumnMappings.Add("Имя", "Имя");
  6439. tableMapping.ColumnMappings.Add("Отчество", "Отчество");
  6440. tableMapping.ColumnMappings.Add("Пол", "Пол");
  6441. tableMapping.ColumnMappings.Add("Телефон", "Телефон");
  6442. tableMapping.ColumnMappings.Add("Дата_рождения", "Дата_рождения");
  6443. tableMapping.ColumnMappings.Add("Email", "Email");
  6444. tableMapping.ColumnMappings.Add("Дата_регистрации", "Дата_регистрации");
  6445. this._adapter.TableMappings.Add(tableMapping);
  6446. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6447. this._adapter.DeleteCommand.Connection = this.Connection;
  6448. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Client] WHERE (([ID] = @Original_ID) AND ([Фамилия] = @Original_Фамилия) AND ([Имя] = @Original_Имя) AND ([Отчество] = @Original_Отчество) AND ([Пол] = @Original_Пол) AND ([Телефон] = @Original_Телефон) AND ([Дата_рождения] = @Original_Дата_рождения) AND ([Email] = @Original_Email) AND ([Дата_регистрации] = @Original_Дата_регистрации))";
  6449. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6450. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6451. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6452. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Имя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6453. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Отчество", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6454. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Пол", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пол", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6455. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Телефон", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Телефон", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6456. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата_рождения", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_рождения", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6457. 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, "", "", ""));
  6458. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата_регистрации", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_регистрации", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6459. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6460. this._adapter.InsertCommand.Connection = this.Connection;
  6461. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Client] ([Фамилия], [Имя], [Отчество], [Пол], [Телефон], [Дата_рождения], [Email], [Дата_регистрации]) VALUES (@Фамилия, @Имя, @Отчество, @Пол, @Телефон, @Дата_рождения, @Email, @Дата_регистрации);
  6462. SELECT ID, Фамилия, Имя, Отчество, Пол, Телефон, Дата_рождения, Email, Дата_регистрации FROM Client WHERE (ID = SCOPE_IDENTITY())";
  6463. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6464. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6465. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Имя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6466. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Отчество", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6467. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Пол", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пол", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6468. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Телефон", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Телефон", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6469. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата_рождения", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_рождения", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6470. 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, "", "", ""));
  6471. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата_регистрации", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_регистрации", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6472. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6473. this._adapter.UpdateCommand.Connection = this.Connection;
  6474. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Client] SET [Фамилия] = @Фамилия, [Имя] = @Имя, [Отчество] = @Отчество, [Пол] = @Пол, [Телефон] = @Телефон, [Дата_рождения] = @Дата_рождения, [Email] = @Email, [Дата_регистрации] = @Дата_регистрации WHERE (([ID] = @Original_ID) AND ([Фамилия] = @Original_Фамилия) AND ([Имя] = @Original_Имя) AND ([Отчество] = @Original_Отчество) AND ([Пол] = @Original_Пол) AND ([Телефон] = @Original_Телефон) AND ([Дата_рождения] = @Original_Дата_рождения) AND ([Email] = @Original_Email) AND ([Дата_регистрации] = @Original_Дата_регистрации));
  6475. SELECT ID, Фамилия, Имя, Отчество, Пол, Телефон, Дата_рождения, Email, Дата_регистрации FROM Client WHERE (ID = @ID)";
  6476. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6477. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6478. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Имя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6479. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Отчество", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6480. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Пол", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пол", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6481. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Телефон", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Телефон", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6482. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата_рождения", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_рождения", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6483. 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, "", "", ""));
  6484. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата_регистрации", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_регистрации", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6485. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6486. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6487. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Имя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6488. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Отчество", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6489. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Пол", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пол", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6490. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Телефон", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Телефон", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6491. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата_рождения", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_рождения", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6492. 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, "", "", ""));
  6493. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата_регистрации", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_регистрации", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6494. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6495. }
  6496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6498. private void InitConnection() {
  6499. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6500. this._connection.ConnectionString = global::Khaustov_ProbniyDE.Properties.Settings.Default.Хаустов_ПробныйДЭConnectionString;
  6501. }
  6502. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6503. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6504. private void InitCommandCollection() {
  6505. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6506. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6507. this._commandCollection[0].Connection = this.Connection;
  6508. this._commandCollection[0].CommandText = "SELECT ID, Фамилия, Имя, Отчество, Пол, Телефон, Дата_рождения, Email, Дата_регис" +
  6509. "трации FROM dbo.Client";
  6510. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6511. }
  6512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6514. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6515. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6516. public virtual int Fill(Хаустов_ПробныйДЭDataSet.ClientDataTable dataTable) {
  6517. this.Adapter.SelectCommand = this.CommandCollection[0];
  6518. if ((this.ClearBeforeFill == true)) {
  6519. dataTable.Clear();
  6520. }
  6521. int returnValue = this.Adapter.Fill(dataTable);
  6522. return returnValue;
  6523. }
  6524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6526. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6527. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6528. public virtual Хаустов_ПробныйДЭDataSet.ClientDataTable GetData() {
  6529. this.Adapter.SelectCommand = this.CommandCollection[0];
  6530. Хаустов_ПробныйДЭDataSet.ClientDataTable dataTable = new Хаустов_ПробныйДЭDataSet.ClientDataTable();
  6531. this.Adapter.Fill(dataTable);
  6532. return dataTable;
  6533. }
  6534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6536. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6537. public virtual int Update(Хаустов_ПробныйДЭDataSet.ClientDataTable dataTable) {
  6538. return this.Adapter.Update(dataTable);
  6539. }
  6540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6542. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6543. public virtual int Update(Хаустов_ПробныйДЭDataSet dataSet) {
  6544. return this.Adapter.Update(dataSet, "Client");
  6545. }
  6546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6548. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6549. public virtual int Update(global::System.Data.DataRow dataRow) {
  6550. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6551. dataRow});
  6552. }
  6553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6555. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6556. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6557. return this.Adapter.Update(dataRows);
  6558. }
  6559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6561. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6562. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6563. public virtual int Delete(int Original_ID, string Original_Фамилия, string Original_Имя, string Original_Отчество, int Original_Пол, string Original_Телефон, System.DateTime Original_Дата_рождения, string Original_Email, System.DateTime Original_Дата_регистрации) {
  6564. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  6565. if ((Original_Фамилия == null)) {
  6566. throw new global::System.ArgumentNullException("Original_Фамилия");
  6567. }
  6568. else {
  6569. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Фамилия));
  6570. }
  6571. if ((Original_Имя == null)) {
  6572. throw new global::System.ArgumentNullException("Original_Имя");
  6573. }
  6574. else {
  6575. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Имя));
  6576. }
  6577. if ((Original_Отчество == null)) {
  6578. throw new global::System.ArgumentNullException("Original_Отчество");
  6579. }
  6580. else {
  6581. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_Отчество));
  6582. }
  6583. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_Пол));
  6584. if ((Original_Телефон == null)) {
  6585. throw new global::System.ArgumentNullException("Original_Телефон");
  6586. }
  6587. else {
  6588. this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_Телефон));
  6589. }
  6590. this.Adapter.DeleteCommand.Parameters[6].Value = ((System.DateTime)(Original_Дата_рождения));
  6591. if ((Original_Email == null)) {
  6592. throw new global::System.ArgumentNullException("Original_Email");
  6593. }
  6594. else {
  6595. this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_Email));
  6596. }
  6597. this.Adapter.DeleteCommand.Parameters[8].Value = ((System.DateTime)(Original_Дата_регистрации));
  6598. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6599. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6600. != global::System.Data.ConnectionState.Open)) {
  6601. this.Adapter.DeleteCommand.Connection.Open();
  6602. }
  6603. try {
  6604. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6605. return returnValue;
  6606. }
  6607. finally {
  6608. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6609. this.Adapter.DeleteCommand.Connection.Close();
  6610. }
  6611. }
  6612. }
  6613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6615. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6616. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6617. public virtual int Insert(string Фамилия, string Имя, string Отчество, int Пол, string Телефон, System.DateTime Дата_рождения, string Email, System.DateTime Дата_регистрации) {
  6618. if ((Фамилия == null)) {
  6619. throw new global::System.ArgumentNullException("Фамилия");
  6620. }
  6621. else {
  6622. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Фамилия));
  6623. }
  6624. if ((Имя == null)) {
  6625. throw new global::System.ArgumentNullException("Имя");
  6626. }
  6627. else {
  6628. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Имя));
  6629. }
  6630. if ((Отчество == null)) {
  6631. throw new global::System.ArgumentNullException("Отчество");
  6632. }
  6633. else {
  6634. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Отчество));
  6635. }
  6636. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Пол));
  6637. if ((Телефон == null)) {
  6638. throw new global::System.ArgumentNullException("Телефон");
  6639. }
  6640. else {
  6641. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Телефон));
  6642. }
  6643. this.Adapter.InsertCommand.Parameters[5].Value = ((System.DateTime)(Дата_рождения));
  6644. if ((Email == null)) {
  6645. throw new global::System.ArgumentNullException("Email");
  6646. }
  6647. else {
  6648. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Email));
  6649. }
  6650. this.Adapter.InsertCommand.Parameters[7].Value = ((System.DateTime)(Дата_регистрации));
  6651. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6652. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6653. != global::System.Data.ConnectionState.Open)) {
  6654. this.Adapter.InsertCommand.Connection.Open();
  6655. }
  6656. try {
  6657. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6658. return returnValue;
  6659. }
  6660. finally {
  6661. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6662. this.Adapter.InsertCommand.Connection.Close();
  6663. }
  6664. }
  6665. }
  6666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6668. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6669. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6670. public virtual int Update(
  6671. string Фамилия,
  6672. string Имя,
  6673. string Отчество,
  6674. int Пол,
  6675. string Телефон,
  6676. System.DateTime Дата_рождения,
  6677. string Email,
  6678. System.DateTime Дата_регистрации,
  6679. int Original_ID,
  6680. string Original_Фамилия,
  6681. string Original_Имя,
  6682. string Original_Отчество,
  6683. int Original_Пол,
  6684. string Original_Телефон,
  6685. System.DateTime Original_Дата_рождения,
  6686. string Original_Email,
  6687. System.DateTime Original_Дата_регистрации,
  6688. int ID) {
  6689. if ((Фамилия == null)) {
  6690. throw new global::System.ArgumentNullException("Фамилия");
  6691. }
  6692. else {
  6693. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Фамилия));
  6694. }
  6695. if ((Имя == null)) {
  6696. throw new global::System.ArgumentNullException("Имя");
  6697. }
  6698. else {
  6699. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Имя));
  6700. }
  6701. if ((Отчество == null)) {
  6702. throw new global::System.ArgumentNullException("Отчество");
  6703. }
  6704. else {
  6705. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Отчество));
  6706. }
  6707. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Пол));
  6708. if ((Телефон == null)) {
  6709. throw new global::System.ArgumentNullException("Телефон");
  6710. }
  6711. else {
  6712. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Телефон));
  6713. }
  6714. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(Дата_рождения));
  6715. if ((Email == null)) {
  6716. throw new global::System.ArgumentNullException("Email");
  6717. }
  6718. else {
  6719. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Email));
  6720. }
  6721. this.Adapter.UpdateCommand.Parameters[7].Value = ((System.DateTime)(Дата_регистрации));
  6722. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_ID));
  6723. if ((Original_Фамилия == null)) {
  6724. throw new global::System.ArgumentNullException("Original_Фамилия");
  6725. }
  6726. else {
  6727. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Фамилия));
  6728. }
  6729. if ((Original_Имя == null)) {
  6730. throw new global::System.ArgumentNullException("Original_Имя");
  6731. }
  6732. else {
  6733. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Имя));
  6734. }
  6735. if ((Original_Отчество == null)) {
  6736. throw new global::System.ArgumentNullException("Original_Отчество");
  6737. }
  6738. else {
  6739. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Отчество));
  6740. }
  6741. this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_Пол));
  6742. if ((Original_Телефон == null)) {
  6743. throw new global::System.ArgumentNullException("Original_Телефон");
  6744. }
  6745. else {
  6746. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_Телефон));
  6747. }
  6748. this.Adapter.UpdateCommand.Parameters[14].Value = ((System.DateTime)(Original_Дата_рождения));
  6749. if ((Original_Email == null)) {
  6750. throw new global::System.ArgumentNullException("Original_Email");
  6751. }
  6752. else {
  6753. this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_Email));
  6754. }
  6755. this.Adapter.UpdateCommand.Parameters[16].Value = ((System.DateTime)(Original_Дата_регистрации));
  6756. this.Adapter.UpdateCommand.Parameters[17].Value = ((int)(ID));
  6757. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6758. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6759. != global::System.Data.ConnectionState.Open)) {
  6760. this.Adapter.UpdateCommand.Connection.Open();
  6761. }
  6762. try {
  6763. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6764. return returnValue;
  6765. }
  6766. finally {
  6767. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6768. this.Adapter.UpdateCommand.Connection.Close();
  6769. }
  6770. }
  6771. }
  6772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6774. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6775. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6776. public virtual int Update(
  6777. string Фамилия,
  6778. string Имя,
  6779. string Отчество,
  6780. int Пол,
  6781. string Телефон,
  6782. System.DateTime Дата_рождения,
  6783. string Email,
  6784. System.DateTime Дата_регистрации,
  6785. int Original_ID,
  6786. string Original_Фамилия,
  6787. string Original_Имя,
  6788. string Original_Отчество,
  6789. int Original_Пол,
  6790. string Original_Телефон,
  6791. System.DateTime Original_Дата_рождения,
  6792. string Original_Email,
  6793. System.DateTime Original_Дата_регистрации) {
  6794. return this.Update(Фамилия, Имя, Отчество, Пол, Телефон, Дата_рождения, Email, Дата_регистрации, Original_ID, Original_Фамилия, Original_Имя, Original_Отчество, Original_Пол, Original_Телефон, Original_Дата_рождения, Original_Email, Original_Дата_регистрации, Original_ID);
  6795. }
  6796. }
  6797. /// <summary>
  6798. ///Represents the connection and commands used to retrieve and save data.
  6799. ///</summary>
  6800. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6801. [global::System.ComponentModel.ToolboxItem(true)]
  6802. [global::System.ComponentModel.DataObjectAttribute(true)]
  6803. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6804. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6805. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6806. public partial class ClientServiceTableAdapter : global::System.ComponentModel.Component {
  6807. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6808. private global::System.Data.SqlClient.SqlConnection _connection;
  6809. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6810. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6811. private bool _clearBeforeFill;
  6812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6814. public ClientServiceTableAdapter() {
  6815. this.ClearBeforeFill = true;
  6816. }
  6817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6818. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6819. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6820. get {
  6821. if ((this._adapter == null)) {
  6822. this.InitAdapter();
  6823. }
  6824. return this._adapter;
  6825. }
  6826. }
  6827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6829. internal global::System.Data.SqlClient.SqlConnection Connection {
  6830. get {
  6831. if ((this._connection == null)) {
  6832. this.InitConnection();
  6833. }
  6834. return this._connection;
  6835. }
  6836. set {
  6837. this._connection = value;
  6838. if ((this.Adapter.InsertCommand != null)) {
  6839. this.Adapter.InsertCommand.Connection = value;
  6840. }
  6841. if ((this.Adapter.DeleteCommand != null)) {
  6842. this.Adapter.DeleteCommand.Connection = value;
  6843. }
  6844. if ((this.Adapter.UpdateCommand != null)) {
  6845. this.Adapter.UpdateCommand.Connection = value;
  6846. }
  6847. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6848. if ((this.CommandCollection[i] != null)) {
  6849. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6850. }
  6851. }
  6852. }
  6853. }
  6854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6856. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6857. get {
  6858. return this._transaction;
  6859. }
  6860. set {
  6861. this._transaction = value;
  6862. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6863. this.CommandCollection[i].Transaction = this._transaction;
  6864. }
  6865. if (((this.Adapter != null)
  6866. && (this.Adapter.DeleteCommand != null))) {
  6867. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6868. }
  6869. if (((this.Adapter != null)
  6870. && (this.Adapter.InsertCommand != null))) {
  6871. this.Adapter.InsertCommand.Transaction = this._transaction;
  6872. }
  6873. if (((this.Adapter != null)
  6874. && (this.Adapter.UpdateCommand != null))) {
  6875. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6876. }
  6877. }
  6878. }
  6879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6881. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6882. get {
  6883. if ((this._commandCollection == null)) {
  6884. this.InitCommandCollection();
  6885. }
  6886. return this._commandCollection;
  6887. }
  6888. }
  6889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6891. public bool ClearBeforeFill {
  6892. get {
  6893. return this._clearBeforeFill;
  6894. }
  6895. set {
  6896. this._clearBeforeFill = value;
  6897. }
  6898. }
  6899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6901. private void InitAdapter() {
  6902. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6903. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6904. tableMapping.SourceTable = "Table";
  6905. tableMapping.DataSetTable = "ClientService";
  6906. tableMapping.ColumnMappings.Add("ID", "ID");
  6907. tableMapping.ColumnMappings.Add("Услуга", "Услуга");
  6908. tableMapping.ColumnMappings.Add("Дата", "Дата");
  6909. tableMapping.ColumnMappings.Add("Клиент", "Клиент");
  6910. tableMapping.ColumnMappings.Add("Comment", "Comment");
  6911. this._adapter.TableMappings.Add(tableMapping);
  6912. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6913. this._adapter.DeleteCommand.Connection = this.Connection;
  6914. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ClientService] WHERE (([ID] = @Original_ID) AND ([Услуга] = @O" +
  6915. "riginal_Услуга) AND ([Дата] = @Original_Дата) AND ([Клиент] = @Original_Клиент))" +
  6916. "";
  6917. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6918. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6919. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Услуга", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Услуга", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6920. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6921. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Клиент", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Клиент", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6922. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6923. this._adapter.InsertCommand.Connection = this.Connection;
  6924. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ClientService] ([Услуга], [Дата], [Клиент], [Comment]) VALUES " +
  6925. "(@Услуга, @Дата, @Клиент, @Comment);\r\nSELECT ID, Услуга, Дата, Клиент, Comment F" +
  6926. "ROM ClientService WHERE (ID = SCOPE_IDENTITY())";
  6927. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6928. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Услуга", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Услуга", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6929. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6930. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Клиент", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Клиент", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6931. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Comment", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Comment", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6932. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6933. this._adapter.UpdateCommand.Connection = this.Connection;
  6934. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ClientService] SET [Услуга] = @Услуга, [Дата] = @Дата, [Клиент] = @Клиент, [Comment] = @Comment WHERE (([ID] = @Original_ID) AND ([Услуга] = @Original_Услуга) AND ([Дата] = @Original_Дата) AND ([Клиент] = @Original_Клиент));
  6935. SELECT ID, Услуга, Дата, Клиент, Comment FROM ClientService WHERE (ID = @ID)";
  6936. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6937. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Услуга", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Услуга", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6938. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6939. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Клиент", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Клиент", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6940. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Comment", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Comment", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6941. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6942. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Услуга", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Услуга", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6943. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6944. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Клиент", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Клиент", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6945. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6946. }
  6947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6949. private void InitConnection() {
  6950. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6951. this._connection.ConnectionString = global::Khaustov_ProbniyDE.Properties.Settings.Default.Хаустов_ПробныйДЭConnectionString;
  6952. }
  6953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6955. private void InitCommandCollection() {
  6956. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6957. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6958. this._commandCollection[0].Connection = this.Connection;
  6959. this._commandCollection[0].CommandText = "SELECT ID, Услуга, Дата, Клиент, Comment FROM dbo.ClientService";
  6960. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6961. }
  6962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6964. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6965. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6966. public virtual int Fill(Хаустов_ПробныйДЭDataSet.ClientServiceDataTable dataTable) {
  6967. this.Adapter.SelectCommand = this.CommandCollection[0];
  6968. if ((this.ClearBeforeFill == true)) {
  6969. dataTable.Clear();
  6970. }
  6971. int returnValue = this.Adapter.Fill(dataTable);
  6972. return returnValue;
  6973. }
  6974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6976. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6977. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6978. public virtual Хаустов_ПробныйДЭDataSet.ClientServiceDataTable GetData() {
  6979. this.Adapter.SelectCommand = this.CommandCollection[0];
  6980. Хаустов_ПробныйДЭDataSet.ClientServiceDataTable dataTable = new Хаустов_ПробныйДЭDataSet.ClientServiceDataTable();
  6981. this.Adapter.Fill(dataTable);
  6982. return dataTable;
  6983. }
  6984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6986. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6987. public virtual int Update(Хаустов_ПробныйДЭDataSet.ClientServiceDataTable dataTable) {
  6988. return this.Adapter.Update(dataTable);
  6989. }
  6990. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6991. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6992. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6993. public virtual int Update(Хаустов_ПробныйДЭDataSet dataSet) {
  6994. return this.Adapter.Update(dataSet, "ClientService");
  6995. }
  6996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6998. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6999. public virtual int Update(global::System.Data.DataRow dataRow) {
  7000. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7001. dataRow});
  7002. }
  7003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7005. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7006. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7007. return this.Adapter.Update(dataRows);
  7008. }
  7009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7011. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7012. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7013. public virtual int Delete(int Original_ID, int Original_Услуга, System.DateTime Original_Дата, int Original_Клиент) {
  7014. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  7015. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_Услуга));
  7016. this.Adapter.DeleteCommand.Parameters[2].Value = ((System.DateTime)(Original_Дата));
  7017. this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_Клиент));
  7018. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7019. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7020. != global::System.Data.ConnectionState.Open)) {
  7021. this.Adapter.DeleteCommand.Connection.Open();
  7022. }
  7023. try {
  7024. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7025. return returnValue;
  7026. }
  7027. finally {
  7028. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7029. this.Adapter.DeleteCommand.Connection.Close();
  7030. }
  7031. }
  7032. }
  7033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7034. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7035. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7036. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7037. public virtual int Insert(int Услуга, System.DateTime Дата, int Клиент, string Comment) {
  7038. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Услуга));
  7039. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(Дата));
  7040. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Клиент));
  7041. if ((Comment == null)) {
  7042. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  7043. }
  7044. else {
  7045. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Comment));
  7046. }
  7047. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7048. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7049. != global::System.Data.ConnectionState.Open)) {
  7050. this.Adapter.InsertCommand.Connection.Open();
  7051. }
  7052. try {
  7053. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7054. return returnValue;
  7055. }
  7056. finally {
  7057. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7058. this.Adapter.InsertCommand.Connection.Close();
  7059. }
  7060. }
  7061. }
  7062. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7063. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7064. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7065. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7066. public virtual int Update(int Услуга, System.DateTime Дата, int Клиент, string Comment, int Original_ID, int Original_Услуга, System.DateTime Original_Дата, int Original_Клиент, int ID) {
  7067. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(Услуга));
  7068. this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(Дата));
  7069. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Клиент));
  7070. if ((Comment == null)) {
  7071. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  7072. }
  7073. else {
  7074. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Comment));
  7075. }
  7076. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_ID));
  7077. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_Услуга));
  7078. this.Adapter.UpdateCommand.Parameters[6].Value = ((System.DateTime)(Original_Дата));
  7079. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_Клиент));
  7080. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(ID));
  7081. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7082. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7083. != global::System.Data.ConnectionState.Open)) {
  7084. this.Adapter.UpdateCommand.Connection.Open();
  7085. }
  7086. try {
  7087. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7088. return returnValue;
  7089. }
  7090. finally {
  7091. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7092. this.Adapter.UpdateCommand.Connection.Close();
  7093. }
  7094. }
  7095. }
  7096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7098. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7099. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7100. public virtual int Update(int Услуга, System.DateTime Дата, int Клиент, string Comment, int Original_ID, int Original_Услуга, System.DateTime Original_Дата, int Original_Клиент) {
  7101. return this.Update(Услуга, Дата, Клиент, Comment, Original_ID, Original_Услуга, Original_Дата, Original_Клиент, Original_ID);
  7102. }
  7103. }
  7104. /// <summary>
  7105. ///Represents the connection and commands used to retrieve and save data.
  7106. ///</summary>
  7107. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7108. [global::System.ComponentModel.ToolboxItem(true)]
  7109. [global::System.ComponentModel.DataObjectAttribute(true)]
  7110. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7111. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7112. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7113. public partial class DocumentByServiceTableAdapter : global::System.ComponentModel.Component {
  7114. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7115. private global::System.Data.SqlClient.SqlConnection _connection;
  7116. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7117. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7118. private bool _clearBeforeFill;
  7119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7121. public DocumentByServiceTableAdapter() {
  7122. this.ClearBeforeFill = true;
  7123. }
  7124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7126. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7127. get {
  7128. if ((this._adapter == null)) {
  7129. this.InitAdapter();
  7130. }
  7131. return this._adapter;
  7132. }
  7133. }
  7134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7136. internal global::System.Data.SqlClient.SqlConnection Connection {
  7137. get {
  7138. if ((this._connection == null)) {
  7139. this.InitConnection();
  7140. }
  7141. return this._connection;
  7142. }
  7143. set {
  7144. this._connection = value;
  7145. if ((this.Adapter.InsertCommand != null)) {
  7146. this.Adapter.InsertCommand.Connection = value;
  7147. }
  7148. if ((this.Adapter.DeleteCommand != null)) {
  7149. this.Adapter.DeleteCommand.Connection = value;
  7150. }
  7151. if ((this.Adapter.UpdateCommand != null)) {
  7152. this.Adapter.UpdateCommand.Connection = value;
  7153. }
  7154. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7155. if ((this.CommandCollection[i] != null)) {
  7156. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7157. }
  7158. }
  7159. }
  7160. }
  7161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7162. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7163. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7164. get {
  7165. return this._transaction;
  7166. }
  7167. set {
  7168. this._transaction = value;
  7169. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7170. this.CommandCollection[i].Transaction = this._transaction;
  7171. }
  7172. if (((this.Adapter != null)
  7173. && (this.Adapter.DeleteCommand != null))) {
  7174. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7175. }
  7176. if (((this.Adapter != null)
  7177. && (this.Adapter.InsertCommand != null))) {
  7178. this.Adapter.InsertCommand.Transaction = this._transaction;
  7179. }
  7180. if (((this.Adapter != null)
  7181. && (this.Adapter.UpdateCommand != null))) {
  7182. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7183. }
  7184. }
  7185. }
  7186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7188. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7189. get {
  7190. if ((this._commandCollection == null)) {
  7191. this.InitCommandCollection();
  7192. }
  7193. return this._commandCollection;
  7194. }
  7195. }
  7196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7198. public bool ClearBeforeFill {
  7199. get {
  7200. return this._clearBeforeFill;
  7201. }
  7202. set {
  7203. this._clearBeforeFill = value;
  7204. }
  7205. }
  7206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7208. private void InitAdapter() {
  7209. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7210. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7211. tableMapping.SourceTable = "Table";
  7212. tableMapping.DataSetTable = "DocumentByService";
  7213. tableMapping.ColumnMappings.Add("ID", "ID");
  7214. tableMapping.ColumnMappings.Add("ClientServiceID", "ClientServiceID");
  7215. tableMapping.ColumnMappings.Add("DocumentPath", "DocumentPath");
  7216. this._adapter.TableMappings.Add(tableMapping);
  7217. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7218. this._adapter.DeleteCommand.Connection = this.Connection;
  7219. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[DocumentByService] WHERE (([ID] = @Original_ID) AND ([ClientSe" +
  7220. "rviceID] = @Original_ClientServiceID) AND ([DocumentPath] = @Original_DocumentPa" +
  7221. "th))";
  7222. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7223. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7224. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientServiceID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7225. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DocumentPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DocumentPath", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7226. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7227. this._adapter.InsertCommand.Connection = this.Connection;
  7228. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[DocumentByService] ([ClientServiceID], [DocumentPath]) VALUES " +
  7229. "(@ClientServiceID, @DocumentPath);\r\nSELECT ID, ClientServiceID, DocumentPath FRO" +
  7230. "M DocumentByService WHERE (ID = SCOPE_IDENTITY())";
  7231. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7232. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientServiceID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7233. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DocumentPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DocumentPath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7234. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7235. this._adapter.UpdateCommand.Connection = this.Connection;
  7236. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[DocumentByService] SET [ClientServiceID] = @ClientServiceID, [DocumentPath] = @DocumentPath WHERE (([ID] = @Original_ID) AND ([ClientServiceID] = @Original_ClientServiceID) AND ([DocumentPath] = @Original_DocumentPath));
  7237. SELECT ID, ClientServiceID, DocumentPath FROM DocumentByService WHERE (ID = @ID)";
  7238. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7239. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientServiceID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7240. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DocumentPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DocumentPath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7241. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7242. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientServiceID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7243. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DocumentPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DocumentPath", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7244. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7245. }
  7246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7248. private void InitConnection() {
  7249. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7250. this._connection.ConnectionString = global::Khaustov_ProbniyDE.Properties.Settings.Default.Хаустов_ПробныйДЭConnectionString;
  7251. }
  7252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7254. private void InitCommandCollection() {
  7255. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7256. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7257. this._commandCollection[0].Connection = this.Connection;
  7258. this._commandCollection[0].CommandText = "SELECT ID, ClientServiceID, DocumentPath FROM dbo.DocumentByService";
  7259. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7260. }
  7261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7263. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7264. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7265. public virtual int Fill(Хаустов_ПробныйДЭDataSet.DocumentByServiceDataTable dataTable) {
  7266. this.Adapter.SelectCommand = this.CommandCollection[0];
  7267. if ((this.ClearBeforeFill == true)) {
  7268. dataTable.Clear();
  7269. }
  7270. int returnValue = this.Adapter.Fill(dataTable);
  7271. return returnValue;
  7272. }
  7273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7275. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7276. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7277. public virtual Хаустов_ПробныйДЭDataSet.DocumentByServiceDataTable GetData() {
  7278. this.Adapter.SelectCommand = this.CommandCollection[0];
  7279. Хаустов_ПробныйДЭDataSet.DocumentByServiceDataTable dataTable = new Хаустов_ПробныйДЭDataSet.DocumentByServiceDataTable();
  7280. this.Adapter.Fill(dataTable);
  7281. return dataTable;
  7282. }
  7283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7285. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7286. public virtual int Update(Хаустов_ПробныйДЭDataSet.DocumentByServiceDataTable dataTable) {
  7287. return this.Adapter.Update(dataTable);
  7288. }
  7289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7291. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7292. public virtual int Update(Хаустов_ПробныйДЭDataSet dataSet) {
  7293. return this.Adapter.Update(dataSet, "DocumentByService");
  7294. }
  7295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7297. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7298. public virtual int Update(global::System.Data.DataRow dataRow) {
  7299. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7300. dataRow});
  7301. }
  7302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7304. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7305. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7306. return this.Adapter.Update(dataRows);
  7307. }
  7308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7310. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7311. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7312. public virtual int Delete(int Original_ID, int Original_ClientServiceID, string Original_DocumentPath) {
  7313. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  7314. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ClientServiceID));
  7315. if ((Original_DocumentPath == null)) {
  7316. throw new global::System.ArgumentNullException("Original_DocumentPath");
  7317. }
  7318. else {
  7319. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_DocumentPath));
  7320. }
  7321. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7322. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7323. != global::System.Data.ConnectionState.Open)) {
  7324. this.Adapter.DeleteCommand.Connection.Open();
  7325. }
  7326. try {
  7327. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7328. return returnValue;
  7329. }
  7330. finally {
  7331. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7332. this.Adapter.DeleteCommand.Connection.Close();
  7333. }
  7334. }
  7335. }
  7336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7338. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7339. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7340. public virtual int Insert(int ClientServiceID, string DocumentPath) {
  7341. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ClientServiceID));
  7342. if ((DocumentPath == null)) {
  7343. throw new global::System.ArgumentNullException("DocumentPath");
  7344. }
  7345. else {
  7346. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DocumentPath));
  7347. }
  7348. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7349. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7350. != global::System.Data.ConnectionState.Open)) {
  7351. this.Adapter.InsertCommand.Connection.Open();
  7352. }
  7353. try {
  7354. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7355. return returnValue;
  7356. }
  7357. finally {
  7358. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7359. this.Adapter.InsertCommand.Connection.Close();
  7360. }
  7361. }
  7362. }
  7363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7365. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7366. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7367. public virtual int Update(int ClientServiceID, string DocumentPath, int Original_ID, int Original_ClientServiceID, string Original_DocumentPath, int ID) {
  7368. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ClientServiceID));
  7369. if ((DocumentPath == null)) {
  7370. throw new global::System.ArgumentNullException("DocumentPath");
  7371. }
  7372. else {
  7373. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DocumentPath));
  7374. }
  7375. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  7376. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ClientServiceID));
  7377. if ((Original_DocumentPath == null)) {
  7378. throw new global::System.ArgumentNullException("Original_DocumentPath");
  7379. }
  7380. else {
  7381. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_DocumentPath));
  7382. }
  7383. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  7384. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7385. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7386. != global::System.Data.ConnectionState.Open)) {
  7387. this.Adapter.UpdateCommand.Connection.Open();
  7388. }
  7389. try {
  7390. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7391. return returnValue;
  7392. }
  7393. finally {
  7394. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7395. this.Adapter.UpdateCommand.Connection.Close();
  7396. }
  7397. }
  7398. }
  7399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7401. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7402. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7403. public virtual int Update(int ClientServiceID, string DocumentPath, int Original_ID, int Original_ClientServiceID, string Original_DocumentPath) {
  7404. return this.Update(ClientServiceID, DocumentPath, Original_ID, Original_ClientServiceID, Original_DocumentPath, Original_ID);
  7405. }
  7406. }
  7407. /// <summary>
  7408. ///Represents the connection and commands used to retrieve and save data.
  7409. ///</summary>
  7410. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7411. [global::System.ComponentModel.ToolboxItem(true)]
  7412. [global::System.ComponentModel.DataObjectAttribute(true)]
  7413. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7414. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7415. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7416. public partial class GenderTableAdapter : global::System.ComponentModel.Component {
  7417. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7418. private global::System.Data.SqlClient.SqlConnection _connection;
  7419. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7420. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7421. private bool _clearBeforeFill;
  7422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7423. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7424. public GenderTableAdapter() {
  7425. this.ClearBeforeFill = true;
  7426. }
  7427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7429. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7430. get {
  7431. if ((this._adapter == null)) {
  7432. this.InitAdapter();
  7433. }
  7434. return this._adapter;
  7435. }
  7436. }
  7437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7439. internal global::System.Data.SqlClient.SqlConnection Connection {
  7440. get {
  7441. if ((this._connection == null)) {
  7442. this.InitConnection();
  7443. }
  7444. return this._connection;
  7445. }
  7446. set {
  7447. this._connection = value;
  7448. if ((this.Adapter.InsertCommand != null)) {
  7449. this.Adapter.InsertCommand.Connection = value;
  7450. }
  7451. if ((this.Adapter.DeleteCommand != null)) {
  7452. this.Adapter.DeleteCommand.Connection = value;
  7453. }
  7454. if ((this.Adapter.UpdateCommand != null)) {
  7455. this.Adapter.UpdateCommand.Connection = value;
  7456. }
  7457. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7458. if ((this.CommandCollection[i] != null)) {
  7459. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7460. }
  7461. }
  7462. }
  7463. }
  7464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7466. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7467. get {
  7468. return this._transaction;
  7469. }
  7470. set {
  7471. this._transaction = value;
  7472. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7473. this.CommandCollection[i].Transaction = this._transaction;
  7474. }
  7475. if (((this.Adapter != null)
  7476. && (this.Adapter.DeleteCommand != null))) {
  7477. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7478. }
  7479. if (((this.Adapter != null)
  7480. && (this.Adapter.InsertCommand != null))) {
  7481. this.Adapter.InsertCommand.Transaction = this._transaction;
  7482. }
  7483. if (((this.Adapter != null)
  7484. && (this.Adapter.UpdateCommand != null))) {
  7485. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7486. }
  7487. }
  7488. }
  7489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7491. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7492. get {
  7493. if ((this._commandCollection == null)) {
  7494. this.InitCommandCollection();
  7495. }
  7496. return this._commandCollection;
  7497. }
  7498. }
  7499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7500. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7501. public bool ClearBeforeFill {
  7502. get {
  7503. return this._clearBeforeFill;
  7504. }
  7505. set {
  7506. this._clearBeforeFill = value;
  7507. }
  7508. }
  7509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7511. private void InitAdapter() {
  7512. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7513. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7514. tableMapping.SourceTable = "Table";
  7515. tableMapping.DataSetTable = "Gender";
  7516. tableMapping.ColumnMappings.Add("Code", "Code");
  7517. tableMapping.ColumnMappings.Add("Name", "Name");
  7518. this._adapter.TableMappings.Add(tableMapping);
  7519. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7520. this._adapter.DeleteCommand.Connection = this.Connection;
  7521. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Gender] WHERE (([Code] = @Original_Code) AND ((@IsNull_Name = " +
  7522. "1 AND [Name] IS NULL) OR ([Name] = @Original_Name)))";
  7523. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7524. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Code", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7525. 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, "", "", ""));
  7526. 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, "", "", ""));
  7527. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7528. this._adapter.InsertCommand.Connection = this.Connection;
  7529. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Gender] ([Code], [Name]) VALUES (@Code, @Name);\r\nSELECT Code, " +
  7530. "Name FROM Gender WHERE (Code = @Code)";
  7531. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7532. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Code", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7533. 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, "", "", ""));
  7534. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7535. this._adapter.UpdateCommand.Connection = this.Connection;
  7536. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Gender] SET [Code] = @Code, [Name] = @Name WHERE (([Code] = @Origin" +
  7537. "al_Code) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)" +
  7538. "));\r\nSELECT Code, Name FROM Gender WHERE (Code = @Code)";
  7539. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7540. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Code", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7541. 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, "", "", ""));
  7542. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Code", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7543. 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, "", "", ""));
  7544. 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, "", "", ""));
  7545. }
  7546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7548. private void InitConnection() {
  7549. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7550. this._connection.ConnectionString = global::Khaustov_ProbniyDE.Properties.Settings.Default.Хаустов_ПробныйДЭConnectionString;
  7551. }
  7552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7554. private void InitCommandCollection() {
  7555. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7556. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7557. this._commandCollection[0].Connection = this.Connection;
  7558. this._commandCollection[0].CommandText = "SELECT Code, Name FROM dbo.Gender";
  7559. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7560. }
  7561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7563. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7564. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7565. public virtual int Fill(Хаустов_ПробныйДЭDataSet.GenderDataTable dataTable) {
  7566. this.Adapter.SelectCommand = this.CommandCollection[0];
  7567. if ((this.ClearBeforeFill == true)) {
  7568. dataTable.Clear();
  7569. }
  7570. int returnValue = this.Adapter.Fill(dataTable);
  7571. return returnValue;
  7572. }
  7573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7575. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7576. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7577. public virtual Хаустов_ПробныйДЭDataSet.GenderDataTable GetData() {
  7578. this.Adapter.SelectCommand = this.CommandCollection[0];
  7579. Хаустов_ПробныйДЭDataSet.GenderDataTable dataTable = new Хаустов_ПробныйДЭDataSet.GenderDataTable();
  7580. this.Adapter.Fill(dataTable);
  7581. return dataTable;
  7582. }
  7583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7585. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7586. public virtual int Update(Хаустов_ПробныйДЭDataSet.GenderDataTable dataTable) {
  7587. return this.Adapter.Update(dataTable);
  7588. }
  7589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7591. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7592. public virtual int Update(Хаустов_ПробныйДЭDataSet dataSet) {
  7593. return this.Adapter.Update(dataSet, "Gender");
  7594. }
  7595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7597. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7598. public virtual int Update(global::System.Data.DataRow dataRow) {
  7599. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7600. dataRow});
  7601. }
  7602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7604. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7605. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7606. return this.Adapter.Update(dataRows);
  7607. }
  7608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7610. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7611. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7612. public virtual int Delete(int Original_Code, string Original_Name) {
  7613. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Code));
  7614. if ((Original_Name == null)) {
  7615. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7616. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7617. }
  7618. else {
  7619. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7620. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Name));
  7621. }
  7622. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7623. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7624. != global::System.Data.ConnectionState.Open)) {
  7625. this.Adapter.DeleteCommand.Connection.Open();
  7626. }
  7627. try {
  7628. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7629. return returnValue;
  7630. }
  7631. finally {
  7632. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7633. this.Adapter.DeleteCommand.Connection.Close();
  7634. }
  7635. }
  7636. }
  7637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7639. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7640. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7641. public virtual int Insert(int Code, string Name) {
  7642. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Code));
  7643. if ((Name == null)) {
  7644. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7645. }
  7646. else {
  7647. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Name));
  7648. }
  7649. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7650. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7651. != global::System.Data.ConnectionState.Open)) {
  7652. this.Adapter.InsertCommand.Connection.Open();
  7653. }
  7654. try {
  7655. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7656. return returnValue;
  7657. }
  7658. finally {
  7659. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7660. this.Adapter.InsertCommand.Connection.Close();
  7661. }
  7662. }
  7663. }
  7664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7666. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7667. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7668. public virtual int Update(int Code, string Name, int Original_Code, string Original_Name) {
  7669. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(Code));
  7670. if ((Name == null)) {
  7671. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7672. }
  7673. else {
  7674. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Name));
  7675. }
  7676. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_Code));
  7677. if ((Original_Name == null)) {
  7678. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  7679. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  7680. }
  7681. else {
  7682. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  7683. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Name));
  7684. }
  7685. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7686. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7687. != global::System.Data.ConnectionState.Open)) {
  7688. this.Adapter.UpdateCommand.Connection.Open();
  7689. }
  7690. try {
  7691. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7692. return returnValue;
  7693. }
  7694. finally {
  7695. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7696. this.Adapter.UpdateCommand.Connection.Close();
  7697. }
  7698. }
  7699. }
  7700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7702. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7703. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7704. public virtual int Update(string Name, int Original_Code, string Original_Name) {
  7705. return this.Update(Original_Code, Name, Original_Code, Original_Name);
  7706. }
  7707. }
  7708. /// <summary>
  7709. ///Represents the connection and commands used to retrieve and save data.
  7710. ///</summary>
  7711. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7712. [global::System.ComponentModel.ToolboxItem(true)]
  7713. [global::System.ComponentModel.DataObjectAttribute(true)]
  7714. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7715. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7716. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7717. public partial class ManufacturerTableAdapter : global::System.ComponentModel.Component {
  7718. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7719. private global::System.Data.SqlClient.SqlConnection _connection;
  7720. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7721. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7722. private bool _clearBeforeFill;
  7723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7725. public ManufacturerTableAdapter() {
  7726. this.ClearBeforeFill = true;
  7727. }
  7728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7730. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7731. get {
  7732. if ((this._adapter == null)) {
  7733. this.InitAdapter();
  7734. }
  7735. return this._adapter;
  7736. }
  7737. }
  7738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7740. internal global::System.Data.SqlClient.SqlConnection Connection {
  7741. get {
  7742. if ((this._connection == null)) {
  7743. this.InitConnection();
  7744. }
  7745. return this._connection;
  7746. }
  7747. set {
  7748. this._connection = value;
  7749. if ((this.Adapter.InsertCommand != null)) {
  7750. this.Adapter.InsertCommand.Connection = value;
  7751. }
  7752. if ((this.Adapter.DeleteCommand != null)) {
  7753. this.Adapter.DeleteCommand.Connection = value;
  7754. }
  7755. if ((this.Adapter.UpdateCommand != null)) {
  7756. this.Adapter.UpdateCommand.Connection = value;
  7757. }
  7758. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7759. if ((this.CommandCollection[i] != null)) {
  7760. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7761. }
  7762. }
  7763. }
  7764. }
  7765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7767. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7768. get {
  7769. return this._transaction;
  7770. }
  7771. set {
  7772. this._transaction = value;
  7773. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7774. this.CommandCollection[i].Transaction = this._transaction;
  7775. }
  7776. if (((this.Adapter != null)
  7777. && (this.Adapter.DeleteCommand != null))) {
  7778. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7779. }
  7780. if (((this.Adapter != null)
  7781. && (this.Adapter.InsertCommand != null))) {
  7782. this.Adapter.InsertCommand.Transaction = this._transaction;
  7783. }
  7784. if (((this.Adapter != null)
  7785. && (this.Adapter.UpdateCommand != null))) {
  7786. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7787. }
  7788. }
  7789. }
  7790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7792. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7793. get {
  7794. if ((this._commandCollection == null)) {
  7795. this.InitCommandCollection();
  7796. }
  7797. return this._commandCollection;
  7798. }
  7799. }
  7800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7802. public bool ClearBeforeFill {
  7803. get {
  7804. return this._clearBeforeFill;
  7805. }
  7806. set {
  7807. this._clearBeforeFill = value;
  7808. }
  7809. }
  7810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7812. private void InitAdapter() {
  7813. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7814. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7815. tableMapping.SourceTable = "Table";
  7816. tableMapping.DataSetTable = "Manufacturer";
  7817. tableMapping.ColumnMappings.Add("ID", "ID");
  7818. tableMapping.ColumnMappings.Add("Name", "Name");
  7819. tableMapping.ColumnMappings.Add("StartDate", "StartDate");
  7820. this._adapter.TableMappings.Add(tableMapping);
  7821. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7822. this._adapter.DeleteCommand.Connection = this.Connection;
  7823. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Manufacturer] WHERE (([ID] = @Original_ID) AND ([Name] = @Orig" +
  7824. "inal_Name) AND ((@IsNull_StartDate = 1 AND [StartDate] IS NULL) OR ([StartDate] " +
  7825. "= @Original_StartDate)))";
  7826. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7827. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7828. 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, "", "", ""));
  7829. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_StartDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7830. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_StartDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7831. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7832. this._adapter.InsertCommand.Connection = this.Connection;
  7833. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Manufacturer] ([Name], [StartDate]) VALUES (@Name, @StartDate)" +
  7834. ";\r\nSELECT ID, Name, StartDate FROM Manufacturer WHERE (ID = SCOPE_IDENTITY())";
  7835. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7836. 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, "", "", ""));
  7837. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StartDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7838. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7839. this._adapter.UpdateCommand.Connection = this.Connection;
  7840. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Manufacturer] SET [Name] = @Name, [StartDate] = @StartDate WHERE (([ID] = @Original_ID) AND ([Name] = @Original_Name) AND ((@IsNull_StartDate = 1 AND [StartDate] IS NULL) OR ([StartDate] = @Original_StartDate)));
  7841. SELECT ID, Name, StartDate FROM Manufacturer WHERE (ID = @ID)";
  7842. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7843. 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, "", "", ""));
  7844. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StartDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7845. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7846. 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, "", "", ""));
  7847. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_StartDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7848. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_StartDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7849. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7850. }
  7851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7853. private void InitConnection() {
  7854. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7855. this._connection.ConnectionString = global::Khaustov_ProbniyDE.Properties.Settings.Default.Хаустов_ПробныйДЭConnectionString;
  7856. }
  7857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7859. private void InitCommandCollection() {
  7860. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7861. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7862. this._commandCollection[0].Connection = this.Connection;
  7863. this._commandCollection[0].CommandText = "SELECT ID, Name, StartDate FROM dbo.Manufacturer";
  7864. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7865. }
  7866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7868. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7869. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7870. public virtual int Fill(Хаустов_ПробныйДЭDataSet.ManufacturerDataTable dataTable) {
  7871. this.Adapter.SelectCommand = this.CommandCollection[0];
  7872. if ((this.ClearBeforeFill == true)) {
  7873. dataTable.Clear();
  7874. }
  7875. int returnValue = this.Adapter.Fill(dataTable);
  7876. return returnValue;
  7877. }
  7878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7880. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7881. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7882. public virtual Хаустов_ПробныйДЭDataSet.ManufacturerDataTable GetData() {
  7883. this.Adapter.SelectCommand = this.CommandCollection[0];
  7884. Хаустов_ПробныйДЭDataSet.ManufacturerDataTable dataTable = new Хаустов_ПробныйДЭDataSet.ManufacturerDataTable();
  7885. this.Adapter.Fill(dataTable);
  7886. return dataTable;
  7887. }
  7888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7890. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7891. public virtual int Update(Хаустов_ПробныйДЭDataSet.ManufacturerDataTable dataTable) {
  7892. return this.Adapter.Update(dataTable);
  7893. }
  7894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7896. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7897. public virtual int Update(Хаустов_ПробныйДЭDataSet dataSet) {
  7898. return this.Adapter.Update(dataSet, "Manufacturer");
  7899. }
  7900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7902. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7903. public virtual int Update(global::System.Data.DataRow dataRow) {
  7904. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7905. dataRow});
  7906. }
  7907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7909. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7910. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7911. return this.Adapter.Update(dataRows);
  7912. }
  7913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7915. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7916. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7917. public virtual int Delete(int Original_ID, string Original_Name, global::System.Nullable<global::System.DateTime> Original_StartDate) {
  7918. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  7919. if ((Original_Name == null)) {
  7920. throw new global::System.ArgumentNullException("Original_Name");
  7921. }
  7922. else {
  7923. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Name));
  7924. }
  7925. if ((Original_StartDate.HasValue == true)) {
  7926. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  7927. this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_StartDate.Value));
  7928. }
  7929. else {
  7930. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  7931. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  7932. }
  7933. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7934. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7935. != global::System.Data.ConnectionState.Open)) {
  7936. this.Adapter.DeleteCommand.Connection.Open();
  7937. }
  7938. try {
  7939. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7940. return returnValue;
  7941. }
  7942. finally {
  7943. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7944. this.Adapter.DeleteCommand.Connection.Close();
  7945. }
  7946. }
  7947. }
  7948. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7949. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7950. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7951. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7952. public virtual int Insert(string Name, global::System.Nullable<global::System.DateTime> StartDate) {
  7953. if ((Name == null)) {
  7954. throw new global::System.ArgumentNullException("Name");
  7955. }
  7956. else {
  7957. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Name));
  7958. }
  7959. if ((StartDate.HasValue == true)) {
  7960. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(StartDate.Value));
  7961. }
  7962. else {
  7963. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7964. }
  7965. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7966. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7967. != global::System.Data.ConnectionState.Open)) {
  7968. this.Adapter.InsertCommand.Connection.Open();
  7969. }
  7970. try {
  7971. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7972. return returnValue;
  7973. }
  7974. finally {
  7975. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7976. this.Adapter.InsertCommand.Connection.Close();
  7977. }
  7978. }
  7979. }
  7980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7981. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7982. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7983. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7984. public virtual int Update(string Name, global::System.Nullable<global::System.DateTime> StartDate, int Original_ID, string Original_Name, global::System.Nullable<global::System.DateTime> Original_StartDate, int ID) {
  7985. if ((Name == null)) {
  7986. throw new global::System.ArgumentNullException("Name");
  7987. }
  7988. else {
  7989. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Name));
  7990. }
  7991. if ((StartDate.HasValue == true)) {
  7992. this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(StartDate.Value));
  7993. }
  7994. else {
  7995. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7996. }
  7997. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  7998. if ((Original_Name == null)) {
  7999. throw new global::System.ArgumentNullException("Original_Name");
  8000. }
  8001. else {
  8002. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Name));
  8003. }
  8004. if ((Original_StartDate.HasValue == true)) {
  8005. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  8006. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(Original_StartDate.Value));
  8007. }
  8008. else {
  8009. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  8010. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  8011. }
  8012. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(ID));
  8013. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8014. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8015. != global::System.Data.ConnectionState.Open)) {
  8016. this.Adapter.UpdateCommand.Connection.Open();
  8017. }
  8018. try {
  8019. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8020. return returnValue;
  8021. }
  8022. finally {
  8023. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8024. this.Adapter.UpdateCommand.Connection.Close();
  8025. }
  8026. }
  8027. }
  8028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8030. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8031. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8032. public virtual int Update(string Name, global::System.Nullable<global::System.DateTime> StartDate, int Original_ID, string Original_Name, global::System.Nullable<global::System.DateTime> Original_StartDate) {
  8033. return this.Update(Name, StartDate, Original_ID, Original_Name, Original_StartDate, Original_ID);
  8034. }
  8035. }
  8036. /// <summary>
  8037. ///Represents the connection and commands used to retrieve and save data.
  8038. ///</summary>
  8039. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8040. [global::System.ComponentModel.ToolboxItem(true)]
  8041. [global::System.ComponentModel.DataObjectAttribute(true)]
  8042. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8043. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8044. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8045. public partial class ProductTableAdapter : global::System.ComponentModel.Component {
  8046. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8047. private global::System.Data.SqlClient.SqlConnection _connection;
  8048. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8049. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8050. private bool _clearBeforeFill;
  8051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8053. public ProductTableAdapter() {
  8054. this.ClearBeforeFill = true;
  8055. }
  8056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8057. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8058. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8059. get {
  8060. if ((this._adapter == null)) {
  8061. this.InitAdapter();
  8062. }
  8063. return this._adapter;
  8064. }
  8065. }
  8066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8068. internal global::System.Data.SqlClient.SqlConnection Connection {
  8069. get {
  8070. if ((this._connection == null)) {
  8071. this.InitConnection();
  8072. }
  8073. return this._connection;
  8074. }
  8075. set {
  8076. this._connection = value;
  8077. if ((this.Adapter.InsertCommand != null)) {
  8078. this.Adapter.InsertCommand.Connection = value;
  8079. }
  8080. if ((this.Adapter.DeleteCommand != null)) {
  8081. this.Adapter.DeleteCommand.Connection = value;
  8082. }
  8083. if ((this.Adapter.UpdateCommand != null)) {
  8084. this.Adapter.UpdateCommand.Connection = value;
  8085. }
  8086. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8087. if ((this.CommandCollection[i] != null)) {
  8088. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8089. }
  8090. }
  8091. }
  8092. }
  8093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8095. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8096. get {
  8097. return this._transaction;
  8098. }
  8099. set {
  8100. this._transaction = value;
  8101. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8102. this.CommandCollection[i].Transaction = this._transaction;
  8103. }
  8104. if (((this.Adapter != null)
  8105. && (this.Adapter.DeleteCommand != null))) {
  8106. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8107. }
  8108. if (((this.Adapter != null)
  8109. && (this.Adapter.InsertCommand != null))) {
  8110. this.Adapter.InsertCommand.Transaction = this._transaction;
  8111. }
  8112. if (((this.Adapter != null)
  8113. && (this.Adapter.UpdateCommand != null))) {
  8114. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8115. }
  8116. }
  8117. }
  8118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8120. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8121. get {
  8122. if ((this._commandCollection == null)) {
  8123. this.InitCommandCollection();
  8124. }
  8125. return this._commandCollection;
  8126. }
  8127. }
  8128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8130. public bool ClearBeforeFill {
  8131. get {
  8132. return this._clearBeforeFill;
  8133. }
  8134. set {
  8135. this._clearBeforeFill = value;
  8136. }
  8137. }
  8138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8140. private void InitAdapter() {
  8141. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8142. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8143. tableMapping.SourceTable = "Table";
  8144. tableMapping.DataSetTable = "Product";
  8145. tableMapping.ColumnMappings.Add("ID", "ID");
  8146. tableMapping.ColumnMappings.Add("Title", "Title");
  8147. tableMapping.ColumnMappings.Add("Cost", "Cost");
  8148. tableMapping.ColumnMappings.Add("Description", "Description");
  8149. tableMapping.ColumnMappings.Add("MainImagePath", "MainImagePath");
  8150. tableMapping.ColumnMappings.Add("IsActive", "IsActive");
  8151. tableMapping.ColumnMappings.Add("ManufacturerID", "ManufacturerID");
  8152. this._adapter.TableMappings.Add(tableMapping);
  8153. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8154. this._adapter.DeleteCommand.Connection = this.Connection;
  8155. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Product] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([Cost] = @Original_Cost) AND ((@IsNull_MainImagePath = 1 AND [MainImagePath] IS NULL) OR ([MainImagePath] = @Original_MainImagePath)) AND ([IsActive] = @Original_IsActive) AND ((@IsNull_ManufacturerID = 1 AND [ManufacturerID] IS NULL) OR ([ManufacturerID] = @Original_ManufacturerID)))";
  8156. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8157. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8158. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8159. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8160. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MainImagePath", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainImagePath", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8161. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MainImagePath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainImagePath", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8162. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IsActive", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IsActive", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8163. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ManufacturerID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ManufacturerID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8164. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ManufacturerID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ManufacturerID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8165. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8166. this._adapter.InsertCommand.Connection = this.Connection;
  8167. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Product] ([Title], [Cost], [Description], [MainImagePath], [IsActive], [ManufacturerID]) VALUES (@Title, @Cost, @Description, @MainImagePath, @IsActive, @ManufacturerID);
  8168. SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM Product WHERE (ID = SCOPE_IDENTITY())";
  8169. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8170. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8171. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8172. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Description", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Description", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8173. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MainImagePath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainImagePath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8174. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsActive", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IsActive", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8175. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ManufacturerID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ManufacturerID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8176. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8177. this._adapter.UpdateCommand.Connection = this.Connection;
  8178. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Product] SET [Title] = @Title, [Cost] = @Cost, [Description] = @Description, [MainImagePath] = @MainImagePath, [IsActive] = @IsActive, [ManufacturerID] = @ManufacturerID WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([Cost] = @Original_Cost) AND ((@IsNull_MainImagePath = 1 AND [MainImagePath] IS NULL) OR ([MainImagePath] = @Original_MainImagePath)) AND ([IsActive] = @Original_IsActive) AND ((@IsNull_ManufacturerID = 1 AND [ManufacturerID] IS NULL) OR ([ManufacturerID] = @Original_ManufacturerID)));
  8179. SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM Product WHERE (ID = @ID)";
  8180. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8181. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8182. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8183. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Description", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Description", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8184. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MainImagePath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainImagePath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8185. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsActive", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IsActive", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8186. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ManufacturerID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ManufacturerID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8187. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8188. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8189. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8190. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MainImagePath", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainImagePath", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8191. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MainImagePath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainImagePath", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8192. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IsActive", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IsActive", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8193. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ManufacturerID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ManufacturerID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8194. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ManufacturerID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ManufacturerID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8195. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8196. }
  8197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8199. private void InitConnection() {
  8200. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8201. this._connection.ConnectionString = global::Khaustov_ProbniyDE.Properties.Settings.Default.Хаустов_ПробныйДЭConnectionString;
  8202. }
  8203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8205. private void InitCommandCollection() {
  8206. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8207. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8208. this._commandCollection[0].Connection = this.Connection;
  8209. this._commandCollection[0].CommandText = "SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM" +
  8210. " dbo.Product";
  8211. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8212. }
  8213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8215. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8216. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8217. public virtual int Fill(Хаустов_ПробныйДЭDataSet.ProductDataTable dataTable) {
  8218. this.Adapter.SelectCommand = this.CommandCollection[0];
  8219. if ((this.ClearBeforeFill == true)) {
  8220. dataTable.Clear();
  8221. }
  8222. int returnValue = this.Adapter.Fill(dataTable);
  8223. return returnValue;
  8224. }
  8225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8227. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8228. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8229. public virtual Хаустов_ПробныйДЭDataSet.ProductDataTable GetData() {
  8230. this.Adapter.SelectCommand = this.CommandCollection[0];
  8231. Хаустов_ПробныйДЭDataSet.ProductDataTable dataTable = new Хаустов_ПробныйДЭDataSet.ProductDataTable();
  8232. this.Adapter.Fill(dataTable);
  8233. return dataTable;
  8234. }
  8235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8236. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8237. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8238. public virtual int Update(Хаустов_ПробныйДЭDataSet.ProductDataTable dataTable) {
  8239. return this.Adapter.Update(dataTable);
  8240. }
  8241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8243. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8244. public virtual int Update(Хаустов_ПробныйДЭDataSet dataSet) {
  8245. return this.Adapter.Update(dataSet, "Product");
  8246. }
  8247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8249. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8250. public virtual int Update(global::System.Data.DataRow dataRow) {
  8251. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8252. dataRow});
  8253. }
  8254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8255. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8256. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8257. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8258. return this.Adapter.Update(dataRows);
  8259. }
  8260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8262. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8263. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8264. public virtual int Delete(int Original_ID, string Original_Title, decimal Original_Cost, string Original_MainImagePath, bool Original_IsActive, global::System.Nullable<int> Original_ManufacturerID) {
  8265. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  8266. if ((Original_Title == null)) {
  8267. throw new global::System.ArgumentNullException("Original_Title");
  8268. }
  8269. else {
  8270. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  8271. }
  8272. this.Adapter.DeleteCommand.Parameters[2].Value = ((decimal)(Original_Cost));
  8273. if ((Original_MainImagePath == null)) {
  8274. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  8275. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  8276. }
  8277. else {
  8278. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  8279. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_MainImagePath));
  8280. }
  8281. this.Adapter.DeleteCommand.Parameters[5].Value = ((bool)(Original_IsActive));
  8282. if ((Original_ManufacturerID.HasValue == true)) {
  8283. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
  8284. this.Adapter.DeleteCommand.Parameters[7].Value = ((int)(Original_ManufacturerID.Value));
  8285. }
  8286. else {
  8287. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
  8288. this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
  8289. }
  8290. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8291. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8292. != global::System.Data.ConnectionState.Open)) {
  8293. this.Adapter.DeleteCommand.Connection.Open();
  8294. }
  8295. try {
  8296. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8297. return returnValue;
  8298. }
  8299. finally {
  8300. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8301. this.Adapter.DeleteCommand.Connection.Close();
  8302. }
  8303. }
  8304. }
  8305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8306. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8307. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8308. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8309. public virtual int Insert(string Title, decimal Cost, string Description, string MainImagePath, bool IsActive, global::System.Nullable<int> ManufacturerID) {
  8310. if ((Title == null)) {
  8311. throw new global::System.ArgumentNullException("Title");
  8312. }
  8313. else {
  8314. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  8315. }
  8316. this.Adapter.InsertCommand.Parameters[1].Value = ((decimal)(Cost));
  8317. if ((Description == null)) {
  8318. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  8319. }
  8320. else {
  8321. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Description));
  8322. }
  8323. if ((MainImagePath == null)) {
  8324. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  8325. }
  8326. else {
  8327. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(MainImagePath));
  8328. }
  8329. this.Adapter.InsertCommand.Parameters[4].Value = ((bool)(IsActive));
  8330. if ((ManufacturerID.HasValue == true)) {
  8331. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(ManufacturerID.Value));
  8332. }
  8333. else {
  8334. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  8335. }
  8336. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8337. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8338. != global::System.Data.ConnectionState.Open)) {
  8339. this.Adapter.InsertCommand.Connection.Open();
  8340. }
  8341. try {
  8342. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8343. return returnValue;
  8344. }
  8345. finally {
  8346. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8347. this.Adapter.InsertCommand.Connection.Close();
  8348. }
  8349. }
  8350. }
  8351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8352. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8353. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8354. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8355. public virtual int Update(string Title, decimal Cost, string Description, string MainImagePath, bool IsActive, global::System.Nullable<int> ManufacturerID, int Original_ID, string Original_Title, decimal Original_Cost, string Original_MainImagePath, bool Original_IsActive, global::System.Nullable<int> Original_ManufacturerID, int ID) {
  8356. if ((Title == null)) {
  8357. throw new global::System.ArgumentNullException("Title");
  8358. }
  8359. else {
  8360. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  8361. }
  8362. this.Adapter.UpdateCommand.Parameters[1].Value = ((decimal)(Cost));
  8363. if ((Description == null)) {
  8364. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  8365. }
  8366. else {
  8367. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Description));
  8368. }
  8369. if ((MainImagePath == null)) {
  8370. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8371. }
  8372. else {
  8373. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(MainImagePath));
  8374. }
  8375. this.Adapter.UpdateCommand.Parameters[4].Value = ((bool)(IsActive));
  8376. if ((ManufacturerID.HasValue == true)) {
  8377. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ManufacturerID.Value));
  8378. }
  8379. else {
  8380. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  8381. }
  8382. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ID));
  8383. if ((Original_Title == null)) {
  8384. throw new global::System.ArgumentNullException("Original_Title");
  8385. }
  8386. else {
  8387. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Title));
  8388. }
  8389. this.Adapter.UpdateCommand.Parameters[8].Value = ((decimal)(Original_Cost));
  8390. if ((Original_MainImagePath == null)) {
  8391. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  8392. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  8393. }
  8394. else {
  8395. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  8396. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_MainImagePath));
  8397. }
  8398. this.Adapter.UpdateCommand.Parameters[11].Value = ((bool)(Original_IsActive));
  8399. if ((Original_ManufacturerID.HasValue == true)) {
  8400. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  8401. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_ManufacturerID.Value));
  8402. }
  8403. else {
  8404. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  8405. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  8406. }
  8407. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(ID));
  8408. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8409. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8410. != global::System.Data.ConnectionState.Open)) {
  8411. this.Adapter.UpdateCommand.Connection.Open();
  8412. }
  8413. try {
  8414. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8415. return returnValue;
  8416. }
  8417. finally {
  8418. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8419. this.Adapter.UpdateCommand.Connection.Close();
  8420. }
  8421. }
  8422. }
  8423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8425. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8426. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8427. public virtual int Update(string Title, decimal Cost, string Description, string MainImagePath, bool IsActive, global::System.Nullable<int> ManufacturerID, int Original_ID, string Original_Title, decimal Original_Cost, string Original_MainImagePath, bool Original_IsActive, global::System.Nullable<int> Original_ManufacturerID) {
  8428. return this.Update(Title, Cost, Description, MainImagePath, IsActive, ManufacturerID, Original_ID, Original_Title, Original_Cost, Original_MainImagePath, Original_IsActive, Original_ManufacturerID, Original_ID);
  8429. }
  8430. }
  8431. /// <summary>
  8432. ///Represents the connection and commands used to retrieve and save data.
  8433. ///</summary>
  8434. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8435. [global::System.ComponentModel.ToolboxItem(true)]
  8436. [global::System.ComponentModel.DataObjectAttribute(true)]
  8437. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8438. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8439. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8440. public partial class ProductPhotoTableAdapter : global::System.ComponentModel.Component {
  8441. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8442. private global::System.Data.SqlClient.SqlConnection _connection;
  8443. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8444. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8445. private bool _clearBeforeFill;
  8446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8448. public ProductPhotoTableAdapter() {
  8449. this.ClearBeforeFill = true;
  8450. }
  8451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8453. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8454. get {
  8455. if ((this._adapter == null)) {
  8456. this.InitAdapter();
  8457. }
  8458. return this._adapter;
  8459. }
  8460. }
  8461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8463. internal global::System.Data.SqlClient.SqlConnection Connection {
  8464. get {
  8465. if ((this._connection == null)) {
  8466. this.InitConnection();
  8467. }
  8468. return this._connection;
  8469. }
  8470. set {
  8471. this._connection = value;
  8472. if ((this.Adapter.InsertCommand != null)) {
  8473. this.Adapter.InsertCommand.Connection = value;
  8474. }
  8475. if ((this.Adapter.DeleteCommand != null)) {
  8476. this.Adapter.DeleteCommand.Connection = value;
  8477. }
  8478. if ((this.Adapter.UpdateCommand != null)) {
  8479. this.Adapter.UpdateCommand.Connection = value;
  8480. }
  8481. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8482. if ((this.CommandCollection[i] != null)) {
  8483. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8484. }
  8485. }
  8486. }
  8487. }
  8488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8490. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8491. get {
  8492. return this._transaction;
  8493. }
  8494. set {
  8495. this._transaction = value;
  8496. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8497. this.CommandCollection[i].Transaction = this._transaction;
  8498. }
  8499. if (((this.Adapter != null)
  8500. && (this.Adapter.DeleteCommand != null))) {
  8501. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8502. }
  8503. if (((this.Adapter != null)
  8504. && (this.Adapter.InsertCommand != null))) {
  8505. this.Adapter.InsertCommand.Transaction = this._transaction;
  8506. }
  8507. if (((this.Adapter != null)
  8508. && (this.Adapter.UpdateCommand != null))) {
  8509. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8510. }
  8511. }
  8512. }
  8513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8515. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8516. get {
  8517. if ((this._commandCollection == null)) {
  8518. this.InitCommandCollection();
  8519. }
  8520. return this._commandCollection;
  8521. }
  8522. }
  8523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8525. public bool ClearBeforeFill {
  8526. get {
  8527. return this._clearBeforeFill;
  8528. }
  8529. set {
  8530. this._clearBeforeFill = value;
  8531. }
  8532. }
  8533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8535. private void InitAdapter() {
  8536. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8537. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8538. tableMapping.SourceTable = "Table";
  8539. tableMapping.DataSetTable = "ProductPhoto";
  8540. tableMapping.ColumnMappings.Add("ID", "ID");
  8541. tableMapping.ColumnMappings.Add("ProductID", "ProductID");
  8542. tableMapping.ColumnMappings.Add("PhotoPath", "PhotoPath");
  8543. this._adapter.TableMappings.Add(tableMapping);
  8544. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8545. this._adapter.DeleteCommand.Connection = this.Connection;
  8546. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ProductPhoto] WHERE (([ID] = @Original_ID) AND ([ProductID] = " +
  8547. "@Original_ProductID) AND ([PhotoPath] = @Original_PhotoPath))";
  8548. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8549. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8550. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8551. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PhotoPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8552. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8553. this._adapter.InsertCommand.Connection = this.Connection;
  8554. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ProductPhoto] ([ProductID], [PhotoPath]) VALUES (@ProductID, @" +
  8555. "PhotoPath);\r\nSELECT ID, ProductID, PhotoPath FROM ProductPhoto WHERE (ID = SCOPE" +
  8556. "_IDENTITY())";
  8557. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8558. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8559. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PhotoPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8560. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8561. this._adapter.UpdateCommand.Connection = this.Connection;
  8562. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ProductPhoto] SET [ProductID] = @ProductID, [PhotoPath] = @PhotoPath WHERE (([ID] = @Original_ID) AND ([ProductID] = @Original_ProductID) AND ([PhotoPath] = @Original_PhotoPath));
  8563. SELECT ID, ProductID, PhotoPath FROM ProductPhoto WHERE (ID = @ID)";
  8564. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8565. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8566. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PhotoPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8567. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8568. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8569. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PhotoPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8570. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8571. }
  8572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8574. private void InitConnection() {
  8575. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8576. this._connection.ConnectionString = global::Khaustov_ProbniyDE.Properties.Settings.Default.Хаустов_ПробныйДЭConnectionString;
  8577. }
  8578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8580. private void InitCommandCollection() {
  8581. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8582. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8583. this._commandCollection[0].Connection = this.Connection;
  8584. this._commandCollection[0].CommandText = "SELECT ID, ProductID, PhotoPath FROM dbo.ProductPhoto";
  8585. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8586. }
  8587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8589. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8590. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8591. public virtual int Fill(Хаустов_ПробныйДЭDataSet.ProductPhotoDataTable dataTable) {
  8592. this.Adapter.SelectCommand = this.CommandCollection[0];
  8593. if ((this.ClearBeforeFill == true)) {
  8594. dataTable.Clear();
  8595. }
  8596. int returnValue = this.Adapter.Fill(dataTable);
  8597. return returnValue;
  8598. }
  8599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8600. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8601. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8602. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8603. public virtual Хаустов_ПробныйДЭDataSet.ProductPhotoDataTable GetData() {
  8604. this.Adapter.SelectCommand = this.CommandCollection[0];
  8605. Хаустов_ПробныйДЭDataSet.ProductPhotoDataTable dataTable = new Хаустов_ПробныйДЭDataSet.ProductPhotoDataTable();
  8606. this.Adapter.Fill(dataTable);
  8607. return dataTable;
  8608. }
  8609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8611. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8612. public virtual int Update(Хаустов_ПробныйДЭDataSet.ProductPhotoDataTable dataTable) {
  8613. return this.Adapter.Update(dataTable);
  8614. }
  8615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8617. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8618. public virtual int Update(Хаустов_ПробныйДЭDataSet dataSet) {
  8619. return this.Adapter.Update(dataSet, "ProductPhoto");
  8620. }
  8621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8622. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8623. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8624. public virtual int Update(global::System.Data.DataRow dataRow) {
  8625. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8626. dataRow});
  8627. }
  8628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8630. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8631. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8632. return this.Adapter.Update(dataRows);
  8633. }
  8634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8636. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8637. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8638. public virtual int Delete(int Original_ID, int Original_ProductID, string Original_PhotoPath) {
  8639. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  8640. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ProductID));
  8641. if ((Original_PhotoPath == null)) {
  8642. throw new global::System.ArgumentNullException("Original_PhotoPath");
  8643. }
  8644. else {
  8645. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_PhotoPath));
  8646. }
  8647. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8648. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8649. != global::System.Data.ConnectionState.Open)) {
  8650. this.Adapter.DeleteCommand.Connection.Open();
  8651. }
  8652. try {
  8653. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8654. return returnValue;
  8655. }
  8656. finally {
  8657. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8658. this.Adapter.DeleteCommand.Connection.Close();
  8659. }
  8660. }
  8661. }
  8662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8664. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8665. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8666. public virtual int Insert(int ProductID, string PhotoPath) {
  8667. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ProductID));
  8668. if ((PhotoPath == null)) {
  8669. throw new global::System.ArgumentNullException("PhotoPath");
  8670. }
  8671. else {
  8672. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(PhotoPath));
  8673. }
  8674. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8675. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8676. != global::System.Data.ConnectionState.Open)) {
  8677. this.Adapter.InsertCommand.Connection.Open();
  8678. }
  8679. try {
  8680. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8681. return returnValue;
  8682. }
  8683. finally {
  8684. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8685. this.Adapter.InsertCommand.Connection.Close();
  8686. }
  8687. }
  8688. }
  8689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8690. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8691. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8692. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8693. public virtual int Update(int ProductID, string PhotoPath, int Original_ID, int Original_ProductID, string Original_PhotoPath, int ID) {
  8694. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ProductID));
  8695. if ((PhotoPath == null)) {
  8696. throw new global::System.ArgumentNullException("PhotoPath");
  8697. }
  8698. else {
  8699. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(PhotoPath));
  8700. }
  8701. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  8702. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ProductID));
  8703. if ((Original_PhotoPath == null)) {
  8704. throw new global::System.ArgumentNullException("Original_PhotoPath");
  8705. }
  8706. else {
  8707. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_PhotoPath));
  8708. }
  8709. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  8710. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8711. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8712. != global::System.Data.ConnectionState.Open)) {
  8713. this.Adapter.UpdateCommand.Connection.Open();
  8714. }
  8715. try {
  8716. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8717. return returnValue;
  8718. }
  8719. finally {
  8720. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8721. this.Adapter.UpdateCommand.Connection.Close();
  8722. }
  8723. }
  8724. }
  8725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8727. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8728. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8729. public virtual int Update(int ProductID, string PhotoPath, int Original_ID, int Original_ProductID, string Original_PhotoPath) {
  8730. return this.Update(ProductID, PhotoPath, Original_ID, Original_ProductID, Original_PhotoPath, Original_ID);
  8731. }
  8732. }
  8733. /// <summary>
  8734. ///Represents the connection and commands used to retrieve and save data.
  8735. ///</summary>
  8736. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8737. [global::System.ComponentModel.ToolboxItem(true)]
  8738. [global::System.ComponentModel.DataObjectAttribute(true)]
  8739. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8740. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8741. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8742. public partial class ProductSaleTableAdapter : global::System.ComponentModel.Component {
  8743. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8744. private global::System.Data.SqlClient.SqlConnection _connection;
  8745. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8746. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8747. private bool _clearBeforeFill;
  8748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8750. public ProductSaleTableAdapter() {
  8751. this.ClearBeforeFill = true;
  8752. }
  8753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8755. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8756. get {
  8757. if ((this._adapter == null)) {
  8758. this.InitAdapter();
  8759. }
  8760. return this._adapter;
  8761. }
  8762. }
  8763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8765. internal global::System.Data.SqlClient.SqlConnection Connection {
  8766. get {
  8767. if ((this._connection == null)) {
  8768. this.InitConnection();
  8769. }
  8770. return this._connection;
  8771. }
  8772. set {
  8773. this._connection = value;
  8774. if ((this.Adapter.InsertCommand != null)) {
  8775. this.Adapter.InsertCommand.Connection = value;
  8776. }
  8777. if ((this.Adapter.DeleteCommand != null)) {
  8778. this.Adapter.DeleteCommand.Connection = value;
  8779. }
  8780. if ((this.Adapter.UpdateCommand != null)) {
  8781. this.Adapter.UpdateCommand.Connection = value;
  8782. }
  8783. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8784. if ((this.CommandCollection[i] != null)) {
  8785. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8786. }
  8787. }
  8788. }
  8789. }
  8790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8792. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8793. get {
  8794. return this._transaction;
  8795. }
  8796. set {
  8797. this._transaction = value;
  8798. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8799. this.CommandCollection[i].Transaction = this._transaction;
  8800. }
  8801. if (((this.Adapter != null)
  8802. && (this.Adapter.DeleteCommand != null))) {
  8803. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8804. }
  8805. if (((this.Adapter != null)
  8806. && (this.Adapter.InsertCommand != null))) {
  8807. this.Adapter.InsertCommand.Transaction = this._transaction;
  8808. }
  8809. if (((this.Adapter != null)
  8810. && (this.Adapter.UpdateCommand != null))) {
  8811. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8812. }
  8813. }
  8814. }
  8815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8817. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8818. get {
  8819. if ((this._commandCollection == null)) {
  8820. this.InitCommandCollection();
  8821. }
  8822. return this._commandCollection;
  8823. }
  8824. }
  8825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8827. public bool ClearBeforeFill {
  8828. get {
  8829. return this._clearBeforeFill;
  8830. }
  8831. set {
  8832. this._clearBeforeFill = value;
  8833. }
  8834. }
  8835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8837. private void InitAdapter() {
  8838. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8839. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8840. tableMapping.SourceTable = "Table";
  8841. tableMapping.DataSetTable = "ProductSale";
  8842. tableMapping.ColumnMappings.Add("ID", "ID");
  8843. tableMapping.ColumnMappings.Add("SaleDate", "SaleDate");
  8844. tableMapping.ColumnMappings.Add("ProductID", "ProductID");
  8845. tableMapping.ColumnMappings.Add("Quantity", "Quantity");
  8846. tableMapping.ColumnMappings.Add("ClientServiceID", "ClientServiceID");
  8847. this._adapter.TableMappings.Add(tableMapping);
  8848. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8849. this._adapter.DeleteCommand.Connection = this.Connection;
  8850. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[ProductSale] WHERE (([ID] = @Original_ID) AND ([SaleDate] = @Original_SaleDate) AND ([ProductID] = @Original_ProductID) AND ([Quantity] = @Original_Quantity) AND ((@IsNull_ClientServiceID = 1 AND [ClientServiceID] IS NULL) OR ([ClientServiceID] = @Original_ClientServiceID)))";
  8851. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8852. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8853. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SaleDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SaleDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8854. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8855. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Quantity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantity", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8856. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ClientServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientServiceID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8857. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientServiceID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8858. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8859. this._adapter.InsertCommand.Connection = this.Connection;
  8860. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ProductSale] ([SaleDate], [ProductID], [Quantity], [ClientServ" +
  8861. "iceID]) VALUES (@SaleDate, @ProductID, @Quantity, @ClientServiceID);\r\nSELECT ID," +
  8862. " SaleDate, ProductID, Quantity, ClientServiceID FROM ProductSale WHERE (ID = SCO" +
  8863. "PE_IDENTITY())";
  8864. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8865. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SaleDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SaleDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8866. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8867. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Quantity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantity", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8868. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientServiceID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8869. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8870. this._adapter.UpdateCommand.Connection = this.Connection;
  8871. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ProductSale] SET [SaleDate] = @SaleDate, [ProductID] = @ProductID, [Quantity] = @Quantity, [ClientServiceID] = @ClientServiceID WHERE (([ID] = @Original_ID) AND ([SaleDate] = @Original_SaleDate) AND ([ProductID] = @Original_ProductID) AND ([Quantity] = @Original_Quantity) AND ((@IsNull_ClientServiceID = 1 AND [ClientServiceID] IS NULL) OR ([ClientServiceID] = @Original_ClientServiceID)));
  8872. SELECT ID, SaleDate, ProductID, Quantity, ClientServiceID FROM ProductSale WHERE (ID = @ID)";
  8873. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8874. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SaleDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SaleDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8875. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8876. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Quantity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantity", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8877. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientServiceID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8878. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8879. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SaleDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SaleDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8880. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8881. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Quantity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantity", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8882. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ClientServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientServiceID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8883. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientServiceID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8884. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8885. }
  8886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8888. private void InitConnection() {
  8889. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8890. this._connection.ConnectionString = global::Khaustov_ProbniyDE.Properties.Settings.Default.Хаустов_ПробныйДЭConnectionString;
  8891. }
  8892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8894. private void InitCommandCollection() {
  8895. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8896. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8897. this._commandCollection[0].Connection = this.Connection;
  8898. this._commandCollection[0].CommandText = "SELECT ID, SaleDate, ProductID, Quantity, ClientServiceID FROM dbo.ProductSale";
  8899. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8900. }
  8901. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8902. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8903. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8904. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8905. public virtual int Fill(Хаустов_ПробныйДЭDataSet.ProductSaleDataTable dataTable) {
  8906. this.Adapter.SelectCommand = this.CommandCollection[0];
  8907. if ((this.ClearBeforeFill == true)) {
  8908. dataTable.Clear();
  8909. }
  8910. int returnValue = this.Adapter.Fill(dataTable);
  8911. return returnValue;
  8912. }
  8913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8915. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8916. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8917. public virtual Хаустов_ПробныйДЭDataSet.ProductSaleDataTable GetData() {
  8918. this.Adapter.SelectCommand = this.CommandCollection[0];
  8919. Хаустов_ПробныйДЭDataSet.ProductSaleDataTable dataTable = new Хаустов_ПробныйДЭDataSet.ProductSaleDataTable();
  8920. this.Adapter.Fill(dataTable);
  8921. return dataTable;
  8922. }
  8923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8925. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8926. public virtual int Update(Хаустов_ПробныйДЭDataSet.ProductSaleDataTable dataTable) {
  8927. return this.Adapter.Update(dataTable);
  8928. }
  8929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8931. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8932. public virtual int Update(Хаустов_ПробныйДЭDataSet dataSet) {
  8933. return this.Adapter.Update(dataSet, "ProductSale");
  8934. }
  8935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8936. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8937. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8938. public virtual int Update(global::System.Data.DataRow dataRow) {
  8939. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8940. dataRow});
  8941. }
  8942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8944. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8945. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8946. return this.Adapter.Update(dataRows);
  8947. }
  8948. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8949. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8950. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8951. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8952. public virtual int Delete(int Original_ID, System.DateTime Original_SaleDate, int Original_ProductID, int Original_Quantity, global::System.Nullable<int> Original_ClientServiceID) {
  8953. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  8954. this.Adapter.DeleteCommand.Parameters[1].Value = ((System.DateTime)(Original_SaleDate));
  8955. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_ProductID));
  8956. this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_Quantity));
  8957. if ((Original_ClientServiceID.HasValue == true)) {
  8958. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  8959. this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_ClientServiceID.Value));
  8960. }
  8961. else {
  8962. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  8963. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  8964. }
  8965. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8966. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8967. != global::System.Data.ConnectionState.Open)) {
  8968. this.Adapter.DeleteCommand.Connection.Open();
  8969. }
  8970. try {
  8971. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8972. return returnValue;
  8973. }
  8974. finally {
  8975. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8976. this.Adapter.DeleteCommand.Connection.Close();
  8977. }
  8978. }
  8979. }
  8980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8981. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8982. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8983. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8984. public virtual int Insert(System.DateTime SaleDate, int ProductID, int Quantity, global::System.Nullable<int> ClientServiceID) {
  8985. this.Adapter.InsertCommand.Parameters[0].Value = ((System.DateTime)(SaleDate));
  8986. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ProductID));
  8987. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Quantity));
  8988. if ((ClientServiceID.HasValue == true)) {
  8989. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(ClientServiceID.Value));
  8990. }
  8991. else {
  8992. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  8993. }
  8994. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8995. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8996. != global::System.Data.ConnectionState.Open)) {
  8997. this.Adapter.InsertCommand.Connection.Open();
  8998. }
  8999. try {
  9000. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9001. return returnValue;
  9002. }
  9003. finally {
  9004. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9005. this.Adapter.InsertCommand.Connection.Close();
  9006. }
  9007. }
  9008. }
  9009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9011. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9012. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9013. public virtual int Update(System.DateTime SaleDate, int ProductID, int Quantity, global::System.Nullable<int> ClientServiceID, int Original_ID, System.DateTime Original_SaleDate, int Original_ProductID, int Original_Quantity, global::System.Nullable<int> Original_ClientServiceID, int ID) {
  9014. this.Adapter.UpdateCommand.Parameters[0].Value = ((System.DateTime)(SaleDate));
  9015. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(ProductID));
  9016. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Quantity));
  9017. if ((ClientServiceID.HasValue == true)) {
  9018. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(ClientServiceID.Value));
  9019. }
  9020. else {
  9021. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  9022. }
  9023. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_ID));
  9024. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(Original_SaleDate));
  9025. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ProductID));
  9026. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_Quantity));
  9027. if ((Original_ClientServiceID.HasValue == true)) {
  9028. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  9029. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_ClientServiceID.Value));
  9030. }
  9031. else {
  9032. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  9033. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  9034. }
  9035. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(ID));
  9036. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9037. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9038. != global::System.Data.ConnectionState.Open)) {
  9039. this.Adapter.UpdateCommand.Connection.Open();
  9040. }
  9041. try {
  9042. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9043. return returnValue;
  9044. }
  9045. finally {
  9046. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9047. this.Adapter.UpdateCommand.Connection.Close();
  9048. }
  9049. }
  9050. }
  9051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9053. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9054. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9055. public virtual int Update(System.DateTime SaleDate, int ProductID, int Quantity, global::System.Nullable<int> ClientServiceID, int Original_ID, System.DateTime Original_SaleDate, int Original_ProductID, int Original_Quantity, global::System.Nullable<int> Original_ClientServiceID) {
  9056. return this.Update(SaleDate, ProductID, Quantity, ClientServiceID, Original_ID, Original_SaleDate, Original_ProductID, Original_Quantity, Original_ClientServiceID, Original_ID);
  9057. }
  9058. }
  9059. /// <summary>
  9060. ///Represents the connection and commands used to retrieve and save data.
  9061. ///</summary>
  9062. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9063. [global::System.ComponentModel.ToolboxItem(true)]
  9064. [global::System.ComponentModel.DataObjectAttribute(true)]
  9065. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9066. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9067. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9068. public partial class ServiceTableAdapter : global::System.ComponentModel.Component {
  9069. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9070. private global::System.Data.SqlClient.SqlConnection _connection;
  9071. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9072. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9073. private bool _clearBeforeFill;
  9074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9076. public ServiceTableAdapter() {
  9077. this.ClearBeforeFill = true;
  9078. }
  9079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9081. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9082. get {
  9083. if ((this._adapter == null)) {
  9084. this.InitAdapter();
  9085. }
  9086. return this._adapter;
  9087. }
  9088. }
  9089. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9090. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9091. internal global::System.Data.SqlClient.SqlConnection Connection {
  9092. get {
  9093. if ((this._connection == null)) {
  9094. this.InitConnection();
  9095. }
  9096. return this._connection;
  9097. }
  9098. set {
  9099. this._connection = value;
  9100. if ((this.Adapter.InsertCommand != null)) {
  9101. this.Adapter.InsertCommand.Connection = value;
  9102. }
  9103. if ((this.Adapter.DeleteCommand != null)) {
  9104. this.Adapter.DeleteCommand.Connection = value;
  9105. }
  9106. if ((this.Adapter.UpdateCommand != null)) {
  9107. this.Adapter.UpdateCommand.Connection = value;
  9108. }
  9109. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9110. if ((this.CommandCollection[i] != null)) {
  9111. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9112. }
  9113. }
  9114. }
  9115. }
  9116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9118. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9119. get {
  9120. return this._transaction;
  9121. }
  9122. set {
  9123. this._transaction = value;
  9124. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9125. this.CommandCollection[i].Transaction = this._transaction;
  9126. }
  9127. if (((this.Adapter != null)
  9128. && (this.Adapter.DeleteCommand != null))) {
  9129. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9130. }
  9131. if (((this.Adapter != null)
  9132. && (this.Adapter.InsertCommand != null))) {
  9133. this.Adapter.InsertCommand.Transaction = this._transaction;
  9134. }
  9135. if (((this.Adapter != null)
  9136. && (this.Adapter.UpdateCommand != null))) {
  9137. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9138. }
  9139. }
  9140. }
  9141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9143. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9144. get {
  9145. if ((this._commandCollection == null)) {
  9146. this.InitCommandCollection();
  9147. }
  9148. return this._commandCollection;
  9149. }
  9150. }
  9151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9153. public bool ClearBeforeFill {
  9154. get {
  9155. return this._clearBeforeFill;
  9156. }
  9157. set {
  9158. this._clearBeforeFill = value;
  9159. }
  9160. }
  9161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9162. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9163. private void InitAdapter() {
  9164. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9165. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9166. tableMapping.SourceTable = "Table";
  9167. tableMapping.DataSetTable = "Service";
  9168. tableMapping.ColumnMappings.Add("ID", "ID");
  9169. tableMapping.ColumnMappings.Add("Наименование_услуги", "Наименование_услуги");
  9170. tableMapping.ColumnMappings.Add("Главное_изображение", "Главное_изображение");
  9171. tableMapping.ColumnMappings.Add("Длительность", "Длительность");
  9172. tableMapping.ColumnMappings.Add("Стоимость", "Стоимость");
  9173. tableMapping.ColumnMappings.Add("Действующая_скидка", "Действующая_скидка");
  9174. this._adapter.TableMappings.Add(tableMapping);
  9175. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9176. this._adapter.DeleteCommand.Connection = this.Connection;
  9177. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Service] WHERE (([ID] = @Original_ID) AND ([Наименование_услуги] = @Original_Наименование_услуги) AND ([Длительность] = @Original_Длительность) AND ([Стоимость] = @Original_Стоимость) AND ([Действующая_скидка] = @Original_Действующая_скидка))";
  9178. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9179. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9180. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Наименование_услуги", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование_услуги", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9181. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Длительность", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Длительность", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9182. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Стоимость", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9183. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Действующая_скидка", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_скидка", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9184. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9185. this._adapter.InsertCommand.Connection = this.Connection;
  9186. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Service] ([Наименование_услуги], [Главное_изображение], [Длительность], [Стоимость], [Действующая_скидка]) VALUES (@Наименование_услуги, @Главное_изображение, @Длительность, @Стоимость, @Действующая_скидка);
  9187. SELECT ID, Наименование_услуги, Главное_изображение, Длительность, Стоимость, Действующая_скидка FROM Service WHERE (ID = SCOPE_IDENTITY())";
  9188. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9189. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Наименование_услуги", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование_услуги", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9190. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Главное_изображение", global::System.Data.SqlDbType.VarBinary, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Главное_изображение", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9191. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Длительность", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Длительность", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9192. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Стоимость", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9193. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Действующая_скидка", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_скидка", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9194. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9195. this._adapter.UpdateCommand.Connection = this.Connection;
  9196. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Service] SET [Наименование_услуги] = @Наименование_услуги, [Главное_изображение] = @Главное_изображение, [Длительность] = @Длительность, [Стоимость] = @Стоимость, [Действующая_скидка] = @Действующая_скидка WHERE (([ID] = @Original_ID) AND ([Наименование_услуги] = @Original_Наименование_услуги) AND ([Длительность] = @Original_Длительность) AND ([Стоимость] = @Original_Стоимость) AND ([Действующая_скидка] = @Original_Действующая_скидка));
  9197. SELECT ID, Наименование_услуги, Главное_изображение, Длительность, Стоимость, Действующая_скидка FROM Service WHERE (ID = @ID)";
  9198. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9199. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Наименование_услуги", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование_услуги", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9200. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Главное_изображение", global::System.Data.SqlDbType.VarBinary, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Главное_изображение", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9201. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Длительность", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Длительность", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9202. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Стоимость", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9203. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Действующая_скидка", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_скидка", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9204. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9205. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Наименование_услуги", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование_услуги", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9206. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Длительность", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Длительность", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9207. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Стоимость", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9208. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Действующая_скидка", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_скидка", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9209. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9210. }
  9211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9213. private void InitConnection() {
  9214. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9215. this._connection.ConnectionString = global::Khaustov_ProbniyDE.Properties.Settings.Default.Хаустов_ПробныйДЭConnectionString;
  9216. }
  9217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9219. private void InitCommandCollection() {
  9220. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9221. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9222. this._commandCollection[0].Connection = this.Connection;
  9223. this._commandCollection[0].CommandText = "SELECT ID, Наименование_услуги, Главное_изображение, Длительность, Стоимость, Дей" +
  9224. "ствующая_скидка FROM dbo.Service";
  9225. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9226. }
  9227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9229. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9230. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9231. public virtual int Fill(Хаустов_ПробныйДЭDataSet.ServiceDataTable dataTable) {
  9232. this.Adapter.SelectCommand = this.CommandCollection[0];
  9233. if ((this.ClearBeforeFill == true)) {
  9234. dataTable.Clear();
  9235. }
  9236. int returnValue = this.Adapter.Fill(dataTable);
  9237. return returnValue;
  9238. }
  9239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9241. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9242. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9243. public virtual Хаустов_ПробныйДЭDataSet.ServiceDataTable GetData() {
  9244. this.Adapter.SelectCommand = this.CommandCollection[0];
  9245. Хаустов_ПробныйДЭDataSet.ServiceDataTable dataTable = new Хаустов_ПробныйДЭDataSet.ServiceDataTable();
  9246. this.Adapter.Fill(dataTable);
  9247. return dataTable;
  9248. }
  9249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9251. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9252. public virtual int Update(Хаустов_ПробныйДЭDataSet.ServiceDataTable dataTable) {
  9253. return this.Adapter.Update(dataTable);
  9254. }
  9255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9257. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9258. public virtual int Update(Хаустов_ПробныйДЭDataSet dataSet) {
  9259. return this.Adapter.Update(dataSet, "Service");
  9260. }
  9261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9263. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9264. public virtual int Update(global::System.Data.DataRow dataRow) {
  9265. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9266. dataRow});
  9267. }
  9268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9270. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9271. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9272. return this.Adapter.Update(dataRows);
  9273. }
  9274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9276. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9277. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9278. public virtual int Delete(int Original_ID, string Original_Наименование_услуги, int Original_Длительность, int Original_Стоимость, int Original_Действующая_скидка) {
  9279. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9280. if ((Original_Наименование_услуги == null)) {
  9281. throw new global::System.ArgumentNullException("Original_Наименование_услуги");
  9282. }
  9283. else {
  9284. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Наименование_услуги));
  9285. }
  9286. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_Длительность));
  9287. this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_Стоимость));
  9288. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_Действующая_скидка));
  9289. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9290. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9291. != global::System.Data.ConnectionState.Open)) {
  9292. this.Adapter.DeleteCommand.Connection.Open();
  9293. }
  9294. try {
  9295. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9296. return returnValue;
  9297. }
  9298. finally {
  9299. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9300. this.Adapter.DeleteCommand.Connection.Close();
  9301. }
  9302. }
  9303. }
  9304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9306. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9307. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9308. public virtual int Insert(string Наименование_услуги, byte[] Главное_изображение, int Длительность, int Стоимость, int Действующая_скидка) {
  9309. if ((Наименование_услуги == null)) {
  9310. throw new global::System.ArgumentNullException("Наименование_услуги");
  9311. }
  9312. else {
  9313. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Наименование_услуги));
  9314. }
  9315. if ((Главное_изображение == null)) {
  9316. throw new global::System.ArgumentNullException("Главное_изображение");
  9317. }
  9318. else {
  9319. this.Adapter.InsertCommand.Parameters[1].Value = ((byte[])(Главное_изображение));
  9320. }
  9321. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Длительность));
  9322. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Стоимость));
  9323. this.Adapter.InsertCommand.Parameters[4].Value = ((int)(Действующая_скидка));
  9324. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9325. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9326. != global::System.Data.ConnectionState.Open)) {
  9327. this.Adapter.InsertCommand.Connection.Open();
  9328. }
  9329. try {
  9330. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9331. return returnValue;
  9332. }
  9333. finally {
  9334. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9335. this.Adapter.InsertCommand.Connection.Close();
  9336. }
  9337. }
  9338. }
  9339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9341. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9342. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9343. public virtual int Update(string Наименование_услуги, byte[] Главное_изображение, int Длительность, int Стоимость, int Действующая_скидка, int Original_ID, string Original_Наименование_услуги, int Original_Длительность, int Original_Стоимость, int Original_Действующая_скидка, int ID) {
  9344. if ((Наименование_услуги == null)) {
  9345. throw new global::System.ArgumentNullException("Наименование_услуги");
  9346. }
  9347. else {
  9348. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Наименование_услуги));
  9349. }
  9350. if ((Главное_изображение == null)) {
  9351. throw new global::System.ArgumentNullException("Главное_изображение");
  9352. }
  9353. else {
  9354. this.Adapter.UpdateCommand.Parameters[1].Value = ((byte[])(Главное_изображение));
  9355. }
  9356. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Длительность));
  9357. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Стоимость));
  9358. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Действующая_скидка));
  9359. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_ID));
  9360. if ((Original_Наименование_услуги == null)) {
  9361. throw new global::System.ArgumentNullException("Original_Наименование_услуги");
  9362. }
  9363. else {
  9364. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_Наименование_услуги));
  9365. }
  9366. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_Длительность));
  9367. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_Стоимость));
  9368. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_Действующая_скидка));
  9369. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(ID));
  9370. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9371. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9372. != global::System.Data.ConnectionState.Open)) {
  9373. this.Adapter.UpdateCommand.Connection.Open();
  9374. }
  9375. try {
  9376. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9377. return returnValue;
  9378. }
  9379. finally {
  9380. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9381. this.Adapter.UpdateCommand.Connection.Close();
  9382. }
  9383. }
  9384. }
  9385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9387. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9388. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9389. public virtual int Update(string Наименование_услуги, byte[] Главное_изображение, int Длительность, int Стоимость, int Действующая_скидка, int Original_ID, string Original_Наименование_услуги, int Original_Длительность, int Original_Стоимость, int Original_Действующая_скидка) {
  9390. return this.Update(Наименование_услуги, Главное_изображение, Длительность, Стоимость, Действующая_скидка, Original_ID, Original_Наименование_услуги, Original_Длительность, Original_Стоимость, Original_Действующая_скидка, Original_ID);
  9391. }
  9392. }
  9393. /// <summary>
  9394. ///Represents the connection and commands used to retrieve and save data.
  9395. ///</summary>
  9396. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9397. [global::System.ComponentModel.ToolboxItem(true)]
  9398. [global::System.ComponentModel.DataObjectAttribute(true)]
  9399. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9400. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9401. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9402. public partial class ServicePhotoTableAdapter : global::System.ComponentModel.Component {
  9403. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9404. private global::System.Data.SqlClient.SqlConnection _connection;
  9405. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9406. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9407. private bool _clearBeforeFill;
  9408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9410. public ServicePhotoTableAdapter() {
  9411. this.ClearBeforeFill = true;
  9412. }
  9413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9415. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9416. get {
  9417. if ((this._adapter == null)) {
  9418. this.InitAdapter();
  9419. }
  9420. return this._adapter;
  9421. }
  9422. }
  9423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9425. internal global::System.Data.SqlClient.SqlConnection Connection {
  9426. get {
  9427. if ((this._connection == null)) {
  9428. this.InitConnection();
  9429. }
  9430. return this._connection;
  9431. }
  9432. set {
  9433. this._connection = value;
  9434. if ((this.Adapter.InsertCommand != null)) {
  9435. this.Adapter.InsertCommand.Connection = value;
  9436. }
  9437. if ((this.Adapter.DeleteCommand != null)) {
  9438. this.Adapter.DeleteCommand.Connection = value;
  9439. }
  9440. if ((this.Adapter.UpdateCommand != null)) {
  9441. this.Adapter.UpdateCommand.Connection = value;
  9442. }
  9443. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9444. if ((this.CommandCollection[i] != null)) {
  9445. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9446. }
  9447. }
  9448. }
  9449. }
  9450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9452. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9453. get {
  9454. return this._transaction;
  9455. }
  9456. set {
  9457. this._transaction = value;
  9458. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9459. this.CommandCollection[i].Transaction = this._transaction;
  9460. }
  9461. if (((this.Adapter != null)
  9462. && (this.Adapter.DeleteCommand != null))) {
  9463. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9464. }
  9465. if (((this.Adapter != null)
  9466. && (this.Adapter.InsertCommand != null))) {
  9467. this.Adapter.InsertCommand.Transaction = this._transaction;
  9468. }
  9469. if (((this.Adapter != null)
  9470. && (this.Adapter.UpdateCommand != null))) {
  9471. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9472. }
  9473. }
  9474. }
  9475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9477. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9478. get {
  9479. if ((this._commandCollection == null)) {
  9480. this.InitCommandCollection();
  9481. }
  9482. return this._commandCollection;
  9483. }
  9484. }
  9485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9487. public bool ClearBeforeFill {
  9488. get {
  9489. return this._clearBeforeFill;
  9490. }
  9491. set {
  9492. this._clearBeforeFill = value;
  9493. }
  9494. }
  9495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9497. private void InitAdapter() {
  9498. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9499. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9500. tableMapping.SourceTable = "Table";
  9501. tableMapping.DataSetTable = "ServicePhoto";
  9502. tableMapping.ColumnMappings.Add("ID", "ID");
  9503. tableMapping.ColumnMappings.Add("ServiceID", "ServiceID");
  9504. tableMapping.ColumnMappings.Add("PhotoPath", "PhotoPath");
  9505. this._adapter.TableMappings.Add(tableMapping);
  9506. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9507. this._adapter.DeleteCommand.Connection = this.Connection;
  9508. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ServicePhoto] WHERE (([ID] = @Original_ID) AND ([ServiceID] = " +
  9509. "@Original_ServiceID))";
  9510. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9511. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9512. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ServiceID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9513. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9514. this._adapter.InsertCommand.Connection = this.Connection;
  9515. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ServicePhoto] ([ServiceID], [PhotoPath]) VALUES (@ServiceID, @" +
  9516. "PhotoPath);\r\nSELECT ID, ServiceID, PhotoPath FROM ServicePhoto WHERE (ID = SCOPE" +
  9517. "_IDENTITY())";
  9518. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9519. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ServiceID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9520. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PhotoPath", global::System.Data.SqlDbType.VarBinary, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9521. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9522. this._adapter.UpdateCommand.Connection = this.Connection;
  9523. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[ServicePhoto] SET [ServiceID] = @ServiceID, [PhotoPath] = @PhotoPat" +
  9524. "h WHERE (([ID] = @Original_ID) AND ([ServiceID] = @Original_ServiceID));\r\nSELECT" +
  9525. " ID, ServiceID, PhotoPath FROM ServicePhoto WHERE (ID = @ID)";
  9526. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9527. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ServiceID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9528. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PhotoPath", global::System.Data.SqlDbType.VarBinary, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9529. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9530. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ServiceID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9531. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9532. }
  9533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9535. private void InitConnection() {
  9536. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9537. this._connection.ConnectionString = global::Khaustov_ProbniyDE.Properties.Settings.Default.Хаустов_ПробныйДЭConnectionString;
  9538. }
  9539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9541. private void InitCommandCollection() {
  9542. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9543. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9544. this._commandCollection[0].Connection = this.Connection;
  9545. this._commandCollection[0].CommandText = "SELECT ID, ServiceID, PhotoPath FROM dbo.ServicePhoto";
  9546. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9547. }
  9548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9549. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9550. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9551. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9552. public virtual int Fill(Хаустов_ПробныйДЭDataSet.ServicePhotoDataTable dataTable) {
  9553. this.Adapter.SelectCommand = this.CommandCollection[0];
  9554. if ((this.ClearBeforeFill == true)) {
  9555. dataTable.Clear();
  9556. }
  9557. int returnValue = this.Adapter.Fill(dataTable);
  9558. return returnValue;
  9559. }
  9560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9562. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9563. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9564. public virtual Хаустов_ПробныйДЭDataSet.ServicePhotoDataTable GetData() {
  9565. this.Adapter.SelectCommand = this.CommandCollection[0];
  9566. Хаустов_ПробныйДЭDataSet.ServicePhotoDataTable dataTable = new Хаустов_ПробныйДЭDataSet.ServicePhotoDataTable();
  9567. this.Adapter.Fill(dataTable);
  9568. return dataTable;
  9569. }
  9570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9572. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9573. public virtual int Update(Хаустов_ПробныйДЭDataSet.ServicePhotoDataTable dataTable) {
  9574. return this.Adapter.Update(dataTable);
  9575. }
  9576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9578. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9579. public virtual int Update(Хаустов_ПробныйДЭDataSet dataSet) {
  9580. return this.Adapter.Update(dataSet, "ServicePhoto");
  9581. }
  9582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9584. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9585. public virtual int Update(global::System.Data.DataRow dataRow) {
  9586. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9587. dataRow});
  9588. }
  9589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9591. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9592. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9593. return this.Adapter.Update(dataRows);
  9594. }
  9595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9597. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9598. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9599. public virtual int Delete(int Original_ID, int Original_ServiceID) {
  9600. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9601. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ServiceID));
  9602. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9603. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9604. != global::System.Data.ConnectionState.Open)) {
  9605. this.Adapter.DeleteCommand.Connection.Open();
  9606. }
  9607. try {
  9608. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9609. return returnValue;
  9610. }
  9611. finally {
  9612. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9613. this.Adapter.DeleteCommand.Connection.Close();
  9614. }
  9615. }
  9616. }
  9617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9619. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9620. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9621. public virtual int Insert(int ServiceID, byte[] PhotoPath) {
  9622. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ServiceID));
  9623. if ((PhotoPath == null)) {
  9624. throw new global::System.ArgumentNullException("PhotoPath");
  9625. }
  9626. else {
  9627. this.Adapter.InsertCommand.Parameters[1].Value = ((byte[])(PhotoPath));
  9628. }
  9629. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9630. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9631. != global::System.Data.ConnectionState.Open)) {
  9632. this.Adapter.InsertCommand.Connection.Open();
  9633. }
  9634. try {
  9635. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9636. return returnValue;
  9637. }
  9638. finally {
  9639. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9640. this.Adapter.InsertCommand.Connection.Close();
  9641. }
  9642. }
  9643. }
  9644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9646. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9647. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9648. public virtual int Update(int ServiceID, byte[] PhotoPath, int Original_ID, int Original_ServiceID, int ID) {
  9649. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ServiceID));
  9650. if ((PhotoPath == null)) {
  9651. throw new global::System.ArgumentNullException("PhotoPath");
  9652. }
  9653. else {
  9654. this.Adapter.UpdateCommand.Parameters[1].Value = ((byte[])(PhotoPath));
  9655. }
  9656. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  9657. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ServiceID));
  9658. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(ID));
  9659. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9660. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9661. != global::System.Data.ConnectionState.Open)) {
  9662. this.Adapter.UpdateCommand.Connection.Open();
  9663. }
  9664. try {
  9665. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9666. return returnValue;
  9667. }
  9668. finally {
  9669. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9670. this.Adapter.UpdateCommand.Connection.Close();
  9671. }
  9672. }
  9673. }
  9674. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9676. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9677. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9678. public virtual int Update(int ServiceID, byte[] PhotoPath, int Original_ID, int Original_ServiceID) {
  9679. return this.Update(ServiceID, PhotoPath, Original_ID, Original_ServiceID, Original_ID);
  9680. }
  9681. }
  9682. /// <summary>
  9683. ///Represents the connection and commands used to retrieve and save data.
  9684. ///</summary>
  9685. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9686. [global::System.ComponentModel.ToolboxItem(true)]
  9687. [global::System.ComponentModel.DataObjectAttribute(true)]
  9688. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9689. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9690. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9691. public partial class TagTableAdapter : global::System.ComponentModel.Component {
  9692. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9693. private global::System.Data.SqlClient.SqlConnection _connection;
  9694. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9695. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9696. private bool _clearBeforeFill;
  9697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9699. public TagTableAdapter() {
  9700. this.ClearBeforeFill = true;
  9701. }
  9702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9703. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9704. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9705. get {
  9706. if ((this._adapter == null)) {
  9707. this.InitAdapter();
  9708. }
  9709. return this._adapter;
  9710. }
  9711. }
  9712. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9713. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9714. internal global::System.Data.SqlClient.SqlConnection Connection {
  9715. get {
  9716. if ((this._connection == null)) {
  9717. this.InitConnection();
  9718. }
  9719. return this._connection;
  9720. }
  9721. set {
  9722. this._connection = value;
  9723. if ((this.Adapter.InsertCommand != null)) {
  9724. this.Adapter.InsertCommand.Connection = value;
  9725. }
  9726. if ((this.Adapter.DeleteCommand != null)) {
  9727. this.Adapter.DeleteCommand.Connection = value;
  9728. }
  9729. if ((this.Adapter.UpdateCommand != null)) {
  9730. this.Adapter.UpdateCommand.Connection = value;
  9731. }
  9732. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9733. if ((this.CommandCollection[i] != null)) {
  9734. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9735. }
  9736. }
  9737. }
  9738. }
  9739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9741. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9742. get {
  9743. return this._transaction;
  9744. }
  9745. set {
  9746. this._transaction = value;
  9747. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9748. this.CommandCollection[i].Transaction = this._transaction;
  9749. }
  9750. if (((this.Adapter != null)
  9751. && (this.Adapter.DeleteCommand != null))) {
  9752. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9753. }
  9754. if (((this.Adapter != null)
  9755. && (this.Adapter.InsertCommand != null))) {
  9756. this.Adapter.InsertCommand.Transaction = this._transaction;
  9757. }
  9758. if (((this.Adapter != null)
  9759. && (this.Adapter.UpdateCommand != null))) {
  9760. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9761. }
  9762. }
  9763. }
  9764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9766. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9767. get {
  9768. if ((this._commandCollection == null)) {
  9769. this.InitCommandCollection();
  9770. }
  9771. return this._commandCollection;
  9772. }
  9773. }
  9774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9776. public bool ClearBeforeFill {
  9777. get {
  9778. return this._clearBeforeFill;
  9779. }
  9780. set {
  9781. this._clearBeforeFill = value;
  9782. }
  9783. }
  9784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9786. private void InitAdapter() {
  9787. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9788. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9789. tableMapping.SourceTable = "Table";
  9790. tableMapping.DataSetTable = "Tag";
  9791. tableMapping.ColumnMappings.Add("ID", "ID");
  9792. tableMapping.ColumnMappings.Add("Title", "Title");
  9793. tableMapping.ColumnMappings.Add("Color", "Color");
  9794. this._adapter.TableMappings.Add(tableMapping);
  9795. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9796. this._adapter.DeleteCommand.Connection = this.Connection;
  9797. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Tag] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Tit" +
  9798. "le) AND ([Color] = @Original_Color))";
  9799. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9800. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9801. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9802. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Color", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Color", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9803. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9804. this._adapter.InsertCommand.Connection = this.Connection;
  9805. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Tag] ([Title], [Color]) VALUES (@Title, @Color);\r\nSELECT ID, T" +
  9806. "itle, Color FROM Tag WHERE (ID = SCOPE_IDENTITY())";
  9807. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9808. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9809. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Color", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Color", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9810. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9811. this._adapter.UpdateCommand.Connection = this.Connection;
  9812. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Tag] SET [Title] = @Title, [Color] = @Color WHERE (([ID] = @Origina" +
  9813. "l_ID) AND ([Title] = @Original_Title) AND ([Color] = @Original_Color));\r\nSELECT " +
  9814. "ID, Title, Color FROM Tag WHERE (ID = @ID)";
  9815. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9816. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9817. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Color", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Color", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9818. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9819. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9820. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Color", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Color", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9821. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9822. }
  9823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9825. private void InitConnection() {
  9826. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9827. this._connection.ConnectionString = global::Khaustov_ProbniyDE.Properties.Settings.Default.Хаустов_ПробныйДЭConnectionString;
  9828. }
  9829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9831. private void InitCommandCollection() {
  9832. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9833. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9834. this._commandCollection[0].Connection = this.Connection;
  9835. this._commandCollection[0].CommandText = "SELECT ID, Title, Color FROM dbo.Tag";
  9836. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9837. }
  9838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9840. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9841. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9842. public virtual int Fill(Хаустов_ПробныйДЭDataSet.TagDataTable dataTable) {
  9843. this.Adapter.SelectCommand = this.CommandCollection[0];
  9844. if ((this.ClearBeforeFill == true)) {
  9845. dataTable.Clear();
  9846. }
  9847. int returnValue = this.Adapter.Fill(dataTable);
  9848. return returnValue;
  9849. }
  9850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9852. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9853. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9854. public virtual Хаустов_ПробныйДЭDataSet.TagDataTable GetData() {
  9855. this.Adapter.SelectCommand = this.CommandCollection[0];
  9856. Хаустов_ПробныйДЭDataSet.TagDataTable dataTable = new Хаустов_ПробныйДЭDataSet.TagDataTable();
  9857. this.Adapter.Fill(dataTable);
  9858. return dataTable;
  9859. }
  9860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9862. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9863. public virtual int Update(Хаустов_ПробныйДЭDataSet.TagDataTable dataTable) {
  9864. return this.Adapter.Update(dataTable);
  9865. }
  9866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9868. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9869. public virtual int Update(Хаустов_ПробныйДЭDataSet dataSet) {
  9870. return this.Adapter.Update(dataSet, "Tag");
  9871. }
  9872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9874. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9875. public virtual int Update(global::System.Data.DataRow dataRow) {
  9876. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9877. dataRow});
  9878. }
  9879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9881. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9882. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9883. return this.Adapter.Update(dataRows);
  9884. }
  9885. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9886. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9887. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9888. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9889. public virtual int Delete(int Original_ID, string Original_Title, string Original_Color) {
  9890. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9891. if ((Original_Title == null)) {
  9892. throw new global::System.ArgumentNullException("Original_Title");
  9893. }
  9894. else {
  9895. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  9896. }
  9897. if ((Original_Color == null)) {
  9898. throw new global::System.ArgumentNullException("Original_Color");
  9899. }
  9900. else {
  9901. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Color));
  9902. }
  9903. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9904. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9905. != global::System.Data.ConnectionState.Open)) {
  9906. this.Adapter.DeleteCommand.Connection.Open();
  9907. }
  9908. try {
  9909. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9910. return returnValue;
  9911. }
  9912. finally {
  9913. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9914. this.Adapter.DeleteCommand.Connection.Close();
  9915. }
  9916. }
  9917. }
  9918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9920. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9921. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9922. public virtual int Insert(string Title, string Color) {
  9923. if ((Title == null)) {
  9924. throw new global::System.ArgumentNullException("Title");
  9925. }
  9926. else {
  9927. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  9928. }
  9929. if ((Color == null)) {
  9930. throw new global::System.ArgumentNullException("Color");
  9931. }
  9932. else {
  9933. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Color));
  9934. }
  9935. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9936. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9937. != global::System.Data.ConnectionState.Open)) {
  9938. this.Adapter.InsertCommand.Connection.Open();
  9939. }
  9940. try {
  9941. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9942. return returnValue;
  9943. }
  9944. finally {
  9945. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9946. this.Adapter.InsertCommand.Connection.Close();
  9947. }
  9948. }
  9949. }
  9950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9952. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9953. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9954. public virtual int Update(string Title, string Color, int Original_ID, string Original_Title, string Original_Color, int ID) {
  9955. if ((Title == null)) {
  9956. throw new global::System.ArgumentNullException("Title");
  9957. }
  9958. else {
  9959. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  9960. }
  9961. if ((Color == null)) {
  9962. throw new global::System.ArgumentNullException("Color");
  9963. }
  9964. else {
  9965. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Color));
  9966. }
  9967. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  9968. if ((Original_Title == null)) {
  9969. throw new global::System.ArgumentNullException("Original_Title");
  9970. }
  9971. else {
  9972. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Title));
  9973. }
  9974. if ((Original_Color == null)) {
  9975. throw new global::System.ArgumentNullException("Original_Color");
  9976. }
  9977. else {
  9978. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Color));
  9979. }
  9980. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  9981. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9982. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9983. != global::System.Data.ConnectionState.Open)) {
  9984. this.Adapter.UpdateCommand.Connection.Open();
  9985. }
  9986. try {
  9987. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9988. return returnValue;
  9989. }
  9990. finally {
  9991. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9992. this.Adapter.UpdateCommand.Connection.Close();
  9993. }
  9994. }
  9995. }
  9996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9998. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9999. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10000. public virtual int Update(string Title, string Color, int Original_ID, string Original_Title, string Original_Color) {
  10001. return this.Update(Title, Color, Original_ID, Original_Title, Original_Color, Original_ID);
  10002. }
  10003. }
  10004. /// <summary>
  10005. ///Represents the connection and commands used to retrieve and save data.
  10006. ///</summary>
  10007. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10008. [global::System.ComponentModel.ToolboxItem(true)]
  10009. [global::System.ComponentModel.DataObjectAttribute(true)]
  10010. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  10011. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10012. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10013. public partial class TagOfClientTableAdapter : global::System.ComponentModel.Component {
  10014. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  10015. private global::System.Data.SqlClient.SqlConnection _connection;
  10016. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10017. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10018. private bool _clearBeforeFill;
  10019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10021. public TagOfClientTableAdapter() {
  10022. this.ClearBeforeFill = true;
  10023. }
  10024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10026. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10027. get {
  10028. if ((this._adapter == null)) {
  10029. this.InitAdapter();
  10030. }
  10031. return this._adapter;
  10032. }
  10033. }
  10034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10036. internal global::System.Data.SqlClient.SqlConnection Connection {
  10037. get {
  10038. if ((this._connection == null)) {
  10039. this.InitConnection();
  10040. }
  10041. return this._connection;
  10042. }
  10043. set {
  10044. this._connection = value;
  10045. if ((this.Adapter.InsertCommand != null)) {
  10046. this.Adapter.InsertCommand.Connection = value;
  10047. }
  10048. if ((this.Adapter.DeleteCommand != null)) {
  10049. this.Adapter.DeleteCommand.Connection = value;
  10050. }
  10051. if ((this.Adapter.UpdateCommand != null)) {
  10052. this.Adapter.UpdateCommand.Connection = value;
  10053. }
  10054. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10055. if ((this.CommandCollection[i] != null)) {
  10056. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10057. }
  10058. }
  10059. }
  10060. }
  10061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10063. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10064. get {
  10065. return this._transaction;
  10066. }
  10067. set {
  10068. this._transaction = value;
  10069. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10070. this.CommandCollection[i].Transaction = this._transaction;
  10071. }
  10072. if (((this.Adapter != null)
  10073. && (this.Adapter.DeleteCommand != null))) {
  10074. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10075. }
  10076. if (((this.Adapter != null)
  10077. && (this.Adapter.InsertCommand != null))) {
  10078. this.Adapter.InsertCommand.Transaction = this._transaction;
  10079. }
  10080. if (((this.Adapter != null)
  10081. && (this.Adapter.UpdateCommand != null))) {
  10082. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10083. }
  10084. }
  10085. }
  10086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10088. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10089. get {
  10090. if ((this._commandCollection == null)) {
  10091. this.InitCommandCollection();
  10092. }
  10093. return this._commandCollection;
  10094. }
  10095. }
  10096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10098. public bool ClearBeforeFill {
  10099. get {
  10100. return this._clearBeforeFill;
  10101. }
  10102. set {
  10103. this._clearBeforeFill = value;
  10104. }
  10105. }
  10106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10108. private void InitAdapter() {
  10109. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10110. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10111. tableMapping.SourceTable = "Table";
  10112. tableMapping.DataSetTable = "TagOfClient";
  10113. tableMapping.ColumnMappings.Add("ClientID", "ClientID");
  10114. tableMapping.ColumnMappings.Add("TagID", "TagID");
  10115. this._adapter.TableMappings.Add(tableMapping);
  10116. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  10117. this._adapter.DeleteCommand.Connection = this.Connection;
  10118. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[TagOfClient] WHERE (([ClientID] = @Original_ClientID) AND ([Ta" +
  10119. "gID] = @Original_TagID))";
  10120. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  10121. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10122. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TagID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10123. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  10124. this._adapter.InsertCommand.Connection = this.Connection;
  10125. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[TagOfClient] ([ClientID], [TagID]) VALUES (@ClientID, @TagID);" +
  10126. "\r\nSELECT ClientID, TagID FROM TagOfClient WHERE (ClientID = @ClientID) AND (TagI" +
  10127. "D = @TagID)";
  10128. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  10129. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10130. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TagID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10131. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  10132. this._adapter.UpdateCommand.Connection = this.Connection;
  10133. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[TagOfClient] SET [ClientID] = @ClientID, [TagID] = @TagID WHERE (([" +
  10134. "ClientID] = @Original_ClientID) AND ([TagID] = @Original_TagID));\r\nSELECT Client" +
  10135. "ID, TagID FROM TagOfClient WHERE (ClientID = @ClientID) AND (TagID = @TagID)";
  10136. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  10137. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10138. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TagID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10139. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10140. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TagID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10141. }
  10142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10144. private void InitConnection() {
  10145. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10146. this._connection.ConnectionString = global::Khaustov_ProbniyDE.Properties.Settings.Default.Хаустов_ПробныйДЭConnectionString;
  10147. }
  10148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10150. private void InitCommandCollection() {
  10151. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10152. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10153. this._commandCollection[0].Connection = this.Connection;
  10154. this._commandCollection[0].CommandText = "SELECT ClientID, TagID FROM dbo.TagOfClient";
  10155. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10156. }
  10157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10159. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10160. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10161. public virtual int Fill(Хаустов_ПробныйДЭDataSet.TagOfClientDataTable dataTable) {
  10162. this.Adapter.SelectCommand = this.CommandCollection[0];
  10163. if ((this.ClearBeforeFill == true)) {
  10164. dataTable.Clear();
  10165. }
  10166. int returnValue = this.Adapter.Fill(dataTable);
  10167. return returnValue;
  10168. }
  10169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10171. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10172. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10173. public virtual Хаустов_ПробныйДЭDataSet.TagOfClientDataTable GetData() {
  10174. this.Adapter.SelectCommand = this.CommandCollection[0];
  10175. Хаустов_ПробныйДЭDataSet.TagOfClientDataTable dataTable = new Хаустов_ПробныйДЭDataSet.TagOfClientDataTable();
  10176. this.Adapter.Fill(dataTable);
  10177. return dataTable;
  10178. }
  10179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10181. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10182. public virtual int Update(Хаустов_ПробныйДЭDataSet.TagOfClientDataTable dataTable) {
  10183. return this.Adapter.Update(dataTable);
  10184. }
  10185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10187. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10188. public virtual int Update(Хаустов_ПробныйДЭDataSet dataSet) {
  10189. return this.Adapter.Update(dataSet, "TagOfClient");
  10190. }
  10191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10193. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10194. public virtual int Update(global::System.Data.DataRow dataRow) {
  10195. return this.Adapter.Update(new global::System.Data.DataRow[] {
  10196. dataRow});
  10197. }
  10198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10200. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10201. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  10202. return this.Adapter.Update(dataRows);
  10203. }
  10204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10206. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10207. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  10208. public virtual int Delete(int Original_ClientID, int Original_TagID) {
  10209. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ClientID));
  10210. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_TagID));
  10211. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  10212. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10213. != global::System.Data.ConnectionState.Open)) {
  10214. this.Adapter.DeleteCommand.Connection.Open();
  10215. }
  10216. try {
  10217. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  10218. return returnValue;
  10219. }
  10220. finally {
  10221. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10222. this.Adapter.DeleteCommand.Connection.Close();
  10223. }
  10224. }
  10225. }
  10226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10228. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10229. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10230. public virtual int Insert(int ClientID, int TagID) {
  10231. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ClientID));
  10232. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(TagID));
  10233. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10234. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10235. != global::System.Data.ConnectionState.Open)) {
  10236. this.Adapter.InsertCommand.Connection.Open();
  10237. }
  10238. try {
  10239. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10240. return returnValue;
  10241. }
  10242. finally {
  10243. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10244. this.Adapter.InsertCommand.Connection.Close();
  10245. }
  10246. }
  10247. }
  10248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10250. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10251. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10252. public virtual int Update(int ClientID, int TagID, int Original_ClientID, int Original_TagID) {
  10253. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ClientID));
  10254. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(TagID));
  10255. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ClientID));
  10256. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_TagID));
  10257. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10258. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10259. != global::System.Data.ConnectionState.Open)) {
  10260. this.Adapter.UpdateCommand.Connection.Open();
  10261. }
  10262. try {
  10263. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10264. return returnValue;
  10265. }
  10266. finally {
  10267. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10268. this.Adapter.UpdateCommand.Connection.Close();
  10269. }
  10270. }
  10271. }
  10272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10274. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10275. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10276. public virtual int Update(int Original_ClientID, int Original_TagID) {
  10277. return this.Update(Original_ClientID, Original_TagID, Original_ClientID, Original_TagID);
  10278. }
  10279. }
  10280. /// <summary>
  10281. ///Represents the connection and commands used to retrieve and save data.
  10282. ///</summary>
  10283. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10284. [global::System.ComponentModel.ToolboxItem(true)]
  10285. [global::System.ComponentModel.DataObjectAttribute(true)]
  10286. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  10287. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10288. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10289. public partial class УчеткиTableAdapter : global::System.ComponentModel.Component {
  10290. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  10291. private global::System.Data.SqlClient.SqlConnection _connection;
  10292. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10293. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10294. private bool _clearBeforeFill;
  10295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10297. public УчеткиTableAdapter() {
  10298. this.ClearBeforeFill = true;
  10299. }
  10300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10302. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10303. get {
  10304. if ((this._adapter == null)) {
  10305. this.InitAdapter();
  10306. }
  10307. return this._adapter;
  10308. }
  10309. }
  10310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10312. internal global::System.Data.SqlClient.SqlConnection Connection {
  10313. get {
  10314. if ((this._connection == null)) {
  10315. this.InitConnection();
  10316. }
  10317. return this._connection;
  10318. }
  10319. set {
  10320. this._connection = value;
  10321. if ((this.Adapter.InsertCommand != null)) {
  10322. this.Adapter.InsertCommand.Connection = value;
  10323. }
  10324. if ((this.Adapter.DeleteCommand != null)) {
  10325. this.Adapter.DeleteCommand.Connection = value;
  10326. }
  10327. if ((this.Adapter.UpdateCommand != null)) {
  10328. this.Adapter.UpdateCommand.Connection = value;
  10329. }
  10330. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10331. if ((this.CommandCollection[i] != null)) {
  10332. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10333. }
  10334. }
  10335. }
  10336. }
  10337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10339. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10340. get {
  10341. return this._transaction;
  10342. }
  10343. set {
  10344. this._transaction = value;
  10345. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10346. this.CommandCollection[i].Transaction = this._transaction;
  10347. }
  10348. if (((this.Adapter != null)
  10349. && (this.Adapter.DeleteCommand != null))) {
  10350. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10351. }
  10352. if (((this.Adapter != null)
  10353. && (this.Adapter.InsertCommand != null))) {
  10354. this.Adapter.InsertCommand.Transaction = this._transaction;
  10355. }
  10356. if (((this.Adapter != null)
  10357. && (this.Adapter.UpdateCommand != null))) {
  10358. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10359. }
  10360. }
  10361. }
  10362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10364. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10365. get {
  10366. if ((this._commandCollection == null)) {
  10367. this.InitCommandCollection();
  10368. }
  10369. return this._commandCollection;
  10370. }
  10371. }
  10372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10374. public bool ClearBeforeFill {
  10375. get {
  10376. return this._clearBeforeFill;
  10377. }
  10378. set {
  10379. this._clearBeforeFill = value;
  10380. }
  10381. }
  10382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10384. private void InitAdapter() {
  10385. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10386. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10387. tableMapping.SourceTable = "Table";
  10388. tableMapping.DataSetTable = "Учетки";
  10389. tableMapping.ColumnMappings.Add("Логин", "Логин");
  10390. tableMapping.ColumnMappings.Add("Пароль", "Пароль");
  10391. this._adapter.TableMappings.Add(tableMapping);
  10392. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  10393. this._adapter.DeleteCommand.Connection = this.Connection;
  10394. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Учетки] WHERE (([Логин] = @Original_Логин) AND ([Пароль] = @Or" +
  10395. "iginal_Пароль))";
  10396. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  10397. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Логин", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Логин", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10398. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Пароль", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пароль", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10399. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  10400. this._adapter.InsertCommand.Connection = this.Connection;
  10401. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Учетки] ([Логин], [Пароль]) VALUES (@Логин, @Пароль);\r\nSELECT " +
  10402. "Логин, Пароль FROM Учетки WHERE (Логин = @Логин)";
  10403. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  10404. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Логин", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Логин", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10405. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Пароль", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пароль", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10406. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  10407. this._adapter.UpdateCommand.Connection = this.Connection;
  10408. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Учетки] SET [Логин] = @Логин, [Пароль] = @Пароль WHERE (([Логин] = " +
  10409. "@Original_Логин) AND ([Пароль] = @Original_Пароль));\r\nSELECT Логин, Пароль FROM " +
  10410. "Учетки WHERE (Логин = @Логин)";
  10411. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  10412. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Логин", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Логин", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10413. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Пароль", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пароль", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10414. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Логин", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Логин", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10415. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Пароль", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пароль", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10416. }
  10417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10419. private void InitConnection() {
  10420. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10421. this._connection.ConnectionString = global::Khaustov_ProbniyDE.Properties.Settings.Default.Хаустов_ПробныйДЭConnectionString;
  10422. }
  10423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10425. private void InitCommandCollection() {
  10426. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10427. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10428. this._commandCollection[0].Connection = this.Connection;
  10429. this._commandCollection[0].CommandText = "SELECT Логин, Пароль FROM dbo.Учетки";
  10430. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10431. }
  10432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10433. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10434. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10435. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10436. public virtual int Fill(Хаустов_ПробныйДЭDataSet.УчеткиDataTable dataTable) {
  10437. this.Adapter.SelectCommand = this.CommandCollection[0];
  10438. if ((this.ClearBeforeFill == true)) {
  10439. dataTable.Clear();
  10440. }
  10441. int returnValue = this.Adapter.Fill(dataTable);
  10442. return returnValue;
  10443. }
  10444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10446. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10447. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10448. public virtual Хаустов_ПробныйДЭDataSet.УчеткиDataTable GetData() {
  10449. this.Adapter.SelectCommand = this.CommandCollection[0];
  10450. Хаустов_ПробныйДЭDataSet.УчеткиDataTable dataTable = new Хаустов_ПробныйДЭDataSet.УчеткиDataTable();
  10451. this.Adapter.Fill(dataTable);
  10452. return dataTable;
  10453. }
  10454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10456. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10457. public virtual int Update(Хаустов_ПробныйДЭDataSet.УчеткиDataTable dataTable) {
  10458. return this.Adapter.Update(dataTable);
  10459. }
  10460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10462. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10463. public virtual int Update(Хаустов_ПробныйДЭDataSet dataSet) {
  10464. return this.Adapter.Update(dataSet, "Учетки");
  10465. }
  10466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10468. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10469. public virtual int Update(global::System.Data.DataRow dataRow) {
  10470. return this.Adapter.Update(new global::System.Data.DataRow[] {
  10471. dataRow});
  10472. }
  10473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10475. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10476. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  10477. return this.Adapter.Update(dataRows);
  10478. }
  10479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10480. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10481. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10482. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  10483. public virtual int Delete(string Original_Логин, string Original_Пароль) {
  10484. if ((Original_Логин == null)) {
  10485. throw new global::System.ArgumentNullException("Original_Логин");
  10486. }
  10487. else {
  10488. this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_Логин));
  10489. }
  10490. if ((Original_Пароль == null)) {
  10491. throw new global::System.ArgumentNullException("Original_Пароль");
  10492. }
  10493. else {
  10494. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Пароль));
  10495. }
  10496. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  10497. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10498. != global::System.Data.ConnectionState.Open)) {
  10499. this.Adapter.DeleteCommand.Connection.Open();
  10500. }
  10501. try {
  10502. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  10503. return returnValue;
  10504. }
  10505. finally {
  10506. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10507. this.Adapter.DeleteCommand.Connection.Close();
  10508. }
  10509. }
  10510. }
  10511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10513. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10514. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10515. public virtual int Insert(string Логин, string Пароль) {
  10516. if ((Логин == null)) {
  10517. throw new global::System.ArgumentNullException("Логин");
  10518. }
  10519. else {
  10520. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Логин));
  10521. }
  10522. if ((Пароль == null)) {
  10523. throw new global::System.ArgumentNullException("Пароль");
  10524. }
  10525. else {
  10526. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Пароль));
  10527. }
  10528. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10529. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10530. != global::System.Data.ConnectionState.Open)) {
  10531. this.Adapter.InsertCommand.Connection.Open();
  10532. }
  10533. try {
  10534. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10535. return returnValue;
  10536. }
  10537. finally {
  10538. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10539. this.Adapter.InsertCommand.Connection.Close();
  10540. }
  10541. }
  10542. }
  10543. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10544. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10545. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10546. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10547. public virtual int Update(string Логин, string Пароль, string Original_Логин, string Original_Пароль) {
  10548. if ((Логин == null)) {
  10549. throw new global::System.ArgumentNullException("Логин");
  10550. }
  10551. else {
  10552. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Логин));
  10553. }
  10554. if ((Пароль == null)) {
  10555. throw new global::System.ArgumentNullException("Пароль");
  10556. }
  10557. else {
  10558. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Пароль));
  10559. }
  10560. if ((Original_Логин == null)) {
  10561. throw new global::System.ArgumentNullException("Original_Логин");
  10562. }
  10563. else {
  10564. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_Логин));
  10565. }
  10566. if ((Original_Пароль == null)) {
  10567. throw new global::System.ArgumentNullException("Original_Пароль");
  10568. }
  10569. else {
  10570. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Пароль));
  10571. }
  10572. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10573. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10574. != global::System.Data.ConnectionState.Open)) {
  10575. this.Adapter.UpdateCommand.Connection.Open();
  10576. }
  10577. try {
  10578. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10579. return returnValue;
  10580. }
  10581. finally {
  10582. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10583. this.Adapter.UpdateCommand.Connection.Close();
  10584. }
  10585. }
  10586. }
  10587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10589. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10590. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10591. public virtual int Update(string Пароль, string Original_Логин, string Original_Пароль) {
  10592. return this.Update(Original_Логин, Пароль, Original_Логин, Original_Пароль);
  10593. }
  10594. }
  10595. /// <summary>
  10596. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  10597. ///</summary>
  10598. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10599. [global::System.ComponentModel.ToolboxItem(true)]
  10600. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  10601. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10602. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  10603. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  10604. private UpdateOrderOption _updateOrder;
  10605. private AttachedProductTableAdapter _attachedProductTableAdapter;
  10606. private ClientTableAdapter _clientTableAdapter;
  10607. private ClientServiceTableAdapter _clientServiceTableAdapter;
  10608. private DocumentByServiceTableAdapter _documentByServiceTableAdapter;
  10609. private GenderTableAdapter _genderTableAdapter;
  10610. private ManufacturerTableAdapter _manufacturerTableAdapter;
  10611. private ProductTableAdapter _productTableAdapter;
  10612. private ProductPhotoTableAdapter _productPhotoTableAdapter;
  10613. private ProductSaleTableAdapter _productSaleTableAdapter;
  10614. private ServiceTableAdapter _serviceTableAdapter;
  10615. private ServicePhotoTableAdapter _servicePhotoTableAdapter;
  10616. private TagTableAdapter _tagTableAdapter;
  10617. private TagOfClientTableAdapter _tagOfClientTableAdapter;
  10618. private УчеткиTableAdapter _учеткиTableAdapter;
  10619. private bool _backupDataSetBeforeUpdate;
  10620. private global::System.Data.IDbConnection _connection;
  10621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10622. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10623. public UpdateOrderOption UpdateOrder {
  10624. get {
  10625. return this._updateOrder;
  10626. }
  10627. set {
  10628. this._updateOrder = value;
  10629. }
  10630. }
  10631. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10633. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10634. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10635. "a", "System.Drawing.Design.UITypeEditor")]
  10636. public AttachedProductTableAdapter AttachedProductTableAdapter {
  10637. get {
  10638. return this._attachedProductTableAdapter;
  10639. }
  10640. set {
  10641. this._attachedProductTableAdapter = value;
  10642. }
  10643. }
  10644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10646. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10647. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10648. "a", "System.Drawing.Design.UITypeEditor")]
  10649. public ClientTableAdapter ClientTableAdapter {
  10650. get {
  10651. return this._clientTableAdapter;
  10652. }
  10653. set {
  10654. this._clientTableAdapter = value;
  10655. }
  10656. }
  10657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10659. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10660. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10661. "a", "System.Drawing.Design.UITypeEditor")]
  10662. public ClientServiceTableAdapter ClientServiceTableAdapter {
  10663. get {
  10664. return this._clientServiceTableAdapter;
  10665. }
  10666. set {
  10667. this._clientServiceTableAdapter = value;
  10668. }
  10669. }
  10670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10672. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10673. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10674. "a", "System.Drawing.Design.UITypeEditor")]
  10675. public DocumentByServiceTableAdapter DocumentByServiceTableAdapter {
  10676. get {
  10677. return this._documentByServiceTableAdapter;
  10678. }
  10679. set {
  10680. this._documentByServiceTableAdapter = value;
  10681. }
  10682. }
  10683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10685. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10686. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10687. "a", "System.Drawing.Design.UITypeEditor")]
  10688. public GenderTableAdapter GenderTableAdapter {
  10689. get {
  10690. return this._genderTableAdapter;
  10691. }
  10692. set {
  10693. this._genderTableAdapter = value;
  10694. }
  10695. }
  10696. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10698. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10699. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10700. "a", "System.Drawing.Design.UITypeEditor")]
  10701. public ManufacturerTableAdapter ManufacturerTableAdapter {
  10702. get {
  10703. return this._manufacturerTableAdapter;
  10704. }
  10705. set {
  10706. this._manufacturerTableAdapter = value;
  10707. }
  10708. }
  10709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10711. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10712. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10713. "a", "System.Drawing.Design.UITypeEditor")]
  10714. public ProductTableAdapter ProductTableAdapter {
  10715. get {
  10716. return this._productTableAdapter;
  10717. }
  10718. set {
  10719. this._productTableAdapter = value;
  10720. }
  10721. }
  10722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10724. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10725. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10726. "a", "System.Drawing.Design.UITypeEditor")]
  10727. public ProductPhotoTableAdapter ProductPhotoTableAdapter {
  10728. get {
  10729. return this._productPhotoTableAdapter;
  10730. }
  10731. set {
  10732. this._productPhotoTableAdapter = value;
  10733. }
  10734. }
  10735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10737. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10738. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10739. "a", "System.Drawing.Design.UITypeEditor")]
  10740. public ProductSaleTableAdapter ProductSaleTableAdapter {
  10741. get {
  10742. return this._productSaleTableAdapter;
  10743. }
  10744. set {
  10745. this._productSaleTableAdapter = value;
  10746. }
  10747. }
  10748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10750. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10751. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10752. "a", "System.Drawing.Design.UITypeEditor")]
  10753. public ServiceTableAdapter ServiceTableAdapter {
  10754. get {
  10755. return this._serviceTableAdapter;
  10756. }
  10757. set {
  10758. this._serviceTableAdapter = value;
  10759. }
  10760. }
  10761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10763. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10764. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10765. "a", "System.Drawing.Design.UITypeEditor")]
  10766. public ServicePhotoTableAdapter ServicePhotoTableAdapter {
  10767. get {
  10768. return this._servicePhotoTableAdapter;
  10769. }
  10770. set {
  10771. this._servicePhotoTableAdapter = value;
  10772. }
  10773. }
  10774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10776. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10777. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10778. "a", "System.Drawing.Design.UITypeEditor")]
  10779. public TagTableAdapter TagTableAdapter {
  10780. get {
  10781. return this._tagTableAdapter;
  10782. }
  10783. set {
  10784. this._tagTableAdapter = value;
  10785. }
  10786. }
  10787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10788. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10789. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10790. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10791. "a", "System.Drawing.Design.UITypeEditor")]
  10792. public TagOfClientTableAdapter TagOfClientTableAdapter {
  10793. get {
  10794. return this._tagOfClientTableAdapter;
  10795. }
  10796. set {
  10797. this._tagOfClientTableAdapter = value;
  10798. }
  10799. }
  10800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10802. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10803. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10804. "a", "System.Drawing.Design.UITypeEditor")]
  10805. public УчеткиTableAdapter УчеткиTableAdapter {
  10806. get {
  10807. return this._учеткиTableAdapter;
  10808. }
  10809. set {
  10810. this._учеткиTableAdapter = value;
  10811. }
  10812. }
  10813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10814. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10815. public bool BackupDataSetBeforeUpdate {
  10816. get {
  10817. return this._backupDataSetBeforeUpdate;
  10818. }
  10819. set {
  10820. this._backupDataSetBeforeUpdate = value;
  10821. }
  10822. }
  10823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10825. [global::System.ComponentModel.Browsable(false)]
  10826. public global::System.Data.IDbConnection Connection {
  10827. get {
  10828. if ((this._connection != null)) {
  10829. return this._connection;
  10830. }
  10831. if (((this._attachedProductTableAdapter != null)
  10832. && (this._attachedProductTableAdapter.Connection != null))) {
  10833. return this._attachedProductTableAdapter.Connection;
  10834. }
  10835. if (((this._clientTableAdapter != null)
  10836. && (this._clientTableAdapter.Connection != null))) {
  10837. return this._clientTableAdapter.Connection;
  10838. }
  10839. if (((this._clientServiceTableAdapter != null)
  10840. && (this._clientServiceTableAdapter.Connection != null))) {
  10841. return this._clientServiceTableAdapter.Connection;
  10842. }
  10843. if (((this._documentByServiceTableAdapter != null)
  10844. && (this._documentByServiceTableAdapter.Connection != null))) {
  10845. return this._documentByServiceTableAdapter.Connection;
  10846. }
  10847. if (((this._genderTableAdapter != null)
  10848. && (this._genderTableAdapter.Connection != null))) {
  10849. return this._genderTableAdapter.Connection;
  10850. }
  10851. if (((this._manufacturerTableAdapter != null)
  10852. && (this._manufacturerTableAdapter.Connection != null))) {
  10853. return this._manufacturerTableAdapter.Connection;
  10854. }
  10855. if (((this._productTableAdapter != null)
  10856. && (this._productTableAdapter.Connection != null))) {
  10857. return this._productTableAdapter.Connection;
  10858. }
  10859. if (((this._productPhotoTableAdapter != null)
  10860. && (this._productPhotoTableAdapter.Connection != null))) {
  10861. return this._productPhotoTableAdapter.Connection;
  10862. }
  10863. if (((this._productSaleTableAdapter != null)
  10864. && (this._productSaleTableAdapter.Connection != null))) {
  10865. return this._productSaleTableAdapter.Connection;
  10866. }
  10867. if (((this._serviceTableAdapter != null)
  10868. && (this._serviceTableAdapter.Connection != null))) {
  10869. return this._serviceTableAdapter.Connection;
  10870. }
  10871. if (((this._servicePhotoTableAdapter != null)
  10872. && (this._servicePhotoTableAdapter.Connection != null))) {
  10873. return this._servicePhotoTableAdapter.Connection;
  10874. }
  10875. if (((this._tagTableAdapter != null)
  10876. && (this._tagTableAdapter.Connection != null))) {
  10877. return this._tagTableAdapter.Connection;
  10878. }
  10879. if (((this._tagOfClientTableAdapter != null)
  10880. && (this._tagOfClientTableAdapter.Connection != null))) {
  10881. return this._tagOfClientTableAdapter.Connection;
  10882. }
  10883. if (((this._учеткиTableAdapter != null)
  10884. && (this._учеткиTableAdapter.Connection != null))) {
  10885. return this._учеткиTableAdapter.Connection;
  10886. }
  10887. return null;
  10888. }
  10889. set {
  10890. this._connection = value;
  10891. }
  10892. }
  10893. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10894. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10895. [global::System.ComponentModel.Browsable(false)]
  10896. public int TableAdapterInstanceCount {
  10897. get {
  10898. int count = 0;
  10899. if ((this._attachedProductTableAdapter != null)) {
  10900. count = (count + 1);
  10901. }
  10902. if ((this._clientTableAdapter != null)) {
  10903. count = (count + 1);
  10904. }
  10905. if ((this._clientServiceTableAdapter != null)) {
  10906. count = (count + 1);
  10907. }
  10908. if ((this._documentByServiceTableAdapter != null)) {
  10909. count = (count + 1);
  10910. }
  10911. if ((this._genderTableAdapter != null)) {
  10912. count = (count + 1);
  10913. }
  10914. if ((this._manufacturerTableAdapter != null)) {
  10915. count = (count + 1);
  10916. }
  10917. if ((this._productTableAdapter != null)) {
  10918. count = (count + 1);
  10919. }
  10920. if ((this._productPhotoTableAdapter != null)) {
  10921. count = (count + 1);
  10922. }
  10923. if ((this._productSaleTableAdapter != null)) {
  10924. count = (count + 1);
  10925. }
  10926. if ((this._serviceTableAdapter != null)) {
  10927. count = (count + 1);
  10928. }
  10929. if ((this._servicePhotoTableAdapter != null)) {
  10930. count = (count + 1);
  10931. }
  10932. if ((this._tagTableAdapter != null)) {
  10933. count = (count + 1);
  10934. }
  10935. if ((this._tagOfClientTableAdapter != null)) {
  10936. count = (count + 1);
  10937. }
  10938. if ((this._учеткиTableAdapter != null)) {
  10939. count = (count + 1);
  10940. }
  10941. return count;
  10942. }
  10943. }
  10944. /// <summary>
  10945. ///Update rows in top-down order.
  10946. ///</summary>
  10947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10949. private int UpdateUpdatedRows(Хаустов_ПробныйДЭDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  10950. int result = 0;
  10951. if ((this._genderTableAdapter != null)) {
  10952. global::System.Data.DataRow[] updatedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10953. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10954. if (((updatedRows != null)
  10955. && (0 < updatedRows.Length))) {
  10956. result = (result + this._genderTableAdapter.Update(updatedRows));
  10957. allChangedRows.AddRange(updatedRows);
  10958. }
  10959. }
  10960. if ((this._clientTableAdapter != null)) {
  10961. global::System.Data.DataRow[] updatedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10962. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10963. if (((updatedRows != null)
  10964. && (0 < updatedRows.Length))) {
  10965. result = (result + this._clientTableAdapter.Update(updatedRows));
  10966. allChangedRows.AddRange(updatedRows);
  10967. }
  10968. }
  10969. if ((this._manufacturerTableAdapter != null)) {
  10970. global::System.Data.DataRow[] updatedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10971. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10972. if (((updatedRows != null)
  10973. && (0 < updatedRows.Length))) {
  10974. result = (result + this._manufacturerTableAdapter.Update(updatedRows));
  10975. allChangedRows.AddRange(updatedRows);
  10976. }
  10977. }
  10978. if ((this._serviceTableAdapter != null)) {
  10979. global::System.Data.DataRow[] updatedRows = dataSet.Service.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10980. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10981. if (((updatedRows != null)
  10982. && (0 < updatedRows.Length))) {
  10983. result = (result + this._serviceTableAdapter.Update(updatedRows));
  10984. allChangedRows.AddRange(updatedRows);
  10985. }
  10986. }
  10987. if ((this._clientServiceTableAdapter != null)) {
  10988. global::System.Data.DataRow[] updatedRows = dataSet.ClientService.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10989. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10990. if (((updatedRows != null)
  10991. && (0 < updatedRows.Length))) {
  10992. result = (result + this._clientServiceTableAdapter.Update(updatedRows));
  10993. allChangedRows.AddRange(updatedRows);
  10994. }
  10995. }
  10996. if ((this._productTableAdapter != null)) {
  10997. global::System.Data.DataRow[] updatedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10998. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10999. if (((updatedRows != null)
  11000. && (0 < updatedRows.Length))) {
  11001. result = (result + this._productTableAdapter.Update(updatedRows));
  11002. allChangedRows.AddRange(updatedRows);
  11003. }
  11004. }
  11005. if ((this._tagTableAdapter != null)) {
  11006. global::System.Data.DataRow[] updatedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11007. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11008. if (((updatedRows != null)
  11009. && (0 < updatedRows.Length))) {
  11010. result = (result + this._tagTableAdapter.Update(updatedRows));
  11011. allChangedRows.AddRange(updatedRows);
  11012. }
  11013. }
  11014. if ((this._attachedProductTableAdapter != null)) {
  11015. global::System.Data.DataRow[] updatedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11016. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11017. if (((updatedRows != null)
  11018. && (0 < updatedRows.Length))) {
  11019. result = (result + this._attachedProductTableAdapter.Update(updatedRows));
  11020. allChangedRows.AddRange(updatedRows);
  11021. }
  11022. }
  11023. if ((this._documentByServiceTableAdapter != null)) {
  11024. global::System.Data.DataRow[] updatedRows = dataSet.DocumentByService.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11025. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11026. if (((updatedRows != null)
  11027. && (0 < updatedRows.Length))) {
  11028. result = (result + this._documentByServiceTableAdapter.Update(updatedRows));
  11029. allChangedRows.AddRange(updatedRows);
  11030. }
  11031. }
  11032. if ((this._productPhotoTableAdapter != null)) {
  11033. global::System.Data.DataRow[] updatedRows = dataSet.ProductPhoto.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11034. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11035. if (((updatedRows != null)
  11036. && (0 < updatedRows.Length))) {
  11037. result = (result + this._productPhotoTableAdapter.Update(updatedRows));
  11038. allChangedRows.AddRange(updatedRows);
  11039. }
  11040. }
  11041. if ((this._productSaleTableAdapter != null)) {
  11042. global::System.Data.DataRow[] updatedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11043. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11044. if (((updatedRows != null)
  11045. && (0 < updatedRows.Length))) {
  11046. result = (result + this._productSaleTableAdapter.Update(updatedRows));
  11047. allChangedRows.AddRange(updatedRows);
  11048. }
  11049. }
  11050. if ((this._servicePhotoTableAdapter != null)) {
  11051. global::System.Data.DataRow[] updatedRows = dataSet.ServicePhoto.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11052. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11053. if (((updatedRows != null)
  11054. && (0 < updatedRows.Length))) {
  11055. result = (result + this._servicePhotoTableAdapter.Update(updatedRows));
  11056. allChangedRows.AddRange(updatedRows);
  11057. }
  11058. }
  11059. if ((this._tagOfClientTableAdapter != null)) {
  11060. global::System.Data.DataRow[] updatedRows = dataSet.TagOfClient.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11061. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11062. if (((updatedRows != null)
  11063. && (0 < updatedRows.Length))) {
  11064. result = (result + this._tagOfClientTableAdapter.Update(updatedRows));
  11065. allChangedRows.AddRange(updatedRows);
  11066. }
  11067. }
  11068. if ((this._учеткиTableAdapter != null)) {
  11069. global::System.Data.DataRow[] updatedRows = dataSet.Учетки.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11070. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11071. if (((updatedRows != null)
  11072. && (0 < updatedRows.Length))) {
  11073. result = (result + this._учеткиTableAdapter.Update(updatedRows));
  11074. allChangedRows.AddRange(updatedRows);
  11075. }
  11076. }
  11077. return result;
  11078. }
  11079. /// <summary>
  11080. ///Insert rows in top-down order.
  11081. ///</summary>
  11082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11084. private int UpdateInsertedRows(Хаустов_ПробныйДЭDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  11085. int result = 0;
  11086. if ((this._genderTableAdapter != null)) {
  11087. global::System.Data.DataRow[] addedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.Added);
  11088. if (((addedRows != null)
  11089. && (0 < addedRows.Length))) {
  11090. result = (result + this._genderTableAdapter.Update(addedRows));
  11091. allAddedRows.AddRange(addedRows);
  11092. }
  11093. }
  11094. if ((this._clientTableAdapter != null)) {
  11095. global::System.Data.DataRow[] addedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.Added);
  11096. if (((addedRows != null)
  11097. && (0 < addedRows.Length))) {
  11098. result = (result + this._clientTableAdapter.Update(addedRows));
  11099. allAddedRows.AddRange(addedRows);
  11100. }
  11101. }
  11102. if ((this._manufacturerTableAdapter != null)) {
  11103. global::System.Data.DataRow[] addedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.Added);
  11104. if (((addedRows != null)
  11105. && (0 < addedRows.Length))) {
  11106. result = (result + this._manufacturerTableAdapter.Update(addedRows));
  11107. allAddedRows.AddRange(addedRows);
  11108. }
  11109. }
  11110. if ((this._serviceTableAdapter != null)) {
  11111. global::System.Data.DataRow[] addedRows = dataSet.Service.Select(null, null, global::System.Data.DataViewRowState.Added);
  11112. if (((addedRows != null)
  11113. && (0 < addedRows.Length))) {
  11114. result = (result + this._serviceTableAdapter.Update(addedRows));
  11115. allAddedRows.AddRange(addedRows);
  11116. }
  11117. }
  11118. if ((this._clientServiceTableAdapter != null)) {
  11119. global::System.Data.DataRow[] addedRows = dataSet.ClientService.Select(null, null, global::System.Data.DataViewRowState.Added);
  11120. if (((addedRows != null)
  11121. && (0 < addedRows.Length))) {
  11122. result = (result + this._clientServiceTableAdapter.Update(addedRows));
  11123. allAddedRows.AddRange(addedRows);
  11124. }
  11125. }
  11126. if ((this._productTableAdapter != null)) {
  11127. global::System.Data.DataRow[] addedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Added);
  11128. if (((addedRows != null)
  11129. && (0 < addedRows.Length))) {
  11130. result = (result + this._productTableAdapter.Update(addedRows));
  11131. allAddedRows.AddRange(addedRows);
  11132. }
  11133. }
  11134. if ((this._tagTableAdapter != null)) {
  11135. global::System.Data.DataRow[] addedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.Added);
  11136. if (((addedRows != null)
  11137. && (0 < addedRows.Length))) {
  11138. result = (result + this._tagTableAdapter.Update(addedRows));
  11139. allAddedRows.AddRange(addedRows);
  11140. }
  11141. }
  11142. if ((this._attachedProductTableAdapter != null)) {
  11143. global::System.Data.DataRow[] addedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.Added);
  11144. if (((addedRows != null)
  11145. && (0 < addedRows.Length))) {
  11146. result = (result + this._attachedProductTableAdapter.Update(addedRows));
  11147. allAddedRows.AddRange(addedRows);
  11148. }
  11149. }
  11150. if ((this._documentByServiceTableAdapter != null)) {
  11151. global::System.Data.DataRow[] addedRows = dataSet.DocumentByService.Select(null, null, global::System.Data.DataViewRowState.Added);
  11152. if (((addedRows != null)
  11153. && (0 < addedRows.Length))) {
  11154. result = (result + this._documentByServiceTableAdapter.Update(addedRows));
  11155. allAddedRows.AddRange(addedRows);
  11156. }
  11157. }
  11158. if ((this._productPhotoTableAdapter != null)) {
  11159. global::System.Data.DataRow[] addedRows = dataSet.ProductPhoto.Select(null, null, global::System.Data.DataViewRowState.Added);
  11160. if (((addedRows != null)
  11161. && (0 < addedRows.Length))) {
  11162. result = (result + this._productPhotoTableAdapter.Update(addedRows));
  11163. allAddedRows.AddRange(addedRows);
  11164. }
  11165. }
  11166. if ((this._productSaleTableAdapter != null)) {
  11167. global::System.Data.DataRow[] addedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.Added);
  11168. if (((addedRows != null)
  11169. && (0 < addedRows.Length))) {
  11170. result = (result + this._productSaleTableAdapter.Update(addedRows));
  11171. allAddedRows.AddRange(addedRows);
  11172. }
  11173. }
  11174. if ((this._servicePhotoTableAdapter != null)) {
  11175. global::System.Data.DataRow[] addedRows = dataSet.ServicePhoto.Select(null, null, global::System.Data.DataViewRowState.Added);
  11176. if (((addedRows != null)
  11177. && (0 < addedRows.Length))) {
  11178. result = (result + this._servicePhotoTableAdapter.Update(addedRows));
  11179. allAddedRows.AddRange(addedRows);
  11180. }
  11181. }
  11182. if ((this._tagOfClientTableAdapter != null)) {
  11183. global::System.Data.DataRow[] addedRows = dataSet.TagOfClient.Select(null, null, global::System.Data.DataViewRowState.Added);
  11184. if (((addedRows != null)
  11185. && (0 < addedRows.Length))) {
  11186. result = (result + this._tagOfClientTableAdapter.Update(addedRows));
  11187. allAddedRows.AddRange(addedRows);
  11188. }
  11189. }
  11190. if ((this._учеткиTableAdapter != null)) {
  11191. global::System.Data.DataRow[] addedRows = dataSet.Учетки.Select(null, null, global::System.Data.DataViewRowState.Added);
  11192. if (((addedRows != null)
  11193. && (0 < addedRows.Length))) {
  11194. result = (result + this._учеткиTableAdapter.Update(addedRows));
  11195. allAddedRows.AddRange(addedRows);
  11196. }
  11197. }
  11198. return result;
  11199. }
  11200. /// <summary>
  11201. ///Delete rows in bottom-up order.
  11202. ///</summary>
  11203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11205. private int UpdateDeletedRows(Хаустов_ПробныйДЭDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  11206. int result = 0;
  11207. if ((this._учеткиTableAdapter != null)) {
  11208. global::System.Data.DataRow[] deletedRows = dataSet.Учетки.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11209. if (((deletedRows != null)
  11210. && (0 < deletedRows.Length))) {
  11211. result = (result + this._учеткиTableAdapter.Update(deletedRows));
  11212. allChangedRows.AddRange(deletedRows);
  11213. }
  11214. }
  11215. if ((this._tagOfClientTableAdapter != null)) {
  11216. global::System.Data.DataRow[] deletedRows = dataSet.TagOfClient.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11217. if (((deletedRows != null)
  11218. && (0 < deletedRows.Length))) {
  11219. result = (result + this._tagOfClientTableAdapter.Update(deletedRows));
  11220. allChangedRows.AddRange(deletedRows);
  11221. }
  11222. }
  11223. if ((this._servicePhotoTableAdapter != null)) {
  11224. global::System.Data.DataRow[] deletedRows = dataSet.ServicePhoto.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11225. if (((deletedRows != null)
  11226. && (0 < deletedRows.Length))) {
  11227. result = (result + this._servicePhotoTableAdapter.Update(deletedRows));
  11228. allChangedRows.AddRange(deletedRows);
  11229. }
  11230. }
  11231. if ((this._productSaleTableAdapter != null)) {
  11232. global::System.Data.DataRow[] deletedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11233. if (((deletedRows != null)
  11234. && (0 < deletedRows.Length))) {
  11235. result = (result + this._productSaleTableAdapter.Update(deletedRows));
  11236. allChangedRows.AddRange(deletedRows);
  11237. }
  11238. }
  11239. if ((this._productPhotoTableAdapter != null)) {
  11240. global::System.Data.DataRow[] deletedRows = dataSet.ProductPhoto.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11241. if (((deletedRows != null)
  11242. && (0 < deletedRows.Length))) {
  11243. result = (result + this._productPhotoTableAdapter.Update(deletedRows));
  11244. allChangedRows.AddRange(deletedRows);
  11245. }
  11246. }
  11247. if ((this._documentByServiceTableAdapter != null)) {
  11248. global::System.Data.DataRow[] deletedRows = dataSet.DocumentByService.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11249. if (((deletedRows != null)
  11250. && (0 < deletedRows.Length))) {
  11251. result = (result + this._documentByServiceTableAdapter.Update(deletedRows));
  11252. allChangedRows.AddRange(deletedRows);
  11253. }
  11254. }
  11255. if ((this._attachedProductTableAdapter != null)) {
  11256. global::System.Data.DataRow[] deletedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11257. if (((deletedRows != null)
  11258. && (0 < deletedRows.Length))) {
  11259. result = (result + this._attachedProductTableAdapter.Update(deletedRows));
  11260. allChangedRows.AddRange(deletedRows);
  11261. }
  11262. }
  11263. if ((this._tagTableAdapter != null)) {
  11264. global::System.Data.DataRow[] deletedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11265. if (((deletedRows != null)
  11266. && (0 < deletedRows.Length))) {
  11267. result = (result + this._tagTableAdapter.Update(deletedRows));
  11268. allChangedRows.AddRange(deletedRows);
  11269. }
  11270. }
  11271. if ((this._productTableAdapter != null)) {
  11272. global::System.Data.DataRow[] deletedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11273. if (((deletedRows != null)
  11274. && (0 < deletedRows.Length))) {
  11275. result = (result + this._productTableAdapter.Update(deletedRows));
  11276. allChangedRows.AddRange(deletedRows);
  11277. }
  11278. }
  11279. if ((this._clientServiceTableAdapter != null)) {
  11280. global::System.Data.DataRow[] deletedRows = dataSet.ClientService.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11281. if (((deletedRows != null)
  11282. && (0 < deletedRows.Length))) {
  11283. result = (result + this._clientServiceTableAdapter.Update(deletedRows));
  11284. allChangedRows.AddRange(deletedRows);
  11285. }
  11286. }
  11287. if ((this._serviceTableAdapter != null)) {
  11288. global::System.Data.DataRow[] deletedRows = dataSet.Service.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11289. if (((deletedRows != null)
  11290. && (0 < deletedRows.Length))) {
  11291. result = (result + this._serviceTableAdapter.Update(deletedRows));
  11292. allChangedRows.AddRange(deletedRows);
  11293. }
  11294. }
  11295. if ((this._manufacturerTableAdapter != null)) {
  11296. global::System.Data.DataRow[] deletedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11297. if (((deletedRows != null)
  11298. && (0 < deletedRows.Length))) {
  11299. result = (result + this._manufacturerTableAdapter.Update(deletedRows));
  11300. allChangedRows.AddRange(deletedRows);
  11301. }
  11302. }
  11303. if ((this._clientTableAdapter != null)) {
  11304. global::System.Data.DataRow[] deletedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11305. if (((deletedRows != null)
  11306. && (0 < deletedRows.Length))) {
  11307. result = (result + this._clientTableAdapter.Update(deletedRows));
  11308. allChangedRows.AddRange(deletedRows);
  11309. }
  11310. }
  11311. if ((this._genderTableAdapter != null)) {
  11312. global::System.Data.DataRow[] deletedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11313. if (((deletedRows != null)
  11314. && (0 < deletedRows.Length))) {
  11315. result = (result + this._genderTableAdapter.Update(deletedRows));
  11316. allChangedRows.AddRange(deletedRows);
  11317. }
  11318. }
  11319. return result;
  11320. }
  11321. /// <summary>
  11322. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  11323. ///</summary>
  11324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11326. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  11327. if (((updatedRows == null)
  11328. || (updatedRows.Length < 1))) {
  11329. return updatedRows;
  11330. }
  11331. if (((allAddedRows == null)
  11332. || (allAddedRows.Count < 1))) {
  11333. return updatedRows;
  11334. }
  11335. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  11336. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  11337. global::System.Data.DataRow row = updatedRows[i];
  11338. if ((allAddedRows.Contains(row) == false)) {
  11339. realUpdatedRows.Add(row);
  11340. }
  11341. }
  11342. return realUpdatedRows.ToArray();
  11343. }
  11344. /// <summary>
  11345. ///Update all changes to the dataset.
  11346. ///</summary>
  11347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11349. public virtual int UpdateAll(Хаустов_ПробныйДЭDataSet dataSet) {
  11350. if ((dataSet == null)) {
  11351. throw new global::System.ArgumentNullException("dataSet");
  11352. }
  11353. if ((dataSet.HasChanges() == false)) {
  11354. return 0;
  11355. }
  11356. if (((this._attachedProductTableAdapter != null)
  11357. && (this.MatchTableAdapterConnection(this._attachedProductTableAdapter.Connection) == false))) {
  11358. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11359. "r, должны использовать одинаковую строку подключения.");
  11360. }
  11361. if (((this._clientTableAdapter != null)
  11362. && (this.MatchTableAdapterConnection(this._clientTableAdapter.Connection) == false))) {
  11363. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11364. "r, должны использовать одинаковую строку подключения.");
  11365. }
  11366. if (((this._clientServiceTableAdapter != null)
  11367. && (this.MatchTableAdapterConnection(this._clientServiceTableAdapter.Connection) == false))) {
  11368. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11369. "r, должны использовать одинаковую строку подключения.");
  11370. }
  11371. if (((this._documentByServiceTableAdapter != null)
  11372. && (this.MatchTableAdapterConnection(this._documentByServiceTableAdapter.Connection) == false))) {
  11373. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11374. "r, должны использовать одинаковую строку подключения.");
  11375. }
  11376. if (((this._genderTableAdapter != null)
  11377. && (this.MatchTableAdapterConnection(this._genderTableAdapter.Connection) == false))) {
  11378. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11379. "r, должны использовать одинаковую строку подключения.");
  11380. }
  11381. if (((this._manufacturerTableAdapter != null)
  11382. && (this.MatchTableAdapterConnection(this._manufacturerTableAdapter.Connection) == false))) {
  11383. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11384. "r, должны использовать одинаковую строку подключения.");
  11385. }
  11386. if (((this._productTableAdapter != null)
  11387. && (this.MatchTableAdapterConnection(this._productTableAdapter.Connection) == false))) {
  11388. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11389. "r, должны использовать одинаковую строку подключения.");
  11390. }
  11391. if (((this._productPhotoTableAdapter != null)
  11392. && (this.MatchTableAdapterConnection(this._productPhotoTableAdapter.Connection) == false))) {
  11393. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11394. "r, должны использовать одинаковую строку подключения.");
  11395. }
  11396. if (((this._productSaleTableAdapter != null)
  11397. && (this.MatchTableAdapterConnection(this._productSaleTableAdapter.Connection) == false))) {
  11398. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11399. "r, должны использовать одинаковую строку подключения.");
  11400. }
  11401. if (((this._serviceTableAdapter != null)
  11402. && (this.MatchTableAdapterConnection(this._serviceTableAdapter.Connection) == false))) {
  11403. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11404. "r, должны использовать одинаковую строку подключения.");
  11405. }
  11406. if (((this._servicePhotoTableAdapter != null)
  11407. && (this.MatchTableAdapterConnection(this._servicePhotoTableAdapter.Connection) == false))) {
  11408. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11409. "r, должны использовать одинаковую строку подключения.");
  11410. }
  11411. if (((this._tagTableAdapter != null)
  11412. && (this.MatchTableAdapterConnection(this._tagTableAdapter.Connection) == false))) {
  11413. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11414. "r, должны использовать одинаковую строку подключения.");
  11415. }
  11416. if (((this._tagOfClientTableAdapter != null)
  11417. && (this.MatchTableAdapterConnection(this._tagOfClientTableAdapter.Connection) == false))) {
  11418. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11419. "r, должны использовать одинаковую строку подключения.");
  11420. }
  11421. if (((this._учеткиTableAdapter != null)
  11422. && (this.MatchTableAdapterConnection(this._учеткиTableAdapter.Connection) == false))) {
  11423. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11424. "r, должны использовать одинаковую строку подключения.");
  11425. }
  11426. global::System.Data.IDbConnection workConnection = this.Connection;
  11427. if ((workConnection == null)) {
  11428. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  11429. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  11430. }
  11431. bool workConnOpened = false;
  11432. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  11433. == global::System.Data.ConnectionState.Broken)) {
  11434. workConnection.Close();
  11435. }
  11436. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  11437. workConnection.Open();
  11438. workConnOpened = true;
  11439. }
  11440. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  11441. if ((workTransaction == null)) {
  11442. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  11443. "и или текущее состояние не позволяет начать транзакцию.");
  11444. }
  11445. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  11446. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  11447. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  11448. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  11449. int result = 0;
  11450. global::System.Data.DataSet backupDataSet = null;
  11451. if (this.BackupDataSetBeforeUpdate) {
  11452. backupDataSet = new global::System.Data.DataSet();
  11453. backupDataSet.Merge(dataSet);
  11454. }
  11455. try {
  11456. // ---- Prepare for update -----------
  11457. //
  11458. if ((this._attachedProductTableAdapter != null)) {
  11459. revertConnections.Add(this._attachedProductTableAdapter, this._attachedProductTableAdapter.Connection);
  11460. this._attachedProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11461. this._attachedProductTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11462. if (this._attachedProductTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11463. this._attachedProductTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11464. adaptersWithAcceptChangesDuringUpdate.Add(this._attachedProductTableAdapter.Adapter);
  11465. }
  11466. }
  11467. if ((this._clientTableAdapter != null)) {
  11468. revertConnections.Add(this._clientTableAdapter, this._clientTableAdapter.Connection);
  11469. this._clientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11470. this._clientTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11471. if (this._clientTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11472. this._clientTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11473. adaptersWithAcceptChangesDuringUpdate.Add(this._clientTableAdapter.Adapter);
  11474. }
  11475. }
  11476. if ((this._clientServiceTableAdapter != null)) {
  11477. revertConnections.Add(this._clientServiceTableAdapter, this._clientServiceTableAdapter.Connection);
  11478. this._clientServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11479. this._clientServiceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11480. if (this._clientServiceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11481. this._clientServiceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11482. adaptersWithAcceptChangesDuringUpdate.Add(this._clientServiceTableAdapter.Adapter);
  11483. }
  11484. }
  11485. if ((this._documentByServiceTableAdapter != null)) {
  11486. revertConnections.Add(this._documentByServiceTableAdapter, this._documentByServiceTableAdapter.Connection);
  11487. this._documentByServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11488. this._documentByServiceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11489. if (this._documentByServiceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11490. this._documentByServiceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11491. adaptersWithAcceptChangesDuringUpdate.Add(this._documentByServiceTableAdapter.Adapter);
  11492. }
  11493. }
  11494. if ((this._genderTableAdapter != null)) {
  11495. revertConnections.Add(this._genderTableAdapter, this._genderTableAdapter.Connection);
  11496. this._genderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11497. this._genderTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11498. if (this._genderTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11499. this._genderTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11500. adaptersWithAcceptChangesDuringUpdate.Add(this._genderTableAdapter.Adapter);
  11501. }
  11502. }
  11503. if ((this._manufacturerTableAdapter != null)) {
  11504. revertConnections.Add(this._manufacturerTableAdapter, this._manufacturerTableAdapter.Connection);
  11505. this._manufacturerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11506. this._manufacturerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11507. if (this._manufacturerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11508. this._manufacturerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11509. adaptersWithAcceptChangesDuringUpdate.Add(this._manufacturerTableAdapter.Adapter);
  11510. }
  11511. }
  11512. if ((this._productTableAdapter != null)) {
  11513. revertConnections.Add(this._productTableAdapter, this._productTableAdapter.Connection);
  11514. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11515. this._productTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11516. if (this._productTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11517. this._productTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11518. adaptersWithAcceptChangesDuringUpdate.Add(this._productTableAdapter.Adapter);
  11519. }
  11520. }
  11521. if ((this._productPhotoTableAdapter != null)) {
  11522. revertConnections.Add(this._productPhotoTableAdapter, this._productPhotoTableAdapter.Connection);
  11523. this._productPhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11524. this._productPhotoTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11525. if (this._productPhotoTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11526. this._productPhotoTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11527. adaptersWithAcceptChangesDuringUpdate.Add(this._productPhotoTableAdapter.Adapter);
  11528. }
  11529. }
  11530. if ((this._productSaleTableAdapter != null)) {
  11531. revertConnections.Add(this._productSaleTableAdapter, this._productSaleTableAdapter.Connection);
  11532. this._productSaleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11533. this._productSaleTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11534. if (this._productSaleTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11535. this._productSaleTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11536. adaptersWithAcceptChangesDuringUpdate.Add(this._productSaleTableAdapter.Adapter);
  11537. }
  11538. }
  11539. if ((this._serviceTableAdapter != null)) {
  11540. revertConnections.Add(this._serviceTableAdapter, this._serviceTableAdapter.Connection);
  11541. this._serviceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11542. this._serviceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11543. if (this._serviceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11544. this._serviceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11545. adaptersWithAcceptChangesDuringUpdate.Add(this._serviceTableAdapter.Adapter);
  11546. }
  11547. }
  11548. if ((this._servicePhotoTableAdapter != null)) {
  11549. revertConnections.Add(this._servicePhotoTableAdapter, this._servicePhotoTableAdapter.Connection);
  11550. this._servicePhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11551. this._servicePhotoTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11552. if (this._servicePhotoTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11553. this._servicePhotoTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11554. adaptersWithAcceptChangesDuringUpdate.Add(this._servicePhotoTableAdapter.Adapter);
  11555. }
  11556. }
  11557. if ((this._tagTableAdapter != null)) {
  11558. revertConnections.Add(this._tagTableAdapter, this._tagTableAdapter.Connection);
  11559. this._tagTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11560. this._tagTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11561. if (this._tagTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11562. this._tagTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11563. adaptersWithAcceptChangesDuringUpdate.Add(this._tagTableAdapter.Adapter);
  11564. }
  11565. }
  11566. if ((this._tagOfClientTableAdapter != null)) {
  11567. revertConnections.Add(this._tagOfClientTableAdapter, this._tagOfClientTableAdapter.Connection);
  11568. this._tagOfClientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11569. this._tagOfClientTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11570. if (this._tagOfClientTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11571. this._tagOfClientTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11572. adaptersWithAcceptChangesDuringUpdate.Add(this._tagOfClientTableAdapter.Adapter);
  11573. }
  11574. }
  11575. if ((this._учеткиTableAdapter != null)) {
  11576. revertConnections.Add(this._учеткиTableAdapter, this._учеткиTableAdapter.Connection);
  11577. this._учеткиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11578. this._учеткиTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11579. if (this._учеткиTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11580. this._учеткиTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11581. adaptersWithAcceptChangesDuringUpdate.Add(this._учеткиTableAdapter.Adapter);
  11582. }
  11583. }
  11584. //
  11585. //---- Perform updates -----------
  11586. //
  11587. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  11588. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  11589. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  11590. }
  11591. else {
  11592. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  11593. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  11594. }
  11595. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  11596. //
  11597. //---- Commit updates -----------
  11598. //
  11599. workTransaction.Commit();
  11600. if ((0 < allAddedRows.Count)) {
  11601. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  11602. allAddedRows.CopyTo(rows);
  11603. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  11604. global::System.Data.DataRow row = rows[i];
  11605. row.AcceptChanges();
  11606. }
  11607. }
  11608. if ((0 < allChangedRows.Count)) {
  11609. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  11610. allChangedRows.CopyTo(rows);
  11611. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  11612. global::System.Data.DataRow row = rows[i];
  11613. row.AcceptChanges();
  11614. }
  11615. }
  11616. }
  11617. catch (global::System.Exception ex) {
  11618. workTransaction.Rollback();
  11619. // ---- Restore the dataset -----------
  11620. if (this.BackupDataSetBeforeUpdate) {
  11621. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  11622. dataSet.Clear();
  11623. dataSet.Merge(backupDataSet);
  11624. }
  11625. else {
  11626. if ((0 < allAddedRows.Count)) {
  11627. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  11628. allAddedRows.CopyTo(rows);
  11629. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  11630. global::System.Data.DataRow row = rows[i];
  11631. row.AcceptChanges();
  11632. row.SetAdded();
  11633. }
  11634. }
  11635. }
  11636. throw ex;
  11637. }
  11638. finally {
  11639. if (workConnOpened) {
  11640. workConnection.Close();
  11641. }
  11642. if ((this._attachedProductTableAdapter != null)) {
  11643. this._attachedProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._attachedProductTableAdapter]));
  11644. this._attachedProductTableAdapter.Transaction = null;
  11645. }
  11646. if ((this._clientTableAdapter != null)) {
  11647. this._clientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._clientTableAdapter]));
  11648. this._clientTableAdapter.Transaction = null;
  11649. }
  11650. if ((this._clientServiceTableAdapter != null)) {
  11651. this._clientServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._clientServiceTableAdapter]));
  11652. this._clientServiceTableAdapter.Transaction = null;
  11653. }
  11654. if ((this._documentByServiceTableAdapter != null)) {
  11655. this._documentByServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._documentByServiceTableAdapter]));
  11656. this._documentByServiceTableAdapter.Transaction = null;
  11657. }
  11658. if ((this._genderTableAdapter != null)) {
  11659. this._genderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._genderTableAdapter]));
  11660. this._genderTableAdapter.Transaction = null;
  11661. }
  11662. if ((this._manufacturerTableAdapter != null)) {
  11663. this._manufacturerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._manufacturerTableAdapter]));
  11664. this._manufacturerTableAdapter.Transaction = null;
  11665. }
  11666. if ((this._productTableAdapter != null)) {
  11667. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productTableAdapter]));
  11668. this._productTableAdapter.Transaction = null;
  11669. }
  11670. if ((this._productPhotoTableAdapter != null)) {
  11671. this._productPhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productPhotoTableAdapter]));
  11672. this._productPhotoTableAdapter.Transaction = null;
  11673. }
  11674. if ((this._productSaleTableAdapter != null)) {
  11675. this._productSaleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productSaleTableAdapter]));
  11676. this._productSaleTableAdapter.Transaction = null;
  11677. }
  11678. if ((this._serviceTableAdapter != null)) {
  11679. this._serviceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._serviceTableAdapter]));
  11680. this._serviceTableAdapter.Transaction = null;
  11681. }
  11682. if ((this._servicePhotoTableAdapter != null)) {
  11683. this._servicePhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._servicePhotoTableAdapter]));
  11684. this._servicePhotoTableAdapter.Transaction = null;
  11685. }
  11686. if ((this._tagTableAdapter != null)) {
  11687. this._tagTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tagTableAdapter]));
  11688. this._tagTableAdapter.Transaction = null;
  11689. }
  11690. if ((this._tagOfClientTableAdapter != null)) {
  11691. this._tagOfClientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tagOfClientTableAdapter]));
  11692. this._tagOfClientTableAdapter.Transaction = null;
  11693. }
  11694. if ((this._учеткиTableAdapter != null)) {
  11695. this._учеткиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._учеткиTableAdapter]));
  11696. this._учеткиTableAdapter.Transaction = null;
  11697. }
  11698. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  11699. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  11700. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  11701. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  11702. global::System.Data.Common.DataAdapter adapter = adapters[i];
  11703. adapter.AcceptChangesDuringUpdate = true;
  11704. }
  11705. }
  11706. }
  11707. return result;
  11708. }
  11709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11711. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  11712. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  11713. }
  11714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11716. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  11717. if ((this._connection != null)) {
  11718. return true;
  11719. }
  11720. if (((this.Connection == null)
  11721. || (inputConnection == null))) {
  11722. return true;
  11723. }
  11724. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  11725. return true;
  11726. }
  11727. return false;
  11728. }
  11729. /// <summary>
  11730. ///Update Order Option
  11731. ///</summary>
  11732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11733. public enum UpdateOrderOption {
  11734. InsertUpdateDelete = 0,
  11735. UpdateInsertDelete = 1,
  11736. }
  11737. /// <summary>
  11738. ///Used to sort self-referenced table's rows
  11739. ///</summary>
  11740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11741. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  11742. private global::System.Data.DataRelation _relation;
  11743. private int _childFirst;
  11744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11746. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  11747. this._relation = relation;
  11748. if (childFirst) {
  11749. this._childFirst = -1;
  11750. }
  11751. else {
  11752. this._childFirst = 1;
  11753. }
  11754. }
  11755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11757. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  11758. global::System.Diagnostics.Debug.Assert((row != null));
  11759. global::System.Data.DataRow root = row;
  11760. distance = 0;
  11761. 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>();
  11762. traversedRows[row] = row;
  11763. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  11764. for (
  11765. ; ((parent != null)
  11766. && (traversedRows.ContainsKey(parent) == false));
  11767. ) {
  11768. distance = (distance + 1);
  11769. root = parent;
  11770. traversedRows[parent] = parent;
  11771. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  11772. }
  11773. if ((distance == 0)) {
  11774. traversedRows.Clear();
  11775. traversedRows[row] = row;
  11776. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  11777. for (
  11778. ; ((parent != null)
  11779. && (traversedRows.ContainsKey(parent) == false));
  11780. ) {
  11781. distance = (distance + 1);
  11782. root = parent;
  11783. traversedRows[parent] = parent;
  11784. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  11785. }
  11786. }
  11787. return root;
  11788. }
  11789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11791. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  11792. if (object.ReferenceEquals(row1, row2)) {
  11793. return 0;
  11794. }
  11795. if ((row1 == null)) {
  11796. return -1;
  11797. }
  11798. if ((row2 == null)) {
  11799. return 1;
  11800. }
  11801. int distance1 = 0;
  11802. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  11803. int distance2 = 0;
  11804. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  11805. if (object.ReferenceEquals(root1, root2)) {
  11806. return (this._childFirst * distance1.CompareTo(distance2));
  11807. }
  11808. else {
  11809. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  11810. && (root2.Table != null)));
  11811. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  11812. return -1;
  11813. }
  11814. else {
  11815. return 1;
  11816. }
  11817. }
  11818. }
  11819. }
  11820. }
  11821. }
  11822. #pragma warning restore 1591