BB_GrishinaDataSet.Designer.cs 808 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace BB_Grishina {
  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("BB_GrishinaDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class BB_GrishinaDataSet : 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 BB_GrishinaDataSet() {
  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 BB_GrishinaDataSet(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. BB_GrishinaDataSet cln = ((BB_GrishinaDataSet)(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 = "BB_GrishinaDataSet";
  494. this.Prefix = "";
  495. this.Namespace = "http://tempuri.org/BB_GrishinaDataSet.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.ClientIDColumn}, 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.ServiceIDColumn}, 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. BB_GrishinaDataSet ds = new BB_GrishinaDataSet();
  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. BB_GrishinaDataSet ds = new BB_GrishinaDataSet();
  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. private global::System.Data.DataColumn columnPhotoPath;
  996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  998. public ClientDataTable() {
  999. this.TableName = "Client";
  1000. this.BeginInit();
  1001. this.InitClass();
  1002. this.EndInit();
  1003. }
  1004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1006. internal ClientDataTable(global::System.Data.DataTable table) {
  1007. this.TableName = table.TableName;
  1008. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1009. this.CaseSensitive = table.CaseSensitive;
  1010. }
  1011. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1012. this.Locale = table.Locale;
  1013. }
  1014. if ((table.Namespace != table.DataSet.Namespace)) {
  1015. this.Namespace = table.Namespace;
  1016. }
  1017. this.Prefix = table.Prefix;
  1018. this.MinimumCapacity = table.MinimumCapacity;
  1019. }
  1020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1022. protected ClientDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1023. base(info, context) {
  1024. this.InitVars();
  1025. }
  1026. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1027. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1028. public global::System.Data.DataColumn IDColumn {
  1029. get {
  1030. return this.columnID;
  1031. }
  1032. }
  1033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1034. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1035. public global::System.Data.DataColumn ИмяColumn {
  1036. get {
  1037. return this.columnИмя;
  1038. }
  1039. }
  1040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1042. public global::System.Data.DataColumn ФамилияColumn {
  1043. get {
  1044. return this.columnФамилия;
  1045. }
  1046. }
  1047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1048. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1049. public global::System.Data.DataColumn ОтчествоColumn {
  1050. get {
  1051. return this.columnОтчество;
  1052. }
  1053. }
  1054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1056. public global::System.Data.DataColumn ПолColumn {
  1057. get {
  1058. return this.columnПол;
  1059. }
  1060. }
  1061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1063. public global::System.Data.DataColumn ТелефонColumn {
  1064. get {
  1065. return this.columnТелефон;
  1066. }
  1067. }
  1068. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1069. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1070. public global::System.Data.DataColumn ДатаРожденияColumn {
  1071. get {
  1072. return this.columnДатаРождения;
  1073. }
  1074. }
  1075. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1076. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1077. public global::System.Data.DataColumn EmailColumn {
  1078. get {
  1079. return this.columnEmail;
  1080. }
  1081. }
  1082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1084. public global::System.Data.DataColumn ДатаРегистрацииColumn {
  1085. get {
  1086. return this.columnДатаРегистрации;
  1087. }
  1088. }
  1089. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1090. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1091. public global::System.Data.DataColumn PhotoPathColumn {
  1092. get {
  1093. return this.columnPhotoPath;
  1094. }
  1095. }
  1096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1098. [global::System.ComponentModel.Browsable(false)]
  1099. public int Count {
  1100. get {
  1101. return this.Rows.Count;
  1102. }
  1103. }
  1104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1106. public ClientRow this[int index] {
  1107. get {
  1108. return ((ClientRow)(this.Rows[index]));
  1109. }
  1110. }
  1111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1112. public event ClientRowChangeEventHandler ClientRowChanging;
  1113. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1114. public event ClientRowChangeEventHandler ClientRowChanged;
  1115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1116. public event ClientRowChangeEventHandler ClientRowDeleting;
  1117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1118. public event ClientRowChangeEventHandler ClientRowDeleted;
  1119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1121. public void AddClientRow(ClientRow row) {
  1122. this.Rows.Add(row);
  1123. }
  1124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1126. public ClientRow AddClientRow(string Имя, string Фамилия, string Отчество, GenderRow parentGenderRowByFK_Client_Gender, string Телефон, System.DateTime ДатаРождения, string Email, System.DateTime ДатаРегистрации, string PhotoPath) {
  1127. ClientRow rowClientRow = ((ClientRow)(this.NewRow()));
  1128. object[] columnValuesArray = new object[] {
  1129. null,
  1130. Имя,
  1131. Фамилия,
  1132. Отчество,
  1133. null,
  1134. Телефон,
  1135. ДатаРождения,
  1136. Email,
  1137. ДатаРегистрации,
  1138. PhotoPath};
  1139. if ((parentGenderRowByFK_Client_Gender != null)) {
  1140. columnValuesArray[4] = parentGenderRowByFK_Client_Gender[0];
  1141. }
  1142. rowClientRow.ItemArray = columnValuesArray;
  1143. this.Rows.Add(rowClientRow);
  1144. return rowClientRow;
  1145. }
  1146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1147. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1148. public ClientRow FindByID(int ID) {
  1149. return ((ClientRow)(this.Rows.Find(new object[] {
  1150. ID})));
  1151. }
  1152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1154. public override global::System.Data.DataTable Clone() {
  1155. ClientDataTable cln = ((ClientDataTable)(base.Clone()));
  1156. cln.InitVars();
  1157. return cln;
  1158. }
  1159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1161. protected override global::System.Data.DataTable CreateInstance() {
  1162. return new ClientDataTable();
  1163. }
  1164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1166. internal void InitVars() {
  1167. this.columnID = base.Columns["ID"];
  1168. this.columnИмя = base.Columns["Имя"];
  1169. this.columnФамилия = base.Columns["Фамилия"];
  1170. this.columnОтчество = base.Columns["Отчество"];
  1171. this.columnПол = base.Columns["Пол"];
  1172. this.columnТелефон = base.Columns["Телефон"];
  1173. this.columnДатаРождения = base.Columns["ДатаРождения"];
  1174. this.columnEmail = base.Columns["Email"];
  1175. this.columnДатаРегистрации = base.Columns["ДатаРегистрации"];
  1176. this.columnPhotoPath = base.Columns["PhotoPath"];
  1177. }
  1178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1180. private void InitClass() {
  1181. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1182. base.Columns.Add(this.columnID);
  1183. this.columnИмя = new global::System.Data.DataColumn("Имя", typeof(string), null, global::System.Data.MappingType.Element);
  1184. base.Columns.Add(this.columnИмя);
  1185. this.columnФамилия = new global::System.Data.DataColumn("Фамилия", typeof(string), null, global::System.Data.MappingType.Element);
  1186. base.Columns.Add(this.columnФамилия);
  1187. this.columnОтчество = new global::System.Data.DataColumn("Отчество", typeof(string), null, global::System.Data.MappingType.Element);
  1188. base.Columns.Add(this.columnОтчество);
  1189. this.columnПол = new global::System.Data.DataColumn("Пол", typeof(string), null, global::System.Data.MappingType.Element);
  1190. base.Columns.Add(this.columnПол);
  1191. this.columnТелефон = new global::System.Data.DataColumn("Телефон", typeof(string), null, global::System.Data.MappingType.Element);
  1192. base.Columns.Add(this.columnТелефон);
  1193. this.columnДатаРождения = new global::System.Data.DataColumn("ДатаРождения", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1194. base.Columns.Add(this.columnДатаРождения);
  1195. this.columnEmail = new global::System.Data.DataColumn("Email", typeof(string), null, global::System.Data.MappingType.Element);
  1196. base.Columns.Add(this.columnEmail);
  1197. this.columnДатаРегистрации = new global::System.Data.DataColumn("ДатаРегистрации", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1198. base.Columns.Add(this.columnДатаРегистрации);
  1199. this.columnPhotoPath = new global::System.Data.DataColumn("PhotoPath", typeof(string), null, global::System.Data.MappingType.Element);
  1200. base.Columns.Add(this.columnPhotoPath);
  1201. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1202. this.columnID}, true));
  1203. this.columnID.AutoIncrement = true;
  1204. this.columnID.AutoIncrementSeed = -1;
  1205. this.columnID.AutoIncrementStep = -1;
  1206. this.columnID.AllowDBNull = false;
  1207. this.columnID.ReadOnly = true;
  1208. this.columnID.Unique = true;
  1209. this.columnИмя.AllowDBNull = false;
  1210. this.columnИмя.MaxLength = 50;
  1211. this.columnФамилия.MaxLength = 10;
  1212. this.columnОтчество.MaxLength = 50;
  1213. this.columnПол.MaxLength = 7;
  1214. this.columnТелефон.AllowDBNull = false;
  1215. this.columnТелефон.MaxLength = 20;
  1216. this.columnEmail.MaxLength = 255;
  1217. this.columnДатаРегистрации.AllowDBNull = false;
  1218. this.columnPhotoPath.MaxLength = 1000;
  1219. }
  1220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1222. public ClientRow NewClientRow() {
  1223. return ((ClientRow)(this.NewRow()));
  1224. }
  1225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1227. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1228. return new ClientRow(builder);
  1229. }
  1230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1232. protected override global::System.Type GetRowType() {
  1233. return typeof(ClientRow);
  1234. }
  1235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1236. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1237. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1238. base.OnRowChanged(e);
  1239. if ((this.ClientRowChanged != null)) {
  1240. this.ClientRowChanged(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  1241. }
  1242. }
  1243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1245. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1246. base.OnRowChanging(e);
  1247. if ((this.ClientRowChanging != null)) {
  1248. this.ClientRowChanging(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  1249. }
  1250. }
  1251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1253. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1254. base.OnRowDeleted(e);
  1255. if ((this.ClientRowDeleted != null)) {
  1256. this.ClientRowDeleted(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  1257. }
  1258. }
  1259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1261. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1262. base.OnRowDeleting(e);
  1263. if ((this.ClientRowDeleting != null)) {
  1264. this.ClientRowDeleting(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  1265. }
  1266. }
  1267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1269. public void RemoveClientRow(ClientRow row) {
  1270. this.Rows.Remove(row);
  1271. }
  1272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1274. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1275. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1276. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1277. BB_GrishinaDataSet ds = new BB_GrishinaDataSet();
  1278. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1279. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1280. any1.MinOccurs = new decimal(0);
  1281. any1.MaxOccurs = decimal.MaxValue;
  1282. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1283. sequence.Items.Add(any1);
  1284. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1285. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1286. any2.MinOccurs = new decimal(1);
  1287. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1288. sequence.Items.Add(any2);
  1289. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1290. attribute1.Name = "namespace";
  1291. attribute1.FixedValue = ds.Namespace;
  1292. type.Attributes.Add(attribute1);
  1293. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1294. attribute2.Name = "tableTypeName";
  1295. attribute2.FixedValue = "ClientDataTable";
  1296. type.Attributes.Add(attribute2);
  1297. type.Particle = sequence;
  1298. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1299. if (xs.Contains(dsSchema.TargetNamespace)) {
  1300. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1301. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1302. try {
  1303. global::System.Xml.Schema.XmlSchema schema = null;
  1304. dsSchema.Write(s1);
  1305. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1306. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1307. s2.SetLength(0);
  1308. schema.Write(s2);
  1309. if ((s1.Length == s2.Length)) {
  1310. s1.Position = 0;
  1311. s2.Position = 0;
  1312. for (; ((s1.Position != s1.Length)
  1313. && (s1.ReadByte() == s2.ReadByte())); ) {
  1314. ;
  1315. }
  1316. if ((s1.Position == s1.Length)) {
  1317. return type;
  1318. }
  1319. }
  1320. }
  1321. }
  1322. finally {
  1323. if ((s1 != null)) {
  1324. s1.Close();
  1325. }
  1326. if ((s2 != null)) {
  1327. s2.Close();
  1328. }
  1329. }
  1330. }
  1331. xs.Add(dsSchema);
  1332. return type;
  1333. }
  1334. }
  1335. /// <summary>
  1336. ///Represents the strongly named DataTable class.
  1337. ///</summary>
  1338. [global::System.Serializable()]
  1339. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1340. public partial class ClientServiceDataTable : global::System.Data.TypedTableBase<ClientServiceRow> {
  1341. private global::System.Data.DataColumn columnID;
  1342. private global::System.Data.DataColumn columnClientID;
  1343. private global::System.Data.DataColumn columnServiceID;
  1344. private global::System.Data.DataColumn columnStartTime;
  1345. private global::System.Data.DataColumn columnComment;
  1346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1348. public ClientServiceDataTable() {
  1349. this.TableName = "ClientService";
  1350. this.BeginInit();
  1351. this.InitClass();
  1352. this.EndInit();
  1353. }
  1354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1355. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1356. internal ClientServiceDataTable(global::System.Data.DataTable table) {
  1357. this.TableName = table.TableName;
  1358. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1359. this.CaseSensitive = table.CaseSensitive;
  1360. }
  1361. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1362. this.Locale = table.Locale;
  1363. }
  1364. if ((table.Namespace != table.DataSet.Namespace)) {
  1365. this.Namespace = table.Namespace;
  1366. }
  1367. this.Prefix = table.Prefix;
  1368. this.MinimumCapacity = table.MinimumCapacity;
  1369. }
  1370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1372. protected ClientServiceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1373. base(info, context) {
  1374. this.InitVars();
  1375. }
  1376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1378. public global::System.Data.DataColumn IDColumn {
  1379. get {
  1380. return this.columnID;
  1381. }
  1382. }
  1383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1385. public global::System.Data.DataColumn ClientIDColumn {
  1386. get {
  1387. return this.columnClientID;
  1388. }
  1389. }
  1390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1392. public global::System.Data.DataColumn ServiceIDColumn {
  1393. get {
  1394. return this.columnServiceID;
  1395. }
  1396. }
  1397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1399. public global::System.Data.DataColumn StartTimeColumn {
  1400. get {
  1401. return this.columnStartTime;
  1402. }
  1403. }
  1404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1406. public global::System.Data.DataColumn CommentColumn {
  1407. get {
  1408. return this.columnComment;
  1409. }
  1410. }
  1411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1413. [global::System.ComponentModel.Browsable(false)]
  1414. public int Count {
  1415. get {
  1416. return this.Rows.Count;
  1417. }
  1418. }
  1419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1421. public ClientServiceRow this[int index] {
  1422. get {
  1423. return ((ClientServiceRow)(this.Rows[index]));
  1424. }
  1425. }
  1426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1427. public event ClientServiceRowChangeEventHandler ClientServiceRowChanging;
  1428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1429. public event ClientServiceRowChangeEventHandler ClientServiceRowChanged;
  1430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1431. public event ClientServiceRowChangeEventHandler ClientServiceRowDeleting;
  1432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1433. public event ClientServiceRowChangeEventHandler ClientServiceRowDeleted;
  1434. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1435. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1436. public void AddClientServiceRow(ClientServiceRow row) {
  1437. this.Rows.Add(row);
  1438. }
  1439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1441. public ClientServiceRow AddClientServiceRow(ClientRow parentClientRowByFK_ClientService_Client, ServiceRow parentServiceRowByFK_ClientService_Service, System.DateTime StartTime, string Comment) {
  1442. ClientServiceRow rowClientServiceRow = ((ClientServiceRow)(this.NewRow()));
  1443. object[] columnValuesArray = new object[] {
  1444. null,
  1445. null,
  1446. null,
  1447. StartTime,
  1448. Comment};
  1449. if ((parentClientRowByFK_ClientService_Client != null)) {
  1450. columnValuesArray[1] = parentClientRowByFK_ClientService_Client[0];
  1451. }
  1452. if ((parentServiceRowByFK_ClientService_Service != null)) {
  1453. columnValuesArray[2] = parentServiceRowByFK_ClientService_Service[0];
  1454. }
  1455. rowClientServiceRow.ItemArray = columnValuesArray;
  1456. this.Rows.Add(rowClientServiceRow);
  1457. return rowClientServiceRow;
  1458. }
  1459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1461. public ClientServiceRow FindByID(int ID) {
  1462. return ((ClientServiceRow)(this.Rows.Find(new object[] {
  1463. ID})));
  1464. }
  1465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1467. public override global::System.Data.DataTable Clone() {
  1468. ClientServiceDataTable cln = ((ClientServiceDataTable)(base.Clone()));
  1469. cln.InitVars();
  1470. return cln;
  1471. }
  1472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1474. protected override global::System.Data.DataTable CreateInstance() {
  1475. return new ClientServiceDataTable();
  1476. }
  1477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1479. internal void InitVars() {
  1480. this.columnID = base.Columns["ID"];
  1481. this.columnClientID = base.Columns["ClientID"];
  1482. this.columnServiceID = base.Columns["ServiceID"];
  1483. this.columnStartTime = base.Columns["StartTime"];
  1484. this.columnComment = base.Columns["Comment"];
  1485. }
  1486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1488. private void InitClass() {
  1489. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1490. base.Columns.Add(this.columnID);
  1491. this.columnClientID = new global::System.Data.DataColumn("ClientID", typeof(int), null, global::System.Data.MappingType.Element);
  1492. base.Columns.Add(this.columnClientID);
  1493. this.columnServiceID = new global::System.Data.DataColumn("ServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  1494. base.Columns.Add(this.columnServiceID);
  1495. this.columnStartTime = new global::System.Data.DataColumn("StartTime", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1496. base.Columns.Add(this.columnStartTime);
  1497. this.columnComment = new global::System.Data.DataColumn("Comment", typeof(string), null, global::System.Data.MappingType.Element);
  1498. base.Columns.Add(this.columnComment);
  1499. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1500. this.columnID}, true));
  1501. this.columnID.AutoIncrement = true;
  1502. this.columnID.AutoIncrementSeed = -1;
  1503. this.columnID.AutoIncrementStep = -1;
  1504. this.columnID.AllowDBNull = false;
  1505. this.columnID.ReadOnly = true;
  1506. this.columnID.Unique = true;
  1507. this.columnClientID.AllowDBNull = false;
  1508. this.columnServiceID.AllowDBNull = false;
  1509. this.columnStartTime.AllowDBNull = false;
  1510. this.columnComment.MaxLength = 2147483647;
  1511. }
  1512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1514. public ClientServiceRow NewClientServiceRow() {
  1515. return ((ClientServiceRow)(this.NewRow()));
  1516. }
  1517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1519. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1520. return new ClientServiceRow(builder);
  1521. }
  1522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1524. protected override global::System.Type GetRowType() {
  1525. return typeof(ClientServiceRow);
  1526. }
  1527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1529. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1530. base.OnRowChanged(e);
  1531. if ((this.ClientServiceRowChanged != null)) {
  1532. this.ClientServiceRowChanged(this, new ClientServiceRowChangeEvent(((ClientServiceRow)(e.Row)), e.Action));
  1533. }
  1534. }
  1535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1537. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1538. base.OnRowChanging(e);
  1539. if ((this.ClientServiceRowChanging != null)) {
  1540. this.ClientServiceRowChanging(this, new ClientServiceRowChangeEvent(((ClientServiceRow)(e.Row)), e.Action));
  1541. }
  1542. }
  1543. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1544. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1545. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1546. base.OnRowDeleted(e);
  1547. if ((this.ClientServiceRowDeleted != null)) {
  1548. this.ClientServiceRowDeleted(this, new ClientServiceRowChangeEvent(((ClientServiceRow)(e.Row)), e.Action));
  1549. }
  1550. }
  1551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1553. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1554. base.OnRowDeleting(e);
  1555. if ((this.ClientServiceRowDeleting != null)) {
  1556. this.ClientServiceRowDeleting(this, new ClientServiceRowChangeEvent(((ClientServiceRow)(e.Row)), e.Action));
  1557. }
  1558. }
  1559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1561. public void RemoveClientServiceRow(ClientServiceRow row) {
  1562. this.Rows.Remove(row);
  1563. }
  1564. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1566. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1567. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1568. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1569. BB_GrishinaDataSet ds = new BB_GrishinaDataSet();
  1570. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1571. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1572. any1.MinOccurs = new decimal(0);
  1573. any1.MaxOccurs = decimal.MaxValue;
  1574. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1575. sequence.Items.Add(any1);
  1576. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1577. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1578. any2.MinOccurs = new decimal(1);
  1579. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1580. sequence.Items.Add(any2);
  1581. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1582. attribute1.Name = "namespace";
  1583. attribute1.FixedValue = ds.Namespace;
  1584. type.Attributes.Add(attribute1);
  1585. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1586. attribute2.Name = "tableTypeName";
  1587. attribute2.FixedValue = "ClientServiceDataTable";
  1588. type.Attributes.Add(attribute2);
  1589. type.Particle = sequence;
  1590. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1591. if (xs.Contains(dsSchema.TargetNamespace)) {
  1592. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1593. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1594. try {
  1595. global::System.Xml.Schema.XmlSchema schema = null;
  1596. dsSchema.Write(s1);
  1597. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1598. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1599. s2.SetLength(0);
  1600. schema.Write(s2);
  1601. if ((s1.Length == s2.Length)) {
  1602. s1.Position = 0;
  1603. s2.Position = 0;
  1604. for (; ((s1.Position != s1.Length)
  1605. && (s1.ReadByte() == s2.ReadByte())); ) {
  1606. ;
  1607. }
  1608. if ((s1.Position == s1.Length)) {
  1609. return type;
  1610. }
  1611. }
  1612. }
  1613. }
  1614. finally {
  1615. if ((s1 != null)) {
  1616. s1.Close();
  1617. }
  1618. if ((s2 != null)) {
  1619. s2.Close();
  1620. }
  1621. }
  1622. }
  1623. xs.Add(dsSchema);
  1624. return type;
  1625. }
  1626. }
  1627. /// <summary>
  1628. ///Represents the strongly named DataTable class.
  1629. ///</summary>
  1630. [global::System.Serializable()]
  1631. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1632. public partial class DocumentByServiceDataTable : global::System.Data.TypedTableBase<DocumentByServiceRow> {
  1633. private global::System.Data.DataColumn columnID;
  1634. private global::System.Data.DataColumn columnClientServiceID;
  1635. private global::System.Data.DataColumn columnDocumentPath;
  1636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1638. public DocumentByServiceDataTable() {
  1639. this.TableName = "DocumentByService";
  1640. this.BeginInit();
  1641. this.InitClass();
  1642. this.EndInit();
  1643. }
  1644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1646. internal DocumentByServiceDataTable(global::System.Data.DataTable table) {
  1647. this.TableName = table.TableName;
  1648. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1649. this.CaseSensitive = table.CaseSensitive;
  1650. }
  1651. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1652. this.Locale = table.Locale;
  1653. }
  1654. if ((table.Namespace != table.DataSet.Namespace)) {
  1655. this.Namespace = table.Namespace;
  1656. }
  1657. this.Prefix = table.Prefix;
  1658. this.MinimumCapacity = table.MinimumCapacity;
  1659. }
  1660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1662. protected DocumentByServiceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1663. base(info, context) {
  1664. this.InitVars();
  1665. }
  1666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1668. public global::System.Data.DataColumn IDColumn {
  1669. get {
  1670. return this.columnID;
  1671. }
  1672. }
  1673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1675. public global::System.Data.DataColumn ClientServiceIDColumn {
  1676. get {
  1677. return this.columnClientServiceID;
  1678. }
  1679. }
  1680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1682. public global::System.Data.DataColumn DocumentPathColumn {
  1683. get {
  1684. return this.columnDocumentPath;
  1685. }
  1686. }
  1687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1689. [global::System.ComponentModel.Browsable(false)]
  1690. public int Count {
  1691. get {
  1692. return this.Rows.Count;
  1693. }
  1694. }
  1695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1697. public DocumentByServiceRow this[int index] {
  1698. get {
  1699. return ((DocumentByServiceRow)(this.Rows[index]));
  1700. }
  1701. }
  1702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1703. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowChanging;
  1704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1705. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowChanged;
  1706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1707. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowDeleting;
  1708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1709. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowDeleted;
  1710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1711. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1712. public void AddDocumentByServiceRow(DocumentByServiceRow row) {
  1713. this.Rows.Add(row);
  1714. }
  1715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1717. public DocumentByServiceRow AddDocumentByServiceRow(ClientServiceRow parentClientServiceRowByFK_DocumentByService_ClientService, string DocumentPath) {
  1718. DocumentByServiceRow rowDocumentByServiceRow = ((DocumentByServiceRow)(this.NewRow()));
  1719. object[] columnValuesArray = new object[] {
  1720. null,
  1721. null,
  1722. DocumentPath};
  1723. if ((parentClientServiceRowByFK_DocumentByService_ClientService != null)) {
  1724. columnValuesArray[1] = parentClientServiceRowByFK_DocumentByService_ClientService[0];
  1725. }
  1726. rowDocumentByServiceRow.ItemArray = columnValuesArray;
  1727. this.Rows.Add(rowDocumentByServiceRow);
  1728. return rowDocumentByServiceRow;
  1729. }
  1730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1732. public DocumentByServiceRow FindByID(int ID) {
  1733. return ((DocumentByServiceRow)(this.Rows.Find(new object[] {
  1734. ID})));
  1735. }
  1736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1738. public override global::System.Data.DataTable Clone() {
  1739. DocumentByServiceDataTable cln = ((DocumentByServiceDataTable)(base.Clone()));
  1740. cln.InitVars();
  1741. return cln;
  1742. }
  1743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1745. protected override global::System.Data.DataTable CreateInstance() {
  1746. return new DocumentByServiceDataTable();
  1747. }
  1748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1750. internal void InitVars() {
  1751. this.columnID = base.Columns["ID"];
  1752. this.columnClientServiceID = base.Columns["ClientServiceID"];
  1753. this.columnDocumentPath = base.Columns["DocumentPath"];
  1754. }
  1755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1757. private void InitClass() {
  1758. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1759. base.Columns.Add(this.columnID);
  1760. this.columnClientServiceID = new global::System.Data.DataColumn("ClientServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  1761. base.Columns.Add(this.columnClientServiceID);
  1762. this.columnDocumentPath = new global::System.Data.DataColumn("DocumentPath", typeof(string), null, global::System.Data.MappingType.Element);
  1763. base.Columns.Add(this.columnDocumentPath);
  1764. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1765. this.columnID}, true));
  1766. this.columnID.AutoIncrement = true;
  1767. this.columnID.AutoIncrementSeed = -1;
  1768. this.columnID.AutoIncrementStep = -1;
  1769. this.columnID.AllowDBNull = false;
  1770. this.columnID.ReadOnly = true;
  1771. this.columnID.Unique = true;
  1772. this.columnClientServiceID.AllowDBNull = false;
  1773. this.columnDocumentPath.AllowDBNull = false;
  1774. this.columnDocumentPath.MaxLength = 1000;
  1775. }
  1776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1778. public DocumentByServiceRow NewDocumentByServiceRow() {
  1779. return ((DocumentByServiceRow)(this.NewRow()));
  1780. }
  1781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1783. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1784. return new DocumentByServiceRow(builder);
  1785. }
  1786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1788. protected override global::System.Type GetRowType() {
  1789. return typeof(DocumentByServiceRow);
  1790. }
  1791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1793. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1794. base.OnRowChanged(e);
  1795. if ((this.DocumentByServiceRowChanged != null)) {
  1796. this.DocumentByServiceRowChanged(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  1797. }
  1798. }
  1799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1801. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1802. base.OnRowChanging(e);
  1803. if ((this.DocumentByServiceRowChanging != null)) {
  1804. this.DocumentByServiceRowChanging(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  1805. }
  1806. }
  1807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1809. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1810. base.OnRowDeleted(e);
  1811. if ((this.DocumentByServiceRowDeleted != null)) {
  1812. this.DocumentByServiceRowDeleted(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  1813. }
  1814. }
  1815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1817. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1818. base.OnRowDeleting(e);
  1819. if ((this.DocumentByServiceRowDeleting != null)) {
  1820. this.DocumentByServiceRowDeleting(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  1821. }
  1822. }
  1823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1825. public void RemoveDocumentByServiceRow(DocumentByServiceRow row) {
  1826. this.Rows.Remove(row);
  1827. }
  1828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1830. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1831. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1832. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1833. BB_GrishinaDataSet ds = new BB_GrishinaDataSet();
  1834. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1835. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1836. any1.MinOccurs = new decimal(0);
  1837. any1.MaxOccurs = decimal.MaxValue;
  1838. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1839. sequence.Items.Add(any1);
  1840. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1841. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1842. any2.MinOccurs = new decimal(1);
  1843. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1844. sequence.Items.Add(any2);
  1845. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1846. attribute1.Name = "namespace";
  1847. attribute1.FixedValue = ds.Namespace;
  1848. type.Attributes.Add(attribute1);
  1849. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1850. attribute2.Name = "tableTypeName";
  1851. attribute2.FixedValue = "DocumentByServiceDataTable";
  1852. type.Attributes.Add(attribute2);
  1853. type.Particle = sequence;
  1854. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1855. if (xs.Contains(dsSchema.TargetNamespace)) {
  1856. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1857. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1858. try {
  1859. global::System.Xml.Schema.XmlSchema schema = null;
  1860. dsSchema.Write(s1);
  1861. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1862. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1863. s2.SetLength(0);
  1864. schema.Write(s2);
  1865. if ((s1.Length == s2.Length)) {
  1866. s1.Position = 0;
  1867. s2.Position = 0;
  1868. for (; ((s1.Position != s1.Length)
  1869. && (s1.ReadByte() == s2.ReadByte())); ) {
  1870. ;
  1871. }
  1872. if ((s1.Position == s1.Length)) {
  1873. return type;
  1874. }
  1875. }
  1876. }
  1877. }
  1878. finally {
  1879. if ((s1 != null)) {
  1880. s1.Close();
  1881. }
  1882. if ((s2 != null)) {
  1883. s2.Close();
  1884. }
  1885. }
  1886. }
  1887. xs.Add(dsSchema);
  1888. return type;
  1889. }
  1890. }
  1891. /// <summary>
  1892. ///Represents the strongly named DataTable class.
  1893. ///</summary>
  1894. [global::System.Serializable()]
  1895. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1896. public partial class GenderDataTable : global::System.Data.TypedTableBase<GenderRow> {
  1897. private global::System.Data.DataColumn columnCode;
  1898. private global::System.Data.DataColumn columnName;
  1899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1901. public GenderDataTable() {
  1902. this.TableName = "Gender";
  1903. this.BeginInit();
  1904. this.InitClass();
  1905. this.EndInit();
  1906. }
  1907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1909. internal GenderDataTable(global::System.Data.DataTable table) {
  1910. this.TableName = table.TableName;
  1911. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1912. this.CaseSensitive = table.CaseSensitive;
  1913. }
  1914. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1915. this.Locale = table.Locale;
  1916. }
  1917. if ((table.Namespace != table.DataSet.Namespace)) {
  1918. this.Namespace = table.Namespace;
  1919. }
  1920. this.Prefix = table.Prefix;
  1921. this.MinimumCapacity = table.MinimumCapacity;
  1922. }
  1923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1925. protected GenderDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1926. base(info, context) {
  1927. this.InitVars();
  1928. }
  1929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1931. public global::System.Data.DataColumn CodeColumn {
  1932. get {
  1933. return this.columnCode;
  1934. }
  1935. }
  1936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1938. public global::System.Data.DataColumn NameColumn {
  1939. get {
  1940. return this.columnName;
  1941. }
  1942. }
  1943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1945. [global::System.ComponentModel.Browsable(false)]
  1946. public int Count {
  1947. get {
  1948. return this.Rows.Count;
  1949. }
  1950. }
  1951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1952. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1953. public GenderRow this[int index] {
  1954. get {
  1955. return ((GenderRow)(this.Rows[index]));
  1956. }
  1957. }
  1958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1959. public event GenderRowChangeEventHandler GenderRowChanging;
  1960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1961. public event GenderRowChangeEventHandler GenderRowChanged;
  1962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1963. public event GenderRowChangeEventHandler GenderRowDeleting;
  1964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1965. public event GenderRowChangeEventHandler GenderRowDeleted;
  1966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1968. public void AddGenderRow(GenderRow row) {
  1969. this.Rows.Add(row);
  1970. }
  1971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1972. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1973. public GenderRow AddGenderRow(string Code, string Name) {
  1974. GenderRow rowGenderRow = ((GenderRow)(this.NewRow()));
  1975. object[] columnValuesArray = new object[] {
  1976. Code,
  1977. Name};
  1978. rowGenderRow.ItemArray = columnValuesArray;
  1979. this.Rows.Add(rowGenderRow);
  1980. return rowGenderRow;
  1981. }
  1982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1984. public GenderRow FindByCode(string Code) {
  1985. return ((GenderRow)(this.Rows.Find(new object[] {
  1986. Code})));
  1987. }
  1988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1989. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1990. public override global::System.Data.DataTable Clone() {
  1991. GenderDataTable cln = ((GenderDataTable)(base.Clone()));
  1992. cln.InitVars();
  1993. return cln;
  1994. }
  1995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1997. protected override global::System.Data.DataTable CreateInstance() {
  1998. return new GenderDataTable();
  1999. }
  2000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2002. internal void InitVars() {
  2003. this.columnCode = base.Columns["Code"];
  2004. this.columnName = base.Columns["Name"];
  2005. }
  2006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2008. private void InitClass() {
  2009. this.columnCode = new global::System.Data.DataColumn("Code", typeof(string), null, global::System.Data.MappingType.Element);
  2010. base.Columns.Add(this.columnCode);
  2011. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  2012. base.Columns.Add(this.columnName);
  2013. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2014. this.columnCode}, true));
  2015. this.columnCode.AllowDBNull = false;
  2016. this.columnCode.Unique = true;
  2017. this.columnCode.MaxLength = 7;
  2018. this.columnName.MaxLength = 10;
  2019. }
  2020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2022. public GenderRow NewGenderRow() {
  2023. return ((GenderRow)(this.NewRow()));
  2024. }
  2025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2027. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2028. return new GenderRow(builder);
  2029. }
  2030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2032. protected override global::System.Type GetRowType() {
  2033. return typeof(GenderRow);
  2034. }
  2035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2037. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2038. base.OnRowChanged(e);
  2039. if ((this.GenderRowChanged != null)) {
  2040. this.GenderRowChanged(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2041. }
  2042. }
  2043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2045. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2046. base.OnRowChanging(e);
  2047. if ((this.GenderRowChanging != null)) {
  2048. this.GenderRowChanging(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2049. }
  2050. }
  2051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2053. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2054. base.OnRowDeleted(e);
  2055. if ((this.GenderRowDeleted != null)) {
  2056. this.GenderRowDeleted(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2057. }
  2058. }
  2059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2061. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2062. base.OnRowDeleting(e);
  2063. if ((this.GenderRowDeleting != null)) {
  2064. this.GenderRowDeleting(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2065. }
  2066. }
  2067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2069. public void RemoveGenderRow(GenderRow row) {
  2070. this.Rows.Remove(row);
  2071. }
  2072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2074. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2075. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2076. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2077. BB_GrishinaDataSet ds = new BB_GrishinaDataSet();
  2078. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2079. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2080. any1.MinOccurs = new decimal(0);
  2081. any1.MaxOccurs = decimal.MaxValue;
  2082. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2083. sequence.Items.Add(any1);
  2084. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2085. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2086. any2.MinOccurs = new decimal(1);
  2087. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2088. sequence.Items.Add(any2);
  2089. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2090. attribute1.Name = "namespace";
  2091. attribute1.FixedValue = ds.Namespace;
  2092. type.Attributes.Add(attribute1);
  2093. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2094. attribute2.Name = "tableTypeName";
  2095. attribute2.FixedValue = "GenderDataTable";
  2096. type.Attributes.Add(attribute2);
  2097. type.Particle = sequence;
  2098. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2099. if (xs.Contains(dsSchema.TargetNamespace)) {
  2100. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2101. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2102. try {
  2103. global::System.Xml.Schema.XmlSchema schema = null;
  2104. dsSchema.Write(s1);
  2105. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2106. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2107. s2.SetLength(0);
  2108. schema.Write(s2);
  2109. if ((s1.Length == s2.Length)) {
  2110. s1.Position = 0;
  2111. s2.Position = 0;
  2112. for (; ((s1.Position != s1.Length)
  2113. && (s1.ReadByte() == s2.ReadByte())); ) {
  2114. ;
  2115. }
  2116. if ((s1.Position == s1.Length)) {
  2117. return type;
  2118. }
  2119. }
  2120. }
  2121. }
  2122. finally {
  2123. if ((s1 != null)) {
  2124. s1.Close();
  2125. }
  2126. if ((s2 != null)) {
  2127. s2.Close();
  2128. }
  2129. }
  2130. }
  2131. xs.Add(dsSchema);
  2132. return type;
  2133. }
  2134. }
  2135. /// <summary>
  2136. ///Represents the strongly named DataTable class.
  2137. ///</summary>
  2138. [global::System.Serializable()]
  2139. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2140. public partial class ManufacturerDataTable : global::System.Data.TypedTableBase<ManufacturerRow> {
  2141. private global::System.Data.DataColumn columnID;
  2142. private global::System.Data.DataColumn columnName;
  2143. private global::System.Data.DataColumn columnStartDate;
  2144. private global::System.Data.DataColumn columnClient;
  2145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2147. public ManufacturerDataTable() {
  2148. this.TableName = "Manufacturer";
  2149. this.BeginInit();
  2150. this.InitClass();
  2151. this.EndInit();
  2152. }
  2153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2155. internal ManufacturerDataTable(global::System.Data.DataTable table) {
  2156. this.TableName = table.TableName;
  2157. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2158. this.CaseSensitive = table.CaseSensitive;
  2159. }
  2160. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2161. this.Locale = table.Locale;
  2162. }
  2163. if ((table.Namespace != table.DataSet.Namespace)) {
  2164. this.Namespace = table.Namespace;
  2165. }
  2166. this.Prefix = table.Prefix;
  2167. this.MinimumCapacity = table.MinimumCapacity;
  2168. }
  2169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2171. protected ManufacturerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2172. base(info, context) {
  2173. this.InitVars();
  2174. }
  2175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2177. public global::System.Data.DataColumn IDColumn {
  2178. get {
  2179. return this.columnID;
  2180. }
  2181. }
  2182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2184. public global::System.Data.DataColumn NameColumn {
  2185. get {
  2186. return this.columnName;
  2187. }
  2188. }
  2189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2191. public global::System.Data.DataColumn StartDateColumn {
  2192. get {
  2193. return this.columnStartDate;
  2194. }
  2195. }
  2196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2198. public global::System.Data.DataColumn ClientColumn {
  2199. get {
  2200. return this.columnClient;
  2201. }
  2202. }
  2203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2205. [global::System.ComponentModel.Browsable(false)]
  2206. public int Count {
  2207. get {
  2208. return this.Rows.Count;
  2209. }
  2210. }
  2211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2213. public ManufacturerRow this[int index] {
  2214. get {
  2215. return ((ManufacturerRow)(this.Rows[index]));
  2216. }
  2217. }
  2218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2219. public event ManufacturerRowChangeEventHandler ManufacturerRowChanging;
  2220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2221. public event ManufacturerRowChangeEventHandler ManufacturerRowChanged;
  2222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2223. public event ManufacturerRowChangeEventHandler ManufacturerRowDeleting;
  2224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2225. public event ManufacturerRowChangeEventHandler ManufacturerRowDeleted;
  2226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2228. public void AddManufacturerRow(ManufacturerRow row) {
  2229. this.Rows.Add(row);
  2230. }
  2231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2233. public ManufacturerRow AddManufacturerRow(string Name, System.DateTime StartDate, string Client) {
  2234. ManufacturerRow rowManufacturerRow = ((ManufacturerRow)(this.NewRow()));
  2235. object[] columnValuesArray = new object[] {
  2236. null,
  2237. Name,
  2238. StartDate,
  2239. Client};
  2240. rowManufacturerRow.ItemArray = columnValuesArray;
  2241. this.Rows.Add(rowManufacturerRow);
  2242. return rowManufacturerRow;
  2243. }
  2244. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2245. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2246. public ManufacturerRow FindByID(int ID) {
  2247. return ((ManufacturerRow)(this.Rows.Find(new object[] {
  2248. ID})));
  2249. }
  2250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2252. public override global::System.Data.DataTable Clone() {
  2253. ManufacturerDataTable cln = ((ManufacturerDataTable)(base.Clone()));
  2254. cln.InitVars();
  2255. return cln;
  2256. }
  2257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2259. protected override global::System.Data.DataTable CreateInstance() {
  2260. return new ManufacturerDataTable();
  2261. }
  2262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2264. internal void InitVars() {
  2265. this.columnID = base.Columns["ID"];
  2266. this.columnName = base.Columns["Name"];
  2267. this.columnStartDate = base.Columns["StartDate"];
  2268. this.columnClient = base.Columns["Client"];
  2269. }
  2270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2271. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2272. private void InitClass() {
  2273. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2274. base.Columns.Add(this.columnID);
  2275. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  2276. base.Columns.Add(this.columnName);
  2277. this.columnStartDate = new global::System.Data.DataColumn("StartDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  2278. base.Columns.Add(this.columnStartDate);
  2279. this.columnClient = new global::System.Data.DataColumn("Client", typeof(string), null, global::System.Data.MappingType.Element);
  2280. base.Columns.Add(this.columnClient);
  2281. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2282. this.columnID}, true));
  2283. this.columnID.AutoIncrement = true;
  2284. this.columnID.AutoIncrementSeed = -1;
  2285. this.columnID.AutoIncrementStep = -1;
  2286. this.columnID.AllowDBNull = false;
  2287. this.columnID.ReadOnly = true;
  2288. this.columnID.Unique = true;
  2289. this.columnName.AllowDBNull = false;
  2290. this.columnName.MaxLength = 100;
  2291. this.columnClient.MaxLength = 2147483647;
  2292. }
  2293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2295. public ManufacturerRow NewManufacturerRow() {
  2296. return ((ManufacturerRow)(this.NewRow()));
  2297. }
  2298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2300. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2301. return new ManufacturerRow(builder);
  2302. }
  2303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2304. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2305. protected override global::System.Type GetRowType() {
  2306. return typeof(ManufacturerRow);
  2307. }
  2308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2310. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2311. base.OnRowChanged(e);
  2312. if ((this.ManufacturerRowChanged != null)) {
  2313. this.ManufacturerRowChanged(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  2314. }
  2315. }
  2316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2317. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2318. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2319. base.OnRowChanging(e);
  2320. if ((this.ManufacturerRowChanging != null)) {
  2321. this.ManufacturerRowChanging(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  2322. }
  2323. }
  2324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2326. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2327. base.OnRowDeleted(e);
  2328. if ((this.ManufacturerRowDeleted != null)) {
  2329. this.ManufacturerRowDeleted(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  2330. }
  2331. }
  2332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2334. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2335. base.OnRowDeleting(e);
  2336. if ((this.ManufacturerRowDeleting != null)) {
  2337. this.ManufacturerRowDeleting(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  2338. }
  2339. }
  2340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2342. public void RemoveManufacturerRow(ManufacturerRow row) {
  2343. this.Rows.Remove(row);
  2344. }
  2345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2347. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2348. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2349. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2350. BB_GrishinaDataSet ds = new BB_GrishinaDataSet();
  2351. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2352. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2353. any1.MinOccurs = new decimal(0);
  2354. any1.MaxOccurs = decimal.MaxValue;
  2355. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2356. sequence.Items.Add(any1);
  2357. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2358. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2359. any2.MinOccurs = new decimal(1);
  2360. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2361. sequence.Items.Add(any2);
  2362. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2363. attribute1.Name = "namespace";
  2364. attribute1.FixedValue = ds.Namespace;
  2365. type.Attributes.Add(attribute1);
  2366. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2367. attribute2.Name = "tableTypeName";
  2368. attribute2.FixedValue = "ManufacturerDataTable";
  2369. type.Attributes.Add(attribute2);
  2370. type.Particle = sequence;
  2371. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2372. if (xs.Contains(dsSchema.TargetNamespace)) {
  2373. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2374. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2375. try {
  2376. global::System.Xml.Schema.XmlSchema schema = null;
  2377. dsSchema.Write(s1);
  2378. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2379. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2380. s2.SetLength(0);
  2381. schema.Write(s2);
  2382. if ((s1.Length == s2.Length)) {
  2383. s1.Position = 0;
  2384. s2.Position = 0;
  2385. for (; ((s1.Position != s1.Length)
  2386. && (s1.ReadByte() == s2.ReadByte())); ) {
  2387. ;
  2388. }
  2389. if ((s1.Position == s1.Length)) {
  2390. return type;
  2391. }
  2392. }
  2393. }
  2394. }
  2395. finally {
  2396. if ((s1 != null)) {
  2397. s1.Close();
  2398. }
  2399. if ((s2 != null)) {
  2400. s2.Close();
  2401. }
  2402. }
  2403. }
  2404. xs.Add(dsSchema);
  2405. return type;
  2406. }
  2407. }
  2408. /// <summary>
  2409. ///Represents the strongly named DataTable class.
  2410. ///</summary>
  2411. [global::System.Serializable()]
  2412. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2413. public partial class ProductDataTable : global::System.Data.TypedTableBase<ProductRow> {
  2414. private global::System.Data.DataColumn columnID;
  2415. private global::System.Data.DataColumn columnTitle;
  2416. private global::System.Data.DataColumn columnCost;
  2417. private global::System.Data.DataColumn columnDescription;
  2418. private global::System.Data.DataColumn columnMainImagePath;
  2419. private global::System.Data.DataColumn columnIsActive;
  2420. private global::System.Data.DataColumn columnManufacturerID;
  2421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2423. public ProductDataTable() {
  2424. this.TableName = "Product";
  2425. this.BeginInit();
  2426. this.InitClass();
  2427. this.EndInit();
  2428. }
  2429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2431. internal ProductDataTable(global::System.Data.DataTable table) {
  2432. this.TableName = table.TableName;
  2433. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2434. this.CaseSensitive = table.CaseSensitive;
  2435. }
  2436. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2437. this.Locale = table.Locale;
  2438. }
  2439. if ((table.Namespace != table.DataSet.Namespace)) {
  2440. this.Namespace = table.Namespace;
  2441. }
  2442. this.Prefix = table.Prefix;
  2443. this.MinimumCapacity = table.MinimumCapacity;
  2444. }
  2445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2446. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2447. protected ProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2448. base(info, context) {
  2449. this.InitVars();
  2450. }
  2451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2453. public global::System.Data.DataColumn IDColumn {
  2454. get {
  2455. return this.columnID;
  2456. }
  2457. }
  2458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2459. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2460. public global::System.Data.DataColumn TitleColumn {
  2461. get {
  2462. return this.columnTitle;
  2463. }
  2464. }
  2465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2467. public global::System.Data.DataColumn CostColumn {
  2468. get {
  2469. return this.columnCost;
  2470. }
  2471. }
  2472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2474. public global::System.Data.DataColumn DescriptionColumn {
  2475. get {
  2476. return this.columnDescription;
  2477. }
  2478. }
  2479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2480. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2481. public global::System.Data.DataColumn MainImagePathColumn {
  2482. get {
  2483. return this.columnMainImagePath;
  2484. }
  2485. }
  2486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2488. public global::System.Data.DataColumn IsActiveColumn {
  2489. get {
  2490. return this.columnIsActive;
  2491. }
  2492. }
  2493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2495. public global::System.Data.DataColumn ManufacturerIDColumn {
  2496. get {
  2497. return this.columnManufacturerID;
  2498. }
  2499. }
  2500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2502. [global::System.ComponentModel.Browsable(false)]
  2503. public int Count {
  2504. get {
  2505. return this.Rows.Count;
  2506. }
  2507. }
  2508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2510. public ProductRow this[int index] {
  2511. get {
  2512. return ((ProductRow)(this.Rows[index]));
  2513. }
  2514. }
  2515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2516. public event ProductRowChangeEventHandler ProductRowChanging;
  2517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2518. public event ProductRowChangeEventHandler ProductRowChanged;
  2519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2520. public event ProductRowChangeEventHandler ProductRowDeleting;
  2521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2522. public event ProductRowChangeEventHandler ProductRowDeleted;
  2523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2525. public void AddProductRow(ProductRow row) {
  2526. this.Rows.Add(row);
  2527. }
  2528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2530. public ProductRow AddProductRow(string Title, decimal Cost, string Description, string MainImagePath, bool IsActive, ManufacturerRow parentManufacturerRowByFK_Product_Manufacturer) {
  2531. ProductRow rowProductRow = ((ProductRow)(this.NewRow()));
  2532. object[] columnValuesArray = new object[] {
  2533. null,
  2534. Title,
  2535. Cost,
  2536. Description,
  2537. MainImagePath,
  2538. IsActive,
  2539. null};
  2540. if ((parentManufacturerRowByFK_Product_Manufacturer != null)) {
  2541. columnValuesArray[6] = parentManufacturerRowByFK_Product_Manufacturer[0];
  2542. }
  2543. rowProductRow.ItemArray = columnValuesArray;
  2544. this.Rows.Add(rowProductRow);
  2545. return rowProductRow;
  2546. }
  2547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2549. public ProductRow FindByID(int ID) {
  2550. return ((ProductRow)(this.Rows.Find(new object[] {
  2551. ID})));
  2552. }
  2553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2555. public override global::System.Data.DataTable Clone() {
  2556. ProductDataTable cln = ((ProductDataTable)(base.Clone()));
  2557. cln.InitVars();
  2558. return cln;
  2559. }
  2560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2562. protected override global::System.Data.DataTable CreateInstance() {
  2563. return new ProductDataTable();
  2564. }
  2565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2567. internal void InitVars() {
  2568. this.columnID = base.Columns["ID"];
  2569. this.columnTitle = base.Columns["Title"];
  2570. this.columnCost = base.Columns["Cost"];
  2571. this.columnDescription = base.Columns["Description"];
  2572. this.columnMainImagePath = base.Columns["MainImagePath"];
  2573. this.columnIsActive = base.Columns["IsActive"];
  2574. this.columnManufacturerID = base.Columns["ManufacturerID"];
  2575. }
  2576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2578. private void InitClass() {
  2579. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2580. base.Columns.Add(this.columnID);
  2581. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  2582. base.Columns.Add(this.columnTitle);
  2583. this.columnCost = new global::System.Data.DataColumn("Cost", typeof(decimal), null, global::System.Data.MappingType.Element);
  2584. base.Columns.Add(this.columnCost);
  2585. this.columnDescription = new global::System.Data.DataColumn("Description", typeof(string), null, global::System.Data.MappingType.Element);
  2586. base.Columns.Add(this.columnDescription);
  2587. this.columnMainImagePath = new global::System.Data.DataColumn("MainImagePath", typeof(string), null, global::System.Data.MappingType.Element);
  2588. base.Columns.Add(this.columnMainImagePath);
  2589. this.columnIsActive = new global::System.Data.DataColumn("IsActive", typeof(bool), null, global::System.Data.MappingType.Element);
  2590. base.Columns.Add(this.columnIsActive);
  2591. this.columnManufacturerID = new global::System.Data.DataColumn("ManufacturerID", typeof(int), null, global::System.Data.MappingType.Element);
  2592. base.Columns.Add(this.columnManufacturerID);
  2593. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2594. this.columnID}, true));
  2595. this.columnID.AutoIncrement = true;
  2596. this.columnID.AutoIncrementSeed = -1;
  2597. this.columnID.AutoIncrementStep = -1;
  2598. this.columnID.AllowDBNull = false;
  2599. this.columnID.ReadOnly = true;
  2600. this.columnID.Unique = true;
  2601. this.columnTitle.AllowDBNull = false;
  2602. this.columnTitle.MaxLength = 100;
  2603. this.columnCost.AllowDBNull = false;
  2604. this.columnDescription.MaxLength = 2147483647;
  2605. this.columnMainImagePath.MaxLength = 1000;
  2606. this.columnIsActive.AllowDBNull = false;
  2607. }
  2608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2610. public ProductRow NewProductRow() {
  2611. return ((ProductRow)(this.NewRow()));
  2612. }
  2613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2615. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2616. return new ProductRow(builder);
  2617. }
  2618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2620. protected override global::System.Type GetRowType() {
  2621. return typeof(ProductRow);
  2622. }
  2623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2625. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2626. base.OnRowChanged(e);
  2627. if ((this.ProductRowChanged != null)) {
  2628. this.ProductRowChanged(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2629. }
  2630. }
  2631. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2633. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2634. base.OnRowChanging(e);
  2635. if ((this.ProductRowChanging != null)) {
  2636. this.ProductRowChanging(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2637. }
  2638. }
  2639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2641. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2642. base.OnRowDeleted(e);
  2643. if ((this.ProductRowDeleted != null)) {
  2644. this.ProductRowDeleted(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2645. }
  2646. }
  2647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2649. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2650. base.OnRowDeleting(e);
  2651. if ((this.ProductRowDeleting != null)) {
  2652. this.ProductRowDeleting(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2653. }
  2654. }
  2655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2657. public void RemoveProductRow(ProductRow row) {
  2658. this.Rows.Remove(row);
  2659. }
  2660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2662. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2663. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2664. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2665. BB_GrishinaDataSet ds = new BB_GrishinaDataSet();
  2666. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2667. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2668. any1.MinOccurs = new decimal(0);
  2669. any1.MaxOccurs = decimal.MaxValue;
  2670. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2671. sequence.Items.Add(any1);
  2672. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2673. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2674. any2.MinOccurs = new decimal(1);
  2675. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2676. sequence.Items.Add(any2);
  2677. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2678. attribute1.Name = "namespace";
  2679. attribute1.FixedValue = ds.Namespace;
  2680. type.Attributes.Add(attribute1);
  2681. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2682. attribute2.Name = "tableTypeName";
  2683. attribute2.FixedValue = "ProductDataTable";
  2684. type.Attributes.Add(attribute2);
  2685. type.Particle = sequence;
  2686. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2687. if (xs.Contains(dsSchema.TargetNamespace)) {
  2688. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2689. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2690. try {
  2691. global::System.Xml.Schema.XmlSchema schema = null;
  2692. dsSchema.Write(s1);
  2693. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2694. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2695. s2.SetLength(0);
  2696. schema.Write(s2);
  2697. if ((s1.Length == s2.Length)) {
  2698. s1.Position = 0;
  2699. s2.Position = 0;
  2700. for (; ((s1.Position != s1.Length)
  2701. && (s1.ReadByte() == s2.ReadByte())); ) {
  2702. ;
  2703. }
  2704. if ((s1.Position == s1.Length)) {
  2705. return type;
  2706. }
  2707. }
  2708. }
  2709. }
  2710. finally {
  2711. if ((s1 != null)) {
  2712. s1.Close();
  2713. }
  2714. if ((s2 != null)) {
  2715. s2.Close();
  2716. }
  2717. }
  2718. }
  2719. xs.Add(dsSchema);
  2720. return type;
  2721. }
  2722. }
  2723. /// <summary>
  2724. ///Represents the strongly named DataTable class.
  2725. ///</summary>
  2726. [global::System.Serializable()]
  2727. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2728. public partial class ProductPhotoDataTable : global::System.Data.TypedTableBase<ProductPhotoRow> {
  2729. private global::System.Data.DataColumn columnID;
  2730. private global::System.Data.DataColumn columnProductID;
  2731. private global::System.Data.DataColumn columnPhotoPath;
  2732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2734. public ProductPhotoDataTable() {
  2735. this.TableName = "ProductPhoto";
  2736. this.BeginInit();
  2737. this.InitClass();
  2738. this.EndInit();
  2739. }
  2740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2742. internal ProductPhotoDataTable(global::System.Data.DataTable table) {
  2743. this.TableName = table.TableName;
  2744. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2745. this.CaseSensitive = table.CaseSensitive;
  2746. }
  2747. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2748. this.Locale = table.Locale;
  2749. }
  2750. if ((table.Namespace != table.DataSet.Namespace)) {
  2751. this.Namespace = table.Namespace;
  2752. }
  2753. this.Prefix = table.Prefix;
  2754. this.MinimumCapacity = table.MinimumCapacity;
  2755. }
  2756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2758. protected ProductPhotoDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2759. base(info, context) {
  2760. this.InitVars();
  2761. }
  2762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2764. public global::System.Data.DataColumn IDColumn {
  2765. get {
  2766. return this.columnID;
  2767. }
  2768. }
  2769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2771. public global::System.Data.DataColumn ProductIDColumn {
  2772. get {
  2773. return this.columnProductID;
  2774. }
  2775. }
  2776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2778. public global::System.Data.DataColumn PhotoPathColumn {
  2779. get {
  2780. return this.columnPhotoPath;
  2781. }
  2782. }
  2783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2785. [global::System.ComponentModel.Browsable(false)]
  2786. public int Count {
  2787. get {
  2788. return this.Rows.Count;
  2789. }
  2790. }
  2791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2793. public ProductPhotoRow this[int index] {
  2794. get {
  2795. return ((ProductPhotoRow)(this.Rows[index]));
  2796. }
  2797. }
  2798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2799. public event ProductPhotoRowChangeEventHandler ProductPhotoRowChanging;
  2800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2801. public event ProductPhotoRowChangeEventHandler ProductPhotoRowChanged;
  2802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2803. public event ProductPhotoRowChangeEventHandler ProductPhotoRowDeleting;
  2804. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2805. public event ProductPhotoRowChangeEventHandler ProductPhotoRowDeleted;
  2806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2808. public void AddProductPhotoRow(ProductPhotoRow row) {
  2809. this.Rows.Add(row);
  2810. }
  2811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2813. public ProductPhotoRow AddProductPhotoRow(ProductRow parentProductRowByFK_ProductPhoto_Product, string PhotoPath) {
  2814. ProductPhotoRow rowProductPhotoRow = ((ProductPhotoRow)(this.NewRow()));
  2815. object[] columnValuesArray = new object[] {
  2816. null,
  2817. null,
  2818. PhotoPath};
  2819. if ((parentProductRowByFK_ProductPhoto_Product != null)) {
  2820. columnValuesArray[1] = parentProductRowByFK_ProductPhoto_Product[0];
  2821. }
  2822. rowProductPhotoRow.ItemArray = columnValuesArray;
  2823. this.Rows.Add(rowProductPhotoRow);
  2824. return rowProductPhotoRow;
  2825. }
  2826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2828. public ProductPhotoRow FindByID(int ID) {
  2829. return ((ProductPhotoRow)(this.Rows.Find(new object[] {
  2830. ID})));
  2831. }
  2832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2834. public override global::System.Data.DataTable Clone() {
  2835. ProductPhotoDataTable cln = ((ProductPhotoDataTable)(base.Clone()));
  2836. cln.InitVars();
  2837. return cln;
  2838. }
  2839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2841. protected override global::System.Data.DataTable CreateInstance() {
  2842. return new ProductPhotoDataTable();
  2843. }
  2844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2846. internal void InitVars() {
  2847. this.columnID = base.Columns["ID"];
  2848. this.columnProductID = base.Columns["ProductID"];
  2849. this.columnPhotoPath = base.Columns["PhotoPath"];
  2850. }
  2851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2853. private void InitClass() {
  2854. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2855. base.Columns.Add(this.columnID);
  2856. this.columnProductID = new global::System.Data.DataColumn("ProductID", typeof(int), null, global::System.Data.MappingType.Element);
  2857. base.Columns.Add(this.columnProductID);
  2858. this.columnPhotoPath = new global::System.Data.DataColumn("PhotoPath", typeof(string), null, global::System.Data.MappingType.Element);
  2859. base.Columns.Add(this.columnPhotoPath);
  2860. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2861. this.columnID}, true));
  2862. this.columnID.AutoIncrement = true;
  2863. this.columnID.AutoIncrementSeed = -1;
  2864. this.columnID.AutoIncrementStep = -1;
  2865. this.columnID.AllowDBNull = false;
  2866. this.columnID.ReadOnly = true;
  2867. this.columnID.Unique = true;
  2868. this.columnProductID.AllowDBNull = false;
  2869. this.columnPhotoPath.AllowDBNull = false;
  2870. this.columnPhotoPath.MaxLength = 1000;
  2871. }
  2872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2874. public ProductPhotoRow NewProductPhotoRow() {
  2875. return ((ProductPhotoRow)(this.NewRow()));
  2876. }
  2877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2879. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2880. return new ProductPhotoRow(builder);
  2881. }
  2882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2884. protected override global::System.Type GetRowType() {
  2885. return typeof(ProductPhotoRow);
  2886. }
  2887. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2888. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2889. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2890. base.OnRowChanged(e);
  2891. if ((this.ProductPhotoRowChanged != null)) {
  2892. this.ProductPhotoRowChanged(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  2893. }
  2894. }
  2895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2897. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2898. base.OnRowChanging(e);
  2899. if ((this.ProductPhotoRowChanging != null)) {
  2900. this.ProductPhotoRowChanging(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  2901. }
  2902. }
  2903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2904. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2905. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2906. base.OnRowDeleted(e);
  2907. if ((this.ProductPhotoRowDeleted != null)) {
  2908. this.ProductPhotoRowDeleted(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  2909. }
  2910. }
  2911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2913. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2914. base.OnRowDeleting(e);
  2915. if ((this.ProductPhotoRowDeleting != null)) {
  2916. this.ProductPhotoRowDeleting(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  2917. }
  2918. }
  2919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2921. public void RemoveProductPhotoRow(ProductPhotoRow row) {
  2922. this.Rows.Remove(row);
  2923. }
  2924. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2925. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2926. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2927. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2928. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2929. BB_GrishinaDataSet ds = new BB_GrishinaDataSet();
  2930. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2931. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2932. any1.MinOccurs = new decimal(0);
  2933. any1.MaxOccurs = decimal.MaxValue;
  2934. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2935. sequence.Items.Add(any1);
  2936. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2937. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2938. any2.MinOccurs = new decimal(1);
  2939. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2940. sequence.Items.Add(any2);
  2941. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2942. attribute1.Name = "namespace";
  2943. attribute1.FixedValue = ds.Namespace;
  2944. type.Attributes.Add(attribute1);
  2945. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2946. attribute2.Name = "tableTypeName";
  2947. attribute2.FixedValue = "ProductPhotoDataTable";
  2948. type.Attributes.Add(attribute2);
  2949. type.Particle = sequence;
  2950. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2951. if (xs.Contains(dsSchema.TargetNamespace)) {
  2952. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2953. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2954. try {
  2955. global::System.Xml.Schema.XmlSchema schema = null;
  2956. dsSchema.Write(s1);
  2957. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2958. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2959. s2.SetLength(0);
  2960. schema.Write(s2);
  2961. if ((s1.Length == s2.Length)) {
  2962. s1.Position = 0;
  2963. s2.Position = 0;
  2964. for (; ((s1.Position != s1.Length)
  2965. && (s1.ReadByte() == s2.ReadByte())); ) {
  2966. ;
  2967. }
  2968. if ((s1.Position == s1.Length)) {
  2969. return type;
  2970. }
  2971. }
  2972. }
  2973. }
  2974. finally {
  2975. if ((s1 != null)) {
  2976. s1.Close();
  2977. }
  2978. if ((s2 != null)) {
  2979. s2.Close();
  2980. }
  2981. }
  2982. }
  2983. xs.Add(dsSchema);
  2984. return type;
  2985. }
  2986. }
  2987. /// <summary>
  2988. ///Represents the strongly named DataTable class.
  2989. ///</summary>
  2990. [global::System.Serializable()]
  2991. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2992. public partial class ProductSaleDataTable : global::System.Data.TypedTableBase<ProductSaleRow> {
  2993. private global::System.Data.DataColumn columnID;
  2994. private global::System.Data.DataColumn columnSaleDate;
  2995. private global::System.Data.DataColumn columnProductID;
  2996. private global::System.Data.DataColumn columnQuantity;
  2997. private global::System.Data.DataColumn columnClientServiceID;
  2998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3000. public ProductSaleDataTable() {
  3001. this.TableName = "ProductSale";
  3002. this.BeginInit();
  3003. this.InitClass();
  3004. this.EndInit();
  3005. }
  3006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3008. internal ProductSaleDataTable(global::System.Data.DataTable table) {
  3009. this.TableName = table.TableName;
  3010. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3011. this.CaseSensitive = table.CaseSensitive;
  3012. }
  3013. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3014. this.Locale = table.Locale;
  3015. }
  3016. if ((table.Namespace != table.DataSet.Namespace)) {
  3017. this.Namespace = table.Namespace;
  3018. }
  3019. this.Prefix = table.Prefix;
  3020. this.MinimumCapacity = table.MinimumCapacity;
  3021. }
  3022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3024. protected ProductSaleDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3025. base(info, context) {
  3026. this.InitVars();
  3027. }
  3028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3030. public global::System.Data.DataColumn IDColumn {
  3031. get {
  3032. return this.columnID;
  3033. }
  3034. }
  3035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3037. public global::System.Data.DataColumn SaleDateColumn {
  3038. get {
  3039. return this.columnSaleDate;
  3040. }
  3041. }
  3042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3044. public global::System.Data.DataColumn ProductIDColumn {
  3045. get {
  3046. return this.columnProductID;
  3047. }
  3048. }
  3049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3051. public global::System.Data.DataColumn QuantityColumn {
  3052. get {
  3053. return this.columnQuantity;
  3054. }
  3055. }
  3056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3057. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3058. public global::System.Data.DataColumn ClientServiceIDColumn {
  3059. get {
  3060. return this.columnClientServiceID;
  3061. }
  3062. }
  3063. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3064. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3065. [global::System.ComponentModel.Browsable(false)]
  3066. public int Count {
  3067. get {
  3068. return this.Rows.Count;
  3069. }
  3070. }
  3071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3073. public ProductSaleRow this[int index] {
  3074. get {
  3075. return ((ProductSaleRow)(this.Rows[index]));
  3076. }
  3077. }
  3078. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3079. public event ProductSaleRowChangeEventHandler ProductSaleRowChanging;
  3080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3081. public event ProductSaleRowChangeEventHandler ProductSaleRowChanged;
  3082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3083. public event ProductSaleRowChangeEventHandler ProductSaleRowDeleting;
  3084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3085. public event ProductSaleRowChangeEventHandler ProductSaleRowDeleted;
  3086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3088. public void AddProductSaleRow(ProductSaleRow row) {
  3089. this.Rows.Add(row);
  3090. }
  3091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3093. public ProductSaleRow AddProductSaleRow(System.DateTime SaleDate, ProductRow parentProductRowByFK_ProductSale_Product, int Quantity, ClientServiceRow parentClientServiceRowByFK_ProductSale_ClientService) {
  3094. ProductSaleRow rowProductSaleRow = ((ProductSaleRow)(this.NewRow()));
  3095. object[] columnValuesArray = new object[] {
  3096. null,
  3097. SaleDate,
  3098. null,
  3099. Quantity,
  3100. null};
  3101. if ((parentProductRowByFK_ProductSale_Product != null)) {
  3102. columnValuesArray[2] = parentProductRowByFK_ProductSale_Product[0];
  3103. }
  3104. if ((parentClientServiceRowByFK_ProductSale_ClientService != null)) {
  3105. columnValuesArray[4] = parentClientServiceRowByFK_ProductSale_ClientService[0];
  3106. }
  3107. rowProductSaleRow.ItemArray = columnValuesArray;
  3108. this.Rows.Add(rowProductSaleRow);
  3109. return rowProductSaleRow;
  3110. }
  3111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3113. public ProductSaleRow FindByID(int ID) {
  3114. return ((ProductSaleRow)(this.Rows.Find(new object[] {
  3115. ID})));
  3116. }
  3117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3119. public override global::System.Data.DataTable Clone() {
  3120. ProductSaleDataTable cln = ((ProductSaleDataTable)(base.Clone()));
  3121. cln.InitVars();
  3122. return cln;
  3123. }
  3124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3126. protected override global::System.Data.DataTable CreateInstance() {
  3127. return new ProductSaleDataTable();
  3128. }
  3129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3131. internal void InitVars() {
  3132. this.columnID = base.Columns["ID"];
  3133. this.columnSaleDate = base.Columns["SaleDate"];
  3134. this.columnProductID = base.Columns["ProductID"];
  3135. this.columnQuantity = base.Columns["Quantity"];
  3136. this.columnClientServiceID = base.Columns["ClientServiceID"];
  3137. }
  3138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3140. private void InitClass() {
  3141. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3142. base.Columns.Add(this.columnID);
  3143. this.columnSaleDate = new global::System.Data.DataColumn("SaleDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  3144. base.Columns.Add(this.columnSaleDate);
  3145. this.columnProductID = new global::System.Data.DataColumn("ProductID", typeof(int), null, global::System.Data.MappingType.Element);
  3146. base.Columns.Add(this.columnProductID);
  3147. this.columnQuantity = new global::System.Data.DataColumn("Quantity", typeof(int), null, global::System.Data.MappingType.Element);
  3148. base.Columns.Add(this.columnQuantity);
  3149. this.columnClientServiceID = new global::System.Data.DataColumn("ClientServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  3150. base.Columns.Add(this.columnClientServiceID);
  3151. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3152. this.columnID}, true));
  3153. this.columnID.AutoIncrement = true;
  3154. this.columnID.AutoIncrementSeed = -1;
  3155. this.columnID.AutoIncrementStep = -1;
  3156. this.columnID.AllowDBNull = false;
  3157. this.columnID.ReadOnly = true;
  3158. this.columnID.Unique = true;
  3159. this.columnSaleDate.AllowDBNull = false;
  3160. this.columnProductID.AllowDBNull = false;
  3161. this.columnQuantity.AllowDBNull = false;
  3162. }
  3163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3165. public ProductSaleRow NewProductSaleRow() {
  3166. return ((ProductSaleRow)(this.NewRow()));
  3167. }
  3168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3170. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3171. return new ProductSaleRow(builder);
  3172. }
  3173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3175. protected override global::System.Type GetRowType() {
  3176. return typeof(ProductSaleRow);
  3177. }
  3178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3180. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3181. base.OnRowChanged(e);
  3182. if ((this.ProductSaleRowChanged != null)) {
  3183. this.ProductSaleRowChanged(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3184. }
  3185. }
  3186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3188. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3189. base.OnRowChanging(e);
  3190. if ((this.ProductSaleRowChanging != null)) {
  3191. this.ProductSaleRowChanging(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3192. }
  3193. }
  3194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3196. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3197. base.OnRowDeleted(e);
  3198. if ((this.ProductSaleRowDeleted != null)) {
  3199. this.ProductSaleRowDeleted(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3200. }
  3201. }
  3202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3204. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3205. base.OnRowDeleting(e);
  3206. if ((this.ProductSaleRowDeleting != null)) {
  3207. this.ProductSaleRowDeleting(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3208. }
  3209. }
  3210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3212. public void RemoveProductSaleRow(ProductSaleRow row) {
  3213. this.Rows.Remove(row);
  3214. }
  3215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3217. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3218. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3219. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3220. BB_GrishinaDataSet ds = new BB_GrishinaDataSet();
  3221. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3222. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3223. any1.MinOccurs = new decimal(0);
  3224. any1.MaxOccurs = decimal.MaxValue;
  3225. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3226. sequence.Items.Add(any1);
  3227. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3228. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3229. any2.MinOccurs = new decimal(1);
  3230. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3231. sequence.Items.Add(any2);
  3232. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3233. attribute1.Name = "namespace";
  3234. attribute1.FixedValue = ds.Namespace;
  3235. type.Attributes.Add(attribute1);
  3236. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3237. attribute2.Name = "tableTypeName";
  3238. attribute2.FixedValue = "ProductSaleDataTable";
  3239. type.Attributes.Add(attribute2);
  3240. type.Particle = sequence;
  3241. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3242. if (xs.Contains(dsSchema.TargetNamespace)) {
  3243. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3244. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3245. try {
  3246. global::System.Xml.Schema.XmlSchema schema = null;
  3247. dsSchema.Write(s1);
  3248. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3249. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3250. s2.SetLength(0);
  3251. schema.Write(s2);
  3252. if ((s1.Length == s2.Length)) {
  3253. s1.Position = 0;
  3254. s2.Position = 0;
  3255. for (; ((s1.Position != s1.Length)
  3256. && (s1.ReadByte() == s2.ReadByte())); ) {
  3257. ;
  3258. }
  3259. if ((s1.Position == s1.Length)) {
  3260. return type;
  3261. }
  3262. }
  3263. }
  3264. }
  3265. finally {
  3266. if ((s1 != null)) {
  3267. s1.Close();
  3268. }
  3269. if ((s2 != null)) {
  3270. s2.Close();
  3271. }
  3272. }
  3273. }
  3274. xs.Add(dsSchema);
  3275. return type;
  3276. }
  3277. }
  3278. /// <summary>
  3279. ///Represents the strongly named DataTable class.
  3280. ///</summary>
  3281. [global::System.Serializable()]
  3282. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3283. public partial class ServiceDataTable : global::System.Data.TypedTableBase<ServiceRow> {
  3284. private global::System.Data.DataColumn columnID;
  3285. private global::System.Data.DataColumn columnНаименованиеУслугми;
  3286. private global::System.Data.DataColumn columnИзображение;
  3287. private global::System.Data.DataColumn columnДлительность;
  3288. private global::System.Data.DataColumn columnСтоимость;
  3289. private global::System.Data.DataColumn columnДействующаяСкидка;
  3290. private global::System.Data.DataColumn columnMainImagePath;
  3291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3293. public ServiceDataTable() {
  3294. this.TableName = "Service";
  3295. this.BeginInit();
  3296. this.InitClass();
  3297. this.EndInit();
  3298. }
  3299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3301. internal ServiceDataTable(global::System.Data.DataTable table) {
  3302. this.TableName = table.TableName;
  3303. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3304. this.CaseSensitive = table.CaseSensitive;
  3305. }
  3306. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3307. this.Locale = table.Locale;
  3308. }
  3309. if ((table.Namespace != table.DataSet.Namespace)) {
  3310. this.Namespace = table.Namespace;
  3311. }
  3312. this.Prefix = table.Prefix;
  3313. this.MinimumCapacity = table.MinimumCapacity;
  3314. }
  3315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3317. protected ServiceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3318. base(info, context) {
  3319. this.InitVars();
  3320. }
  3321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3323. public global::System.Data.DataColumn IDColumn {
  3324. get {
  3325. return this.columnID;
  3326. }
  3327. }
  3328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3330. public global::System.Data.DataColumn НаименованиеУслугмиColumn {
  3331. get {
  3332. return this.columnНаименованиеУслугми;
  3333. }
  3334. }
  3335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3337. public global::System.Data.DataColumn ИзображениеColumn {
  3338. get {
  3339. return this.columnИзображение;
  3340. }
  3341. }
  3342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3344. public global::System.Data.DataColumn ДлительностьColumn {
  3345. get {
  3346. return this.columnДлительность;
  3347. }
  3348. }
  3349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3351. public global::System.Data.DataColumn СтоимостьColumn {
  3352. get {
  3353. return this.columnСтоимость;
  3354. }
  3355. }
  3356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3358. public global::System.Data.DataColumn ДействующаяСкидкаColumn {
  3359. get {
  3360. return this.columnДействующаяСкидка;
  3361. }
  3362. }
  3363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3365. public global::System.Data.DataColumn MainImagePathColumn {
  3366. get {
  3367. return this.columnMainImagePath;
  3368. }
  3369. }
  3370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3372. [global::System.ComponentModel.Browsable(false)]
  3373. public int Count {
  3374. get {
  3375. return this.Rows.Count;
  3376. }
  3377. }
  3378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3379. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3380. public ServiceRow this[int index] {
  3381. get {
  3382. return ((ServiceRow)(this.Rows[index]));
  3383. }
  3384. }
  3385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3386. public event ServiceRowChangeEventHandler ServiceRowChanging;
  3387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3388. public event ServiceRowChangeEventHandler ServiceRowChanged;
  3389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3390. public event ServiceRowChangeEventHandler ServiceRowDeleting;
  3391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3392. public event ServiceRowChangeEventHandler ServiceRowDeleted;
  3393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3395. public void AddServiceRow(ServiceRow row) {
  3396. this.Rows.Add(row);
  3397. }
  3398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3400. public ServiceRow AddServiceRow(string НаименованиеУслугми, string Изображение, string Длительность, string Стоимость, string ДействующаяСкидка, string MainImagePath) {
  3401. ServiceRow rowServiceRow = ((ServiceRow)(this.NewRow()));
  3402. object[] columnValuesArray = new object[] {
  3403. null,
  3404. НаименованиеУслугми,
  3405. Изображение,
  3406. Длительность,
  3407. Стоимость,
  3408. ДействующаяСкидка,
  3409. MainImagePath};
  3410. rowServiceRow.ItemArray = columnValuesArray;
  3411. this.Rows.Add(rowServiceRow);
  3412. return rowServiceRow;
  3413. }
  3414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3416. public ServiceRow FindByID(int ID) {
  3417. return ((ServiceRow)(this.Rows.Find(new object[] {
  3418. ID})));
  3419. }
  3420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3422. public override global::System.Data.DataTable Clone() {
  3423. ServiceDataTable cln = ((ServiceDataTable)(base.Clone()));
  3424. cln.InitVars();
  3425. return cln;
  3426. }
  3427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3429. protected override global::System.Data.DataTable CreateInstance() {
  3430. return new ServiceDataTable();
  3431. }
  3432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3433. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3434. internal void InitVars() {
  3435. this.columnID = base.Columns["ID"];
  3436. this.columnНаименованиеУслугми = base.Columns["НаименованиеУслугми"];
  3437. this.columnИзображение = base.Columns["Изображение"];
  3438. this.columnДлительность = base.Columns["Длительность"];
  3439. this.columnСтоимость = base.Columns["Стоимость"];
  3440. this.columnДействующаяСкидка = base.Columns["ДействующаяСкидка"];
  3441. this.columnMainImagePath = base.Columns["MainImagePath"];
  3442. }
  3443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3444. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3445. private void InitClass() {
  3446. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3447. base.Columns.Add(this.columnID);
  3448. this.columnНаименованиеУслугми = new global::System.Data.DataColumn("НаименованиеУслугми", typeof(string), null, global::System.Data.MappingType.Element);
  3449. base.Columns.Add(this.columnНаименованиеУслугми);
  3450. this.columnИзображение = new global::System.Data.DataColumn("Изображение", typeof(string), null, global::System.Data.MappingType.Element);
  3451. base.Columns.Add(this.columnИзображение);
  3452. this.columnДлительность = new global::System.Data.DataColumn("Длительность", typeof(string), null, global::System.Data.MappingType.Element);
  3453. base.Columns.Add(this.columnДлительность);
  3454. this.columnСтоимость = new global::System.Data.DataColumn("Стоимость", typeof(string), null, global::System.Data.MappingType.Element);
  3455. base.Columns.Add(this.columnСтоимость);
  3456. this.columnДействующаяСкидка = new global::System.Data.DataColumn("ДействующаяСкидка", typeof(string), null, global::System.Data.MappingType.Element);
  3457. base.Columns.Add(this.columnДействующаяСкидка);
  3458. this.columnMainImagePath = new global::System.Data.DataColumn("MainImagePath", typeof(string), null, global::System.Data.MappingType.Element);
  3459. base.Columns.Add(this.columnMainImagePath);
  3460. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3461. this.columnID}, true));
  3462. this.columnID.AutoIncrement = true;
  3463. this.columnID.AutoIncrementSeed = -1;
  3464. this.columnID.AutoIncrementStep = -1;
  3465. this.columnID.AllowDBNull = false;
  3466. this.columnID.ReadOnly = true;
  3467. this.columnID.Unique = true;
  3468. this.columnНаименованиеУслугми.AllowDBNull = false;
  3469. this.columnНаименованиеУслугми.MaxLength = 100;
  3470. this.columnИзображение.MaxLength = 2147483647;
  3471. this.columnДлительность.MaxLength = 2147483647;
  3472. this.columnСтоимость.AllowDBNull = false;
  3473. this.columnСтоимость.MaxLength = 2147483647;
  3474. this.columnДействующаяСкидка.MaxLength = 50;
  3475. this.columnMainImagePath.MaxLength = 1000;
  3476. }
  3477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3479. public ServiceRow NewServiceRow() {
  3480. return ((ServiceRow)(this.NewRow()));
  3481. }
  3482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3484. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3485. return new ServiceRow(builder);
  3486. }
  3487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3489. protected override global::System.Type GetRowType() {
  3490. return typeof(ServiceRow);
  3491. }
  3492. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3493. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3494. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3495. base.OnRowChanged(e);
  3496. if ((this.ServiceRowChanged != null)) {
  3497. this.ServiceRowChanged(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3498. }
  3499. }
  3500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3502. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3503. base.OnRowChanging(e);
  3504. if ((this.ServiceRowChanging != null)) {
  3505. this.ServiceRowChanging(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3506. }
  3507. }
  3508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3510. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3511. base.OnRowDeleted(e);
  3512. if ((this.ServiceRowDeleted != null)) {
  3513. this.ServiceRowDeleted(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3514. }
  3515. }
  3516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3518. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3519. base.OnRowDeleting(e);
  3520. if ((this.ServiceRowDeleting != null)) {
  3521. this.ServiceRowDeleting(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3522. }
  3523. }
  3524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3526. public void RemoveServiceRow(ServiceRow row) {
  3527. this.Rows.Remove(row);
  3528. }
  3529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3531. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3532. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3533. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3534. BB_GrishinaDataSet ds = new BB_GrishinaDataSet();
  3535. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3536. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3537. any1.MinOccurs = new decimal(0);
  3538. any1.MaxOccurs = decimal.MaxValue;
  3539. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3540. sequence.Items.Add(any1);
  3541. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3542. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3543. any2.MinOccurs = new decimal(1);
  3544. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3545. sequence.Items.Add(any2);
  3546. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3547. attribute1.Name = "namespace";
  3548. attribute1.FixedValue = ds.Namespace;
  3549. type.Attributes.Add(attribute1);
  3550. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3551. attribute2.Name = "tableTypeName";
  3552. attribute2.FixedValue = "ServiceDataTable";
  3553. type.Attributes.Add(attribute2);
  3554. type.Particle = sequence;
  3555. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3556. if (xs.Contains(dsSchema.TargetNamespace)) {
  3557. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3558. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3559. try {
  3560. global::System.Xml.Schema.XmlSchema schema = null;
  3561. dsSchema.Write(s1);
  3562. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3563. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3564. s2.SetLength(0);
  3565. schema.Write(s2);
  3566. if ((s1.Length == s2.Length)) {
  3567. s1.Position = 0;
  3568. s2.Position = 0;
  3569. for (; ((s1.Position != s1.Length)
  3570. && (s1.ReadByte() == s2.ReadByte())); ) {
  3571. ;
  3572. }
  3573. if ((s1.Position == s1.Length)) {
  3574. return type;
  3575. }
  3576. }
  3577. }
  3578. }
  3579. finally {
  3580. if ((s1 != null)) {
  3581. s1.Close();
  3582. }
  3583. if ((s2 != null)) {
  3584. s2.Close();
  3585. }
  3586. }
  3587. }
  3588. xs.Add(dsSchema);
  3589. return type;
  3590. }
  3591. }
  3592. /// <summary>
  3593. ///Represents the strongly named DataTable class.
  3594. ///</summary>
  3595. [global::System.Serializable()]
  3596. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3597. public partial class ServicePhotoDataTable : global::System.Data.TypedTableBase<ServicePhotoRow> {
  3598. private global::System.Data.DataColumn columnID;
  3599. private global::System.Data.DataColumn columnServiceID;
  3600. private global::System.Data.DataColumn columnPhotoPath;
  3601. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3602. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3603. public ServicePhotoDataTable() {
  3604. this.TableName = "ServicePhoto";
  3605. this.BeginInit();
  3606. this.InitClass();
  3607. this.EndInit();
  3608. }
  3609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3611. internal ServicePhotoDataTable(global::System.Data.DataTable table) {
  3612. this.TableName = table.TableName;
  3613. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3614. this.CaseSensitive = table.CaseSensitive;
  3615. }
  3616. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3617. this.Locale = table.Locale;
  3618. }
  3619. if ((table.Namespace != table.DataSet.Namespace)) {
  3620. this.Namespace = table.Namespace;
  3621. }
  3622. this.Prefix = table.Prefix;
  3623. this.MinimumCapacity = table.MinimumCapacity;
  3624. }
  3625. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3626. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3627. protected ServicePhotoDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3628. base(info, context) {
  3629. this.InitVars();
  3630. }
  3631. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3633. public global::System.Data.DataColumn IDColumn {
  3634. get {
  3635. return this.columnID;
  3636. }
  3637. }
  3638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3640. public global::System.Data.DataColumn ServiceIDColumn {
  3641. get {
  3642. return this.columnServiceID;
  3643. }
  3644. }
  3645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3647. public global::System.Data.DataColumn PhotoPathColumn {
  3648. get {
  3649. return this.columnPhotoPath;
  3650. }
  3651. }
  3652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3654. [global::System.ComponentModel.Browsable(false)]
  3655. public int Count {
  3656. get {
  3657. return this.Rows.Count;
  3658. }
  3659. }
  3660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3662. public ServicePhotoRow this[int index] {
  3663. get {
  3664. return ((ServicePhotoRow)(this.Rows[index]));
  3665. }
  3666. }
  3667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3668. public event ServicePhotoRowChangeEventHandler ServicePhotoRowChanging;
  3669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3670. public event ServicePhotoRowChangeEventHandler ServicePhotoRowChanged;
  3671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3672. public event ServicePhotoRowChangeEventHandler ServicePhotoRowDeleting;
  3673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3674. public event ServicePhotoRowChangeEventHandler ServicePhotoRowDeleted;
  3675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3676. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3677. public void AddServicePhotoRow(ServicePhotoRow row) {
  3678. this.Rows.Add(row);
  3679. }
  3680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3682. public ServicePhotoRow AddServicePhotoRow(ServiceRow parentServiceRowByFK_ServicePhoto_Service, string PhotoPath) {
  3683. ServicePhotoRow rowServicePhotoRow = ((ServicePhotoRow)(this.NewRow()));
  3684. object[] columnValuesArray = new object[] {
  3685. null,
  3686. null,
  3687. PhotoPath};
  3688. if ((parentServiceRowByFK_ServicePhoto_Service != null)) {
  3689. columnValuesArray[1] = parentServiceRowByFK_ServicePhoto_Service[0];
  3690. }
  3691. rowServicePhotoRow.ItemArray = columnValuesArray;
  3692. this.Rows.Add(rowServicePhotoRow);
  3693. return rowServicePhotoRow;
  3694. }
  3695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3697. public ServicePhotoRow FindByID(int ID) {
  3698. return ((ServicePhotoRow)(this.Rows.Find(new object[] {
  3699. ID})));
  3700. }
  3701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3703. public override global::System.Data.DataTable Clone() {
  3704. ServicePhotoDataTable cln = ((ServicePhotoDataTable)(base.Clone()));
  3705. cln.InitVars();
  3706. return cln;
  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.DataTable CreateInstance() {
  3711. return new ServicePhotoDataTable();
  3712. }
  3713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3715. internal void InitVars() {
  3716. this.columnID = base.Columns["ID"];
  3717. this.columnServiceID = base.Columns["ServiceID"];
  3718. this.columnPhotoPath = base.Columns["PhotoPath"];
  3719. }
  3720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3722. private void InitClass() {
  3723. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3724. base.Columns.Add(this.columnID);
  3725. this.columnServiceID = new global::System.Data.DataColumn("ServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  3726. base.Columns.Add(this.columnServiceID);
  3727. this.columnPhotoPath = new global::System.Data.DataColumn("PhotoPath", typeof(string), null, global::System.Data.MappingType.Element);
  3728. base.Columns.Add(this.columnPhotoPath);
  3729. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3730. this.columnID}, true));
  3731. this.columnID.AutoIncrement = true;
  3732. this.columnID.AutoIncrementSeed = -1;
  3733. this.columnID.AutoIncrementStep = -1;
  3734. this.columnID.AllowDBNull = false;
  3735. this.columnID.ReadOnly = true;
  3736. this.columnID.Unique = true;
  3737. this.columnServiceID.AllowDBNull = false;
  3738. this.columnPhotoPath.AllowDBNull = false;
  3739. this.columnPhotoPath.MaxLength = 1000;
  3740. }
  3741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3742. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3743. public ServicePhotoRow NewServicePhotoRow() {
  3744. return ((ServicePhotoRow)(this.NewRow()));
  3745. }
  3746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3748. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3749. return new ServicePhotoRow(builder);
  3750. }
  3751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3753. protected override global::System.Type GetRowType() {
  3754. return typeof(ServicePhotoRow);
  3755. }
  3756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3758. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3759. base.OnRowChanged(e);
  3760. if ((this.ServicePhotoRowChanged != null)) {
  3761. this.ServicePhotoRowChanged(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  3762. }
  3763. }
  3764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3766. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3767. base.OnRowChanging(e);
  3768. if ((this.ServicePhotoRowChanging != null)) {
  3769. this.ServicePhotoRowChanging(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  3770. }
  3771. }
  3772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3774. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3775. base.OnRowDeleted(e);
  3776. if ((this.ServicePhotoRowDeleted != null)) {
  3777. this.ServicePhotoRowDeleted(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  3778. }
  3779. }
  3780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3782. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3783. base.OnRowDeleting(e);
  3784. if ((this.ServicePhotoRowDeleting != null)) {
  3785. this.ServicePhotoRowDeleting(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  3786. }
  3787. }
  3788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3790. public void RemoveServicePhotoRow(ServicePhotoRow row) {
  3791. this.Rows.Remove(row);
  3792. }
  3793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3795. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3796. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3797. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3798. BB_GrishinaDataSet ds = new BB_GrishinaDataSet();
  3799. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3800. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3801. any1.MinOccurs = new decimal(0);
  3802. any1.MaxOccurs = decimal.MaxValue;
  3803. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3804. sequence.Items.Add(any1);
  3805. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3806. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3807. any2.MinOccurs = new decimal(1);
  3808. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3809. sequence.Items.Add(any2);
  3810. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3811. attribute1.Name = "namespace";
  3812. attribute1.FixedValue = ds.Namespace;
  3813. type.Attributes.Add(attribute1);
  3814. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3815. attribute2.Name = "tableTypeName";
  3816. attribute2.FixedValue = "ServicePhotoDataTable";
  3817. type.Attributes.Add(attribute2);
  3818. type.Particle = sequence;
  3819. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3820. if (xs.Contains(dsSchema.TargetNamespace)) {
  3821. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3822. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3823. try {
  3824. global::System.Xml.Schema.XmlSchema schema = null;
  3825. dsSchema.Write(s1);
  3826. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3827. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3828. s2.SetLength(0);
  3829. schema.Write(s2);
  3830. if ((s1.Length == s2.Length)) {
  3831. s1.Position = 0;
  3832. s2.Position = 0;
  3833. for (; ((s1.Position != s1.Length)
  3834. && (s1.ReadByte() == s2.ReadByte())); ) {
  3835. ;
  3836. }
  3837. if ((s1.Position == s1.Length)) {
  3838. return type;
  3839. }
  3840. }
  3841. }
  3842. }
  3843. finally {
  3844. if ((s1 != null)) {
  3845. s1.Close();
  3846. }
  3847. if ((s2 != null)) {
  3848. s2.Close();
  3849. }
  3850. }
  3851. }
  3852. xs.Add(dsSchema);
  3853. return type;
  3854. }
  3855. }
  3856. /// <summary>
  3857. ///Represents the strongly named DataTable class.
  3858. ///</summary>
  3859. [global::System.Serializable()]
  3860. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3861. public partial class TagDataTable : global::System.Data.TypedTableBase<TagRow> {
  3862. private global::System.Data.DataColumn columnID;
  3863. private global::System.Data.DataColumn columnTitle;
  3864. private global::System.Data.DataColumn columnColor;
  3865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3867. public TagDataTable() {
  3868. this.TableName = "Tag";
  3869. this.BeginInit();
  3870. this.InitClass();
  3871. this.EndInit();
  3872. }
  3873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3875. internal TagDataTable(global::System.Data.DataTable table) {
  3876. this.TableName = table.TableName;
  3877. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3878. this.CaseSensitive = table.CaseSensitive;
  3879. }
  3880. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3881. this.Locale = table.Locale;
  3882. }
  3883. if ((table.Namespace != table.DataSet.Namespace)) {
  3884. this.Namespace = table.Namespace;
  3885. }
  3886. this.Prefix = table.Prefix;
  3887. this.MinimumCapacity = table.MinimumCapacity;
  3888. }
  3889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3891. protected TagDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3892. base(info, context) {
  3893. this.InitVars();
  3894. }
  3895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3897. public global::System.Data.DataColumn IDColumn {
  3898. get {
  3899. return this.columnID;
  3900. }
  3901. }
  3902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3904. public global::System.Data.DataColumn TitleColumn {
  3905. get {
  3906. return this.columnTitle;
  3907. }
  3908. }
  3909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3910. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3911. public global::System.Data.DataColumn ColorColumn {
  3912. get {
  3913. return this.columnColor;
  3914. }
  3915. }
  3916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3918. [global::System.ComponentModel.Browsable(false)]
  3919. public int Count {
  3920. get {
  3921. return this.Rows.Count;
  3922. }
  3923. }
  3924. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3925. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3926. public TagRow this[int index] {
  3927. get {
  3928. return ((TagRow)(this.Rows[index]));
  3929. }
  3930. }
  3931. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3932. public event TagRowChangeEventHandler TagRowChanging;
  3933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3934. public event TagRowChangeEventHandler TagRowChanged;
  3935. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3936. public event TagRowChangeEventHandler TagRowDeleting;
  3937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3938. public event TagRowChangeEventHandler TagRowDeleted;
  3939. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3940. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3941. public void AddTagRow(TagRow row) {
  3942. this.Rows.Add(row);
  3943. }
  3944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3946. public TagRow AddTagRow(string Title, string Color) {
  3947. TagRow rowTagRow = ((TagRow)(this.NewRow()));
  3948. object[] columnValuesArray = new object[] {
  3949. null,
  3950. Title,
  3951. Color};
  3952. rowTagRow.ItemArray = columnValuesArray;
  3953. this.Rows.Add(rowTagRow);
  3954. return rowTagRow;
  3955. }
  3956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3958. public TagRow FindByID(int ID) {
  3959. return ((TagRow)(this.Rows.Find(new object[] {
  3960. ID})));
  3961. }
  3962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3964. public override global::System.Data.DataTable Clone() {
  3965. TagDataTable cln = ((TagDataTable)(base.Clone()));
  3966. cln.InitVars();
  3967. return cln;
  3968. }
  3969. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3970. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3971. protected override global::System.Data.DataTable CreateInstance() {
  3972. return new TagDataTable();
  3973. }
  3974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3976. internal void InitVars() {
  3977. this.columnID = base.Columns["ID"];
  3978. this.columnTitle = base.Columns["Title"];
  3979. this.columnColor = base.Columns["Color"];
  3980. }
  3981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3982. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3983. private void InitClass() {
  3984. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3985. base.Columns.Add(this.columnID);
  3986. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  3987. base.Columns.Add(this.columnTitle);
  3988. this.columnColor = new global::System.Data.DataColumn("Color", typeof(string), null, global::System.Data.MappingType.Element);
  3989. base.Columns.Add(this.columnColor);
  3990. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3991. this.columnID}, true));
  3992. this.columnID.AutoIncrement = true;
  3993. this.columnID.AutoIncrementSeed = -1;
  3994. this.columnID.AutoIncrementStep = -1;
  3995. this.columnID.AllowDBNull = false;
  3996. this.columnID.ReadOnly = true;
  3997. this.columnID.Unique = true;
  3998. this.columnTitle.AllowDBNull = false;
  3999. this.columnTitle.MaxLength = 30;
  4000. this.columnColor.AllowDBNull = false;
  4001. this.columnColor.MaxLength = 6;
  4002. }
  4003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4005. public TagRow NewTagRow() {
  4006. return ((TagRow)(this.NewRow()));
  4007. }
  4008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4010. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4011. return new TagRow(builder);
  4012. }
  4013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4015. protected override global::System.Type GetRowType() {
  4016. return typeof(TagRow);
  4017. }
  4018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4020. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4021. base.OnRowChanged(e);
  4022. if ((this.TagRowChanged != null)) {
  4023. this.TagRowChanged(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  4024. }
  4025. }
  4026. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4027. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4028. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4029. base.OnRowChanging(e);
  4030. if ((this.TagRowChanging != null)) {
  4031. this.TagRowChanging(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  4032. }
  4033. }
  4034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4036. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4037. base.OnRowDeleted(e);
  4038. if ((this.TagRowDeleted != null)) {
  4039. this.TagRowDeleted(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  4040. }
  4041. }
  4042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4044. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4045. base.OnRowDeleting(e);
  4046. if ((this.TagRowDeleting != null)) {
  4047. this.TagRowDeleting(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  4048. }
  4049. }
  4050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4052. public void RemoveTagRow(TagRow row) {
  4053. this.Rows.Remove(row);
  4054. }
  4055. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4056. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4057. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4058. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4059. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4060. BB_GrishinaDataSet ds = new BB_GrishinaDataSet();
  4061. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4062. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4063. any1.MinOccurs = new decimal(0);
  4064. any1.MaxOccurs = decimal.MaxValue;
  4065. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4066. sequence.Items.Add(any1);
  4067. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4068. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4069. any2.MinOccurs = new decimal(1);
  4070. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4071. sequence.Items.Add(any2);
  4072. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4073. attribute1.Name = "namespace";
  4074. attribute1.FixedValue = ds.Namespace;
  4075. type.Attributes.Add(attribute1);
  4076. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4077. attribute2.Name = "tableTypeName";
  4078. attribute2.FixedValue = "TagDataTable";
  4079. type.Attributes.Add(attribute2);
  4080. type.Particle = sequence;
  4081. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4082. if (xs.Contains(dsSchema.TargetNamespace)) {
  4083. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4084. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4085. try {
  4086. global::System.Xml.Schema.XmlSchema schema = null;
  4087. dsSchema.Write(s1);
  4088. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4089. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4090. s2.SetLength(0);
  4091. schema.Write(s2);
  4092. if ((s1.Length == s2.Length)) {
  4093. s1.Position = 0;
  4094. s2.Position = 0;
  4095. for (; ((s1.Position != s1.Length)
  4096. && (s1.ReadByte() == s2.ReadByte())); ) {
  4097. ;
  4098. }
  4099. if ((s1.Position == s1.Length)) {
  4100. return type;
  4101. }
  4102. }
  4103. }
  4104. }
  4105. finally {
  4106. if ((s1 != null)) {
  4107. s1.Close();
  4108. }
  4109. if ((s2 != null)) {
  4110. s2.Close();
  4111. }
  4112. }
  4113. }
  4114. xs.Add(dsSchema);
  4115. return type;
  4116. }
  4117. }
  4118. /// <summary>
  4119. ///Represents the strongly named DataTable class.
  4120. ///</summary>
  4121. [global::System.Serializable()]
  4122. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  4123. public partial class TagOfClientDataTable : global::System.Data.TypedTableBase<TagOfClientRow> {
  4124. private global::System.Data.DataColumn columnClientID;
  4125. private global::System.Data.DataColumn columnTagID;
  4126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4128. public TagOfClientDataTable() {
  4129. this.TableName = "TagOfClient";
  4130. this.BeginInit();
  4131. this.InitClass();
  4132. this.EndInit();
  4133. }
  4134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4136. internal TagOfClientDataTable(global::System.Data.DataTable table) {
  4137. this.TableName = table.TableName;
  4138. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  4139. this.CaseSensitive = table.CaseSensitive;
  4140. }
  4141. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  4142. this.Locale = table.Locale;
  4143. }
  4144. if ((table.Namespace != table.DataSet.Namespace)) {
  4145. this.Namespace = table.Namespace;
  4146. }
  4147. this.Prefix = table.Prefix;
  4148. this.MinimumCapacity = table.MinimumCapacity;
  4149. }
  4150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4152. protected TagOfClientDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  4153. base(info, context) {
  4154. this.InitVars();
  4155. }
  4156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4158. public global::System.Data.DataColumn ClientIDColumn {
  4159. get {
  4160. return this.columnClientID;
  4161. }
  4162. }
  4163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4165. public global::System.Data.DataColumn TagIDColumn {
  4166. get {
  4167. return this.columnTagID;
  4168. }
  4169. }
  4170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4171. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4172. [global::System.ComponentModel.Browsable(false)]
  4173. public int Count {
  4174. get {
  4175. return this.Rows.Count;
  4176. }
  4177. }
  4178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4180. public TagOfClientRow this[int index] {
  4181. get {
  4182. return ((TagOfClientRow)(this.Rows[index]));
  4183. }
  4184. }
  4185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4186. public event TagOfClientRowChangeEventHandler TagOfClientRowChanging;
  4187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4188. public event TagOfClientRowChangeEventHandler TagOfClientRowChanged;
  4189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4190. public event TagOfClientRowChangeEventHandler TagOfClientRowDeleting;
  4191. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4192. public event TagOfClientRowChangeEventHandler TagOfClientRowDeleted;
  4193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4195. public void AddTagOfClientRow(TagOfClientRow row) {
  4196. this.Rows.Add(row);
  4197. }
  4198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4200. public TagOfClientRow AddTagOfClientRow(ClientRow parentClientRowByFK_TagOfClient_Client, TagRow parentTagRowByFK_TagOfClient_Tag) {
  4201. TagOfClientRow rowTagOfClientRow = ((TagOfClientRow)(this.NewRow()));
  4202. object[] columnValuesArray = new object[] {
  4203. null,
  4204. null};
  4205. if ((parentClientRowByFK_TagOfClient_Client != null)) {
  4206. columnValuesArray[0] = parentClientRowByFK_TagOfClient_Client[0];
  4207. }
  4208. if ((parentTagRowByFK_TagOfClient_Tag != null)) {
  4209. columnValuesArray[1] = parentTagRowByFK_TagOfClient_Tag[0];
  4210. }
  4211. rowTagOfClientRow.ItemArray = columnValuesArray;
  4212. this.Rows.Add(rowTagOfClientRow);
  4213. return rowTagOfClientRow;
  4214. }
  4215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4217. public TagOfClientRow FindByClientIDTagID(int ClientID, int TagID) {
  4218. return ((TagOfClientRow)(this.Rows.Find(new object[] {
  4219. ClientID,
  4220. TagID})));
  4221. }
  4222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4224. public override global::System.Data.DataTable Clone() {
  4225. TagOfClientDataTable cln = ((TagOfClientDataTable)(base.Clone()));
  4226. cln.InitVars();
  4227. return cln;
  4228. }
  4229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4231. protected override global::System.Data.DataTable CreateInstance() {
  4232. return new TagOfClientDataTable();
  4233. }
  4234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4236. internal void InitVars() {
  4237. this.columnClientID = base.Columns["ClientID"];
  4238. this.columnTagID = base.Columns["TagID"];
  4239. }
  4240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4242. private void InitClass() {
  4243. this.columnClientID = new global::System.Data.DataColumn("ClientID", typeof(int), null, global::System.Data.MappingType.Element);
  4244. base.Columns.Add(this.columnClientID);
  4245. this.columnTagID = new global::System.Data.DataColumn("TagID", typeof(int), null, global::System.Data.MappingType.Element);
  4246. base.Columns.Add(this.columnTagID);
  4247. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  4248. this.columnClientID,
  4249. this.columnTagID}, true));
  4250. this.columnClientID.AllowDBNull = false;
  4251. this.columnTagID.AllowDBNull = false;
  4252. }
  4253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4255. public TagOfClientRow NewTagOfClientRow() {
  4256. return ((TagOfClientRow)(this.NewRow()));
  4257. }
  4258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4260. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4261. return new TagOfClientRow(builder);
  4262. }
  4263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4265. protected override global::System.Type GetRowType() {
  4266. return typeof(TagOfClientRow);
  4267. }
  4268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4270. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4271. base.OnRowChanged(e);
  4272. if ((this.TagOfClientRowChanged != null)) {
  4273. this.TagOfClientRowChanged(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  4274. }
  4275. }
  4276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4278. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4279. base.OnRowChanging(e);
  4280. if ((this.TagOfClientRowChanging != null)) {
  4281. this.TagOfClientRowChanging(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  4282. }
  4283. }
  4284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4286. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4287. base.OnRowDeleted(e);
  4288. if ((this.TagOfClientRowDeleted != null)) {
  4289. this.TagOfClientRowDeleted(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  4290. }
  4291. }
  4292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4294. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4295. base.OnRowDeleting(e);
  4296. if ((this.TagOfClientRowDeleting != null)) {
  4297. this.TagOfClientRowDeleting(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  4298. }
  4299. }
  4300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4302. public void RemoveTagOfClientRow(TagOfClientRow row) {
  4303. this.Rows.Remove(row);
  4304. }
  4305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4306. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4307. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4308. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4309. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4310. BB_GrishinaDataSet ds = new BB_GrishinaDataSet();
  4311. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4312. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4313. any1.MinOccurs = new decimal(0);
  4314. any1.MaxOccurs = decimal.MaxValue;
  4315. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4316. sequence.Items.Add(any1);
  4317. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4318. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4319. any2.MinOccurs = new decimal(1);
  4320. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4321. sequence.Items.Add(any2);
  4322. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4323. attribute1.Name = "namespace";
  4324. attribute1.FixedValue = ds.Namespace;
  4325. type.Attributes.Add(attribute1);
  4326. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4327. attribute2.Name = "tableTypeName";
  4328. attribute2.FixedValue = "TagOfClientDataTable";
  4329. type.Attributes.Add(attribute2);
  4330. type.Particle = sequence;
  4331. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4332. if (xs.Contains(dsSchema.TargetNamespace)) {
  4333. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4334. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4335. try {
  4336. global::System.Xml.Schema.XmlSchema schema = null;
  4337. dsSchema.Write(s1);
  4338. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4339. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4340. s2.SetLength(0);
  4341. schema.Write(s2);
  4342. if ((s1.Length == s2.Length)) {
  4343. s1.Position = 0;
  4344. s2.Position = 0;
  4345. for (; ((s1.Position != s1.Length)
  4346. && (s1.ReadByte() == s2.ReadByte())); ) {
  4347. ;
  4348. }
  4349. if ((s1.Position == s1.Length)) {
  4350. return type;
  4351. }
  4352. }
  4353. }
  4354. }
  4355. finally {
  4356. if ((s1 != null)) {
  4357. s1.Close();
  4358. }
  4359. if ((s2 != null)) {
  4360. s2.Close();
  4361. }
  4362. }
  4363. }
  4364. xs.Add(dsSchema);
  4365. return type;
  4366. }
  4367. }
  4368. /// <summary>
  4369. ///Represents the strongly named DataTable class.
  4370. ///</summary>
  4371. [global::System.Serializable()]
  4372. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  4373. public partial class АвторизацияDataTable : global::System.Data.TypedTableBase<АвторизацияRow> {
  4374. private global::System.Data.DataColumn columnЛогин;
  4375. private global::System.Data.DataColumn columnПароль;
  4376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4378. public АвторизацияDataTable() {
  4379. this.TableName = "Авторизация";
  4380. this.BeginInit();
  4381. this.InitClass();
  4382. this.EndInit();
  4383. }
  4384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4386. internal АвторизацияDataTable(global::System.Data.DataTable table) {
  4387. this.TableName = table.TableName;
  4388. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  4389. this.CaseSensitive = table.CaseSensitive;
  4390. }
  4391. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  4392. this.Locale = table.Locale;
  4393. }
  4394. if ((table.Namespace != table.DataSet.Namespace)) {
  4395. this.Namespace = table.Namespace;
  4396. }
  4397. this.Prefix = table.Prefix;
  4398. this.MinimumCapacity = table.MinimumCapacity;
  4399. }
  4400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4402. protected АвторизацияDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  4403. base(info, context) {
  4404. this.InitVars();
  4405. }
  4406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4408. public global::System.Data.DataColumn ЛогинColumn {
  4409. get {
  4410. return this.columnЛогин;
  4411. }
  4412. }
  4413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4415. public global::System.Data.DataColumn ПарольColumn {
  4416. get {
  4417. return this.columnПароль;
  4418. }
  4419. }
  4420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4422. [global::System.ComponentModel.Browsable(false)]
  4423. public int Count {
  4424. get {
  4425. return this.Rows.Count;
  4426. }
  4427. }
  4428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4429. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4430. public АвторизацияRow this[int index] {
  4431. get {
  4432. return ((АвторизацияRow)(this.Rows[index]));
  4433. }
  4434. }
  4435. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4436. public event АвторизацияRowChangeEventHandler АвторизацияRowChanging;
  4437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4438. public event АвторизацияRowChangeEventHandler АвторизацияRowChanged;
  4439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4440. public event АвторизацияRowChangeEventHandler АвторизацияRowDeleting;
  4441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4442. public event АвторизацияRowChangeEventHandler АвторизацияRowDeleted;
  4443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4444. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4445. public void AddАвторизацияRow(АвторизацияRow row) {
  4446. this.Rows.Add(row);
  4447. }
  4448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4450. public АвторизацияRow AddАвторизацияRow(int Логин, int Пароль) {
  4451. АвторизацияRow rowАвторизацияRow = ((АвторизацияRow)(this.NewRow()));
  4452. object[] columnValuesArray = new object[] {
  4453. Логин,
  4454. Пароль};
  4455. rowАвторизацияRow.ItemArray = columnValuesArray;
  4456. this.Rows.Add(rowАвторизацияRow);
  4457. return rowАвторизацияRow;
  4458. }
  4459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4461. public override global::System.Data.DataTable Clone() {
  4462. АвторизацияDataTable cln = ((АвторизацияDataTable)(base.Clone()));
  4463. cln.InitVars();
  4464. return cln;
  4465. }
  4466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4468. protected override global::System.Data.DataTable CreateInstance() {
  4469. return new АвторизацияDataTable();
  4470. }
  4471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4473. internal void InitVars() {
  4474. this.columnЛогин = base.Columns["Логин"];
  4475. this.columnПароль = base.Columns["Пароль"];
  4476. }
  4477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4479. private void InitClass() {
  4480. this.columnЛогин = new global::System.Data.DataColumn("Логин", typeof(int), null, global::System.Data.MappingType.Element);
  4481. base.Columns.Add(this.columnЛогин);
  4482. this.columnПароль = new global::System.Data.DataColumn("Пароль", typeof(int), null, global::System.Data.MappingType.Element);
  4483. base.Columns.Add(this.columnПароль);
  4484. }
  4485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4487. public АвторизацияRow NewАвторизацияRow() {
  4488. return ((АвторизацияRow)(this.NewRow()));
  4489. }
  4490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4492. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4493. return new АвторизацияRow(builder);
  4494. }
  4495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4497. protected override global::System.Type GetRowType() {
  4498. return typeof(АвторизацияRow);
  4499. }
  4500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4502. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4503. base.OnRowChanged(e);
  4504. if ((this.АвторизацияRowChanged != null)) {
  4505. this.АвторизацияRowChanged(this, new АвторизацияRowChangeEvent(((АвторизацияRow)(e.Row)), e.Action));
  4506. }
  4507. }
  4508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4510. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4511. base.OnRowChanging(e);
  4512. if ((this.АвторизацияRowChanging != null)) {
  4513. this.АвторизацияRowChanging(this, new АвторизацияRowChangeEvent(((АвторизацияRow)(e.Row)), e.Action));
  4514. }
  4515. }
  4516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4518. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4519. base.OnRowDeleted(e);
  4520. if ((this.АвторизацияRowDeleted != null)) {
  4521. this.АвторизацияRowDeleted(this, new АвторизацияRowChangeEvent(((АвторизацияRow)(e.Row)), e.Action));
  4522. }
  4523. }
  4524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4526. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4527. base.OnRowDeleting(e);
  4528. if ((this.АвторизацияRowDeleting != null)) {
  4529. this.АвторизацияRowDeleting(this, new АвторизацияRowChangeEvent(((АвторизацияRow)(e.Row)), e.Action));
  4530. }
  4531. }
  4532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4533. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4534. public void RemoveАвторизацияRow(АвторизацияRow row) {
  4535. this.Rows.Remove(row);
  4536. }
  4537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4539. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4540. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4541. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4542. BB_GrishinaDataSet ds = new BB_GrishinaDataSet();
  4543. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4544. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4545. any1.MinOccurs = new decimal(0);
  4546. any1.MaxOccurs = decimal.MaxValue;
  4547. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4548. sequence.Items.Add(any1);
  4549. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4550. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4551. any2.MinOccurs = new decimal(1);
  4552. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4553. sequence.Items.Add(any2);
  4554. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4555. attribute1.Name = "namespace";
  4556. attribute1.FixedValue = ds.Namespace;
  4557. type.Attributes.Add(attribute1);
  4558. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4559. attribute2.Name = "tableTypeName";
  4560. attribute2.FixedValue = "АвторизацияDataTable";
  4561. type.Attributes.Add(attribute2);
  4562. type.Particle = sequence;
  4563. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4564. if (xs.Contains(dsSchema.TargetNamespace)) {
  4565. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4566. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4567. try {
  4568. global::System.Xml.Schema.XmlSchema schema = null;
  4569. dsSchema.Write(s1);
  4570. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4571. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4572. s2.SetLength(0);
  4573. schema.Write(s2);
  4574. if ((s1.Length == s2.Length)) {
  4575. s1.Position = 0;
  4576. s2.Position = 0;
  4577. for (; ((s1.Position != s1.Length)
  4578. && (s1.ReadByte() == s2.ReadByte())); ) {
  4579. ;
  4580. }
  4581. if ((s1.Position == s1.Length)) {
  4582. return type;
  4583. }
  4584. }
  4585. }
  4586. }
  4587. finally {
  4588. if ((s1 != null)) {
  4589. s1.Close();
  4590. }
  4591. if ((s2 != null)) {
  4592. s2.Close();
  4593. }
  4594. }
  4595. }
  4596. xs.Add(dsSchema);
  4597. return type;
  4598. }
  4599. }
  4600. /// <summary>
  4601. ///Represents strongly named DataRow class.
  4602. ///</summary>
  4603. public partial class AttachedProductRow : global::System.Data.DataRow {
  4604. private AttachedProductDataTable tableAttachedProduct;
  4605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4607. internal AttachedProductRow(global::System.Data.DataRowBuilder rb) :
  4608. base(rb) {
  4609. this.tableAttachedProduct = ((AttachedProductDataTable)(this.Table));
  4610. }
  4611. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4612. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4613. public int MainProductID {
  4614. get {
  4615. return ((int)(this[this.tableAttachedProduct.MainProductIDColumn]));
  4616. }
  4617. set {
  4618. this[this.tableAttachedProduct.MainProductIDColumn] = value;
  4619. }
  4620. }
  4621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4622. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4623. public int AttachedProductID {
  4624. get {
  4625. return ((int)(this[this.tableAttachedProduct.AttachedProductIDColumn]));
  4626. }
  4627. set {
  4628. this[this.tableAttachedProduct.AttachedProductIDColumn] = value;
  4629. }
  4630. }
  4631. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4633. public ProductRow ProductRowByFK_AttachedProduct_Product {
  4634. get {
  4635. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_AttachedProduct_Product"])));
  4636. }
  4637. set {
  4638. this.SetParentRow(value, this.Table.ParentRelations["FK_AttachedProduct_Product"]);
  4639. }
  4640. }
  4641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4642. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4643. public ProductRow ProductRowByFK_AttachedProduct_Product1 {
  4644. get {
  4645. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_AttachedProduct_Product1"])));
  4646. }
  4647. set {
  4648. this.SetParentRow(value, this.Table.ParentRelations["FK_AttachedProduct_Product1"]);
  4649. }
  4650. }
  4651. }
  4652. /// <summary>
  4653. ///Represents strongly named DataRow class.
  4654. ///</summary>
  4655. public partial class ClientRow : global::System.Data.DataRow {
  4656. private ClientDataTable tableClient;
  4657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4659. internal ClientRow(global::System.Data.DataRowBuilder rb) :
  4660. base(rb) {
  4661. this.tableClient = ((ClientDataTable)(this.Table));
  4662. }
  4663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4665. public int ID {
  4666. get {
  4667. return ((int)(this[this.tableClient.IDColumn]));
  4668. }
  4669. set {
  4670. this[this.tableClient.IDColumn] = value;
  4671. }
  4672. }
  4673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4675. public string Имя {
  4676. get {
  4677. return ((string)(this[this.tableClient.ИмяColumn]));
  4678. }
  4679. set {
  4680. this[this.tableClient.ИмяColumn] = value;
  4681. }
  4682. }
  4683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4685. public string Фамилия {
  4686. get {
  4687. try {
  4688. return ((string)(this[this.tableClient.ФамилияColumn]));
  4689. }
  4690. catch (global::System.InvalidCastException e) {
  4691. throw new global::System.Data.StrongTypingException("Значение для столбца \'Фамилия\' в таблице \'Client\' равно DBNull.", e);
  4692. }
  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 string Отчество {
  4701. get {
  4702. try {
  4703. return ((string)(this[this.tableClient.ОтчествоColumn]));
  4704. }
  4705. catch (global::System.InvalidCastException e) {
  4706. throw new global::System.Data.StrongTypingException("Значение для столбца \'Отчество\' в таблице \'Client\' равно DBNull.", e);
  4707. }
  4708. }
  4709. set {
  4710. this[this.tableClient.ОтчествоColumn] = value;
  4711. }
  4712. }
  4713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4715. public string Пол {
  4716. get {
  4717. try {
  4718. return ((string)(this[this.tableClient.ПолColumn]));
  4719. }
  4720. catch (global::System.InvalidCastException e) {
  4721. throw new global::System.Data.StrongTypingException("Значение для столбца \'Пол\' в таблице \'Client\' равно DBNull.", e);
  4722. }
  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 string Телефон {
  4731. get {
  4732. return ((string)(this[this.tableClient.ТелефонColumn]));
  4733. }
  4734. set {
  4735. this[this.tableClient.ТелефонColumn] = value;
  4736. }
  4737. }
  4738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4740. public System.DateTime ДатаРождения {
  4741. get {
  4742. try {
  4743. return ((global::System.DateTime)(this[this.tableClient.ДатаРожденияColumn]));
  4744. }
  4745. catch (global::System.InvalidCastException e) {
  4746. throw new global::System.Data.StrongTypingException("Значение для столбца \'ДатаРождения\' в таблице \'Client\' равно DBNull.", e);
  4747. }
  4748. }
  4749. set {
  4750. this[this.tableClient.ДатаРожденияColumn] = value;
  4751. }
  4752. }
  4753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4755. public string Email {
  4756. get {
  4757. try {
  4758. return ((string)(this[this.tableClient.EmailColumn]));
  4759. }
  4760. catch (global::System.InvalidCastException e) {
  4761. throw new global::System.Data.StrongTypingException("Значение для столбца \'Email\' в таблице \'Client\' равно DBNull.", e);
  4762. }
  4763. }
  4764. set {
  4765. this[this.tableClient.EmailColumn] = value;
  4766. }
  4767. }
  4768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4770. public System.DateTime ДатаРегистрации {
  4771. get {
  4772. return ((global::System.DateTime)(this[this.tableClient.ДатаРегистрацииColumn]));
  4773. }
  4774. set {
  4775. this[this.tableClient.ДатаРегистрацииColumn] = value;
  4776. }
  4777. }
  4778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4780. public string PhotoPath {
  4781. get {
  4782. try {
  4783. return ((string)(this[this.tableClient.PhotoPathColumn]));
  4784. }
  4785. catch (global::System.InvalidCastException e) {
  4786. throw new global::System.Data.StrongTypingException("Значение для столбца \'PhotoPath\' в таблице \'Client\' равно DBNull.", e);
  4787. }
  4788. }
  4789. set {
  4790. this[this.tableClient.PhotoPathColumn] = value;
  4791. }
  4792. }
  4793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4795. public GenderRow GenderRow {
  4796. get {
  4797. return ((GenderRow)(this.GetParentRow(this.Table.ParentRelations["FK_Client_Gender"])));
  4798. }
  4799. set {
  4800. this.SetParentRow(value, this.Table.ParentRelations["FK_Client_Gender"]);
  4801. }
  4802. }
  4803. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4804. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4805. public bool IsФамилияNull() {
  4806. return this.IsNull(this.tableClient.ФамилияColumn);
  4807. }
  4808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4810. public void SetФамилияNull() {
  4811. this[this.tableClient.ФамилияColumn] = global::System.Convert.DBNull;
  4812. }
  4813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4814. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4815. public bool IsОтчествоNull() {
  4816. return this.IsNull(this.tableClient.ОтчествоColumn);
  4817. }
  4818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4820. public void SetОтчествоNull() {
  4821. this[this.tableClient.ОтчествоColumn] = global::System.Convert.DBNull;
  4822. }
  4823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4825. public bool IsПолNull() {
  4826. return this.IsNull(this.tableClient.ПолColumn);
  4827. }
  4828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4830. public void SetПолNull() {
  4831. this[this.tableClient.ПолColumn] = global::System.Convert.DBNull;
  4832. }
  4833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4835. public bool IsДатаРожденияNull() {
  4836. return this.IsNull(this.tableClient.ДатаРожденияColumn);
  4837. }
  4838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4840. public void SetДатаРожденияNull() {
  4841. this[this.tableClient.ДатаРожденияColumn] = global::System.Convert.DBNull;
  4842. }
  4843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4845. public bool IsEmailNull() {
  4846. return this.IsNull(this.tableClient.EmailColumn);
  4847. }
  4848. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4849. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4850. public void SetEmailNull() {
  4851. this[this.tableClient.EmailColumn] = global::System.Convert.DBNull;
  4852. }
  4853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4855. public bool IsPhotoPathNull() {
  4856. return this.IsNull(this.tableClient.PhotoPathColumn);
  4857. }
  4858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4860. public void SetPhotoPathNull() {
  4861. this[this.tableClient.PhotoPathColumn] = global::System.Convert.DBNull;
  4862. }
  4863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4865. public ClientServiceRow[] GetClientServiceRows() {
  4866. if ((this.Table.ChildRelations["FK_ClientService_Client"] == null)) {
  4867. return new ClientServiceRow[0];
  4868. }
  4869. else {
  4870. return ((ClientServiceRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ClientService_Client"])));
  4871. }
  4872. }
  4873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4875. public TagOfClientRow[] GetTagOfClientRows() {
  4876. if ((this.Table.ChildRelations["FK_TagOfClient_Client"] == null)) {
  4877. return new TagOfClientRow[0];
  4878. }
  4879. else {
  4880. return ((TagOfClientRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TagOfClient_Client"])));
  4881. }
  4882. }
  4883. }
  4884. /// <summary>
  4885. ///Represents strongly named DataRow class.
  4886. ///</summary>
  4887. public partial class ClientServiceRow : global::System.Data.DataRow {
  4888. private ClientServiceDataTable tableClientService;
  4889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4891. internal ClientServiceRow(global::System.Data.DataRowBuilder rb) :
  4892. base(rb) {
  4893. this.tableClientService = ((ClientServiceDataTable)(this.Table));
  4894. }
  4895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4897. public int ID {
  4898. get {
  4899. return ((int)(this[this.tableClientService.IDColumn]));
  4900. }
  4901. set {
  4902. this[this.tableClientService.IDColumn] = value;
  4903. }
  4904. }
  4905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4907. public int ClientID {
  4908. get {
  4909. return ((int)(this[this.tableClientService.ClientIDColumn]));
  4910. }
  4911. set {
  4912. this[this.tableClientService.ClientIDColumn] = value;
  4913. }
  4914. }
  4915. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4916. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4917. public int ServiceID {
  4918. get {
  4919. return ((int)(this[this.tableClientService.ServiceIDColumn]));
  4920. }
  4921. set {
  4922. this[this.tableClientService.ServiceIDColumn] = value;
  4923. }
  4924. }
  4925. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4926. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4927. public System.DateTime StartTime {
  4928. get {
  4929. return ((global::System.DateTime)(this[this.tableClientService.StartTimeColumn]));
  4930. }
  4931. set {
  4932. this[this.tableClientService.StartTimeColumn] = value;
  4933. }
  4934. }
  4935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4936. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4937. public string Comment {
  4938. get {
  4939. try {
  4940. return ((string)(this[this.tableClientService.CommentColumn]));
  4941. }
  4942. catch (global::System.InvalidCastException e) {
  4943. throw new global::System.Data.StrongTypingException("Значение для столбца \'Comment\' в таблице \'ClientService\' равно DBNull.", e);
  4944. }
  4945. }
  4946. set {
  4947. this[this.tableClientService.CommentColumn] = value;
  4948. }
  4949. }
  4950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4952. public ClientRow ClientRow {
  4953. get {
  4954. return ((ClientRow)(this.GetParentRow(this.Table.ParentRelations["FK_ClientService_Client"])));
  4955. }
  4956. set {
  4957. this.SetParentRow(value, this.Table.ParentRelations["FK_ClientService_Client"]);
  4958. }
  4959. }
  4960. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4961. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4962. public ServiceRow ServiceRow {
  4963. get {
  4964. return ((ServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_ClientService_Service"])));
  4965. }
  4966. set {
  4967. this.SetParentRow(value, this.Table.ParentRelations["FK_ClientService_Service"]);
  4968. }
  4969. }
  4970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4972. public bool IsCommentNull() {
  4973. return this.IsNull(this.tableClientService.CommentColumn);
  4974. }
  4975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4976. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4977. public void SetCommentNull() {
  4978. this[this.tableClientService.CommentColumn] = global::System.Convert.DBNull;
  4979. }
  4980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4981. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4982. public DocumentByServiceRow[] GetDocumentByServiceRows() {
  4983. if ((this.Table.ChildRelations["FK_DocumentByService_ClientService"] == null)) {
  4984. return new DocumentByServiceRow[0];
  4985. }
  4986. else {
  4987. return ((DocumentByServiceRow[])(base.GetChildRows(this.Table.ChildRelations["FK_DocumentByService_ClientService"])));
  4988. }
  4989. }
  4990. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4991. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4992. public ProductSaleRow[] GetProductSaleRows() {
  4993. if ((this.Table.ChildRelations["FK_ProductSale_ClientService"] == null)) {
  4994. return new ProductSaleRow[0];
  4995. }
  4996. else {
  4997. return ((ProductSaleRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductSale_ClientService"])));
  4998. }
  4999. }
  5000. }
  5001. /// <summary>
  5002. ///Represents strongly named DataRow class.
  5003. ///</summary>
  5004. public partial class DocumentByServiceRow : global::System.Data.DataRow {
  5005. private DocumentByServiceDataTable tableDocumentByService;
  5006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5008. internal DocumentByServiceRow(global::System.Data.DataRowBuilder rb) :
  5009. base(rb) {
  5010. this.tableDocumentByService = ((DocumentByServiceDataTable)(this.Table));
  5011. }
  5012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5014. public int ID {
  5015. get {
  5016. return ((int)(this[this.tableDocumentByService.IDColumn]));
  5017. }
  5018. set {
  5019. this[this.tableDocumentByService.IDColumn] = value;
  5020. }
  5021. }
  5022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5024. public int ClientServiceID {
  5025. get {
  5026. return ((int)(this[this.tableDocumentByService.ClientServiceIDColumn]));
  5027. }
  5028. set {
  5029. this[this.tableDocumentByService.ClientServiceIDColumn] = value;
  5030. }
  5031. }
  5032. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5033. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5034. public string DocumentPath {
  5035. get {
  5036. return ((string)(this[this.tableDocumentByService.DocumentPathColumn]));
  5037. }
  5038. set {
  5039. this[this.tableDocumentByService.DocumentPathColumn] = value;
  5040. }
  5041. }
  5042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5044. public ClientServiceRow ClientServiceRow {
  5045. get {
  5046. return ((ClientServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_DocumentByService_ClientService"])));
  5047. }
  5048. set {
  5049. this.SetParentRow(value, this.Table.ParentRelations["FK_DocumentByService_ClientService"]);
  5050. }
  5051. }
  5052. }
  5053. /// <summary>
  5054. ///Represents strongly named DataRow class.
  5055. ///</summary>
  5056. public partial class GenderRow : global::System.Data.DataRow {
  5057. private GenderDataTable tableGender;
  5058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5060. internal GenderRow(global::System.Data.DataRowBuilder rb) :
  5061. base(rb) {
  5062. this.tableGender = ((GenderDataTable)(this.Table));
  5063. }
  5064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5066. public string Code {
  5067. get {
  5068. return ((string)(this[this.tableGender.CodeColumn]));
  5069. }
  5070. set {
  5071. this[this.tableGender.CodeColumn] = value;
  5072. }
  5073. }
  5074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5076. public string Name {
  5077. get {
  5078. try {
  5079. return ((string)(this[this.tableGender.NameColumn]));
  5080. }
  5081. catch (global::System.InvalidCastException e) {
  5082. throw new global::System.Data.StrongTypingException("Значение для столбца \'Name\' в таблице \'Gender\' равно DBNull.", e);
  5083. }
  5084. }
  5085. set {
  5086. this[this.tableGender.NameColumn] = value;
  5087. }
  5088. }
  5089. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5090. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5091. public bool IsNameNull() {
  5092. return this.IsNull(this.tableGender.NameColumn);
  5093. }
  5094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5095. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5096. public void SetNameNull() {
  5097. this[this.tableGender.NameColumn] = global::System.Convert.DBNull;
  5098. }
  5099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5101. public ClientRow[] GetClientRows() {
  5102. if ((this.Table.ChildRelations["FK_Client_Gender"] == null)) {
  5103. return new ClientRow[0];
  5104. }
  5105. else {
  5106. return ((ClientRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Client_Gender"])));
  5107. }
  5108. }
  5109. }
  5110. /// <summary>
  5111. ///Represents strongly named DataRow class.
  5112. ///</summary>
  5113. public partial class ManufacturerRow : global::System.Data.DataRow {
  5114. private ManufacturerDataTable tableManufacturer;
  5115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5117. internal ManufacturerRow(global::System.Data.DataRowBuilder rb) :
  5118. base(rb) {
  5119. this.tableManufacturer = ((ManufacturerDataTable)(this.Table));
  5120. }
  5121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5123. public int ID {
  5124. get {
  5125. return ((int)(this[this.tableManufacturer.IDColumn]));
  5126. }
  5127. set {
  5128. this[this.tableManufacturer.IDColumn] = value;
  5129. }
  5130. }
  5131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5133. public string Name {
  5134. get {
  5135. return ((string)(this[this.tableManufacturer.NameColumn]));
  5136. }
  5137. set {
  5138. this[this.tableManufacturer.NameColumn] = value;
  5139. }
  5140. }
  5141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5143. public System.DateTime StartDate {
  5144. get {
  5145. try {
  5146. return ((global::System.DateTime)(this[this.tableManufacturer.StartDateColumn]));
  5147. }
  5148. catch (global::System.InvalidCastException e) {
  5149. throw new global::System.Data.StrongTypingException("Значение для столбца \'StartDate\' в таблице \'Manufacturer\' равно DBNull.", e);
  5150. }
  5151. }
  5152. set {
  5153. this[this.tableManufacturer.StartDateColumn] = value;
  5154. }
  5155. }
  5156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5158. public string Client {
  5159. get {
  5160. try {
  5161. return ((string)(this[this.tableManufacturer.ClientColumn]));
  5162. }
  5163. catch (global::System.InvalidCastException e) {
  5164. throw new global::System.Data.StrongTypingException("Значение для столбца \'Client\' в таблице \'Manufacturer\' равно DBNull.", e);
  5165. }
  5166. }
  5167. set {
  5168. this[this.tableManufacturer.ClientColumn] = value;
  5169. }
  5170. }
  5171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5173. public bool IsStartDateNull() {
  5174. return this.IsNull(this.tableManufacturer.StartDateColumn);
  5175. }
  5176. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5177. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5178. public void SetStartDateNull() {
  5179. this[this.tableManufacturer.StartDateColumn] = global::System.Convert.DBNull;
  5180. }
  5181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5183. public bool IsClientNull() {
  5184. return this.IsNull(this.tableManufacturer.ClientColumn);
  5185. }
  5186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5188. public void SetClientNull() {
  5189. this[this.tableManufacturer.ClientColumn] = global::System.Convert.DBNull;
  5190. }
  5191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5193. public ProductRow[] GetProductRows() {
  5194. if ((this.Table.ChildRelations["FK_Product_Manufacturer"] == null)) {
  5195. return new ProductRow[0];
  5196. }
  5197. else {
  5198. return ((ProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Product_Manufacturer"])));
  5199. }
  5200. }
  5201. }
  5202. /// <summary>
  5203. ///Represents strongly named DataRow class.
  5204. ///</summary>
  5205. public partial class ProductRow : global::System.Data.DataRow {
  5206. private ProductDataTable tableProduct;
  5207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5209. internal ProductRow(global::System.Data.DataRowBuilder rb) :
  5210. base(rb) {
  5211. this.tableProduct = ((ProductDataTable)(this.Table));
  5212. }
  5213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5215. public int ID {
  5216. get {
  5217. return ((int)(this[this.tableProduct.IDColumn]));
  5218. }
  5219. set {
  5220. this[this.tableProduct.IDColumn] = value;
  5221. }
  5222. }
  5223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5225. public string Title {
  5226. get {
  5227. return ((string)(this[this.tableProduct.TitleColumn]));
  5228. }
  5229. set {
  5230. this[this.tableProduct.TitleColumn] = value;
  5231. }
  5232. }
  5233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5235. public decimal Cost {
  5236. get {
  5237. return ((decimal)(this[this.tableProduct.CostColumn]));
  5238. }
  5239. set {
  5240. this[this.tableProduct.CostColumn] = value;
  5241. }
  5242. }
  5243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5245. public string Description {
  5246. get {
  5247. try {
  5248. return ((string)(this[this.tableProduct.DescriptionColumn]));
  5249. }
  5250. catch (global::System.InvalidCastException e) {
  5251. throw new global::System.Data.StrongTypingException("Значение для столбца \'Description\' в таблице \'Product\' равно DBNull.", e);
  5252. }
  5253. }
  5254. set {
  5255. this[this.tableProduct.DescriptionColumn] = value;
  5256. }
  5257. }
  5258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5260. public string MainImagePath {
  5261. get {
  5262. try {
  5263. return ((string)(this[this.tableProduct.MainImagePathColumn]));
  5264. }
  5265. catch (global::System.InvalidCastException e) {
  5266. throw new global::System.Data.StrongTypingException("Значение для столбца \'MainImagePath\' в таблице \'Product\' равно DBNull.", e);
  5267. }
  5268. }
  5269. set {
  5270. this[this.tableProduct.MainImagePathColumn] = value;
  5271. }
  5272. }
  5273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5275. public bool IsActive {
  5276. get {
  5277. return ((bool)(this[this.tableProduct.IsActiveColumn]));
  5278. }
  5279. set {
  5280. this[this.tableProduct.IsActiveColumn] = value;
  5281. }
  5282. }
  5283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5285. public int ManufacturerID {
  5286. get {
  5287. try {
  5288. return ((int)(this[this.tableProduct.ManufacturerIDColumn]));
  5289. }
  5290. catch (global::System.InvalidCastException e) {
  5291. throw new global::System.Data.StrongTypingException("Значение для столбца \'ManufacturerID\' в таблице \'Product\' равно DBNull.", e);
  5292. }
  5293. }
  5294. set {
  5295. this[this.tableProduct.ManufacturerIDColumn] = value;
  5296. }
  5297. }
  5298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5300. public ManufacturerRow ManufacturerRow {
  5301. get {
  5302. return ((ManufacturerRow)(this.GetParentRow(this.Table.ParentRelations["FK_Product_Manufacturer"])));
  5303. }
  5304. set {
  5305. this.SetParentRow(value, this.Table.ParentRelations["FK_Product_Manufacturer"]);
  5306. }
  5307. }
  5308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5310. public bool IsDescriptionNull() {
  5311. return this.IsNull(this.tableProduct.DescriptionColumn);
  5312. }
  5313. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5314. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5315. public void SetDescriptionNull() {
  5316. this[this.tableProduct.DescriptionColumn] = global::System.Convert.DBNull;
  5317. }
  5318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5320. public bool IsMainImagePathNull() {
  5321. return this.IsNull(this.tableProduct.MainImagePathColumn);
  5322. }
  5323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5325. public void SetMainImagePathNull() {
  5326. this[this.tableProduct.MainImagePathColumn] = global::System.Convert.DBNull;
  5327. }
  5328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5330. public bool IsManufacturerIDNull() {
  5331. return this.IsNull(this.tableProduct.ManufacturerIDColumn);
  5332. }
  5333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5335. public void SetManufacturerIDNull() {
  5336. this[this.tableProduct.ManufacturerIDColumn] = global::System.Convert.DBNull;
  5337. }
  5338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5340. public AttachedProductRow[] GetAttachedProductRowsByFK_AttachedProduct_Product() {
  5341. if ((this.Table.ChildRelations["FK_AttachedProduct_Product"] == null)) {
  5342. return new AttachedProductRow[0];
  5343. }
  5344. else {
  5345. return ((AttachedProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AttachedProduct_Product"])));
  5346. }
  5347. }
  5348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5349. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5350. public AttachedProductRow[] GetAttachedProductRowsByFK_AttachedProduct_Product1() {
  5351. if ((this.Table.ChildRelations["FK_AttachedProduct_Product1"] == null)) {
  5352. return new AttachedProductRow[0];
  5353. }
  5354. else {
  5355. return ((AttachedProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AttachedProduct_Product1"])));
  5356. }
  5357. }
  5358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5359. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5360. public ProductPhotoRow[] GetProductPhotoRows() {
  5361. if ((this.Table.ChildRelations["FK_ProductPhoto_Product"] == null)) {
  5362. return new ProductPhotoRow[0];
  5363. }
  5364. else {
  5365. return ((ProductPhotoRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductPhoto_Product"])));
  5366. }
  5367. }
  5368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5370. public ProductSaleRow[] GetProductSaleRows() {
  5371. if ((this.Table.ChildRelations["FK_ProductSale_Product"] == null)) {
  5372. return new ProductSaleRow[0];
  5373. }
  5374. else {
  5375. return ((ProductSaleRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductSale_Product"])));
  5376. }
  5377. }
  5378. }
  5379. /// <summary>
  5380. ///Represents strongly named DataRow class.
  5381. ///</summary>
  5382. public partial class ProductPhotoRow : global::System.Data.DataRow {
  5383. private ProductPhotoDataTable tableProductPhoto;
  5384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5386. internal ProductPhotoRow(global::System.Data.DataRowBuilder rb) :
  5387. base(rb) {
  5388. this.tableProductPhoto = ((ProductPhotoDataTable)(this.Table));
  5389. }
  5390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5392. public int ID {
  5393. get {
  5394. return ((int)(this[this.tableProductPhoto.IDColumn]));
  5395. }
  5396. set {
  5397. this[this.tableProductPhoto.IDColumn] = value;
  5398. }
  5399. }
  5400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5402. public int ProductID {
  5403. get {
  5404. return ((int)(this[this.tableProductPhoto.ProductIDColumn]));
  5405. }
  5406. set {
  5407. this[this.tableProductPhoto.ProductIDColumn] = value;
  5408. }
  5409. }
  5410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5412. public string PhotoPath {
  5413. get {
  5414. return ((string)(this[this.tableProductPhoto.PhotoPathColumn]));
  5415. }
  5416. set {
  5417. this[this.tableProductPhoto.PhotoPathColumn] = value;
  5418. }
  5419. }
  5420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5422. public ProductRow ProductRow {
  5423. get {
  5424. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductPhoto_Product"])));
  5425. }
  5426. set {
  5427. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductPhoto_Product"]);
  5428. }
  5429. }
  5430. }
  5431. /// <summary>
  5432. ///Represents strongly named DataRow class.
  5433. ///</summary>
  5434. public partial class ProductSaleRow : global::System.Data.DataRow {
  5435. private ProductSaleDataTable tableProductSale;
  5436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5438. internal ProductSaleRow(global::System.Data.DataRowBuilder rb) :
  5439. base(rb) {
  5440. this.tableProductSale = ((ProductSaleDataTable)(this.Table));
  5441. }
  5442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5444. public int ID {
  5445. get {
  5446. return ((int)(this[this.tableProductSale.IDColumn]));
  5447. }
  5448. set {
  5449. this[this.tableProductSale.IDColumn] = value;
  5450. }
  5451. }
  5452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5454. public System.DateTime SaleDate {
  5455. get {
  5456. return ((global::System.DateTime)(this[this.tableProductSale.SaleDateColumn]));
  5457. }
  5458. set {
  5459. this[this.tableProductSale.SaleDateColumn] = value;
  5460. }
  5461. }
  5462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5464. public int ProductID {
  5465. get {
  5466. return ((int)(this[this.tableProductSale.ProductIDColumn]));
  5467. }
  5468. set {
  5469. this[this.tableProductSale.ProductIDColumn] = value;
  5470. }
  5471. }
  5472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5474. public int Quantity {
  5475. get {
  5476. return ((int)(this[this.tableProductSale.QuantityColumn]));
  5477. }
  5478. set {
  5479. this[this.tableProductSale.QuantityColumn] = value;
  5480. }
  5481. }
  5482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5484. public int ClientServiceID {
  5485. get {
  5486. try {
  5487. return ((int)(this[this.tableProductSale.ClientServiceIDColumn]));
  5488. }
  5489. catch (global::System.InvalidCastException e) {
  5490. throw new global::System.Data.StrongTypingException("Значение для столбца \'ClientServiceID\' в таблице \'ProductSale\' равно DBNull.", e);
  5491. }
  5492. }
  5493. set {
  5494. this[this.tableProductSale.ClientServiceIDColumn] = value;
  5495. }
  5496. }
  5497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5499. public ClientServiceRow ClientServiceRow {
  5500. get {
  5501. return ((ClientServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductSale_ClientService"])));
  5502. }
  5503. set {
  5504. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductSale_ClientService"]);
  5505. }
  5506. }
  5507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5509. public ProductRow ProductRow {
  5510. get {
  5511. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductSale_Product"])));
  5512. }
  5513. set {
  5514. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductSale_Product"]);
  5515. }
  5516. }
  5517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5519. public bool IsClientServiceIDNull() {
  5520. return this.IsNull(this.tableProductSale.ClientServiceIDColumn);
  5521. }
  5522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5524. public void SetClientServiceIDNull() {
  5525. this[this.tableProductSale.ClientServiceIDColumn] = global::System.Convert.DBNull;
  5526. }
  5527. }
  5528. /// <summary>
  5529. ///Represents strongly named DataRow class.
  5530. ///</summary>
  5531. public partial class ServiceRow : global::System.Data.DataRow {
  5532. private ServiceDataTable tableService;
  5533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5535. internal ServiceRow(global::System.Data.DataRowBuilder rb) :
  5536. base(rb) {
  5537. this.tableService = ((ServiceDataTable)(this.Table));
  5538. }
  5539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5541. public int ID {
  5542. get {
  5543. return ((int)(this[this.tableService.IDColumn]));
  5544. }
  5545. set {
  5546. this[this.tableService.IDColumn] = value;
  5547. }
  5548. }
  5549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5551. public string НаименованиеУслугми {
  5552. get {
  5553. return ((string)(this[this.tableService.НаименованиеУслугмиColumn]));
  5554. }
  5555. set {
  5556. this[this.tableService.НаименованиеУслугмиColumn] = value;
  5557. }
  5558. }
  5559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5561. public string Изображение {
  5562. get {
  5563. try {
  5564. return ((string)(this[this.tableService.ИзображениеColumn]));
  5565. }
  5566. catch (global::System.InvalidCastException e) {
  5567. throw new global::System.Data.StrongTypingException("Значение для столбца \'Изображение\' в таблице \'Service\' равно DBNull.", e);
  5568. }
  5569. }
  5570. set {
  5571. this[this.tableService.ИзображениеColumn] = value;
  5572. }
  5573. }
  5574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5576. public string Длительность {
  5577. get {
  5578. try {
  5579. return ((string)(this[this.tableService.ДлительностьColumn]));
  5580. }
  5581. catch (global::System.InvalidCastException e) {
  5582. throw new global::System.Data.StrongTypingException("Значение для столбца \'Длительность\' в таблице \'Service\' равно DBNull.", e);
  5583. }
  5584. }
  5585. set {
  5586. this[this.tableService.ДлительностьColumn] = value;
  5587. }
  5588. }
  5589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5591. public string Стоимость {
  5592. get {
  5593. return ((string)(this[this.tableService.СтоимостьColumn]));
  5594. }
  5595. set {
  5596. this[this.tableService.СтоимостьColumn] = value;
  5597. }
  5598. }
  5599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5600. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5601. public string ДействующаяСкидка {
  5602. get {
  5603. try {
  5604. return ((string)(this[this.tableService.ДействующаяСкидкаColumn]));
  5605. }
  5606. catch (global::System.InvalidCastException e) {
  5607. throw new global::System.Data.StrongTypingException("Значение для столбца \'ДействующаяСкидка\' в таблице \'Service\' равно DBNull.", e);
  5608. }
  5609. }
  5610. set {
  5611. this[this.tableService.ДействующаяСкидкаColumn] = value;
  5612. }
  5613. }
  5614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5616. public string MainImagePath {
  5617. get {
  5618. try {
  5619. return ((string)(this[this.tableService.MainImagePathColumn]));
  5620. }
  5621. catch (global::System.InvalidCastException e) {
  5622. throw new global::System.Data.StrongTypingException("Значение для столбца \'MainImagePath\' в таблице \'Service\' равно DBNull.", e);
  5623. }
  5624. }
  5625. set {
  5626. this[this.tableService.MainImagePathColumn] = value;
  5627. }
  5628. }
  5629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5631. public bool IsИзображениеNull() {
  5632. return this.IsNull(this.tableService.ИзображениеColumn);
  5633. }
  5634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5636. public void SetИзображениеNull() {
  5637. this[this.tableService.ИзображениеColumn] = global::System.Convert.DBNull;
  5638. }
  5639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5641. public bool IsДлительностьNull() {
  5642. return this.IsNull(this.tableService.ДлительностьColumn);
  5643. }
  5644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5646. public void SetДлительностьNull() {
  5647. this[this.tableService.ДлительностьColumn] = global::System.Convert.DBNull;
  5648. }
  5649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5651. public bool IsДействующаяСкидкаNull() {
  5652. return this.IsNull(this.tableService.ДействующаяСкидкаColumn);
  5653. }
  5654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5656. public void SetДействующаяСкидкаNull() {
  5657. this[this.tableService.ДействующаяСкидкаColumn] = global::System.Convert.DBNull;
  5658. }
  5659. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5660. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5661. public bool IsMainImagePathNull() {
  5662. return this.IsNull(this.tableService.MainImagePathColumn);
  5663. }
  5664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5666. public void SetMainImagePathNull() {
  5667. this[this.tableService.MainImagePathColumn] = global::System.Convert.DBNull;
  5668. }
  5669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5671. public ClientServiceRow[] GetClientServiceRows() {
  5672. if ((this.Table.ChildRelations["FK_ClientService_Service"] == null)) {
  5673. return new ClientServiceRow[0];
  5674. }
  5675. else {
  5676. return ((ClientServiceRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ClientService_Service"])));
  5677. }
  5678. }
  5679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5681. public ServicePhotoRow[] GetServicePhotoRows() {
  5682. if ((this.Table.ChildRelations["FK_ServicePhoto_Service"] == null)) {
  5683. return new ServicePhotoRow[0];
  5684. }
  5685. else {
  5686. return ((ServicePhotoRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ServicePhoto_Service"])));
  5687. }
  5688. }
  5689. }
  5690. /// <summary>
  5691. ///Represents strongly named DataRow class.
  5692. ///</summary>
  5693. public partial class ServicePhotoRow : global::System.Data.DataRow {
  5694. private ServicePhotoDataTable tableServicePhoto;
  5695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5697. internal ServicePhotoRow(global::System.Data.DataRowBuilder rb) :
  5698. base(rb) {
  5699. this.tableServicePhoto = ((ServicePhotoDataTable)(this.Table));
  5700. }
  5701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5703. public int ID {
  5704. get {
  5705. return ((int)(this[this.tableServicePhoto.IDColumn]));
  5706. }
  5707. set {
  5708. this[this.tableServicePhoto.IDColumn] = value;
  5709. }
  5710. }
  5711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5712. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5713. public int ServiceID {
  5714. get {
  5715. return ((int)(this[this.tableServicePhoto.ServiceIDColumn]));
  5716. }
  5717. set {
  5718. this[this.tableServicePhoto.ServiceIDColumn] = value;
  5719. }
  5720. }
  5721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5723. public string PhotoPath {
  5724. get {
  5725. return ((string)(this[this.tableServicePhoto.PhotoPathColumn]));
  5726. }
  5727. set {
  5728. this[this.tableServicePhoto.PhotoPathColumn] = value;
  5729. }
  5730. }
  5731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5733. public ServiceRow ServiceRow {
  5734. get {
  5735. return ((ServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_ServicePhoto_Service"])));
  5736. }
  5737. set {
  5738. this.SetParentRow(value, this.Table.ParentRelations["FK_ServicePhoto_Service"]);
  5739. }
  5740. }
  5741. }
  5742. /// <summary>
  5743. ///Represents strongly named DataRow class.
  5744. ///</summary>
  5745. public partial class TagRow : global::System.Data.DataRow {
  5746. private TagDataTable tableTag;
  5747. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5748. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5749. internal TagRow(global::System.Data.DataRowBuilder rb) :
  5750. base(rb) {
  5751. this.tableTag = ((TagDataTable)(this.Table));
  5752. }
  5753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5755. public int ID {
  5756. get {
  5757. return ((int)(this[this.tableTag.IDColumn]));
  5758. }
  5759. set {
  5760. this[this.tableTag.IDColumn] = value;
  5761. }
  5762. }
  5763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5765. public string Title {
  5766. get {
  5767. return ((string)(this[this.tableTag.TitleColumn]));
  5768. }
  5769. set {
  5770. this[this.tableTag.TitleColumn] = value;
  5771. }
  5772. }
  5773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5774. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5775. public string Color {
  5776. get {
  5777. return ((string)(this[this.tableTag.ColorColumn]));
  5778. }
  5779. set {
  5780. this[this.tableTag.ColorColumn] = value;
  5781. }
  5782. }
  5783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5785. public TagOfClientRow[] GetTagOfClientRows() {
  5786. if ((this.Table.ChildRelations["FK_TagOfClient_Tag"] == null)) {
  5787. return new TagOfClientRow[0];
  5788. }
  5789. else {
  5790. return ((TagOfClientRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TagOfClient_Tag"])));
  5791. }
  5792. }
  5793. }
  5794. /// <summary>
  5795. ///Represents strongly named DataRow class.
  5796. ///</summary>
  5797. public partial class TagOfClientRow : global::System.Data.DataRow {
  5798. private TagOfClientDataTable tableTagOfClient;
  5799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5801. internal TagOfClientRow(global::System.Data.DataRowBuilder rb) :
  5802. base(rb) {
  5803. this.tableTagOfClient = ((TagOfClientDataTable)(this.Table));
  5804. }
  5805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5806. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5807. public int ClientID {
  5808. get {
  5809. return ((int)(this[this.tableTagOfClient.ClientIDColumn]));
  5810. }
  5811. set {
  5812. this[this.tableTagOfClient.ClientIDColumn] = value;
  5813. }
  5814. }
  5815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5817. public int TagID {
  5818. get {
  5819. return ((int)(this[this.tableTagOfClient.TagIDColumn]));
  5820. }
  5821. set {
  5822. this[this.tableTagOfClient.TagIDColumn] = value;
  5823. }
  5824. }
  5825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5827. public ClientRow ClientRow {
  5828. get {
  5829. return ((ClientRow)(this.GetParentRow(this.Table.ParentRelations["FK_TagOfClient_Client"])));
  5830. }
  5831. set {
  5832. this.SetParentRow(value, this.Table.ParentRelations["FK_TagOfClient_Client"]);
  5833. }
  5834. }
  5835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5837. public TagRow TagRow {
  5838. get {
  5839. return ((TagRow)(this.GetParentRow(this.Table.ParentRelations["FK_TagOfClient_Tag"])));
  5840. }
  5841. set {
  5842. this.SetParentRow(value, this.Table.ParentRelations["FK_TagOfClient_Tag"]);
  5843. }
  5844. }
  5845. }
  5846. /// <summary>
  5847. ///Represents strongly named DataRow class.
  5848. ///</summary>
  5849. public partial class АвторизацияRow : global::System.Data.DataRow {
  5850. private АвторизацияDataTable tableАвторизация;
  5851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5853. internal АвторизацияRow(global::System.Data.DataRowBuilder rb) :
  5854. base(rb) {
  5855. this.tableАвторизация = ((АвторизацияDataTable)(this.Table));
  5856. }
  5857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5859. public int Логин {
  5860. get {
  5861. try {
  5862. return ((int)(this[this.tableАвторизация.ЛогинColumn]));
  5863. }
  5864. catch (global::System.InvalidCastException e) {
  5865. throw new global::System.Data.StrongTypingException("Значение для столбца \'Логин\' в таблице \'Авторизация\' равно DBNull.", e);
  5866. }
  5867. }
  5868. set {
  5869. this[this.tableАвторизация.ЛогинColumn] = value;
  5870. }
  5871. }
  5872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5874. public int Пароль {
  5875. get {
  5876. try {
  5877. return ((int)(this[this.tableАвторизация.ПарольColumn]));
  5878. }
  5879. catch (global::System.InvalidCastException e) {
  5880. throw new global::System.Data.StrongTypingException("Значение для столбца \'Пароль\' в таблице \'Авторизация\' равно DBNull.", e);
  5881. }
  5882. }
  5883. set {
  5884. this[this.tableАвторизация.ПарольColumn] = value;
  5885. }
  5886. }
  5887. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5888. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5889. public bool IsЛогинNull() {
  5890. return this.IsNull(this.tableАвторизация.ЛогинColumn);
  5891. }
  5892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5894. public void SetЛогинNull() {
  5895. this[this.tableАвторизация.ЛогинColumn] = global::System.Convert.DBNull;
  5896. }
  5897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5899. public bool IsПарольNull() {
  5900. return this.IsNull(this.tableАвторизация.ПарольColumn);
  5901. }
  5902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5904. public void SetПарольNull() {
  5905. this[this.tableАвторизация.ПарольColumn] = global::System.Convert.DBNull;
  5906. }
  5907. }
  5908. /// <summary>
  5909. ///Row event argument class
  5910. ///</summary>
  5911. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5912. public class AttachedProductRowChangeEvent : global::System.EventArgs {
  5913. private AttachedProductRow eventRow;
  5914. private global::System.Data.DataRowAction eventAction;
  5915. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5916. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5917. public AttachedProductRowChangeEvent(AttachedProductRow row, global::System.Data.DataRowAction action) {
  5918. this.eventRow = row;
  5919. this.eventAction = action;
  5920. }
  5921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5923. public AttachedProductRow Row {
  5924. get {
  5925. return this.eventRow;
  5926. }
  5927. }
  5928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5930. public global::System.Data.DataRowAction Action {
  5931. get {
  5932. return this.eventAction;
  5933. }
  5934. }
  5935. }
  5936. /// <summary>
  5937. ///Row event argument class
  5938. ///</summary>
  5939. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5940. public class ClientRowChangeEvent : global::System.EventArgs {
  5941. private ClientRow eventRow;
  5942. private global::System.Data.DataRowAction eventAction;
  5943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5945. public ClientRowChangeEvent(ClientRow row, global::System.Data.DataRowAction action) {
  5946. this.eventRow = row;
  5947. this.eventAction = action;
  5948. }
  5949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5950. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5951. public ClientRow Row {
  5952. get {
  5953. return this.eventRow;
  5954. }
  5955. }
  5956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5958. public global::System.Data.DataRowAction Action {
  5959. get {
  5960. return this.eventAction;
  5961. }
  5962. }
  5963. }
  5964. /// <summary>
  5965. ///Row event argument class
  5966. ///</summary>
  5967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5968. public class ClientServiceRowChangeEvent : global::System.EventArgs {
  5969. private ClientServiceRow eventRow;
  5970. private global::System.Data.DataRowAction eventAction;
  5971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5972. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5973. public ClientServiceRowChangeEvent(ClientServiceRow row, global::System.Data.DataRowAction action) {
  5974. this.eventRow = row;
  5975. this.eventAction = action;
  5976. }
  5977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5978. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5979. public ClientServiceRow Row {
  5980. get {
  5981. return this.eventRow;
  5982. }
  5983. }
  5984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5986. public global::System.Data.DataRowAction Action {
  5987. get {
  5988. return this.eventAction;
  5989. }
  5990. }
  5991. }
  5992. /// <summary>
  5993. ///Row event argument class
  5994. ///</summary>
  5995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5996. public class DocumentByServiceRowChangeEvent : global::System.EventArgs {
  5997. private DocumentByServiceRow eventRow;
  5998. private global::System.Data.DataRowAction eventAction;
  5999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6001. public DocumentByServiceRowChangeEvent(DocumentByServiceRow row, global::System.Data.DataRowAction action) {
  6002. this.eventRow = row;
  6003. this.eventAction = action;
  6004. }
  6005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6007. public DocumentByServiceRow Row {
  6008. get {
  6009. return this.eventRow;
  6010. }
  6011. }
  6012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6014. public global::System.Data.DataRowAction Action {
  6015. get {
  6016. return this.eventAction;
  6017. }
  6018. }
  6019. }
  6020. /// <summary>
  6021. ///Row event argument class
  6022. ///</summary>
  6023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6024. public class GenderRowChangeEvent : global::System.EventArgs {
  6025. private GenderRow eventRow;
  6026. private global::System.Data.DataRowAction eventAction;
  6027. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6028. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6029. public GenderRowChangeEvent(GenderRow row, global::System.Data.DataRowAction action) {
  6030. this.eventRow = row;
  6031. this.eventAction = action;
  6032. }
  6033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6034. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6035. public GenderRow Row {
  6036. get {
  6037. return this.eventRow;
  6038. }
  6039. }
  6040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6042. public global::System.Data.DataRowAction Action {
  6043. get {
  6044. return this.eventAction;
  6045. }
  6046. }
  6047. }
  6048. /// <summary>
  6049. ///Row event argument class
  6050. ///</summary>
  6051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6052. public class ManufacturerRowChangeEvent : global::System.EventArgs {
  6053. private ManufacturerRow eventRow;
  6054. private global::System.Data.DataRowAction eventAction;
  6055. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6056. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6057. public ManufacturerRowChangeEvent(ManufacturerRow row, global::System.Data.DataRowAction action) {
  6058. this.eventRow = row;
  6059. this.eventAction = action;
  6060. }
  6061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6063. public ManufacturerRow Row {
  6064. get {
  6065. return this.eventRow;
  6066. }
  6067. }
  6068. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6069. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6070. public global::System.Data.DataRowAction Action {
  6071. get {
  6072. return this.eventAction;
  6073. }
  6074. }
  6075. }
  6076. /// <summary>
  6077. ///Row event argument class
  6078. ///</summary>
  6079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6080. public class ProductRowChangeEvent : global::System.EventArgs {
  6081. private ProductRow eventRow;
  6082. private global::System.Data.DataRowAction eventAction;
  6083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6085. public ProductRowChangeEvent(ProductRow row, global::System.Data.DataRowAction action) {
  6086. this.eventRow = row;
  6087. this.eventAction = action;
  6088. }
  6089. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6090. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6091. public ProductRow Row {
  6092. get {
  6093. return this.eventRow;
  6094. }
  6095. }
  6096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6098. public global::System.Data.DataRowAction Action {
  6099. get {
  6100. return this.eventAction;
  6101. }
  6102. }
  6103. }
  6104. /// <summary>
  6105. ///Row event argument class
  6106. ///</summary>
  6107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6108. public class ProductPhotoRowChangeEvent : global::System.EventArgs {
  6109. private ProductPhotoRow eventRow;
  6110. private global::System.Data.DataRowAction eventAction;
  6111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6113. public ProductPhotoRowChangeEvent(ProductPhotoRow row, global::System.Data.DataRowAction action) {
  6114. this.eventRow = row;
  6115. this.eventAction = action;
  6116. }
  6117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6119. public ProductPhotoRow Row {
  6120. get {
  6121. return this.eventRow;
  6122. }
  6123. }
  6124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6126. public global::System.Data.DataRowAction Action {
  6127. get {
  6128. return this.eventAction;
  6129. }
  6130. }
  6131. }
  6132. /// <summary>
  6133. ///Row event argument class
  6134. ///</summary>
  6135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6136. public class ProductSaleRowChangeEvent : global::System.EventArgs {
  6137. private ProductSaleRow eventRow;
  6138. private global::System.Data.DataRowAction eventAction;
  6139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6141. public ProductSaleRowChangeEvent(ProductSaleRow row, global::System.Data.DataRowAction action) {
  6142. this.eventRow = row;
  6143. this.eventAction = action;
  6144. }
  6145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6147. public ProductSaleRow Row {
  6148. get {
  6149. return this.eventRow;
  6150. }
  6151. }
  6152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6154. public global::System.Data.DataRowAction Action {
  6155. get {
  6156. return this.eventAction;
  6157. }
  6158. }
  6159. }
  6160. /// <summary>
  6161. ///Row event argument class
  6162. ///</summary>
  6163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6164. public class ServiceRowChangeEvent : global::System.EventArgs {
  6165. private ServiceRow eventRow;
  6166. private global::System.Data.DataRowAction eventAction;
  6167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6169. public ServiceRowChangeEvent(ServiceRow row, global::System.Data.DataRowAction action) {
  6170. this.eventRow = row;
  6171. this.eventAction = action;
  6172. }
  6173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6175. public ServiceRow Row {
  6176. get {
  6177. return this.eventRow;
  6178. }
  6179. }
  6180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6182. public global::System.Data.DataRowAction Action {
  6183. get {
  6184. return this.eventAction;
  6185. }
  6186. }
  6187. }
  6188. /// <summary>
  6189. ///Row event argument class
  6190. ///</summary>
  6191. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6192. public class ServicePhotoRowChangeEvent : global::System.EventArgs {
  6193. private ServicePhotoRow eventRow;
  6194. private global::System.Data.DataRowAction eventAction;
  6195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6197. public ServicePhotoRowChangeEvent(ServicePhotoRow row, global::System.Data.DataRowAction action) {
  6198. this.eventRow = row;
  6199. this.eventAction = action;
  6200. }
  6201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6203. public ServicePhotoRow Row {
  6204. get {
  6205. return this.eventRow;
  6206. }
  6207. }
  6208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6210. public global::System.Data.DataRowAction Action {
  6211. get {
  6212. return this.eventAction;
  6213. }
  6214. }
  6215. }
  6216. /// <summary>
  6217. ///Row event argument class
  6218. ///</summary>
  6219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6220. public class TagRowChangeEvent : global::System.EventArgs {
  6221. private TagRow eventRow;
  6222. private global::System.Data.DataRowAction eventAction;
  6223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6225. public TagRowChangeEvent(TagRow row, global::System.Data.DataRowAction action) {
  6226. this.eventRow = row;
  6227. this.eventAction = action;
  6228. }
  6229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6231. public TagRow Row {
  6232. get {
  6233. return this.eventRow;
  6234. }
  6235. }
  6236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6238. public global::System.Data.DataRowAction Action {
  6239. get {
  6240. return this.eventAction;
  6241. }
  6242. }
  6243. }
  6244. /// <summary>
  6245. ///Row event argument class
  6246. ///</summary>
  6247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6248. public class TagOfClientRowChangeEvent : global::System.EventArgs {
  6249. private TagOfClientRow eventRow;
  6250. private global::System.Data.DataRowAction eventAction;
  6251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6253. public TagOfClientRowChangeEvent(TagOfClientRow row, global::System.Data.DataRowAction action) {
  6254. this.eventRow = row;
  6255. this.eventAction = action;
  6256. }
  6257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6259. public TagOfClientRow Row {
  6260. get {
  6261. return this.eventRow;
  6262. }
  6263. }
  6264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6265. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6266. public global::System.Data.DataRowAction Action {
  6267. get {
  6268. return this.eventAction;
  6269. }
  6270. }
  6271. }
  6272. /// <summary>
  6273. ///Row event argument class
  6274. ///</summary>
  6275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6276. public class АвторизацияRowChangeEvent : global::System.EventArgs {
  6277. private АвторизацияRow eventRow;
  6278. private global::System.Data.DataRowAction eventAction;
  6279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6281. public АвторизацияRowChangeEvent(АвторизацияRow row, global::System.Data.DataRowAction action) {
  6282. this.eventRow = row;
  6283. this.eventAction = action;
  6284. }
  6285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6287. public АвторизацияRow Row {
  6288. get {
  6289. return this.eventRow;
  6290. }
  6291. }
  6292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6294. public global::System.Data.DataRowAction Action {
  6295. get {
  6296. return this.eventAction;
  6297. }
  6298. }
  6299. }
  6300. }
  6301. }
  6302. namespace BB_Grishina.BB_GrishinaDataSetTableAdapters {
  6303. /// <summary>
  6304. ///Represents the connection and commands used to retrieve and save data.
  6305. ///</summary>
  6306. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6307. [global::System.ComponentModel.ToolboxItem(true)]
  6308. [global::System.ComponentModel.DataObjectAttribute(true)]
  6309. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6310. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6311. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6312. public partial class AttachedProductTableAdapter : global::System.ComponentModel.Component {
  6313. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6314. private global::System.Data.SqlClient.SqlConnection _connection;
  6315. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6316. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6317. private bool _clearBeforeFill;
  6318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6320. public AttachedProductTableAdapter() {
  6321. this.ClearBeforeFill = true;
  6322. }
  6323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6325. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6326. get {
  6327. if ((this._adapter == null)) {
  6328. this.InitAdapter();
  6329. }
  6330. return this._adapter;
  6331. }
  6332. }
  6333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6335. internal global::System.Data.SqlClient.SqlConnection Connection {
  6336. get {
  6337. if ((this._connection == null)) {
  6338. this.InitConnection();
  6339. }
  6340. return this._connection;
  6341. }
  6342. set {
  6343. this._connection = value;
  6344. if ((this.Adapter.InsertCommand != null)) {
  6345. this.Adapter.InsertCommand.Connection = value;
  6346. }
  6347. if ((this.Adapter.DeleteCommand != null)) {
  6348. this.Adapter.DeleteCommand.Connection = value;
  6349. }
  6350. if ((this.Adapter.UpdateCommand != null)) {
  6351. this.Adapter.UpdateCommand.Connection = value;
  6352. }
  6353. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6354. if ((this.CommandCollection[i] != null)) {
  6355. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6356. }
  6357. }
  6358. }
  6359. }
  6360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6362. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6363. get {
  6364. return this._transaction;
  6365. }
  6366. set {
  6367. this._transaction = value;
  6368. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6369. this.CommandCollection[i].Transaction = this._transaction;
  6370. }
  6371. if (((this.Adapter != null)
  6372. && (this.Adapter.DeleteCommand != null))) {
  6373. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6374. }
  6375. if (((this.Adapter != null)
  6376. && (this.Adapter.InsertCommand != null))) {
  6377. this.Adapter.InsertCommand.Transaction = this._transaction;
  6378. }
  6379. if (((this.Adapter != null)
  6380. && (this.Adapter.UpdateCommand != null))) {
  6381. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6382. }
  6383. }
  6384. }
  6385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6387. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6388. get {
  6389. if ((this._commandCollection == null)) {
  6390. this.InitCommandCollection();
  6391. }
  6392. return this._commandCollection;
  6393. }
  6394. }
  6395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6397. public bool ClearBeforeFill {
  6398. get {
  6399. return this._clearBeforeFill;
  6400. }
  6401. set {
  6402. this._clearBeforeFill = value;
  6403. }
  6404. }
  6405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6407. private void InitAdapter() {
  6408. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6409. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6410. tableMapping.SourceTable = "Table";
  6411. tableMapping.DataSetTable = "AttachedProduct";
  6412. tableMapping.ColumnMappings.Add("MainProductID", "MainProductID");
  6413. tableMapping.ColumnMappings.Add("AttachedProductID", "AttachedProductID");
  6414. this._adapter.TableMappings.Add(tableMapping);
  6415. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6416. this._adapter.DeleteCommand.Connection = this.Connection;
  6417. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[AttachedProduct] WHERE (([MainProductID] = @Original_MainProdu" +
  6418. "ctID) AND ([AttachedProductID] = @Original_AttachedProductID))";
  6419. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6420. 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, "", "", ""));
  6421. 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, "", "", ""));
  6422. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6423. this._adapter.InsertCommand.Connection = this.Connection;
  6424. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[AttachedProduct] ([MainProductID], [AttachedProductID]) VALUES (@MainProductID, @AttachedProductID);
  6425. SELECT MainProductID, AttachedProductID FROM AttachedProduct WHERE (AttachedProductID = @AttachedProductID) AND (MainProductID = @MainProductID)";
  6426. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6427. 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, "", "", ""));
  6428. 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, "", "", ""));
  6429. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6430. this._adapter.UpdateCommand.Connection = this.Connection;
  6431. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AttachedProduct] SET [MainProductID] = @MainProductID, [AttachedProductID] = @AttachedProductID WHERE (([MainProductID] = @Original_MainProductID) AND ([AttachedProductID] = @Original_AttachedProductID));
  6432. SELECT MainProductID, AttachedProductID FROM AttachedProduct WHERE (AttachedProductID = @AttachedProductID) AND (MainProductID = @MainProductID)";
  6433. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6434. 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, "", "", ""));
  6435. 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, "", "", ""));
  6436. 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, "", "", ""));
  6437. 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, "", "", ""));
  6438. }
  6439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6441. private void InitConnection() {
  6442. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6443. this._connection.ConnectionString = global::BB_Grishina.Properties.Settings.Default.BB_GrishinaConnectionString;
  6444. }
  6445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6446. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6447. private void InitCommandCollection() {
  6448. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6449. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6450. this._commandCollection[0].Connection = this.Connection;
  6451. this._commandCollection[0].CommandText = "SELECT MainProductID, AttachedProductID FROM dbo.AttachedProduct";
  6452. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6453. }
  6454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6456. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6457. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6458. public virtual int Fill(BB_GrishinaDataSet.AttachedProductDataTable dataTable) {
  6459. this.Adapter.SelectCommand = this.CommandCollection[0];
  6460. if ((this.ClearBeforeFill == true)) {
  6461. dataTable.Clear();
  6462. }
  6463. int returnValue = this.Adapter.Fill(dataTable);
  6464. return returnValue;
  6465. }
  6466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6468. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6469. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6470. public virtual BB_GrishinaDataSet.AttachedProductDataTable GetData() {
  6471. this.Adapter.SelectCommand = this.CommandCollection[0];
  6472. BB_GrishinaDataSet.AttachedProductDataTable dataTable = new BB_GrishinaDataSet.AttachedProductDataTable();
  6473. this.Adapter.Fill(dataTable);
  6474. return dataTable;
  6475. }
  6476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6477. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6478. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6479. public virtual int Update(BB_GrishinaDataSet.AttachedProductDataTable dataTable) {
  6480. return this.Adapter.Update(dataTable);
  6481. }
  6482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6484. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6485. public virtual int Update(BB_GrishinaDataSet dataSet) {
  6486. return this.Adapter.Update(dataSet, "AttachedProduct");
  6487. }
  6488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6490. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6491. public virtual int Update(global::System.Data.DataRow dataRow) {
  6492. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6493. dataRow});
  6494. }
  6495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6497. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6498. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6499. return this.Adapter.Update(dataRows);
  6500. }
  6501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6503. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6504. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6505. public virtual int Delete(int Original_MainProductID, int Original_AttachedProductID) {
  6506. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_MainProductID));
  6507. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_AttachedProductID));
  6508. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6509. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6510. != global::System.Data.ConnectionState.Open)) {
  6511. this.Adapter.DeleteCommand.Connection.Open();
  6512. }
  6513. try {
  6514. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6515. return returnValue;
  6516. }
  6517. finally {
  6518. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6519. this.Adapter.DeleteCommand.Connection.Close();
  6520. }
  6521. }
  6522. }
  6523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6525. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6526. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6527. public virtual int Insert(int MainProductID, int AttachedProductID) {
  6528. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(MainProductID));
  6529. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(AttachedProductID));
  6530. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6531. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6532. != global::System.Data.ConnectionState.Open)) {
  6533. this.Adapter.InsertCommand.Connection.Open();
  6534. }
  6535. try {
  6536. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6537. return returnValue;
  6538. }
  6539. finally {
  6540. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6541. this.Adapter.InsertCommand.Connection.Close();
  6542. }
  6543. }
  6544. }
  6545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6547. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6548. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6549. public virtual int Update(int MainProductID, int AttachedProductID, int Original_MainProductID, int Original_AttachedProductID) {
  6550. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(MainProductID));
  6551. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(AttachedProductID));
  6552. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_MainProductID));
  6553. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_AttachedProductID));
  6554. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6555. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6556. != global::System.Data.ConnectionState.Open)) {
  6557. this.Adapter.UpdateCommand.Connection.Open();
  6558. }
  6559. try {
  6560. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6561. return returnValue;
  6562. }
  6563. finally {
  6564. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6565. this.Adapter.UpdateCommand.Connection.Close();
  6566. }
  6567. }
  6568. }
  6569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6571. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6572. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6573. public virtual int Update(int Original_MainProductID, int Original_AttachedProductID) {
  6574. return this.Update(Original_MainProductID, Original_AttachedProductID, Original_MainProductID, Original_AttachedProductID);
  6575. }
  6576. }
  6577. /// <summary>
  6578. ///Represents the connection and commands used to retrieve and save data.
  6579. ///</summary>
  6580. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6581. [global::System.ComponentModel.ToolboxItem(true)]
  6582. [global::System.ComponentModel.DataObjectAttribute(true)]
  6583. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6584. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6585. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6586. public partial class ClientTableAdapter : global::System.ComponentModel.Component {
  6587. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6588. private global::System.Data.SqlClient.SqlConnection _connection;
  6589. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6590. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6591. private bool _clearBeforeFill;
  6592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6594. public ClientTableAdapter() {
  6595. this.ClearBeforeFill = true;
  6596. }
  6597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6599. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6600. get {
  6601. if ((this._adapter == null)) {
  6602. this.InitAdapter();
  6603. }
  6604. return this._adapter;
  6605. }
  6606. }
  6607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6609. internal global::System.Data.SqlClient.SqlConnection Connection {
  6610. get {
  6611. if ((this._connection == null)) {
  6612. this.InitConnection();
  6613. }
  6614. return this._connection;
  6615. }
  6616. set {
  6617. this._connection = value;
  6618. if ((this.Adapter.InsertCommand != null)) {
  6619. this.Adapter.InsertCommand.Connection = value;
  6620. }
  6621. if ((this.Adapter.DeleteCommand != null)) {
  6622. this.Adapter.DeleteCommand.Connection = value;
  6623. }
  6624. if ((this.Adapter.UpdateCommand != null)) {
  6625. this.Adapter.UpdateCommand.Connection = value;
  6626. }
  6627. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6628. if ((this.CommandCollection[i] != null)) {
  6629. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6630. }
  6631. }
  6632. }
  6633. }
  6634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6636. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6637. get {
  6638. return this._transaction;
  6639. }
  6640. set {
  6641. this._transaction = value;
  6642. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6643. this.CommandCollection[i].Transaction = this._transaction;
  6644. }
  6645. if (((this.Adapter != null)
  6646. && (this.Adapter.DeleteCommand != null))) {
  6647. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6648. }
  6649. if (((this.Adapter != null)
  6650. && (this.Adapter.InsertCommand != null))) {
  6651. this.Adapter.InsertCommand.Transaction = this._transaction;
  6652. }
  6653. if (((this.Adapter != null)
  6654. && (this.Adapter.UpdateCommand != null))) {
  6655. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6656. }
  6657. }
  6658. }
  6659. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6660. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6661. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6662. get {
  6663. if ((this._commandCollection == null)) {
  6664. this.InitCommandCollection();
  6665. }
  6666. return this._commandCollection;
  6667. }
  6668. }
  6669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6671. public bool ClearBeforeFill {
  6672. get {
  6673. return this._clearBeforeFill;
  6674. }
  6675. set {
  6676. this._clearBeforeFill = value;
  6677. }
  6678. }
  6679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6681. private void InitAdapter() {
  6682. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6683. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6684. tableMapping.SourceTable = "Table";
  6685. tableMapping.DataSetTable = "Client";
  6686. tableMapping.ColumnMappings.Add("ID", "ID");
  6687. tableMapping.ColumnMappings.Add("Имя", "Имя");
  6688. tableMapping.ColumnMappings.Add("Фамилия", "Фамилия");
  6689. tableMapping.ColumnMappings.Add("Отчество", "Отчество");
  6690. tableMapping.ColumnMappings.Add("Пол", "Пол");
  6691. tableMapping.ColumnMappings.Add("Телефон", "Телефон");
  6692. tableMapping.ColumnMappings.Add("ДатаРождения", "ДатаРождения");
  6693. tableMapping.ColumnMappings.Add("Email", "Email");
  6694. tableMapping.ColumnMappings.Add("ДатаРегистрации", "ДатаРегистрации");
  6695. tableMapping.ColumnMappings.Add("PhotoPath", "PhotoPath");
  6696. this._adapter.TableMappings.Add(tableMapping);
  6697. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6698. this._adapter.DeleteCommand.Connection = this.Connection;
  6699. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Client] WHERE (([ID] = @Original_ID) AND ([Имя] = @Original_Имя) AND ((@IsNull_Фамилия = 1 AND [Фамилия] IS NULL) OR ([Фамилия] = @Original_Фамилия)) AND ((@IsNull_Отчество = 1 AND [Отчество] IS NULL) OR ([Отчество] = @Original_Отчество)) AND ((@IsNull_Пол = 1 AND [Пол] IS NULL) OR ([Пол] = @Original_Пол)) AND ([Телефон] = @Original_Телефон) AND ((@IsNull_ДатаРождения = 1 AND [ДатаРождения] IS NULL) OR ([ДатаРождения] = @Original_ДатаРождения)) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ([ДатаРегистрации] = @Original_ДатаРегистрации) AND ((@IsNull_PhotoPath = 1 AND [PhotoPath] IS NULL) OR ([PhotoPath] = @Original_PhotoPath)))";
  6700. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6701. 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, "", "", ""));
  6702. 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, "", "", ""));
  6703. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Фамилия", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6704. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Фамилия", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6705. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Отчество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6706. 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, "", "", ""));
  6707. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Пол", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пол", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6708. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Пол", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пол", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6709. 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, "", "", ""));
  6710. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ДатаРождения", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаРождения", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6711. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ДатаРождения", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаРождения", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6712. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Email", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6713. 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, "", "", ""));
  6714. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ДатаРегистрации", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаРегистрации", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6715. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PhotoPath", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6716. 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, "", "", ""));
  6717. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6718. this._adapter.InsertCommand.Connection = this.Connection;
  6719. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Client] ([Имя], [Фамилия], [Отчество], [Пол], [Телефон], [ДатаРождения], [Email], [ДатаРегистрации], [PhotoPath]) VALUES (@Имя, @Фамилия, @Отчество, @Пол, @Телефон, @ДатаРождения, @Email, @ДатаРегистрации, @PhotoPath);
  6720. SELECT ID, Имя, Фамилия, Отчество, Пол, Телефон, ДатаРождения, Email, ДатаРегистрации, PhotoPath FROM Client WHERE (ID = SCOPE_IDENTITY())";
  6721. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6722. 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, "", "", ""));
  6723. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Фамилия", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6724. 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, "", "", ""));
  6725. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Пол", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пол", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6726. 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, "", "", ""));
  6727. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ДатаРождения", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаРождения", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6728. 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, "", "", ""));
  6729. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ДатаРегистрации", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаРегистрации", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6730. 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, "", "", ""));
  6731. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6732. this._adapter.UpdateCommand.Connection = this.Connection;
  6733. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Client] SET [Имя] = @Имя, [Фамилия] = @Фамилия, [Отчество] = @Отчество, [Пол] = @Пол, [Телефон] = @Телефон, [ДатаРождения] = @ДатаРождения, [Email] = @Email, [ДатаРегистрации] = @ДатаРегистрации, [PhotoPath] = @PhotoPath WHERE (([ID] = @Original_ID) AND ([Имя] = @Original_Имя) AND ((@IsNull_Фамилия = 1 AND [Фамилия] IS NULL) OR ([Фамилия] = @Original_Фамилия)) AND ((@IsNull_Отчество = 1 AND [Отчество] IS NULL) OR ([Отчество] = @Original_Отчество)) AND ((@IsNull_Пол = 1 AND [Пол] IS NULL) OR ([Пол] = @Original_Пол)) AND ([Телефон] = @Original_Телефон) AND ((@IsNull_ДатаРождения = 1 AND [ДатаРождения] IS NULL) OR ([ДатаРождения] = @Original_ДатаРождения)) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ([ДатаРегистрации] = @Original_ДатаРегистрации) AND ((@IsNull_PhotoPath = 1 AND [PhotoPath] IS NULL) OR ([PhotoPath] = @Original_PhotoPath)));
  6734. SELECT ID, Имя, Фамилия, Отчество, Пол, Телефон, ДатаРождения, Email, ДатаРегистрации, PhotoPath FROM Client WHERE (ID = @ID)";
  6735. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6736. 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, "", "", ""));
  6737. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Фамилия", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6738. 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, "", "", ""));
  6739. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Пол", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пол", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6740. 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, "", "", ""));
  6741. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ДатаРождения", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаРождения", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6742. 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, "", "", ""));
  6743. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ДатаРегистрации", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаРегистрации", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6744. 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, "", "", ""));
  6745. 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, "", "", ""));
  6746. 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, "", "", ""));
  6747. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Фамилия", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6748. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Фамилия", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6749. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Отчество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6750. 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, "", "", ""));
  6751. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Пол", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пол", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6752. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Пол", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пол", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6753. 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, "", "", ""));
  6754. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ДатаРождения", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаРождения", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6755. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ДатаРождения", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаРождения", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6756. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Email", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6757. 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, "", "", ""));
  6758. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ДатаРегистрации", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаРегистрации", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6759. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PhotoPath", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6760. 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, "", "", ""));
  6761. 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, "", "", ""));
  6762. }
  6763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6765. private void InitConnection() {
  6766. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6767. this._connection.ConnectionString = global::BB_Grishina.Properties.Settings.Default.BB_GrishinaConnectionString;
  6768. }
  6769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6771. private void InitCommandCollection() {
  6772. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6773. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6774. this._commandCollection[0].Connection = this.Connection;
  6775. this._commandCollection[0].CommandText = "SELECT ID, Имя, Фамилия, Отчество, Пол, Телефон, ДатаРождения, Email, ДатаРегистр" +
  6776. "ации, PhotoPath FROM dbo.Client";
  6777. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6778. }
  6779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6781. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6782. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6783. public virtual int Fill(BB_GrishinaDataSet.ClientDataTable dataTable) {
  6784. this.Adapter.SelectCommand = this.CommandCollection[0];
  6785. if ((this.ClearBeforeFill == true)) {
  6786. dataTable.Clear();
  6787. }
  6788. int returnValue = this.Adapter.Fill(dataTable);
  6789. return returnValue;
  6790. }
  6791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6793. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6794. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6795. public virtual BB_GrishinaDataSet.ClientDataTable GetData() {
  6796. this.Adapter.SelectCommand = this.CommandCollection[0];
  6797. BB_GrishinaDataSet.ClientDataTable dataTable = new BB_GrishinaDataSet.ClientDataTable();
  6798. this.Adapter.Fill(dataTable);
  6799. return dataTable;
  6800. }
  6801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6803. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6804. public virtual int Update(BB_GrishinaDataSet.ClientDataTable dataTable) {
  6805. return this.Adapter.Update(dataTable);
  6806. }
  6807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6809. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6810. public virtual int Update(BB_GrishinaDataSet dataSet) {
  6811. return this.Adapter.Update(dataSet, "Client");
  6812. }
  6813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6814. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6815. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6816. public virtual int Update(global::System.Data.DataRow dataRow) {
  6817. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6818. dataRow});
  6819. }
  6820. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6821. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6822. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6823. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6824. return this.Adapter.Update(dataRows);
  6825. }
  6826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6828. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6829. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6830. public virtual int Delete(int Original_ID, string Original_Имя, string Original_Фамилия, string Original_Отчество, string Original_Пол, string Original_Телефон, global::System.Nullable<global::System.DateTime> Original_ДатаРождения, string Original_Email, System.DateTime Original_ДатаРегистрации, string Original_PhotoPath) {
  6831. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  6832. if ((Original_Имя == null)) {
  6833. throw new global::System.ArgumentNullException("Original_Имя");
  6834. }
  6835. else {
  6836. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Имя));
  6837. }
  6838. if ((Original_Фамилия == null)) {
  6839. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  6840. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  6841. }
  6842. else {
  6843. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  6844. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_Фамилия));
  6845. }
  6846. if ((Original_Отчество == null)) {
  6847. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  6848. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  6849. }
  6850. else {
  6851. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  6852. this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_Отчество));
  6853. }
  6854. if ((Original_Пол == null)) {
  6855. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
  6856. this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
  6857. }
  6858. else {
  6859. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
  6860. this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_Пол));
  6861. }
  6862. if ((Original_Телефон == null)) {
  6863. throw new global::System.ArgumentNullException("Original_Телефон");
  6864. }
  6865. else {
  6866. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Телефон));
  6867. }
  6868. if ((Original_ДатаРождения.HasValue == true)) {
  6869. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  6870. this.Adapter.DeleteCommand.Parameters[10].Value = ((System.DateTime)(Original_ДатаРождения.Value));
  6871. }
  6872. else {
  6873. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  6874. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  6875. }
  6876. if ((Original_Email == null)) {
  6877. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  6878. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  6879. }
  6880. else {
  6881. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  6882. this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_Email));
  6883. }
  6884. this.Adapter.DeleteCommand.Parameters[13].Value = ((System.DateTime)(Original_ДатаРегистрации));
  6885. if ((Original_PhotoPath == null)) {
  6886. this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(1));
  6887. this.Adapter.DeleteCommand.Parameters[15].Value = global::System.DBNull.Value;
  6888. }
  6889. else {
  6890. this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(0));
  6891. this.Adapter.DeleteCommand.Parameters[15].Value = ((string)(Original_PhotoPath));
  6892. }
  6893. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6894. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6895. != global::System.Data.ConnectionState.Open)) {
  6896. this.Adapter.DeleteCommand.Connection.Open();
  6897. }
  6898. try {
  6899. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6900. return returnValue;
  6901. }
  6902. finally {
  6903. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6904. this.Adapter.DeleteCommand.Connection.Close();
  6905. }
  6906. }
  6907. }
  6908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6910. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6911. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6912. public virtual int Insert(string Имя, string Фамилия, string Отчество, string Пол, string Телефон, global::System.Nullable<global::System.DateTime> ДатаРождения, string Email, System.DateTime ДатаРегистрации, string PhotoPath) {
  6913. if ((Имя == null)) {
  6914. throw new global::System.ArgumentNullException("Имя");
  6915. }
  6916. else {
  6917. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Имя));
  6918. }
  6919. if ((Фамилия == null)) {
  6920. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  6921. }
  6922. else {
  6923. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Фамилия));
  6924. }
  6925. if ((Отчество == null)) {
  6926. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6927. }
  6928. else {
  6929. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Отчество));
  6930. }
  6931. if ((Пол == null)) {
  6932. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  6933. }
  6934. else {
  6935. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Пол));
  6936. }
  6937. if ((Телефон == null)) {
  6938. throw new global::System.ArgumentNullException("Телефон");
  6939. }
  6940. else {
  6941. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Телефон));
  6942. }
  6943. if ((ДатаРождения.HasValue == true)) {
  6944. this.Adapter.InsertCommand.Parameters[5].Value = ((System.DateTime)(ДатаРождения.Value));
  6945. }
  6946. else {
  6947. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  6948. }
  6949. if ((Email == null)) {
  6950. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  6951. }
  6952. else {
  6953. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Email));
  6954. }
  6955. this.Adapter.InsertCommand.Parameters[7].Value = ((System.DateTime)(ДатаРегистрации));
  6956. if ((PhotoPath == null)) {
  6957. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  6958. }
  6959. else {
  6960. this.Adapter.InsertCommand.Parameters[8].Value = ((string)(PhotoPath));
  6961. }
  6962. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6963. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6964. != global::System.Data.ConnectionState.Open)) {
  6965. this.Adapter.InsertCommand.Connection.Open();
  6966. }
  6967. try {
  6968. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6969. return returnValue;
  6970. }
  6971. finally {
  6972. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6973. this.Adapter.InsertCommand.Connection.Close();
  6974. }
  6975. }
  6976. }
  6977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6978. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6979. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6980. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6981. public virtual int Update(
  6982. string Имя,
  6983. string Фамилия,
  6984. string Отчество,
  6985. string Пол,
  6986. string Телефон,
  6987. global::System.Nullable<global::System.DateTime> ДатаРождения,
  6988. string Email,
  6989. System.DateTime ДатаРегистрации,
  6990. string PhotoPath,
  6991. int Original_ID,
  6992. string Original_Имя,
  6993. string Original_Фамилия,
  6994. string Original_Отчество,
  6995. string Original_Пол,
  6996. string Original_Телефон,
  6997. global::System.Nullable<global::System.DateTime> Original_ДатаРождения,
  6998. string Original_Email,
  6999. System.DateTime Original_ДатаРегистрации,
  7000. string Original_PhotoPath,
  7001. int ID) {
  7002. if ((Имя == null)) {
  7003. throw new global::System.ArgumentNullException("Имя");
  7004. }
  7005. else {
  7006. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Имя));
  7007. }
  7008. if ((Фамилия == null)) {
  7009. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7010. }
  7011. else {
  7012. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Фамилия));
  7013. }
  7014. if ((Отчество == null)) {
  7015. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  7016. }
  7017. else {
  7018. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Отчество));
  7019. }
  7020. if ((Пол == null)) {
  7021. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  7022. }
  7023. else {
  7024. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Пол));
  7025. }
  7026. if ((Телефон == null)) {
  7027. throw new global::System.ArgumentNullException("Телефон");
  7028. }
  7029. else {
  7030. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Телефон));
  7031. }
  7032. if ((ДатаРождения.HasValue == true)) {
  7033. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(ДатаРождения.Value));
  7034. }
  7035. else {
  7036. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  7037. }
  7038. if ((Email == null)) {
  7039. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  7040. }
  7041. else {
  7042. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Email));
  7043. }
  7044. this.Adapter.UpdateCommand.Parameters[7].Value = ((System.DateTime)(ДатаРегистрации));
  7045. if ((PhotoPath == null)) {
  7046. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  7047. }
  7048. else {
  7049. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(PhotoPath));
  7050. }
  7051. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_ID));
  7052. if ((Original_Имя == null)) {
  7053. throw new global::System.ArgumentNullException("Original_Имя");
  7054. }
  7055. else {
  7056. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Имя));
  7057. }
  7058. if ((Original_Фамилия == null)) {
  7059. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  7060. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  7061. }
  7062. else {
  7063. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  7064. this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_Фамилия));
  7065. }
  7066. if ((Original_Отчество == null)) {
  7067. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  7068. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  7069. }
  7070. else {
  7071. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  7072. this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_Отчество));
  7073. }
  7074. if ((Original_Пол == null)) {
  7075. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  7076. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  7077. }
  7078. else {
  7079. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  7080. this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_Пол));
  7081. }
  7082. if ((Original_Телефон == null)) {
  7083. throw new global::System.ArgumentNullException("Original_Телефон");
  7084. }
  7085. else {
  7086. this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_Телефон));
  7087. }
  7088. if ((Original_ДатаРождения.HasValue == true)) {
  7089. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
  7090. this.Adapter.UpdateCommand.Parameters[19].Value = ((System.DateTime)(Original_ДатаРождения.Value));
  7091. }
  7092. else {
  7093. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
  7094. this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
  7095. }
  7096. if ((Original_Email == null)) {
  7097. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
  7098. this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
  7099. }
  7100. else {
  7101. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
  7102. this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_Email));
  7103. }
  7104. this.Adapter.UpdateCommand.Parameters[22].Value = ((System.DateTime)(Original_ДатаРегистрации));
  7105. if ((Original_PhotoPath == null)) {
  7106. this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(1));
  7107. this.Adapter.UpdateCommand.Parameters[24].Value = global::System.DBNull.Value;
  7108. }
  7109. else {
  7110. this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(0));
  7111. this.Adapter.UpdateCommand.Parameters[24].Value = ((string)(Original_PhotoPath));
  7112. }
  7113. this.Adapter.UpdateCommand.Parameters[25].Value = ((int)(ID));
  7114. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7115. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7116. != global::System.Data.ConnectionState.Open)) {
  7117. this.Adapter.UpdateCommand.Connection.Open();
  7118. }
  7119. try {
  7120. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7121. return returnValue;
  7122. }
  7123. finally {
  7124. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7125. this.Adapter.UpdateCommand.Connection.Close();
  7126. }
  7127. }
  7128. }
  7129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7131. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7132. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7133. public virtual int Update(
  7134. string Имя,
  7135. string Фамилия,
  7136. string Отчество,
  7137. string Пол,
  7138. string Телефон,
  7139. global::System.Nullable<global::System.DateTime> ДатаРождения,
  7140. string Email,
  7141. System.DateTime ДатаРегистрации,
  7142. string PhotoPath,
  7143. int Original_ID,
  7144. string Original_Имя,
  7145. string Original_Фамилия,
  7146. string Original_Отчество,
  7147. string Original_Пол,
  7148. string Original_Телефон,
  7149. global::System.Nullable<global::System.DateTime> Original_ДатаРождения,
  7150. string Original_Email,
  7151. System.DateTime Original_ДатаРегистрации,
  7152. string Original_PhotoPath) {
  7153. return this.Update(Имя, Фамилия, Отчество, Пол, Телефон, ДатаРождения, Email, ДатаРегистрации, PhotoPath, Original_ID, Original_Имя, Original_Фамилия, Original_Отчество, Original_Пол, Original_Телефон, Original_ДатаРождения, Original_Email, Original_ДатаРегистрации, Original_PhotoPath, Original_ID);
  7154. }
  7155. }
  7156. /// <summary>
  7157. ///Represents the connection and commands used to retrieve and save data.
  7158. ///</summary>
  7159. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7160. [global::System.ComponentModel.ToolboxItem(true)]
  7161. [global::System.ComponentModel.DataObjectAttribute(true)]
  7162. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7163. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7164. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7165. public partial class ClientServiceTableAdapter : global::System.ComponentModel.Component {
  7166. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7167. private global::System.Data.SqlClient.SqlConnection _connection;
  7168. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7169. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7170. private bool _clearBeforeFill;
  7171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7173. public ClientServiceTableAdapter() {
  7174. this.ClearBeforeFill = true;
  7175. }
  7176. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7177. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7178. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7179. get {
  7180. if ((this._adapter == null)) {
  7181. this.InitAdapter();
  7182. }
  7183. return this._adapter;
  7184. }
  7185. }
  7186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7188. internal global::System.Data.SqlClient.SqlConnection Connection {
  7189. get {
  7190. if ((this._connection == null)) {
  7191. this.InitConnection();
  7192. }
  7193. return this._connection;
  7194. }
  7195. set {
  7196. this._connection = value;
  7197. if ((this.Adapter.InsertCommand != null)) {
  7198. this.Adapter.InsertCommand.Connection = value;
  7199. }
  7200. if ((this.Adapter.DeleteCommand != null)) {
  7201. this.Adapter.DeleteCommand.Connection = value;
  7202. }
  7203. if ((this.Adapter.UpdateCommand != null)) {
  7204. this.Adapter.UpdateCommand.Connection = value;
  7205. }
  7206. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7207. if ((this.CommandCollection[i] != null)) {
  7208. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7209. }
  7210. }
  7211. }
  7212. }
  7213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7215. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7216. get {
  7217. return this._transaction;
  7218. }
  7219. set {
  7220. this._transaction = value;
  7221. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7222. this.CommandCollection[i].Transaction = this._transaction;
  7223. }
  7224. if (((this.Adapter != null)
  7225. && (this.Adapter.DeleteCommand != null))) {
  7226. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7227. }
  7228. if (((this.Adapter != null)
  7229. && (this.Adapter.InsertCommand != null))) {
  7230. this.Adapter.InsertCommand.Transaction = this._transaction;
  7231. }
  7232. if (((this.Adapter != null)
  7233. && (this.Adapter.UpdateCommand != null))) {
  7234. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7235. }
  7236. }
  7237. }
  7238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7240. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7241. get {
  7242. if ((this._commandCollection == null)) {
  7243. this.InitCommandCollection();
  7244. }
  7245. return this._commandCollection;
  7246. }
  7247. }
  7248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7250. public bool ClearBeforeFill {
  7251. get {
  7252. return this._clearBeforeFill;
  7253. }
  7254. set {
  7255. this._clearBeforeFill = value;
  7256. }
  7257. }
  7258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7260. private void InitAdapter() {
  7261. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7262. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7263. tableMapping.SourceTable = "Table";
  7264. tableMapping.DataSetTable = "ClientService";
  7265. tableMapping.ColumnMappings.Add("ID", "ID");
  7266. tableMapping.ColumnMappings.Add("ClientID", "ClientID");
  7267. tableMapping.ColumnMappings.Add("ServiceID", "ServiceID");
  7268. tableMapping.ColumnMappings.Add("StartTime", "StartTime");
  7269. tableMapping.ColumnMappings.Add("Comment", "Comment");
  7270. this._adapter.TableMappings.Add(tableMapping);
  7271. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7272. this._adapter.DeleteCommand.Connection = this.Connection;
  7273. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ClientService] WHERE (([ID] = @Original_ID) AND ([ClientID] = " +
  7274. "@Original_ClientID) AND ([ServiceID] = @Original_ServiceID) AND ([StartTime] = @" +
  7275. "Original_StartTime))";
  7276. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7277. 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, "", "", ""));
  7278. 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, "", "", ""));
  7279. 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, "", "", ""));
  7280. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_StartTime", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartTime", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7281. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7282. this._adapter.InsertCommand.Connection = this.Connection;
  7283. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ClientService] ([ClientID], [ServiceID], [StartTime], [Comment" +
  7284. "]) VALUES (@ClientID, @ServiceID, @StartTime, @Comment);\r\nSELECT ID, ClientID, S" +
  7285. "erviceID, StartTime, Comment FROM ClientService WHERE (ID = SCOPE_IDENTITY())";
  7286. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7287. 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, "", "", ""));
  7288. 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, "", "", ""));
  7289. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StartTime", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartTime", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7290. 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, "", "", ""));
  7291. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7292. this._adapter.UpdateCommand.Connection = this.Connection;
  7293. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ClientService] SET [ClientID] = @ClientID, [ServiceID] = @ServiceID, [StartTime] = @StartTime, [Comment] = @Comment WHERE (([ID] = @Original_ID) AND ([ClientID] = @Original_ClientID) AND ([ServiceID] = @Original_ServiceID) AND ([StartTime] = @Original_StartTime));
  7294. SELECT ID, ClientID, ServiceID, StartTime, Comment FROM ClientService WHERE (ID = @ID)";
  7295. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7296. 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, "", "", ""));
  7297. 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, "", "", ""));
  7298. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StartTime", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartTime", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7299. 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, "", "", ""));
  7300. 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, "", "", ""));
  7301. 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, "", "", ""));
  7302. 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, "", "", ""));
  7303. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_StartTime", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartTime", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7304. 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, "", "", ""));
  7305. }
  7306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7308. private void InitConnection() {
  7309. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7310. this._connection.ConnectionString = global::BB_Grishina.Properties.Settings.Default.BB_GrishinaConnectionString;
  7311. }
  7312. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7313. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7314. private void InitCommandCollection() {
  7315. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7316. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7317. this._commandCollection[0].Connection = this.Connection;
  7318. this._commandCollection[0].CommandText = "SELECT ID, ClientID, ServiceID, StartTime, Comment FROM dbo.ClientService";
  7319. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7320. }
  7321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7323. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7324. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7325. public virtual int Fill(BB_GrishinaDataSet.ClientServiceDataTable dataTable) {
  7326. this.Adapter.SelectCommand = this.CommandCollection[0];
  7327. if ((this.ClearBeforeFill == true)) {
  7328. dataTable.Clear();
  7329. }
  7330. int returnValue = this.Adapter.Fill(dataTable);
  7331. return returnValue;
  7332. }
  7333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7335. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7336. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7337. public virtual BB_GrishinaDataSet.ClientServiceDataTable GetData() {
  7338. this.Adapter.SelectCommand = this.CommandCollection[0];
  7339. BB_GrishinaDataSet.ClientServiceDataTable dataTable = new BB_GrishinaDataSet.ClientServiceDataTable();
  7340. this.Adapter.Fill(dataTable);
  7341. return dataTable;
  7342. }
  7343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7344. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7345. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7346. public virtual int Update(BB_GrishinaDataSet.ClientServiceDataTable dataTable) {
  7347. return this.Adapter.Update(dataTable);
  7348. }
  7349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7351. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7352. public virtual int Update(BB_GrishinaDataSet dataSet) {
  7353. return this.Adapter.Update(dataSet, "ClientService");
  7354. }
  7355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7357. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7358. public virtual int Update(global::System.Data.DataRow dataRow) {
  7359. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7360. dataRow});
  7361. }
  7362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7364. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7365. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7366. return this.Adapter.Update(dataRows);
  7367. }
  7368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7370. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7371. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7372. public virtual int Delete(int Original_ID, int Original_ClientID, int Original_ServiceID, System.DateTime Original_StartTime) {
  7373. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  7374. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ClientID));
  7375. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_ServiceID));
  7376. this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_StartTime));
  7377. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7378. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7379. != global::System.Data.ConnectionState.Open)) {
  7380. this.Adapter.DeleteCommand.Connection.Open();
  7381. }
  7382. try {
  7383. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7384. return returnValue;
  7385. }
  7386. finally {
  7387. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7388. this.Adapter.DeleteCommand.Connection.Close();
  7389. }
  7390. }
  7391. }
  7392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7394. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7395. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7396. public virtual int Insert(int ClientID, int ServiceID, System.DateTime StartTime, string Comment) {
  7397. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ClientID));
  7398. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ServiceID));
  7399. this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(StartTime));
  7400. if ((Comment == null)) {
  7401. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  7402. }
  7403. else {
  7404. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Comment));
  7405. }
  7406. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7407. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7408. != global::System.Data.ConnectionState.Open)) {
  7409. this.Adapter.InsertCommand.Connection.Open();
  7410. }
  7411. try {
  7412. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7413. return returnValue;
  7414. }
  7415. finally {
  7416. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7417. this.Adapter.InsertCommand.Connection.Close();
  7418. }
  7419. }
  7420. }
  7421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7423. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7424. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7425. public virtual int Update(int ClientID, int ServiceID, System.DateTime StartTime, string Comment, int Original_ID, int Original_ClientID, int Original_ServiceID, System.DateTime Original_StartTime, int ID) {
  7426. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ClientID));
  7427. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(ServiceID));
  7428. this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(StartTime));
  7429. if ((Comment == null)) {
  7430. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  7431. }
  7432. else {
  7433. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Comment));
  7434. }
  7435. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_ID));
  7436. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_ClientID));
  7437. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ServiceID));
  7438. this.Adapter.UpdateCommand.Parameters[7].Value = ((System.DateTime)(Original_StartTime));
  7439. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(ID));
  7440. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7441. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7442. != global::System.Data.ConnectionState.Open)) {
  7443. this.Adapter.UpdateCommand.Connection.Open();
  7444. }
  7445. try {
  7446. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7447. return returnValue;
  7448. }
  7449. finally {
  7450. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7451. this.Adapter.UpdateCommand.Connection.Close();
  7452. }
  7453. }
  7454. }
  7455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7456. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7457. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7458. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7459. public virtual int Update(int ClientID, int ServiceID, System.DateTime StartTime, string Comment, int Original_ID, int Original_ClientID, int Original_ServiceID, System.DateTime Original_StartTime) {
  7460. return this.Update(ClientID, ServiceID, StartTime, Comment, Original_ID, Original_ClientID, Original_ServiceID, Original_StartTime, Original_ID);
  7461. }
  7462. }
  7463. /// <summary>
  7464. ///Represents the connection and commands used to retrieve and save data.
  7465. ///</summary>
  7466. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7467. [global::System.ComponentModel.ToolboxItem(true)]
  7468. [global::System.ComponentModel.DataObjectAttribute(true)]
  7469. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7470. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7471. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7472. public partial class DocumentByServiceTableAdapter : global::System.ComponentModel.Component {
  7473. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7474. private global::System.Data.SqlClient.SqlConnection _connection;
  7475. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7476. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7477. private bool _clearBeforeFill;
  7478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7479. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7480. public DocumentByServiceTableAdapter() {
  7481. this.ClearBeforeFill = true;
  7482. }
  7483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7485. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7486. get {
  7487. if ((this._adapter == null)) {
  7488. this.InitAdapter();
  7489. }
  7490. return this._adapter;
  7491. }
  7492. }
  7493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7495. internal global::System.Data.SqlClient.SqlConnection Connection {
  7496. get {
  7497. if ((this._connection == null)) {
  7498. this.InitConnection();
  7499. }
  7500. return this._connection;
  7501. }
  7502. set {
  7503. this._connection = value;
  7504. if ((this.Adapter.InsertCommand != null)) {
  7505. this.Adapter.InsertCommand.Connection = value;
  7506. }
  7507. if ((this.Adapter.DeleteCommand != null)) {
  7508. this.Adapter.DeleteCommand.Connection = value;
  7509. }
  7510. if ((this.Adapter.UpdateCommand != null)) {
  7511. this.Adapter.UpdateCommand.Connection = value;
  7512. }
  7513. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7514. if ((this.CommandCollection[i] != null)) {
  7515. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7516. }
  7517. }
  7518. }
  7519. }
  7520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7522. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7523. get {
  7524. return this._transaction;
  7525. }
  7526. set {
  7527. this._transaction = value;
  7528. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7529. this.CommandCollection[i].Transaction = this._transaction;
  7530. }
  7531. if (((this.Adapter != null)
  7532. && (this.Adapter.DeleteCommand != null))) {
  7533. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7534. }
  7535. if (((this.Adapter != null)
  7536. && (this.Adapter.InsertCommand != null))) {
  7537. this.Adapter.InsertCommand.Transaction = this._transaction;
  7538. }
  7539. if (((this.Adapter != null)
  7540. && (this.Adapter.UpdateCommand != null))) {
  7541. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7542. }
  7543. }
  7544. }
  7545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7547. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7548. get {
  7549. if ((this._commandCollection == null)) {
  7550. this.InitCommandCollection();
  7551. }
  7552. return this._commandCollection;
  7553. }
  7554. }
  7555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7557. public bool ClearBeforeFill {
  7558. get {
  7559. return this._clearBeforeFill;
  7560. }
  7561. set {
  7562. this._clearBeforeFill = value;
  7563. }
  7564. }
  7565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7567. private void InitAdapter() {
  7568. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7569. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7570. tableMapping.SourceTable = "Table";
  7571. tableMapping.DataSetTable = "DocumentByService";
  7572. tableMapping.ColumnMappings.Add("ID", "ID");
  7573. tableMapping.ColumnMappings.Add("ClientServiceID", "ClientServiceID");
  7574. tableMapping.ColumnMappings.Add("DocumentPath", "DocumentPath");
  7575. this._adapter.TableMappings.Add(tableMapping);
  7576. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7577. this._adapter.DeleteCommand.Connection = this.Connection;
  7578. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[DocumentByService] WHERE (([ID] = @Original_ID) AND ([ClientSe" +
  7579. "rviceID] = @Original_ClientServiceID) AND ([DocumentPath] = @Original_DocumentPa" +
  7580. "th))";
  7581. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7582. 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, "", "", ""));
  7583. 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, "", "", ""));
  7584. 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, "", "", ""));
  7585. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7586. this._adapter.InsertCommand.Connection = this.Connection;
  7587. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[DocumentByService] ([ClientServiceID], [DocumentPath]) VALUES " +
  7588. "(@ClientServiceID, @DocumentPath);\r\nSELECT ID, ClientServiceID, DocumentPath FRO" +
  7589. "M DocumentByService WHERE (ID = SCOPE_IDENTITY())";
  7590. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7591. 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, "", "", ""));
  7592. 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, "", "", ""));
  7593. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7594. this._adapter.UpdateCommand.Connection = this.Connection;
  7595. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[DocumentByService] SET [ClientServiceID] = @ClientServiceID, [DocumentPath] = @DocumentPath WHERE (([ID] = @Original_ID) AND ([ClientServiceID] = @Original_ClientServiceID) AND ([DocumentPath] = @Original_DocumentPath));
  7596. SELECT ID, ClientServiceID, DocumentPath FROM DocumentByService WHERE (ID = @ID)";
  7597. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7598. 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, "", "", ""));
  7599. 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, "", "", ""));
  7600. 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, "", "", ""));
  7601. 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, "", "", ""));
  7602. 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, "", "", ""));
  7603. 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, "", "", ""));
  7604. }
  7605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7607. private void InitConnection() {
  7608. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7609. this._connection.ConnectionString = global::BB_Grishina.Properties.Settings.Default.BB_GrishinaConnectionString;
  7610. }
  7611. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7612. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7613. private void InitCommandCollection() {
  7614. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7615. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7616. this._commandCollection[0].Connection = this.Connection;
  7617. this._commandCollection[0].CommandText = "SELECT ID, ClientServiceID, DocumentPath FROM dbo.DocumentByService";
  7618. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7619. }
  7620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7622. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7623. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7624. public virtual int Fill(BB_GrishinaDataSet.DocumentByServiceDataTable dataTable) {
  7625. this.Adapter.SelectCommand = this.CommandCollection[0];
  7626. if ((this.ClearBeforeFill == true)) {
  7627. dataTable.Clear();
  7628. }
  7629. int returnValue = this.Adapter.Fill(dataTable);
  7630. return returnValue;
  7631. }
  7632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7634. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7635. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7636. public virtual BB_GrishinaDataSet.DocumentByServiceDataTable GetData() {
  7637. this.Adapter.SelectCommand = this.CommandCollection[0];
  7638. BB_GrishinaDataSet.DocumentByServiceDataTable dataTable = new BB_GrishinaDataSet.DocumentByServiceDataTable();
  7639. this.Adapter.Fill(dataTable);
  7640. return dataTable;
  7641. }
  7642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7644. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7645. public virtual int Update(BB_GrishinaDataSet.DocumentByServiceDataTable dataTable) {
  7646. return this.Adapter.Update(dataTable);
  7647. }
  7648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7649. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7650. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7651. public virtual int Update(BB_GrishinaDataSet dataSet) {
  7652. return this.Adapter.Update(dataSet, "DocumentByService");
  7653. }
  7654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7656. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7657. public virtual int Update(global::System.Data.DataRow dataRow) {
  7658. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7659. dataRow});
  7660. }
  7661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7663. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7664. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7665. return this.Adapter.Update(dataRows);
  7666. }
  7667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7668. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7669. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7670. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7671. public virtual int Delete(int Original_ID, int Original_ClientServiceID, string Original_DocumentPath) {
  7672. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  7673. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ClientServiceID));
  7674. if ((Original_DocumentPath == null)) {
  7675. throw new global::System.ArgumentNullException("Original_DocumentPath");
  7676. }
  7677. else {
  7678. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_DocumentPath));
  7679. }
  7680. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7681. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7682. != global::System.Data.ConnectionState.Open)) {
  7683. this.Adapter.DeleteCommand.Connection.Open();
  7684. }
  7685. try {
  7686. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7687. return returnValue;
  7688. }
  7689. finally {
  7690. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7691. this.Adapter.DeleteCommand.Connection.Close();
  7692. }
  7693. }
  7694. }
  7695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7697. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7698. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7699. public virtual int Insert(int ClientServiceID, string DocumentPath) {
  7700. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ClientServiceID));
  7701. if ((DocumentPath == null)) {
  7702. throw new global::System.ArgumentNullException("DocumentPath");
  7703. }
  7704. else {
  7705. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DocumentPath));
  7706. }
  7707. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7708. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7709. != global::System.Data.ConnectionState.Open)) {
  7710. this.Adapter.InsertCommand.Connection.Open();
  7711. }
  7712. try {
  7713. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7714. return returnValue;
  7715. }
  7716. finally {
  7717. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7718. this.Adapter.InsertCommand.Connection.Close();
  7719. }
  7720. }
  7721. }
  7722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7724. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7725. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7726. public virtual int Update(int ClientServiceID, string DocumentPath, int Original_ID, int Original_ClientServiceID, string Original_DocumentPath, int ID) {
  7727. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ClientServiceID));
  7728. if ((DocumentPath == null)) {
  7729. throw new global::System.ArgumentNullException("DocumentPath");
  7730. }
  7731. else {
  7732. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DocumentPath));
  7733. }
  7734. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  7735. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ClientServiceID));
  7736. if ((Original_DocumentPath == null)) {
  7737. throw new global::System.ArgumentNullException("Original_DocumentPath");
  7738. }
  7739. else {
  7740. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_DocumentPath));
  7741. }
  7742. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  7743. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7744. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7745. != global::System.Data.ConnectionState.Open)) {
  7746. this.Adapter.UpdateCommand.Connection.Open();
  7747. }
  7748. try {
  7749. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7750. return returnValue;
  7751. }
  7752. finally {
  7753. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7754. this.Adapter.UpdateCommand.Connection.Close();
  7755. }
  7756. }
  7757. }
  7758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7760. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7761. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7762. public virtual int Update(int ClientServiceID, string DocumentPath, int Original_ID, int Original_ClientServiceID, string Original_DocumentPath) {
  7763. return this.Update(ClientServiceID, DocumentPath, Original_ID, Original_ClientServiceID, Original_DocumentPath, Original_ID);
  7764. }
  7765. }
  7766. /// <summary>
  7767. ///Represents the connection and commands used to retrieve and save data.
  7768. ///</summary>
  7769. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7770. [global::System.ComponentModel.ToolboxItem(true)]
  7771. [global::System.ComponentModel.DataObjectAttribute(true)]
  7772. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7773. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7774. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7775. public partial class GenderTableAdapter : global::System.ComponentModel.Component {
  7776. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7777. private global::System.Data.SqlClient.SqlConnection _connection;
  7778. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7779. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7780. private bool _clearBeforeFill;
  7781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7783. public GenderTableAdapter() {
  7784. this.ClearBeforeFill = true;
  7785. }
  7786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7788. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7789. get {
  7790. if ((this._adapter == null)) {
  7791. this.InitAdapter();
  7792. }
  7793. return this._adapter;
  7794. }
  7795. }
  7796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7798. internal global::System.Data.SqlClient.SqlConnection Connection {
  7799. get {
  7800. if ((this._connection == null)) {
  7801. this.InitConnection();
  7802. }
  7803. return this._connection;
  7804. }
  7805. set {
  7806. this._connection = value;
  7807. if ((this.Adapter.InsertCommand != null)) {
  7808. this.Adapter.InsertCommand.Connection = value;
  7809. }
  7810. if ((this.Adapter.DeleteCommand != null)) {
  7811. this.Adapter.DeleteCommand.Connection = value;
  7812. }
  7813. if ((this.Adapter.UpdateCommand != null)) {
  7814. this.Adapter.UpdateCommand.Connection = value;
  7815. }
  7816. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7817. if ((this.CommandCollection[i] != null)) {
  7818. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7819. }
  7820. }
  7821. }
  7822. }
  7823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7825. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7826. get {
  7827. return this._transaction;
  7828. }
  7829. set {
  7830. this._transaction = value;
  7831. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7832. this.CommandCollection[i].Transaction = this._transaction;
  7833. }
  7834. if (((this.Adapter != null)
  7835. && (this.Adapter.DeleteCommand != null))) {
  7836. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7837. }
  7838. if (((this.Adapter != null)
  7839. && (this.Adapter.InsertCommand != null))) {
  7840. this.Adapter.InsertCommand.Transaction = this._transaction;
  7841. }
  7842. if (((this.Adapter != null)
  7843. && (this.Adapter.UpdateCommand != null))) {
  7844. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7845. }
  7846. }
  7847. }
  7848. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7849. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7850. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7851. get {
  7852. if ((this._commandCollection == null)) {
  7853. this.InitCommandCollection();
  7854. }
  7855. return this._commandCollection;
  7856. }
  7857. }
  7858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7860. public bool ClearBeforeFill {
  7861. get {
  7862. return this._clearBeforeFill;
  7863. }
  7864. set {
  7865. this._clearBeforeFill = value;
  7866. }
  7867. }
  7868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7870. private void InitAdapter() {
  7871. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7872. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7873. tableMapping.SourceTable = "Table";
  7874. tableMapping.DataSetTable = "Gender";
  7875. tableMapping.ColumnMappings.Add("Code", "Code");
  7876. tableMapping.ColumnMappings.Add("Name", "Name");
  7877. this._adapter.TableMappings.Add(tableMapping);
  7878. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7879. this._adapter.DeleteCommand.Connection = this.Connection;
  7880. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Gender] WHERE (([Code] = @Original_Code) AND ((@IsNull_Name = " +
  7881. "1 AND [Name] IS NULL) OR ([Name] = @Original_Name)))";
  7882. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7883. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Code", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7884. 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, "", "", ""));
  7885. 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, "", "", ""));
  7886. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7887. this._adapter.InsertCommand.Connection = this.Connection;
  7888. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Gender] ([Code], [Name]) VALUES (@Code, @Name);\r\nSELECT Code, " +
  7889. "Name FROM Gender WHERE (Code = @Code)";
  7890. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7891. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Code", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7892. 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, "", "", ""));
  7893. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7894. this._adapter.UpdateCommand.Connection = this.Connection;
  7895. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Gender] SET [Code] = @Code, [Name] = @Name WHERE (([Code] = @Origin" +
  7896. "al_Code) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)" +
  7897. "));\r\nSELECT Code, Name FROM Gender WHERE (Code = @Code)";
  7898. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7899. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Code", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7900. 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, "", "", ""));
  7901. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Code", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7902. 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, "", "", ""));
  7903. 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, "", "", ""));
  7904. }
  7905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7907. private void InitConnection() {
  7908. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7909. this._connection.ConnectionString = global::BB_Grishina.Properties.Settings.Default.BB_GrishinaConnectionString;
  7910. }
  7911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7913. private void InitCommandCollection() {
  7914. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7915. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7916. this._commandCollection[0].Connection = this.Connection;
  7917. this._commandCollection[0].CommandText = "SELECT Code, Name FROM dbo.Gender";
  7918. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7919. }
  7920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7921. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7922. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7923. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7924. public virtual int Fill(BB_GrishinaDataSet.GenderDataTable dataTable) {
  7925. this.Adapter.SelectCommand = this.CommandCollection[0];
  7926. if ((this.ClearBeforeFill == true)) {
  7927. dataTable.Clear();
  7928. }
  7929. int returnValue = this.Adapter.Fill(dataTable);
  7930. return returnValue;
  7931. }
  7932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7934. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7935. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7936. public virtual BB_GrishinaDataSet.GenderDataTable GetData() {
  7937. this.Adapter.SelectCommand = this.CommandCollection[0];
  7938. BB_GrishinaDataSet.GenderDataTable dataTable = new BB_GrishinaDataSet.GenderDataTable();
  7939. this.Adapter.Fill(dataTable);
  7940. return dataTable;
  7941. }
  7942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7944. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7945. public virtual int Update(BB_GrishinaDataSet.GenderDataTable dataTable) {
  7946. return this.Adapter.Update(dataTable);
  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. public virtual int Update(BB_GrishinaDataSet dataSet) {
  7952. return this.Adapter.Update(dataSet, "Gender");
  7953. }
  7954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7955. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7956. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7957. public virtual int Update(global::System.Data.DataRow dataRow) {
  7958. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7959. dataRow});
  7960. }
  7961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7963. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7964. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7965. return this.Adapter.Update(dataRows);
  7966. }
  7967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7969. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7970. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7971. public virtual int Delete(string Original_Code, string Original_Name) {
  7972. if ((Original_Code == null)) {
  7973. throw new global::System.ArgumentNullException("Original_Code");
  7974. }
  7975. else {
  7976. this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_Code));
  7977. }
  7978. if ((Original_Name == null)) {
  7979. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7980. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7981. }
  7982. else {
  7983. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7984. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Name));
  7985. }
  7986. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7987. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7988. != global::System.Data.ConnectionState.Open)) {
  7989. this.Adapter.DeleteCommand.Connection.Open();
  7990. }
  7991. try {
  7992. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7993. return returnValue;
  7994. }
  7995. finally {
  7996. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7997. this.Adapter.DeleteCommand.Connection.Close();
  7998. }
  7999. }
  8000. }
  8001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8003. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8004. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8005. public virtual int Insert(string Code, string Name) {
  8006. if ((Code == null)) {
  8007. throw new global::System.ArgumentNullException("Code");
  8008. }
  8009. else {
  8010. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Code));
  8011. }
  8012. if ((Name == null)) {
  8013. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  8014. }
  8015. else {
  8016. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Name));
  8017. }
  8018. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8019. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8020. != global::System.Data.ConnectionState.Open)) {
  8021. this.Adapter.InsertCommand.Connection.Open();
  8022. }
  8023. try {
  8024. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8025. return returnValue;
  8026. }
  8027. finally {
  8028. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8029. this.Adapter.InsertCommand.Connection.Close();
  8030. }
  8031. }
  8032. }
  8033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8034. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8035. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8036. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8037. public virtual int Update(string Code, string Name, string Original_Code, string Original_Name) {
  8038. if ((Code == null)) {
  8039. throw new global::System.ArgumentNullException("Code");
  8040. }
  8041. else {
  8042. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Code));
  8043. }
  8044. if ((Name == null)) {
  8045. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  8046. }
  8047. else {
  8048. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Name));
  8049. }
  8050. if ((Original_Code == null)) {
  8051. throw new global::System.ArgumentNullException("Original_Code");
  8052. }
  8053. else {
  8054. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_Code));
  8055. }
  8056. if ((Original_Name == null)) {
  8057. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  8058. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  8059. }
  8060. else {
  8061. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  8062. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Name));
  8063. }
  8064. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8065. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8066. != global::System.Data.ConnectionState.Open)) {
  8067. this.Adapter.UpdateCommand.Connection.Open();
  8068. }
  8069. try {
  8070. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8071. return returnValue;
  8072. }
  8073. finally {
  8074. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8075. this.Adapter.UpdateCommand.Connection.Close();
  8076. }
  8077. }
  8078. }
  8079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8081. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8082. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8083. public virtual int Update(string Name, string Original_Code, string Original_Name) {
  8084. return this.Update(Original_Code, Name, Original_Code, Original_Name);
  8085. }
  8086. }
  8087. /// <summary>
  8088. ///Represents the connection and commands used to retrieve and save data.
  8089. ///</summary>
  8090. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8091. [global::System.ComponentModel.ToolboxItem(true)]
  8092. [global::System.ComponentModel.DataObjectAttribute(true)]
  8093. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8094. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8095. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8096. public partial class ManufacturerTableAdapter : global::System.ComponentModel.Component {
  8097. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8098. private global::System.Data.SqlClient.SqlConnection _connection;
  8099. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8100. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8101. private bool _clearBeforeFill;
  8102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8103. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8104. public ManufacturerTableAdapter() {
  8105. this.ClearBeforeFill = true;
  8106. }
  8107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8108. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8109. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8110. get {
  8111. if ((this._adapter == null)) {
  8112. this.InitAdapter();
  8113. }
  8114. return this._adapter;
  8115. }
  8116. }
  8117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8119. internal global::System.Data.SqlClient.SqlConnection Connection {
  8120. get {
  8121. if ((this._connection == null)) {
  8122. this.InitConnection();
  8123. }
  8124. return this._connection;
  8125. }
  8126. set {
  8127. this._connection = value;
  8128. if ((this.Adapter.InsertCommand != null)) {
  8129. this.Adapter.InsertCommand.Connection = value;
  8130. }
  8131. if ((this.Adapter.DeleteCommand != null)) {
  8132. this.Adapter.DeleteCommand.Connection = value;
  8133. }
  8134. if ((this.Adapter.UpdateCommand != null)) {
  8135. this.Adapter.UpdateCommand.Connection = value;
  8136. }
  8137. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8138. if ((this.CommandCollection[i] != null)) {
  8139. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8140. }
  8141. }
  8142. }
  8143. }
  8144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8146. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8147. get {
  8148. return this._transaction;
  8149. }
  8150. set {
  8151. this._transaction = value;
  8152. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8153. this.CommandCollection[i].Transaction = this._transaction;
  8154. }
  8155. if (((this.Adapter != null)
  8156. && (this.Adapter.DeleteCommand != null))) {
  8157. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8158. }
  8159. if (((this.Adapter != null)
  8160. && (this.Adapter.InsertCommand != null))) {
  8161. this.Adapter.InsertCommand.Transaction = this._transaction;
  8162. }
  8163. if (((this.Adapter != null)
  8164. && (this.Adapter.UpdateCommand != null))) {
  8165. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8166. }
  8167. }
  8168. }
  8169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8171. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8172. get {
  8173. if ((this._commandCollection == null)) {
  8174. this.InitCommandCollection();
  8175. }
  8176. return this._commandCollection;
  8177. }
  8178. }
  8179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8181. public bool ClearBeforeFill {
  8182. get {
  8183. return this._clearBeforeFill;
  8184. }
  8185. set {
  8186. this._clearBeforeFill = value;
  8187. }
  8188. }
  8189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8191. private void InitAdapter() {
  8192. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8193. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8194. tableMapping.SourceTable = "Table";
  8195. tableMapping.DataSetTable = "Manufacturer";
  8196. tableMapping.ColumnMappings.Add("ID", "ID");
  8197. tableMapping.ColumnMappings.Add("Name", "Name");
  8198. tableMapping.ColumnMappings.Add("StartDate", "StartDate");
  8199. tableMapping.ColumnMappings.Add("Client", "Client");
  8200. this._adapter.TableMappings.Add(tableMapping);
  8201. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8202. this._adapter.DeleteCommand.Connection = this.Connection;
  8203. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Manufacturer] WHERE (([ID] = @Original_ID) AND ([Name] = @Orig" +
  8204. "inal_Name) AND ((@IsNull_StartDate = 1 AND [StartDate] IS NULL) OR ([StartDate] " +
  8205. "= @Original_StartDate)))";
  8206. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8207. 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, "", "", ""));
  8208. 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, "", "", ""));
  8209. 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, "", "", ""));
  8210. 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, "", "", ""));
  8211. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8212. this._adapter.InsertCommand.Connection = this.Connection;
  8213. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Manufacturer] ([Name], [StartDate], [Client]) VALUES (@Name, @" +
  8214. "StartDate, @Client);\r\nSELECT ID, Name, StartDate, Client FROM Manufacturer WHERE" +
  8215. " (ID = SCOPE_IDENTITY())";
  8216. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8217. 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, "", "", ""));
  8218. 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, "", "", ""));
  8219. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Client", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Client", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8220. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8221. this._adapter.UpdateCommand.Connection = this.Connection;
  8222. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Manufacturer] SET [Name] = @Name, [StartDate] = @StartDate, [Client] = @Client WHERE (([ID] = @Original_ID) AND ([Name] = @Original_Name) AND ((@IsNull_StartDate = 1 AND [StartDate] IS NULL) OR ([StartDate] = @Original_StartDate)));
  8223. SELECT ID, Name, StartDate, Client FROM Manufacturer WHERE (ID = @ID)";
  8224. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8225. 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, "", "", ""));
  8226. 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, "", "", ""));
  8227. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Client", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Client", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8228. 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, "", "", ""));
  8229. 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, "", "", ""));
  8230. 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, "", "", ""));
  8231. 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, "", "", ""));
  8232. 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, "", "", ""));
  8233. }
  8234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8236. private void InitConnection() {
  8237. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8238. this._connection.ConnectionString = global::BB_Grishina.Properties.Settings.Default.BB_GrishinaConnectionString;
  8239. }
  8240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8242. private void InitCommandCollection() {
  8243. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8244. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8245. this._commandCollection[0].Connection = this.Connection;
  8246. this._commandCollection[0].CommandText = "SELECT ID, Name, StartDate, Client FROM dbo.Manufacturer";
  8247. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8248. }
  8249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8251. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8252. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8253. public virtual int Fill(BB_GrishinaDataSet.ManufacturerDataTable dataTable) {
  8254. this.Adapter.SelectCommand = this.CommandCollection[0];
  8255. if ((this.ClearBeforeFill == true)) {
  8256. dataTable.Clear();
  8257. }
  8258. int returnValue = this.Adapter.Fill(dataTable);
  8259. return returnValue;
  8260. }
  8261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8263. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8264. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8265. public virtual BB_GrishinaDataSet.ManufacturerDataTable GetData() {
  8266. this.Adapter.SelectCommand = this.CommandCollection[0];
  8267. BB_GrishinaDataSet.ManufacturerDataTable dataTable = new BB_GrishinaDataSet.ManufacturerDataTable();
  8268. this.Adapter.Fill(dataTable);
  8269. return dataTable;
  8270. }
  8271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8272. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8273. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8274. public virtual int Update(BB_GrishinaDataSet.ManufacturerDataTable dataTable) {
  8275. return this.Adapter.Update(dataTable);
  8276. }
  8277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8279. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8280. public virtual int Update(BB_GrishinaDataSet dataSet) {
  8281. return this.Adapter.Update(dataSet, "Manufacturer");
  8282. }
  8283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8285. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8286. public virtual int Update(global::System.Data.DataRow dataRow) {
  8287. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8288. dataRow});
  8289. }
  8290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8291. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8292. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8293. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8294. return this.Adapter.Update(dataRows);
  8295. }
  8296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8297. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8298. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8299. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8300. public virtual int Delete(int Original_ID, string Original_Name, global::System.Nullable<global::System.DateTime> Original_StartDate) {
  8301. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  8302. if ((Original_Name == null)) {
  8303. throw new global::System.ArgumentNullException("Original_Name");
  8304. }
  8305. else {
  8306. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Name));
  8307. }
  8308. if ((Original_StartDate.HasValue == true)) {
  8309. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  8310. this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_StartDate.Value));
  8311. }
  8312. else {
  8313. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  8314. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  8315. }
  8316. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8317. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8318. != global::System.Data.ConnectionState.Open)) {
  8319. this.Adapter.DeleteCommand.Connection.Open();
  8320. }
  8321. try {
  8322. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8323. return returnValue;
  8324. }
  8325. finally {
  8326. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8327. this.Adapter.DeleteCommand.Connection.Close();
  8328. }
  8329. }
  8330. }
  8331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8332. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8333. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8334. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8335. public virtual int Insert(string Name, global::System.Nullable<global::System.DateTime> StartDate, string Client) {
  8336. if ((Name == null)) {
  8337. throw new global::System.ArgumentNullException("Name");
  8338. }
  8339. else {
  8340. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Name));
  8341. }
  8342. if ((StartDate.HasValue == true)) {
  8343. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(StartDate.Value));
  8344. }
  8345. else {
  8346. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  8347. }
  8348. if ((Client == null)) {
  8349. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  8350. }
  8351. else {
  8352. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Client));
  8353. }
  8354. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8355. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8356. != global::System.Data.ConnectionState.Open)) {
  8357. this.Adapter.InsertCommand.Connection.Open();
  8358. }
  8359. try {
  8360. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8361. return returnValue;
  8362. }
  8363. finally {
  8364. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8365. this.Adapter.InsertCommand.Connection.Close();
  8366. }
  8367. }
  8368. }
  8369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8371. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8372. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8373. public virtual int Update(string Name, global::System.Nullable<global::System.DateTime> StartDate, string Client, int Original_ID, string Original_Name, global::System.Nullable<global::System.DateTime> Original_StartDate, int ID) {
  8374. if ((Name == null)) {
  8375. throw new global::System.ArgumentNullException("Name");
  8376. }
  8377. else {
  8378. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Name));
  8379. }
  8380. if ((StartDate.HasValue == true)) {
  8381. this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(StartDate.Value));
  8382. }
  8383. else {
  8384. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  8385. }
  8386. if ((Client == null)) {
  8387. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  8388. }
  8389. else {
  8390. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Client));
  8391. }
  8392. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ID));
  8393. if ((Original_Name == null)) {
  8394. throw new global::System.ArgumentNullException("Original_Name");
  8395. }
  8396. else {
  8397. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Name));
  8398. }
  8399. if ((Original_StartDate.HasValue == true)) {
  8400. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  8401. this.Adapter.UpdateCommand.Parameters[6].Value = ((System.DateTime)(Original_StartDate.Value));
  8402. }
  8403. else {
  8404. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  8405. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  8406. }
  8407. this.Adapter.UpdateCommand.Parameters[7].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 Name, global::System.Nullable<global::System.DateTime> StartDate, string Client, int Original_ID, string Original_Name, global::System.Nullable<global::System.DateTime> Original_StartDate) {
  8428. return this.Update(Name, StartDate, Client, Original_ID, Original_Name, Original_StartDate, 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 ProductTableAdapter : 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 ProductTableAdapter() {
  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 = "Product";
  8540. tableMapping.ColumnMappings.Add("ID", "ID");
  8541. tableMapping.ColumnMappings.Add("Title", "Title");
  8542. tableMapping.ColumnMappings.Add("Cost", "Cost");
  8543. tableMapping.ColumnMappings.Add("Description", "Description");
  8544. tableMapping.ColumnMappings.Add("MainImagePath", "MainImagePath");
  8545. tableMapping.ColumnMappings.Add("IsActive", "IsActive");
  8546. tableMapping.ColumnMappings.Add("ManufacturerID", "ManufacturerID");
  8547. this._adapter.TableMappings.Add(tableMapping);
  8548. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8549. this._adapter.DeleteCommand.Connection = this.Connection;
  8550. 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)))";
  8551. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8552. 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, "", "", ""));
  8553. 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, "", "", ""));
  8554. 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, "", "", ""));
  8555. 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, "", "", ""));
  8556. 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, "", "", ""));
  8557. 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, "", "", ""));
  8558. 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, "", "", ""));
  8559. 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, "", "", ""));
  8560. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8561. this._adapter.InsertCommand.Connection = this.Connection;
  8562. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Product] ([Title], [Cost], [Description], [MainImagePath], [IsActive], [ManufacturerID]) VALUES (@Title, @Cost, @Description, @MainImagePath, @IsActive, @ManufacturerID);
  8563. SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM Product WHERE (ID = SCOPE_IDENTITY())";
  8564. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8565. 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, "", "", ""));
  8566. 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, "", "", ""));
  8567. 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, "", "", ""));
  8568. 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, "", "", ""));
  8569. 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, "", "", ""));
  8570. 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, "", "", ""));
  8571. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8572. this._adapter.UpdateCommand.Connection = this.Connection;
  8573. 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)));
  8574. SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM Product WHERE (ID = @ID)";
  8575. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8576. 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, "", "", ""));
  8577. 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, "", "", ""));
  8578. 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, "", "", ""));
  8579. 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, "", "", ""));
  8580. 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, "", "", ""));
  8581. 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, "", "", ""));
  8582. 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, "", "", ""));
  8583. 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, "", "", ""));
  8584. 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, "", "", ""));
  8585. 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, "", "", ""));
  8586. 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, "", "", ""));
  8587. 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, "", "", ""));
  8588. 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, "", "", ""));
  8589. 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, "", "", ""));
  8590. 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, "", "", ""));
  8591. }
  8592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8594. private void InitConnection() {
  8595. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8596. this._connection.ConnectionString = global::BB_Grishina.Properties.Settings.Default.BB_GrishinaConnectionString;
  8597. }
  8598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8600. private void InitCommandCollection() {
  8601. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8602. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8603. this._commandCollection[0].Connection = this.Connection;
  8604. this._commandCollection[0].CommandText = "SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM" +
  8605. " dbo.Product";
  8606. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8607. }
  8608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8610. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8611. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8612. public virtual int Fill(BB_GrishinaDataSet.ProductDataTable dataTable) {
  8613. this.Adapter.SelectCommand = this.CommandCollection[0];
  8614. if ((this.ClearBeforeFill == true)) {
  8615. dataTable.Clear();
  8616. }
  8617. int returnValue = this.Adapter.Fill(dataTable);
  8618. return returnValue;
  8619. }
  8620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8622. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8623. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8624. public virtual BB_GrishinaDataSet.ProductDataTable GetData() {
  8625. this.Adapter.SelectCommand = this.CommandCollection[0];
  8626. BB_GrishinaDataSet.ProductDataTable dataTable = new BB_GrishinaDataSet.ProductDataTable();
  8627. this.Adapter.Fill(dataTable);
  8628. return dataTable;
  8629. }
  8630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8632. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8633. public virtual int Update(BB_GrishinaDataSet.ProductDataTable dataTable) {
  8634. return this.Adapter.Update(dataTable);
  8635. }
  8636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8638. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8639. public virtual int Update(BB_GrishinaDataSet dataSet) {
  8640. return this.Adapter.Update(dataSet, "Product");
  8641. }
  8642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8644. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8645. public virtual int Update(global::System.Data.DataRow dataRow) {
  8646. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8647. dataRow});
  8648. }
  8649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8651. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8652. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8653. return this.Adapter.Update(dataRows);
  8654. }
  8655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8657. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8658. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8659. 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) {
  8660. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  8661. if ((Original_Title == null)) {
  8662. throw new global::System.ArgumentNullException("Original_Title");
  8663. }
  8664. else {
  8665. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  8666. }
  8667. this.Adapter.DeleteCommand.Parameters[2].Value = ((decimal)(Original_Cost));
  8668. if ((Original_MainImagePath == null)) {
  8669. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  8670. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  8671. }
  8672. else {
  8673. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  8674. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_MainImagePath));
  8675. }
  8676. this.Adapter.DeleteCommand.Parameters[5].Value = ((bool)(Original_IsActive));
  8677. if ((Original_ManufacturerID.HasValue == true)) {
  8678. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
  8679. this.Adapter.DeleteCommand.Parameters[7].Value = ((int)(Original_ManufacturerID.Value));
  8680. }
  8681. else {
  8682. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
  8683. this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
  8684. }
  8685. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8686. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8687. != global::System.Data.ConnectionState.Open)) {
  8688. this.Adapter.DeleteCommand.Connection.Open();
  8689. }
  8690. try {
  8691. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8692. return returnValue;
  8693. }
  8694. finally {
  8695. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8696. this.Adapter.DeleteCommand.Connection.Close();
  8697. }
  8698. }
  8699. }
  8700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8702. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8703. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8704. public virtual int Insert(string Title, decimal Cost, string Description, string MainImagePath, bool IsActive, global::System.Nullable<int> ManufacturerID) {
  8705. if ((Title == null)) {
  8706. throw new global::System.ArgumentNullException("Title");
  8707. }
  8708. else {
  8709. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  8710. }
  8711. this.Adapter.InsertCommand.Parameters[1].Value = ((decimal)(Cost));
  8712. if ((Description == null)) {
  8713. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  8714. }
  8715. else {
  8716. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Description));
  8717. }
  8718. if ((MainImagePath == null)) {
  8719. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  8720. }
  8721. else {
  8722. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(MainImagePath));
  8723. }
  8724. this.Adapter.InsertCommand.Parameters[4].Value = ((bool)(IsActive));
  8725. if ((ManufacturerID.HasValue == true)) {
  8726. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(ManufacturerID.Value));
  8727. }
  8728. else {
  8729. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  8730. }
  8731. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8732. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8733. != global::System.Data.ConnectionState.Open)) {
  8734. this.Adapter.InsertCommand.Connection.Open();
  8735. }
  8736. try {
  8737. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8738. return returnValue;
  8739. }
  8740. finally {
  8741. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8742. this.Adapter.InsertCommand.Connection.Close();
  8743. }
  8744. }
  8745. }
  8746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8748. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8749. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8750. 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) {
  8751. if ((Title == null)) {
  8752. throw new global::System.ArgumentNullException("Title");
  8753. }
  8754. else {
  8755. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  8756. }
  8757. this.Adapter.UpdateCommand.Parameters[1].Value = ((decimal)(Cost));
  8758. if ((Description == null)) {
  8759. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  8760. }
  8761. else {
  8762. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Description));
  8763. }
  8764. if ((MainImagePath == null)) {
  8765. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8766. }
  8767. else {
  8768. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(MainImagePath));
  8769. }
  8770. this.Adapter.UpdateCommand.Parameters[4].Value = ((bool)(IsActive));
  8771. if ((ManufacturerID.HasValue == true)) {
  8772. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ManufacturerID.Value));
  8773. }
  8774. else {
  8775. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  8776. }
  8777. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ID));
  8778. if ((Original_Title == null)) {
  8779. throw new global::System.ArgumentNullException("Original_Title");
  8780. }
  8781. else {
  8782. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Title));
  8783. }
  8784. this.Adapter.UpdateCommand.Parameters[8].Value = ((decimal)(Original_Cost));
  8785. if ((Original_MainImagePath == null)) {
  8786. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  8787. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  8788. }
  8789. else {
  8790. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  8791. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_MainImagePath));
  8792. }
  8793. this.Adapter.UpdateCommand.Parameters[11].Value = ((bool)(Original_IsActive));
  8794. if ((Original_ManufacturerID.HasValue == true)) {
  8795. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  8796. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_ManufacturerID.Value));
  8797. }
  8798. else {
  8799. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  8800. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  8801. }
  8802. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(ID));
  8803. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8804. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8805. != global::System.Data.ConnectionState.Open)) {
  8806. this.Adapter.UpdateCommand.Connection.Open();
  8807. }
  8808. try {
  8809. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8810. return returnValue;
  8811. }
  8812. finally {
  8813. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8814. this.Adapter.UpdateCommand.Connection.Close();
  8815. }
  8816. }
  8817. }
  8818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8820. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8821. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8822. 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) {
  8823. return this.Update(Title, Cost, Description, MainImagePath, IsActive, ManufacturerID, Original_ID, Original_Title, Original_Cost, Original_MainImagePath, Original_IsActive, Original_ManufacturerID, Original_ID);
  8824. }
  8825. }
  8826. /// <summary>
  8827. ///Represents the connection and commands used to retrieve and save data.
  8828. ///</summary>
  8829. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8830. [global::System.ComponentModel.ToolboxItem(true)]
  8831. [global::System.ComponentModel.DataObjectAttribute(true)]
  8832. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8833. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8834. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8835. public partial class ProductPhotoTableAdapter : global::System.ComponentModel.Component {
  8836. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8837. private global::System.Data.SqlClient.SqlConnection _connection;
  8838. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8839. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8840. private bool _clearBeforeFill;
  8841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8843. public ProductPhotoTableAdapter() {
  8844. this.ClearBeforeFill = true;
  8845. }
  8846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8848. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8849. get {
  8850. if ((this._adapter == null)) {
  8851. this.InitAdapter();
  8852. }
  8853. return this._adapter;
  8854. }
  8855. }
  8856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8858. internal global::System.Data.SqlClient.SqlConnection Connection {
  8859. get {
  8860. if ((this._connection == null)) {
  8861. this.InitConnection();
  8862. }
  8863. return this._connection;
  8864. }
  8865. set {
  8866. this._connection = value;
  8867. if ((this.Adapter.InsertCommand != null)) {
  8868. this.Adapter.InsertCommand.Connection = value;
  8869. }
  8870. if ((this.Adapter.DeleteCommand != null)) {
  8871. this.Adapter.DeleteCommand.Connection = value;
  8872. }
  8873. if ((this.Adapter.UpdateCommand != null)) {
  8874. this.Adapter.UpdateCommand.Connection = value;
  8875. }
  8876. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8877. if ((this.CommandCollection[i] != null)) {
  8878. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8879. }
  8880. }
  8881. }
  8882. }
  8883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8885. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8886. get {
  8887. return this._transaction;
  8888. }
  8889. set {
  8890. this._transaction = value;
  8891. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8892. this.CommandCollection[i].Transaction = this._transaction;
  8893. }
  8894. if (((this.Adapter != null)
  8895. && (this.Adapter.DeleteCommand != null))) {
  8896. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8897. }
  8898. if (((this.Adapter != null)
  8899. && (this.Adapter.InsertCommand != null))) {
  8900. this.Adapter.InsertCommand.Transaction = this._transaction;
  8901. }
  8902. if (((this.Adapter != null)
  8903. && (this.Adapter.UpdateCommand != null))) {
  8904. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8905. }
  8906. }
  8907. }
  8908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8910. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8911. get {
  8912. if ((this._commandCollection == null)) {
  8913. this.InitCommandCollection();
  8914. }
  8915. return this._commandCollection;
  8916. }
  8917. }
  8918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8920. public bool ClearBeforeFill {
  8921. get {
  8922. return this._clearBeforeFill;
  8923. }
  8924. set {
  8925. this._clearBeforeFill = value;
  8926. }
  8927. }
  8928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8930. private void InitAdapter() {
  8931. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8932. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8933. tableMapping.SourceTable = "Table";
  8934. tableMapping.DataSetTable = "ProductPhoto";
  8935. tableMapping.ColumnMappings.Add("ID", "ID");
  8936. tableMapping.ColumnMappings.Add("ProductID", "ProductID");
  8937. tableMapping.ColumnMappings.Add("PhotoPath", "PhotoPath");
  8938. this._adapter.TableMappings.Add(tableMapping);
  8939. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8940. this._adapter.DeleteCommand.Connection = this.Connection;
  8941. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ProductPhoto] WHERE (([ID] = @Original_ID) AND ([ProductID] = " +
  8942. "@Original_ProductID) AND ([PhotoPath] = @Original_PhotoPath))";
  8943. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8944. 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, "", "", ""));
  8945. 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, "", "", ""));
  8946. 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, "", "", ""));
  8947. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8948. this._adapter.InsertCommand.Connection = this.Connection;
  8949. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ProductPhoto] ([ProductID], [PhotoPath]) VALUES (@ProductID, @" +
  8950. "PhotoPath);\r\nSELECT ID, ProductID, PhotoPath FROM ProductPhoto WHERE (ID = SCOPE" +
  8951. "_IDENTITY())";
  8952. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8953. 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, "", "", ""));
  8954. 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, "", "", ""));
  8955. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8956. this._adapter.UpdateCommand.Connection = this.Connection;
  8957. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ProductPhoto] SET [ProductID] = @ProductID, [PhotoPath] = @PhotoPath WHERE (([ID] = @Original_ID) AND ([ProductID] = @Original_ProductID) AND ([PhotoPath] = @Original_PhotoPath));
  8958. SELECT ID, ProductID, PhotoPath FROM ProductPhoto WHERE (ID = @ID)";
  8959. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8960. 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, "", "", ""));
  8961. 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, "", "", ""));
  8962. 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, "", "", ""));
  8963. 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, "", "", ""));
  8964. 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, "", "", ""));
  8965. 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, "", "", ""));
  8966. }
  8967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8969. private void InitConnection() {
  8970. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8971. this._connection.ConnectionString = global::BB_Grishina.Properties.Settings.Default.BB_GrishinaConnectionString;
  8972. }
  8973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8975. private void InitCommandCollection() {
  8976. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8977. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8978. this._commandCollection[0].Connection = this.Connection;
  8979. this._commandCollection[0].CommandText = "SELECT ID, ProductID, PhotoPath FROM dbo.ProductPhoto";
  8980. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8981. }
  8982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8984. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8985. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8986. public virtual int Fill(BB_GrishinaDataSet.ProductPhotoDataTable dataTable) {
  8987. this.Adapter.SelectCommand = this.CommandCollection[0];
  8988. if ((this.ClearBeforeFill == true)) {
  8989. dataTable.Clear();
  8990. }
  8991. int returnValue = this.Adapter.Fill(dataTable);
  8992. return returnValue;
  8993. }
  8994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8996. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8997. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8998. public virtual BB_GrishinaDataSet.ProductPhotoDataTable GetData() {
  8999. this.Adapter.SelectCommand = this.CommandCollection[0];
  9000. BB_GrishinaDataSet.ProductPhotoDataTable dataTable = new BB_GrishinaDataSet.ProductPhotoDataTable();
  9001. this.Adapter.Fill(dataTable);
  9002. return dataTable;
  9003. }
  9004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9006. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9007. public virtual int Update(BB_GrishinaDataSet.ProductPhotoDataTable dataTable) {
  9008. return this.Adapter.Update(dataTable);
  9009. }
  9010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9011. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9012. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9013. public virtual int Update(BB_GrishinaDataSet dataSet) {
  9014. return this.Adapter.Update(dataSet, "ProductPhoto");
  9015. }
  9016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9018. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9019. public virtual int Update(global::System.Data.DataRow dataRow) {
  9020. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9021. dataRow});
  9022. }
  9023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9025. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9026. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9027. return this.Adapter.Update(dataRows);
  9028. }
  9029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9031. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9032. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9033. public virtual int Delete(int Original_ID, int Original_ProductID, string Original_PhotoPath) {
  9034. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9035. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ProductID));
  9036. if ((Original_PhotoPath == null)) {
  9037. throw new global::System.ArgumentNullException("Original_PhotoPath");
  9038. }
  9039. else {
  9040. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_PhotoPath));
  9041. }
  9042. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9043. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9044. != global::System.Data.ConnectionState.Open)) {
  9045. this.Adapter.DeleteCommand.Connection.Open();
  9046. }
  9047. try {
  9048. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9049. return returnValue;
  9050. }
  9051. finally {
  9052. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9053. this.Adapter.DeleteCommand.Connection.Close();
  9054. }
  9055. }
  9056. }
  9057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9059. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9060. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9061. public virtual int Insert(int ProductID, string PhotoPath) {
  9062. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ProductID));
  9063. if ((PhotoPath == null)) {
  9064. throw new global::System.ArgumentNullException("PhotoPath");
  9065. }
  9066. else {
  9067. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(PhotoPath));
  9068. }
  9069. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9070. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9071. != global::System.Data.ConnectionState.Open)) {
  9072. this.Adapter.InsertCommand.Connection.Open();
  9073. }
  9074. try {
  9075. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9076. return returnValue;
  9077. }
  9078. finally {
  9079. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9080. this.Adapter.InsertCommand.Connection.Close();
  9081. }
  9082. }
  9083. }
  9084. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9085. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9086. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9087. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9088. public virtual int Update(int ProductID, string PhotoPath, int Original_ID, int Original_ProductID, string Original_PhotoPath, int ID) {
  9089. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ProductID));
  9090. if ((PhotoPath == null)) {
  9091. throw new global::System.ArgumentNullException("PhotoPath");
  9092. }
  9093. else {
  9094. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(PhotoPath));
  9095. }
  9096. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  9097. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ProductID));
  9098. if ((Original_PhotoPath == null)) {
  9099. throw new global::System.ArgumentNullException("Original_PhotoPath");
  9100. }
  9101. else {
  9102. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_PhotoPath));
  9103. }
  9104. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  9105. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9106. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9107. != global::System.Data.ConnectionState.Open)) {
  9108. this.Adapter.UpdateCommand.Connection.Open();
  9109. }
  9110. try {
  9111. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9112. return returnValue;
  9113. }
  9114. finally {
  9115. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9116. this.Adapter.UpdateCommand.Connection.Close();
  9117. }
  9118. }
  9119. }
  9120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9122. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9123. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9124. public virtual int Update(int ProductID, string PhotoPath, int Original_ID, int Original_ProductID, string Original_PhotoPath) {
  9125. return this.Update(ProductID, PhotoPath, Original_ID, Original_ProductID, Original_PhotoPath, Original_ID);
  9126. }
  9127. }
  9128. /// <summary>
  9129. ///Represents the connection and commands used to retrieve and save data.
  9130. ///</summary>
  9131. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9132. [global::System.ComponentModel.ToolboxItem(true)]
  9133. [global::System.ComponentModel.DataObjectAttribute(true)]
  9134. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9135. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9136. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9137. public partial class ProductSaleTableAdapter : global::System.ComponentModel.Component {
  9138. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9139. private global::System.Data.SqlClient.SqlConnection _connection;
  9140. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9141. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9142. private bool _clearBeforeFill;
  9143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9145. public ProductSaleTableAdapter() {
  9146. this.ClearBeforeFill = true;
  9147. }
  9148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9150. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9151. get {
  9152. if ((this._adapter == null)) {
  9153. this.InitAdapter();
  9154. }
  9155. return this._adapter;
  9156. }
  9157. }
  9158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9160. internal global::System.Data.SqlClient.SqlConnection Connection {
  9161. get {
  9162. if ((this._connection == null)) {
  9163. this.InitConnection();
  9164. }
  9165. return this._connection;
  9166. }
  9167. set {
  9168. this._connection = value;
  9169. if ((this.Adapter.InsertCommand != null)) {
  9170. this.Adapter.InsertCommand.Connection = value;
  9171. }
  9172. if ((this.Adapter.DeleteCommand != null)) {
  9173. this.Adapter.DeleteCommand.Connection = value;
  9174. }
  9175. if ((this.Adapter.UpdateCommand != null)) {
  9176. this.Adapter.UpdateCommand.Connection = value;
  9177. }
  9178. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9179. if ((this.CommandCollection[i] != null)) {
  9180. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9181. }
  9182. }
  9183. }
  9184. }
  9185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9187. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9188. get {
  9189. return this._transaction;
  9190. }
  9191. set {
  9192. this._transaction = value;
  9193. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9194. this.CommandCollection[i].Transaction = this._transaction;
  9195. }
  9196. if (((this.Adapter != null)
  9197. && (this.Adapter.DeleteCommand != null))) {
  9198. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9199. }
  9200. if (((this.Adapter != null)
  9201. && (this.Adapter.InsertCommand != null))) {
  9202. this.Adapter.InsertCommand.Transaction = this._transaction;
  9203. }
  9204. if (((this.Adapter != null)
  9205. && (this.Adapter.UpdateCommand != null))) {
  9206. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9207. }
  9208. }
  9209. }
  9210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9212. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9213. get {
  9214. if ((this._commandCollection == null)) {
  9215. this.InitCommandCollection();
  9216. }
  9217. return this._commandCollection;
  9218. }
  9219. }
  9220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9222. public bool ClearBeforeFill {
  9223. get {
  9224. return this._clearBeforeFill;
  9225. }
  9226. set {
  9227. this._clearBeforeFill = value;
  9228. }
  9229. }
  9230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9232. private void InitAdapter() {
  9233. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9234. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9235. tableMapping.SourceTable = "Table";
  9236. tableMapping.DataSetTable = "ProductSale";
  9237. tableMapping.ColumnMappings.Add("ID", "ID");
  9238. tableMapping.ColumnMappings.Add("SaleDate", "SaleDate");
  9239. tableMapping.ColumnMappings.Add("ProductID", "ProductID");
  9240. tableMapping.ColumnMappings.Add("Quantity", "Quantity");
  9241. tableMapping.ColumnMappings.Add("ClientServiceID", "ClientServiceID");
  9242. this._adapter.TableMappings.Add(tableMapping);
  9243. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9244. this._adapter.DeleteCommand.Connection = this.Connection;
  9245. 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)))";
  9246. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9247. 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, "", "", ""));
  9248. 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, "", "", ""));
  9249. 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, "", "", ""));
  9250. 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, "", "", ""));
  9251. 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, "", "", ""));
  9252. 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, "", "", ""));
  9253. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9254. this._adapter.InsertCommand.Connection = this.Connection;
  9255. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ProductSale] ([SaleDate], [ProductID], [Quantity], [ClientServ" +
  9256. "iceID]) VALUES (@SaleDate, @ProductID, @Quantity, @ClientServiceID);\r\nSELECT ID," +
  9257. " SaleDate, ProductID, Quantity, ClientServiceID FROM ProductSale WHERE (ID = SCO" +
  9258. "PE_IDENTITY())";
  9259. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9260. 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, "", "", ""));
  9261. 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, "", "", ""));
  9262. 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, "", "", ""));
  9263. 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, "", "", ""));
  9264. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9265. this._adapter.UpdateCommand.Connection = this.Connection;
  9266. 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)));
  9267. SELECT ID, SaleDate, ProductID, Quantity, ClientServiceID FROM ProductSale WHERE (ID = @ID)";
  9268. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9269. 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, "", "", ""));
  9270. 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, "", "", ""));
  9271. 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, "", "", ""));
  9272. 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, "", "", ""));
  9273. 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, "", "", ""));
  9274. 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, "", "", ""));
  9275. 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, "", "", ""));
  9276. 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, "", "", ""));
  9277. 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, "", "", ""));
  9278. 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, "", "", ""));
  9279. 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, "", "", ""));
  9280. }
  9281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9282. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9283. private void InitConnection() {
  9284. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9285. this._connection.ConnectionString = global::BB_Grishina.Properties.Settings.Default.BB_GrishinaConnectionString;
  9286. }
  9287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9289. private void InitCommandCollection() {
  9290. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9291. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9292. this._commandCollection[0].Connection = this.Connection;
  9293. this._commandCollection[0].CommandText = "SELECT ID, SaleDate, ProductID, Quantity, ClientServiceID FROM dbo.ProductSale";
  9294. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9295. }
  9296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9297. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9298. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9299. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9300. public virtual int Fill(BB_GrishinaDataSet.ProductSaleDataTable dataTable) {
  9301. this.Adapter.SelectCommand = this.CommandCollection[0];
  9302. if ((this.ClearBeforeFill == true)) {
  9303. dataTable.Clear();
  9304. }
  9305. int returnValue = this.Adapter.Fill(dataTable);
  9306. return returnValue;
  9307. }
  9308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9310. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9311. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9312. public virtual BB_GrishinaDataSet.ProductSaleDataTable GetData() {
  9313. this.Adapter.SelectCommand = this.CommandCollection[0];
  9314. BB_GrishinaDataSet.ProductSaleDataTable dataTable = new BB_GrishinaDataSet.ProductSaleDataTable();
  9315. this.Adapter.Fill(dataTable);
  9316. return dataTable;
  9317. }
  9318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9320. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9321. public virtual int Update(BB_GrishinaDataSet.ProductSaleDataTable dataTable) {
  9322. return this.Adapter.Update(dataTable);
  9323. }
  9324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9326. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9327. public virtual int Update(BB_GrishinaDataSet dataSet) {
  9328. return this.Adapter.Update(dataSet, "ProductSale");
  9329. }
  9330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9332. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9333. public virtual int Update(global::System.Data.DataRow dataRow) {
  9334. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9335. dataRow});
  9336. }
  9337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9339. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9340. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9341. return this.Adapter.Update(dataRows);
  9342. }
  9343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9344. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9345. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9346. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9347. public virtual int Delete(int Original_ID, System.DateTime Original_SaleDate, int Original_ProductID, int Original_Quantity, global::System.Nullable<int> Original_ClientServiceID) {
  9348. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9349. this.Adapter.DeleteCommand.Parameters[1].Value = ((System.DateTime)(Original_SaleDate));
  9350. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_ProductID));
  9351. this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_Quantity));
  9352. if ((Original_ClientServiceID.HasValue == true)) {
  9353. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  9354. this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_ClientServiceID.Value));
  9355. }
  9356. else {
  9357. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  9358. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  9359. }
  9360. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9361. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9362. != global::System.Data.ConnectionState.Open)) {
  9363. this.Adapter.DeleteCommand.Connection.Open();
  9364. }
  9365. try {
  9366. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9367. return returnValue;
  9368. }
  9369. finally {
  9370. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9371. this.Adapter.DeleteCommand.Connection.Close();
  9372. }
  9373. }
  9374. }
  9375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9377. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9378. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9379. public virtual int Insert(System.DateTime SaleDate, int ProductID, int Quantity, global::System.Nullable<int> ClientServiceID) {
  9380. this.Adapter.InsertCommand.Parameters[0].Value = ((System.DateTime)(SaleDate));
  9381. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ProductID));
  9382. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Quantity));
  9383. if ((ClientServiceID.HasValue == true)) {
  9384. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(ClientServiceID.Value));
  9385. }
  9386. else {
  9387. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  9388. }
  9389. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9390. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9391. != global::System.Data.ConnectionState.Open)) {
  9392. this.Adapter.InsertCommand.Connection.Open();
  9393. }
  9394. try {
  9395. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9396. return returnValue;
  9397. }
  9398. finally {
  9399. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9400. this.Adapter.InsertCommand.Connection.Close();
  9401. }
  9402. }
  9403. }
  9404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9406. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9407. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9408. 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) {
  9409. this.Adapter.UpdateCommand.Parameters[0].Value = ((System.DateTime)(SaleDate));
  9410. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(ProductID));
  9411. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Quantity));
  9412. if ((ClientServiceID.HasValue == true)) {
  9413. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(ClientServiceID.Value));
  9414. }
  9415. else {
  9416. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  9417. }
  9418. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_ID));
  9419. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(Original_SaleDate));
  9420. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ProductID));
  9421. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_Quantity));
  9422. if ((Original_ClientServiceID.HasValue == true)) {
  9423. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  9424. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_ClientServiceID.Value));
  9425. }
  9426. else {
  9427. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  9428. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  9429. }
  9430. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(ID));
  9431. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9432. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9433. != global::System.Data.ConnectionState.Open)) {
  9434. this.Adapter.UpdateCommand.Connection.Open();
  9435. }
  9436. try {
  9437. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9438. return returnValue;
  9439. }
  9440. finally {
  9441. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9442. this.Adapter.UpdateCommand.Connection.Close();
  9443. }
  9444. }
  9445. }
  9446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9448. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9449. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9450. 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) {
  9451. return this.Update(SaleDate, ProductID, Quantity, ClientServiceID, Original_ID, Original_SaleDate, Original_ProductID, Original_Quantity, Original_ClientServiceID, Original_ID);
  9452. }
  9453. }
  9454. /// <summary>
  9455. ///Represents the connection and commands used to retrieve and save data.
  9456. ///</summary>
  9457. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9458. [global::System.ComponentModel.ToolboxItem(true)]
  9459. [global::System.ComponentModel.DataObjectAttribute(true)]
  9460. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9461. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9462. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9463. public partial class ServiceTableAdapter : global::System.ComponentModel.Component {
  9464. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9465. private global::System.Data.SqlClient.SqlConnection _connection;
  9466. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9467. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9468. private bool _clearBeforeFill;
  9469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9471. public ServiceTableAdapter() {
  9472. this.ClearBeforeFill = true;
  9473. }
  9474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9476. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9477. get {
  9478. if ((this._adapter == null)) {
  9479. this.InitAdapter();
  9480. }
  9481. return this._adapter;
  9482. }
  9483. }
  9484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9486. internal global::System.Data.SqlClient.SqlConnection Connection {
  9487. get {
  9488. if ((this._connection == null)) {
  9489. this.InitConnection();
  9490. }
  9491. return this._connection;
  9492. }
  9493. set {
  9494. this._connection = value;
  9495. if ((this.Adapter.InsertCommand != null)) {
  9496. this.Adapter.InsertCommand.Connection = value;
  9497. }
  9498. if ((this.Adapter.DeleteCommand != null)) {
  9499. this.Adapter.DeleteCommand.Connection = value;
  9500. }
  9501. if ((this.Adapter.UpdateCommand != null)) {
  9502. this.Adapter.UpdateCommand.Connection = value;
  9503. }
  9504. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9505. if ((this.CommandCollection[i] != null)) {
  9506. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9507. }
  9508. }
  9509. }
  9510. }
  9511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9513. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9514. get {
  9515. return this._transaction;
  9516. }
  9517. set {
  9518. this._transaction = value;
  9519. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9520. this.CommandCollection[i].Transaction = this._transaction;
  9521. }
  9522. if (((this.Adapter != null)
  9523. && (this.Adapter.DeleteCommand != null))) {
  9524. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9525. }
  9526. if (((this.Adapter != null)
  9527. && (this.Adapter.InsertCommand != null))) {
  9528. this.Adapter.InsertCommand.Transaction = this._transaction;
  9529. }
  9530. if (((this.Adapter != null)
  9531. && (this.Adapter.UpdateCommand != null))) {
  9532. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9533. }
  9534. }
  9535. }
  9536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9538. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9539. get {
  9540. if ((this._commandCollection == null)) {
  9541. this.InitCommandCollection();
  9542. }
  9543. return this._commandCollection;
  9544. }
  9545. }
  9546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9548. public bool ClearBeforeFill {
  9549. get {
  9550. return this._clearBeforeFill;
  9551. }
  9552. set {
  9553. this._clearBeforeFill = value;
  9554. }
  9555. }
  9556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9558. private void InitAdapter() {
  9559. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9560. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9561. tableMapping.SourceTable = "Table";
  9562. tableMapping.DataSetTable = "Service";
  9563. tableMapping.ColumnMappings.Add("ID", "ID");
  9564. tableMapping.ColumnMappings.Add("НаименованиеУслугми", "НаименованиеУслугми");
  9565. tableMapping.ColumnMappings.Add("Изображение", "Изображение");
  9566. tableMapping.ColumnMappings.Add("Длительность", "Длительность");
  9567. tableMapping.ColumnMappings.Add("Стоимость", "Стоимость");
  9568. tableMapping.ColumnMappings.Add("ДействующаяСкидка", "ДействующаяСкидка");
  9569. tableMapping.ColumnMappings.Add("MainImagePath", "MainImagePath");
  9570. this._adapter.TableMappings.Add(tableMapping);
  9571. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9572. this._adapter.DeleteCommand.Connection = this.Connection;
  9573. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Service] WHERE (([ID] = @Original_ID) AND ([НаименованиеУслугми] = @Original_НаименованиеУслугми) AND ((@IsNull_ДействующаяСкидка = 1 AND [ДействующаяСкидка] IS NULL) OR ([ДействующаяСкидка] = @Original_ДействующаяСкидка)) AND ((@IsNull_MainImagePath = 1 AND [MainImagePath] IS NULL) OR ([MainImagePath] = @Original_MainImagePath)))";
  9574. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9575. 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, "", "", ""));
  9576. 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, "", "", ""));
  9577. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ДействующаяСкидка", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДействующаяСкидка", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9578. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ДействующаяСкидка", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДействующаяСкидка", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9579. 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, "", "", ""));
  9580. 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, "", "", ""));
  9581. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9582. this._adapter.InsertCommand.Connection = this.Connection;
  9583. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Service] ([НаименованиеУслугми], [Изображение], [Длительность], [Стоимость], [ДействующаяСкидка], [MainImagePath]) VALUES (@НаименованиеУслугми, @Изображение, @Длительность, @Стоимость, @ДействующаяСкидка, @MainImagePath);
  9584. SELECT ID, НаименованиеУслугми, Изображение, Длительность, Стоимость, ДействующаяСкидка, MainImagePath FROM Service WHERE (ID = SCOPE_IDENTITY())";
  9585. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9586. 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, "", "", ""));
  9587. 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, "", "", ""));
  9588. 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, "", "", ""));
  9589. 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, "", "", ""));
  9590. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ДействующаяСкидка", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДействующаяСкидка", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9591. 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, "", "", ""));
  9592. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9593. this._adapter.UpdateCommand.Connection = this.Connection;
  9594. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Service] SET [НаименованиеУслугми] = @НаименованиеУслугми, [Изображение] = @Изображение, [Длительность] = @Длительность, [Стоимость] = @Стоимость, [ДействующаяСкидка] = @ДействующаяСкидка, [MainImagePath] = @MainImagePath WHERE (([ID] = @Original_ID) AND ([НаименованиеУслугми] = @Original_НаименованиеУслугми) AND ((@IsNull_ДействующаяСкидка = 1 AND [ДействующаяСкидка] IS NULL) OR ([ДействующаяСкидка] = @Original_ДействующаяСкидка)) AND ((@IsNull_MainImagePath = 1 AND [MainImagePath] IS NULL) OR ([MainImagePath] = @Original_MainImagePath)));
  9595. SELECT ID, НаименованиеУслугми, Изображение, Длительность, Стоимость, ДействующаяСкидка, MainImagePath FROM Service WHERE (ID = @ID)";
  9596. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9597. 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, "", "", ""));
  9598. 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, "", "", ""));
  9599. 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, "", "", ""));
  9600. 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, "", "", ""));
  9601. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ДействующаяСкидка", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДействующаяСкидка", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9602. 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, "", "", ""));
  9603. 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, "", "", ""));
  9604. 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, "", "", ""));
  9605. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ДействующаяСкидка", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДействующаяСкидка", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9606. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ДействующаяСкидка", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДействующаяСкидка", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9607. 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, "", "", ""));
  9608. 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, "", "", ""));
  9609. 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, "", "", ""));
  9610. }
  9611. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9612. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9613. private void InitConnection() {
  9614. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9615. this._connection.ConnectionString = global::BB_Grishina.Properties.Settings.Default.BB_GrishinaConnectionString;
  9616. }
  9617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9619. private void InitCommandCollection() {
  9620. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9621. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9622. this._commandCollection[0].Connection = this.Connection;
  9623. this._commandCollection[0].CommandText = "SELECT ID, НаименованиеУслугми, Изображение, Длительность, Стоимость, Действующая" +
  9624. "Скидка, MainImagePath FROM dbo.Service";
  9625. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9626. }
  9627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9629. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9630. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9631. public virtual int Fill(BB_GrishinaDataSet.ServiceDataTable dataTable) {
  9632. this.Adapter.SelectCommand = this.CommandCollection[0];
  9633. if ((this.ClearBeforeFill == true)) {
  9634. dataTable.Clear();
  9635. }
  9636. int returnValue = this.Adapter.Fill(dataTable);
  9637. return returnValue;
  9638. }
  9639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9641. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9642. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9643. public virtual BB_GrishinaDataSet.ServiceDataTable GetData() {
  9644. this.Adapter.SelectCommand = this.CommandCollection[0];
  9645. BB_GrishinaDataSet.ServiceDataTable dataTable = new BB_GrishinaDataSet.ServiceDataTable();
  9646. this.Adapter.Fill(dataTable);
  9647. return dataTable;
  9648. }
  9649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9651. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9652. public virtual int Update(BB_GrishinaDataSet.ServiceDataTable dataTable) {
  9653. return this.Adapter.Update(dataTable);
  9654. }
  9655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9657. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9658. public virtual int Update(BB_GrishinaDataSet dataSet) {
  9659. return this.Adapter.Update(dataSet, "Service");
  9660. }
  9661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9663. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9664. public virtual int Update(global::System.Data.DataRow dataRow) {
  9665. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9666. dataRow});
  9667. }
  9668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9670. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9671. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9672. return this.Adapter.Update(dataRows);
  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.Delete, true)]
  9678. public virtual int Delete(int Original_ID, string Original_НаименованиеУслугми, string Original_ДействующаяСкидка, string Original_MainImagePath) {
  9679. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9680. if ((Original_НаименованиеУслугми == null)) {
  9681. throw new global::System.ArgumentNullException("Original_НаименованиеУслугми");
  9682. }
  9683. else {
  9684. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_НаименованиеУслугми));
  9685. }
  9686. if ((Original_ДействующаяСкидка == null)) {
  9687. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  9688. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  9689. }
  9690. else {
  9691. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  9692. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_ДействующаяСкидка));
  9693. }
  9694. if ((Original_MainImagePath == null)) {
  9695. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  9696. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  9697. }
  9698. else {
  9699. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  9700. this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_MainImagePath));
  9701. }
  9702. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9703. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9704. != global::System.Data.ConnectionState.Open)) {
  9705. this.Adapter.DeleteCommand.Connection.Open();
  9706. }
  9707. try {
  9708. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9709. return returnValue;
  9710. }
  9711. finally {
  9712. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9713. this.Adapter.DeleteCommand.Connection.Close();
  9714. }
  9715. }
  9716. }
  9717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9719. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9720. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9721. public virtual int Insert(string НаименованиеУслугми, string Изображение, string Длительность, string Стоимость, string ДействующаяСкидка, string MainImagePath) {
  9722. if ((НаименованиеУслугми == null)) {
  9723. throw new global::System.ArgumentNullException("НаименованиеУслугми");
  9724. }
  9725. else {
  9726. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(НаименованиеУслугми));
  9727. }
  9728. if ((Изображение == null)) {
  9729. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  9730. }
  9731. else {
  9732. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Изображение));
  9733. }
  9734. if ((Длительность == null)) {
  9735. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  9736. }
  9737. else {
  9738. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Длительность));
  9739. }
  9740. if ((Стоимость == null)) {
  9741. throw new global::System.ArgumentNullException("Стоимость");
  9742. }
  9743. else {
  9744. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Стоимость));
  9745. }
  9746. if ((ДействующаяСкидка == null)) {
  9747. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  9748. }
  9749. else {
  9750. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(ДействующаяСкидка));
  9751. }
  9752. if ((MainImagePath == null)) {
  9753. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  9754. }
  9755. else {
  9756. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(MainImagePath));
  9757. }
  9758. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9759. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9760. != global::System.Data.ConnectionState.Open)) {
  9761. this.Adapter.InsertCommand.Connection.Open();
  9762. }
  9763. try {
  9764. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9765. return returnValue;
  9766. }
  9767. finally {
  9768. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9769. this.Adapter.InsertCommand.Connection.Close();
  9770. }
  9771. }
  9772. }
  9773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9774. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9775. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9776. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9777. public virtual int Update(string НаименованиеУслугми, string Изображение, string Длительность, string Стоимость, string ДействующаяСкидка, string MainImagePath, int Original_ID, string Original_НаименованиеУслугми, string Original_ДействующаяСкидка, string Original_MainImagePath, int ID) {
  9778. if ((НаименованиеУслугми == null)) {
  9779. throw new global::System.ArgumentNullException("НаименованиеУслугми");
  9780. }
  9781. else {
  9782. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(НаименованиеУслугми));
  9783. }
  9784. if ((Изображение == null)) {
  9785. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  9786. }
  9787. else {
  9788. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Изображение));
  9789. }
  9790. if ((Длительность == null)) {
  9791. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  9792. }
  9793. else {
  9794. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Длительность));
  9795. }
  9796. if ((Стоимость == null)) {
  9797. throw new global::System.ArgumentNullException("Стоимость");
  9798. }
  9799. else {
  9800. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Стоимость));
  9801. }
  9802. if ((ДействующаяСкидка == null)) {
  9803. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  9804. }
  9805. else {
  9806. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(ДействующаяСкидка));
  9807. }
  9808. if ((MainImagePath == null)) {
  9809. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  9810. }
  9811. else {
  9812. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(MainImagePath));
  9813. }
  9814. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ID));
  9815. if ((Original_НаименованиеУслугми == null)) {
  9816. throw new global::System.ArgumentNullException("Original_НаименованиеУслугми");
  9817. }
  9818. else {
  9819. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_НаименованиеУслугми));
  9820. }
  9821. if ((Original_ДействующаяСкидка == null)) {
  9822. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  9823. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  9824. }
  9825. else {
  9826. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  9827. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_ДействующаяСкидка));
  9828. }
  9829. if ((Original_MainImagePath == null)) {
  9830. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  9831. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  9832. }
  9833. else {
  9834. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  9835. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_MainImagePath));
  9836. }
  9837. this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(ID));
  9838. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9839. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9840. != global::System.Data.ConnectionState.Open)) {
  9841. this.Adapter.UpdateCommand.Connection.Open();
  9842. }
  9843. try {
  9844. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9845. return returnValue;
  9846. }
  9847. finally {
  9848. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9849. this.Adapter.UpdateCommand.Connection.Close();
  9850. }
  9851. }
  9852. }
  9853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9855. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9856. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9857. public virtual int Update(string НаименованиеУслугми, string Изображение, string Длительность, string Стоимость, string ДействующаяСкидка, string MainImagePath, int Original_ID, string Original_НаименованиеУслугми, string Original_ДействующаяСкидка, string Original_MainImagePath) {
  9858. return this.Update(НаименованиеУслугми, Изображение, Длительность, Стоимость, ДействующаяСкидка, MainImagePath, Original_ID, Original_НаименованиеУслугми, Original_ДействующаяСкидка, Original_MainImagePath, Original_ID);
  9859. }
  9860. }
  9861. /// <summary>
  9862. ///Represents the connection and commands used to retrieve and save data.
  9863. ///</summary>
  9864. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9865. [global::System.ComponentModel.ToolboxItem(true)]
  9866. [global::System.ComponentModel.DataObjectAttribute(true)]
  9867. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9868. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9869. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9870. public partial class ServicePhotoTableAdapter : global::System.ComponentModel.Component {
  9871. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9872. private global::System.Data.SqlClient.SqlConnection _connection;
  9873. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9874. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9875. private bool _clearBeforeFill;
  9876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9878. public ServicePhotoTableAdapter() {
  9879. this.ClearBeforeFill = true;
  9880. }
  9881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9883. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9884. get {
  9885. if ((this._adapter == null)) {
  9886. this.InitAdapter();
  9887. }
  9888. return this._adapter;
  9889. }
  9890. }
  9891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9893. internal global::System.Data.SqlClient.SqlConnection Connection {
  9894. get {
  9895. if ((this._connection == null)) {
  9896. this.InitConnection();
  9897. }
  9898. return this._connection;
  9899. }
  9900. set {
  9901. this._connection = value;
  9902. if ((this.Adapter.InsertCommand != null)) {
  9903. this.Adapter.InsertCommand.Connection = value;
  9904. }
  9905. if ((this.Adapter.DeleteCommand != null)) {
  9906. this.Adapter.DeleteCommand.Connection = value;
  9907. }
  9908. if ((this.Adapter.UpdateCommand != null)) {
  9909. this.Adapter.UpdateCommand.Connection = value;
  9910. }
  9911. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9912. if ((this.CommandCollection[i] != null)) {
  9913. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9914. }
  9915. }
  9916. }
  9917. }
  9918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9920. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9921. get {
  9922. return this._transaction;
  9923. }
  9924. set {
  9925. this._transaction = value;
  9926. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9927. this.CommandCollection[i].Transaction = this._transaction;
  9928. }
  9929. if (((this.Adapter != null)
  9930. && (this.Adapter.DeleteCommand != null))) {
  9931. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9932. }
  9933. if (((this.Adapter != null)
  9934. && (this.Adapter.InsertCommand != null))) {
  9935. this.Adapter.InsertCommand.Transaction = this._transaction;
  9936. }
  9937. if (((this.Adapter != null)
  9938. && (this.Adapter.UpdateCommand != null))) {
  9939. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9940. }
  9941. }
  9942. }
  9943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9945. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9946. get {
  9947. if ((this._commandCollection == null)) {
  9948. this.InitCommandCollection();
  9949. }
  9950. return this._commandCollection;
  9951. }
  9952. }
  9953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9955. public bool ClearBeforeFill {
  9956. get {
  9957. return this._clearBeforeFill;
  9958. }
  9959. set {
  9960. this._clearBeforeFill = value;
  9961. }
  9962. }
  9963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9965. private void InitAdapter() {
  9966. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9967. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9968. tableMapping.SourceTable = "Table";
  9969. tableMapping.DataSetTable = "ServicePhoto";
  9970. tableMapping.ColumnMappings.Add("ID", "ID");
  9971. tableMapping.ColumnMappings.Add("ServiceID", "ServiceID");
  9972. tableMapping.ColumnMappings.Add("PhotoPath", "PhotoPath");
  9973. this._adapter.TableMappings.Add(tableMapping);
  9974. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9975. this._adapter.DeleteCommand.Connection = this.Connection;
  9976. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ServicePhoto] WHERE (([ID] = @Original_ID) AND ([ServiceID] = " +
  9977. "@Original_ServiceID) AND ([PhotoPath] = @Original_PhotoPath))";
  9978. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9979. 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, "", "", ""));
  9980. 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, "", "", ""));
  9981. 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, "", "", ""));
  9982. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9983. this._adapter.InsertCommand.Connection = this.Connection;
  9984. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ServicePhoto] ([ServiceID], [PhotoPath]) VALUES (@ServiceID, @" +
  9985. "PhotoPath);\r\nSELECT ID, ServiceID, PhotoPath FROM ServicePhoto WHERE (ID = SCOPE" +
  9986. "_IDENTITY())";
  9987. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9988. 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, "", "", ""));
  9989. 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, "", "", ""));
  9990. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9991. this._adapter.UpdateCommand.Connection = this.Connection;
  9992. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ServicePhoto] SET [ServiceID] = @ServiceID, [PhotoPath] = @PhotoPath WHERE (([ID] = @Original_ID) AND ([ServiceID] = @Original_ServiceID) AND ([PhotoPath] = @Original_PhotoPath));
  9993. SELECT ID, ServiceID, PhotoPath FROM ServicePhoto WHERE (ID = @ID)";
  9994. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9995. 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, "", "", ""));
  9996. 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, "", "", ""));
  9997. 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, "", "", ""));
  9998. 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, "", "", ""));
  9999. 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, "", "", ""));
  10000. 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, "", "", ""));
  10001. }
  10002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10004. private void InitConnection() {
  10005. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10006. this._connection.ConnectionString = global::BB_Grishina.Properties.Settings.Default.BB_GrishinaConnectionString;
  10007. }
  10008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10010. private void InitCommandCollection() {
  10011. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10012. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10013. this._commandCollection[0].Connection = this.Connection;
  10014. this._commandCollection[0].CommandText = "SELECT ID, ServiceID, PhotoPath FROM dbo.ServicePhoto";
  10015. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10016. }
  10017. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10019. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10020. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10021. public virtual int Fill(BB_GrishinaDataSet.ServicePhotoDataTable dataTable) {
  10022. this.Adapter.SelectCommand = this.CommandCollection[0];
  10023. if ((this.ClearBeforeFill == true)) {
  10024. dataTable.Clear();
  10025. }
  10026. int returnValue = this.Adapter.Fill(dataTable);
  10027. return returnValue;
  10028. }
  10029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10031. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10032. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10033. public virtual BB_GrishinaDataSet.ServicePhotoDataTable GetData() {
  10034. this.Adapter.SelectCommand = this.CommandCollection[0];
  10035. BB_GrishinaDataSet.ServicePhotoDataTable dataTable = new BB_GrishinaDataSet.ServicePhotoDataTable();
  10036. this.Adapter.Fill(dataTable);
  10037. return dataTable;
  10038. }
  10039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10041. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10042. public virtual int Update(BB_GrishinaDataSet.ServicePhotoDataTable dataTable) {
  10043. return this.Adapter.Update(dataTable);
  10044. }
  10045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10047. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10048. public virtual int Update(BB_GrishinaDataSet dataSet) {
  10049. return this.Adapter.Update(dataSet, "ServicePhoto");
  10050. }
  10051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10053. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10054. public virtual int Update(global::System.Data.DataRow dataRow) {
  10055. return this.Adapter.Update(new global::System.Data.DataRow[] {
  10056. dataRow});
  10057. }
  10058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10060. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10061. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  10062. return this.Adapter.Update(dataRows);
  10063. }
  10064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10066. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10067. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  10068. public virtual int Delete(int Original_ID, int Original_ServiceID, string Original_PhotoPath) {
  10069. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  10070. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ServiceID));
  10071. if ((Original_PhotoPath == null)) {
  10072. throw new global::System.ArgumentNullException("Original_PhotoPath");
  10073. }
  10074. else {
  10075. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_PhotoPath));
  10076. }
  10077. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  10078. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10079. != global::System.Data.ConnectionState.Open)) {
  10080. this.Adapter.DeleteCommand.Connection.Open();
  10081. }
  10082. try {
  10083. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  10084. return returnValue;
  10085. }
  10086. finally {
  10087. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10088. this.Adapter.DeleteCommand.Connection.Close();
  10089. }
  10090. }
  10091. }
  10092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10094. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10095. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10096. public virtual int Insert(int ServiceID, string PhotoPath) {
  10097. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ServiceID));
  10098. if ((PhotoPath == null)) {
  10099. throw new global::System.ArgumentNullException("PhotoPath");
  10100. }
  10101. else {
  10102. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(PhotoPath));
  10103. }
  10104. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10105. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10106. != global::System.Data.ConnectionState.Open)) {
  10107. this.Adapter.InsertCommand.Connection.Open();
  10108. }
  10109. try {
  10110. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10111. return returnValue;
  10112. }
  10113. finally {
  10114. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10115. this.Adapter.InsertCommand.Connection.Close();
  10116. }
  10117. }
  10118. }
  10119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10121. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10122. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10123. public virtual int Update(int ServiceID, string PhotoPath, int Original_ID, int Original_ServiceID, string Original_PhotoPath, int ID) {
  10124. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ServiceID));
  10125. if ((PhotoPath == null)) {
  10126. throw new global::System.ArgumentNullException("PhotoPath");
  10127. }
  10128. else {
  10129. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(PhotoPath));
  10130. }
  10131. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  10132. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ServiceID));
  10133. if ((Original_PhotoPath == null)) {
  10134. throw new global::System.ArgumentNullException("Original_PhotoPath");
  10135. }
  10136. else {
  10137. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_PhotoPath));
  10138. }
  10139. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  10140. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10141. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10142. != global::System.Data.ConnectionState.Open)) {
  10143. this.Adapter.UpdateCommand.Connection.Open();
  10144. }
  10145. try {
  10146. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10147. return returnValue;
  10148. }
  10149. finally {
  10150. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10151. this.Adapter.UpdateCommand.Connection.Close();
  10152. }
  10153. }
  10154. }
  10155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10157. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10158. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10159. public virtual int Update(int ServiceID, string PhotoPath, int Original_ID, int Original_ServiceID, string Original_PhotoPath) {
  10160. return this.Update(ServiceID, PhotoPath, Original_ID, Original_ServiceID, Original_PhotoPath, Original_ID);
  10161. }
  10162. }
  10163. /// <summary>
  10164. ///Represents the connection and commands used to retrieve and save data.
  10165. ///</summary>
  10166. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10167. [global::System.ComponentModel.ToolboxItem(true)]
  10168. [global::System.ComponentModel.DataObjectAttribute(true)]
  10169. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  10170. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10171. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10172. public partial class TagTableAdapter : global::System.ComponentModel.Component {
  10173. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  10174. private global::System.Data.SqlClient.SqlConnection _connection;
  10175. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10176. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10177. private bool _clearBeforeFill;
  10178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10180. public TagTableAdapter() {
  10181. this.ClearBeforeFill = true;
  10182. }
  10183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10185. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10186. get {
  10187. if ((this._adapter == null)) {
  10188. this.InitAdapter();
  10189. }
  10190. return this._adapter;
  10191. }
  10192. }
  10193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10195. internal global::System.Data.SqlClient.SqlConnection Connection {
  10196. get {
  10197. if ((this._connection == null)) {
  10198. this.InitConnection();
  10199. }
  10200. return this._connection;
  10201. }
  10202. set {
  10203. this._connection = value;
  10204. if ((this.Adapter.InsertCommand != null)) {
  10205. this.Adapter.InsertCommand.Connection = value;
  10206. }
  10207. if ((this.Adapter.DeleteCommand != null)) {
  10208. this.Adapter.DeleteCommand.Connection = value;
  10209. }
  10210. if ((this.Adapter.UpdateCommand != null)) {
  10211. this.Adapter.UpdateCommand.Connection = value;
  10212. }
  10213. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10214. if ((this.CommandCollection[i] != null)) {
  10215. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10216. }
  10217. }
  10218. }
  10219. }
  10220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10222. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10223. get {
  10224. return this._transaction;
  10225. }
  10226. set {
  10227. this._transaction = value;
  10228. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10229. this.CommandCollection[i].Transaction = this._transaction;
  10230. }
  10231. if (((this.Adapter != null)
  10232. && (this.Adapter.DeleteCommand != null))) {
  10233. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10234. }
  10235. if (((this.Adapter != null)
  10236. && (this.Adapter.InsertCommand != null))) {
  10237. this.Adapter.InsertCommand.Transaction = this._transaction;
  10238. }
  10239. if (((this.Adapter != null)
  10240. && (this.Adapter.UpdateCommand != null))) {
  10241. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10242. }
  10243. }
  10244. }
  10245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10247. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10248. get {
  10249. if ((this._commandCollection == null)) {
  10250. this.InitCommandCollection();
  10251. }
  10252. return this._commandCollection;
  10253. }
  10254. }
  10255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10257. public bool ClearBeforeFill {
  10258. get {
  10259. return this._clearBeforeFill;
  10260. }
  10261. set {
  10262. this._clearBeforeFill = value;
  10263. }
  10264. }
  10265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10267. private void InitAdapter() {
  10268. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10269. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10270. tableMapping.SourceTable = "Table";
  10271. tableMapping.DataSetTable = "Tag";
  10272. tableMapping.ColumnMappings.Add("ID", "ID");
  10273. tableMapping.ColumnMappings.Add("Title", "Title");
  10274. tableMapping.ColumnMappings.Add("Color", "Color");
  10275. this._adapter.TableMappings.Add(tableMapping);
  10276. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  10277. this._adapter.DeleteCommand.Connection = this.Connection;
  10278. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Tag] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Tit" +
  10279. "le) AND ([Color] = @Original_Color))";
  10280. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  10281. 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, "", "", ""));
  10282. 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, "", "", ""));
  10283. 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, "", "", ""));
  10284. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  10285. this._adapter.InsertCommand.Connection = this.Connection;
  10286. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Tag] ([Title], [Color]) VALUES (@Title, @Color);\r\nSELECT ID, T" +
  10287. "itle, Color FROM Tag WHERE (ID = SCOPE_IDENTITY())";
  10288. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  10289. 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, "", "", ""));
  10290. 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, "", "", ""));
  10291. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  10292. this._adapter.UpdateCommand.Connection = this.Connection;
  10293. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Tag] SET [Title] = @Title, [Color] = @Color WHERE (([ID] = @Origina" +
  10294. "l_ID) AND ([Title] = @Original_Title) AND ([Color] = @Original_Color));\r\nSELECT " +
  10295. "ID, Title, Color FROM Tag WHERE (ID = @ID)";
  10296. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  10297. 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, "", "", ""));
  10298. 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, "", "", ""));
  10299. 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, "", "", ""));
  10300. 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, "", "", ""));
  10301. 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, "", "", ""));
  10302. 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, "", "", ""));
  10303. }
  10304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10306. private void InitConnection() {
  10307. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10308. this._connection.ConnectionString = global::BB_Grishina.Properties.Settings.Default.BB_GrishinaConnectionString;
  10309. }
  10310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10312. private void InitCommandCollection() {
  10313. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10314. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10315. this._commandCollection[0].Connection = this.Connection;
  10316. this._commandCollection[0].CommandText = "SELECT ID, Title, Color FROM dbo.Tag";
  10317. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10318. }
  10319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10321. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10322. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10323. public virtual int Fill(BB_GrishinaDataSet.TagDataTable dataTable) {
  10324. this.Adapter.SelectCommand = this.CommandCollection[0];
  10325. if ((this.ClearBeforeFill == true)) {
  10326. dataTable.Clear();
  10327. }
  10328. int returnValue = this.Adapter.Fill(dataTable);
  10329. return returnValue;
  10330. }
  10331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10332. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10333. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10334. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10335. public virtual BB_GrishinaDataSet.TagDataTable GetData() {
  10336. this.Adapter.SelectCommand = this.CommandCollection[0];
  10337. BB_GrishinaDataSet.TagDataTable dataTable = new BB_GrishinaDataSet.TagDataTable();
  10338. this.Adapter.Fill(dataTable);
  10339. return dataTable;
  10340. }
  10341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10343. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10344. public virtual int Update(BB_GrishinaDataSet.TagDataTable dataTable) {
  10345. return this.Adapter.Update(dataTable);
  10346. }
  10347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10349. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10350. public virtual int Update(BB_GrishinaDataSet dataSet) {
  10351. return this.Adapter.Update(dataSet, "Tag");
  10352. }
  10353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10354. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10355. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10356. public virtual int Update(global::System.Data.DataRow dataRow) {
  10357. return this.Adapter.Update(new global::System.Data.DataRow[] {
  10358. dataRow});
  10359. }
  10360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10362. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10363. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  10364. return this.Adapter.Update(dataRows);
  10365. }
  10366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10367. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10368. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10369. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  10370. public virtual int Delete(int Original_ID, string Original_Title, string Original_Color) {
  10371. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  10372. if ((Original_Title == null)) {
  10373. throw new global::System.ArgumentNullException("Original_Title");
  10374. }
  10375. else {
  10376. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  10377. }
  10378. if ((Original_Color == null)) {
  10379. throw new global::System.ArgumentNullException("Original_Color");
  10380. }
  10381. else {
  10382. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Color));
  10383. }
  10384. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  10385. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10386. != global::System.Data.ConnectionState.Open)) {
  10387. this.Adapter.DeleteCommand.Connection.Open();
  10388. }
  10389. try {
  10390. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  10391. return returnValue;
  10392. }
  10393. finally {
  10394. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10395. this.Adapter.DeleteCommand.Connection.Close();
  10396. }
  10397. }
  10398. }
  10399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10401. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10402. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10403. public virtual int Insert(string Title, string Color) {
  10404. if ((Title == null)) {
  10405. throw new global::System.ArgumentNullException("Title");
  10406. }
  10407. else {
  10408. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  10409. }
  10410. if ((Color == null)) {
  10411. throw new global::System.ArgumentNullException("Color");
  10412. }
  10413. else {
  10414. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Color));
  10415. }
  10416. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10417. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10418. != global::System.Data.ConnectionState.Open)) {
  10419. this.Adapter.InsertCommand.Connection.Open();
  10420. }
  10421. try {
  10422. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10423. return returnValue;
  10424. }
  10425. finally {
  10426. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10427. this.Adapter.InsertCommand.Connection.Close();
  10428. }
  10429. }
  10430. }
  10431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10433. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10434. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10435. public virtual int Update(string Title, string Color, int Original_ID, string Original_Title, string Original_Color, int ID) {
  10436. if ((Title == null)) {
  10437. throw new global::System.ArgumentNullException("Title");
  10438. }
  10439. else {
  10440. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  10441. }
  10442. if ((Color == null)) {
  10443. throw new global::System.ArgumentNullException("Color");
  10444. }
  10445. else {
  10446. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Color));
  10447. }
  10448. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  10449. if ((Original_Title == null)) {
  10450. throw new global::System.ArgumentNullException("Original_Title");
  10451. }
  10452. else {
  10453. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Title));
  10454. }
  10455. if ((Original_Color == null)) {
  10456. throw new global::System.ArgumentNullException("Original_Color");
  10457. }
  10458. else {
  10459. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Color));
  10460. }
  10461. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  10462. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10463. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10464. != global::System.Data.ConnectionState.Open)) {
  10465. this.Adapter.UpdateCommand.Connection.Open();
  10466. }
  10467. try {
  10468. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10469. return returnValue;
  10470. }
  10471. finally {
  10472. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10473. this.Adapter.UpdateCommand.Connection.Close();
  10474. }
  10475. }
  10476. }
  10477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10479. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10480. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10481. public virtual int Update(string Title, string Color, int Original_ID, string Original_Title, string Original_Color) {
  10482. return this.Update(Title, Color, Original_ID, Original_Title, Original_Color, Original_ID);
  10483. }
  10484. }
  10485. /// <summary>
  10486. ///Represents the connection and commands used to retrieve and save data.
  10487. ///</summary>
  10488. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10489. [global::System.ComponentModel.ToolboxItem(true)]
  10490. [global::System.ComponentModel.DataObjectAttribute(true)]
  10491. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  10492. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10493. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10494. public partial class TagOfClientTableAdapter : global::System.ComponentModel.Component {
  10495. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  10496. private global::System.Data.SqlClient.SqlConnection _connection;
  10497. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10498. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10499. private bool _clearBeforeFill;
  10500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10502. public TagOfClientTableAdapter() {
  10503. this.ClearBeforeFill = true;
  10504. }
  10505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10507. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10508. get {
  10509. if ((this._adapter == null)) {
  10510. this.InitAdapter();
  10511. }
  10512. return this._adapter;
  10513. }
  10514. }
  10515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10516. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10517. internal global::System.Data.SqlClient.SqlConnection Connection {
  10518. get {
  10519. if ((this._connection == null)) {
  10520. this.InitConnection();
  10521. }
  10522. return this._connection;
  10523. }
  10524. set {
  10525. this._connection = value;
  10526. if ((this.Adapter.InsertCommand != null)) {
  10527. this.Adapter.InsertCommand.Connection = value;
  10528. }
  10529. if ((this.Adapter.DeleteCommand != null)) {
  10530. this.Adapter.DeleteCommand.Connection = value;
  10531. }
  10532. if ((this.Adapter.UpdateCommand != null)) {
  10533. this.Adapter.UpdateCommand.Connection = value;
  10534. }
  10535. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10536. if ((this.CommandCollection[i] != null)) {
  10537. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10538. }
  10539. }
  10540. }
  10541. }
  10542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10544. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10545. get {
  10546. return this._transaction;
  10547. }
  10548. set {
  10549. this._transaction = value;
  10550. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10551. this.CommandCollection[i].Transaction = this._transaction;
  10552. }
  10553. if (((this.Adapter != null)
  10554. && (this.Adapter.DeleteCommand != null))) {
  10555. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10556. }
  10557. if (((this.Adapter != null)
  10558. && (this.Adapter.InsertCommand != null))) {
  10559. this.Adapter.InsertCommand.Transaction = this._transaction;
  10560. }
  10561. if (((this.Adapter != null)
  10562. && (this.Adapter.UpdateCommand != null))) {
  10563. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10564. }
  10565. }
  10566. }
  10567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10569. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10570. get {
  10571. if ((this._commandCollection == null)) {
  10572. this.InitCommandCollection();
  10573. }
  10574. return this._commandCollection;
  10575. }
  10576. }
  10577. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10578. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10579. public bool ClearBeforeFill {
  10580. get {
  10581. return this._clearBeforeFill;
  10582. }
  10583. set {
  10584. this._clearBeforeFill = value;
  10585. }
  10586. }
  10587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10589. private void InitAdapter() {
  10590. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10591. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10592. tableMapping.SourceTable = "Table";
  10593. tableMapping.DataSetTable = "TagOfClient";
  10594. tableMapping.ColumnMappings.Add("ClientID", "ClientID");
  10595. tableMapping.ColumnMappings.Add("TagID", "TagID");
  10596. this._adapter.TableMappings.Add(tableMapping);
  10597. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  10598. this._adapter.DeleteCommand.Connection = this.Connection;
  10599. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[TagOfClient] WHERE (([ClientID] = @Original_ClientID) AND ([Ta" +
  10600. "gID] = @Original_TagID))";
  10601. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  10602. 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, "", "", ""));
  10603. 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, "", "", ""));
  10604. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  10605. this._adapter.InsertCommand.Connection = this.Connection;
  10606. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[TagOfClient] ([ClientID], [TagID]) VALUES (@ClientID, @TagID);" +
  10607. "\r\nSELECT ClientID, TagID FROM TagOfClient WHERE (ClientID = @ClientID) AND (TagI" +
  10608. "D = @TagID)";
  10609. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  10610. 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, "", "", ""));
  10611. 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, "", "", ""));
  10612. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  10613. this._adapter.UpdateCommand.Connection = this.Connection;
  10614. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[TagOfClient] SET [ClientID] = @ClientID, [TagID] = @TagID WHERE (([" +
  10615. "ClientID] = @Original_ClientID) AND ([TagID] = @Original_TagID));\r\nSELECT Client" +
  10616. "ID, TagID FROM TagOfClient WHERE (ClientID = @ClientID) AND (TagID = @TagID)";
  10617. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  10618. 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, "", "", ""));
  10619. 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, "", "", ""));
  10620. 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, "", "", ""));
  10621. 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, "", "", ""));
  10622. }
  10623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10625. private void InitConnection() {
  10626. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10627. this._connection.ConnectionString = global::BB_Grishina.Properties.Settings.Default.BB_GrishinaConnectionString;
  10628. }
  10629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10631. private void InitCommandCollection() {
  10632. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10633. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10634. this._commandCollection[0].Connection = this.Connection;
  10635. this._commandCollection[0].CommandText = "SELECT ClientID, TagID FROM dbo.TagOfClient";
  10636. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10637. }
  10638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10640. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10641. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10642. public virtual int Fill(BB_GrishinaDataSet.TagOfClientDataTable dataTable) {
  10643. this.Adapter.SelectCommand = this.CommandCollection[0];
  10644. if ((this.ClearBeforeFill == true)) {
  10645. dataTable.Clear();
  10646. }
  10647. int returnValue = this.Adapter.Fill(dataTable);
  10648. return returnValue;
  10649. }
  10650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10652. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10653. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10654. public virtual BB_GrishinaDataSet.TagOfClientDataTable GetData() {
  10655. this.Adapter.SelectCommand = this.CommandCollection[0];
  10656. BB_GrishinaDataSet.TagOfClientDataTable dataTable = new BB_GrishinaDataSet.TagOfClientDataTable();
  10657. this.Adapter.Fill(dataTable);
  10658. return dataTable;
  10659. }
  10660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10662. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10663. public virtual int Update(BB_GrishinaDataSet.TagOfClientDataTable dataTable) {
  10664. return this.Adapter.Update(dataTable);
  10665. }
  10666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10668. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10669. public virtual int Update(BB_GrishinaDataSet dataSet) {
  10670. return this.Adapter.Update(dataSet, "TagOfClient");
  10671. }
  10672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10674. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10675. public virtual int Update(global::System.Data.DataRow dataRow) {
  10676. return this.Adapter.Update(new global::System.Data.DataRow[] {
  10677. dataRow});
  10678. }
  10679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10681. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10682. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  10683. return this.Adapter.Update(dataRows);
  10684. }
  10685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10687. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10688. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  10689. public virtual int Delete(int Original_ClientID, int Original_TagID) {
  10690. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ClientID));
  10691. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_TagID));
  10692. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  10693. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10694. != global::System.Data.ConnectionState.Open)) {
  10695. this.Adapter.DeleteCommand.Connection.Open();
  10696. }
  10697. try {
  10698. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  10699. return returnValue;
  10700. }
  10701. finally {
  10702. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10703. this.Adapter.DeleteCommand.Connection.Close();
  10704. }
  10705. }
  10706. }
  10707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10709. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10710. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10711. public virtual int Insert(int ClientID, int TagID) {
  10712. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ClientID));
  10713. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(TagID));
  10714. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10715. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10716. != global::System.Data.ConnectionState.Open)) {
  10717. this.Adapter.InsertCommand.Connection.Open();
  10718. }
  10719. try {
  10720. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10721. return returnValue;
  10722. }
  10723. finally {
  10724. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10725. this.Adapter.InsertCommand.Connection.Close();
  10726. }
  10727. }
  10728. }
  10729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10731. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10732. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10733. public virtual int Update(int ClientID, int TagID, int Original_ClientID, int Original_TagID) {
  10734. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ClientID));
  10735. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(TagID));
  10736. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ClientID));
  10737. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_TagID));
  10738. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10739. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10740. != global::System.Data.ConnectionState.Open)) {
  10741. this.Adapter.UpdateCommand.Connection.Open();
  10742. }
  10743. try {
  10744. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10745. return returnValue;
  10746. }
  10747. finally {
  10748. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10749. this.Adapter.UpdateCommand.Connection.Close();
  10750. }
  10751. }
  10752. }
  10753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10755. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10756. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10757. public virtual int Update(int Original_ClientID, int Original_TagID) {
  10758. return this.Update(Original_ClientID, Original_TagID, Original_ClientID, Original_TagID);
  10759. }
  10760. }
  10761. /// <summary>
  10762. ///Represents the connection and commands used to retrieve and save data.
  10763. ///</summary>
  10764. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10765. [global::System.ComponentModel.ToolboxItem(true)]
  10766. [global::System.ComponentModel.DataObjectAttribute(true)]
  10767. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  10768. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10769. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10770. public partial class АвторизацияTableAdapter : global::System.ComponentModel.Component {
  10771. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  10772. private global::System.Data.SqlClient.SqlConnection _connection;
  10773. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10774. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10775. private bool _clearBeforeFill;
  10776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10778. public АвторизацияTableAdapter() {
  10779. this.ClearBeforeFill = true;
  10780. }
  10781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10783. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10784. get {
  10785. if ((this._adapter == null)) {
  10786. this.InitAdapter();
  10787. }
  10788. return this._adapter;
  10789. }
  10790. }
  10791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10793. internal global::System.Data.SqlClient.SqlConnection Connection {
  10794. get {
  10795. if ((this._connection == null)) {
  10796. this.InitConnection();
  10797. }
  10798. return this._connection;
  10799. }
  10800. set {
  10801. this._connection = value;
  10802. if ((this.Adapter.InsertCommand != null)) {
  10803. this.Adapter.InsertCommand.Connection = value;
  10804. }
  10805. if ((this.Adapter.DeleteCommand != null)) {
  10806. this.Adapter.DeleteCommand.Connection = value;
  10807. }
  10808. if ((this.Adapter.UpdateCommand != null)) {
  10809. this.Adapter.UpdateCommand.Connection = value;
  10810. }
  10811. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10812. if ((this.CommandCollection[i] != null)) {
  10813. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10814. }
  10815. }
  10816. }
  10817. }
  10818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10820. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10821. get {
  10822. return this._transaction;
  10823. }
  10824. set {
  10825. this._transaction = value;
  10826. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10827. this.CommandCollection[i].Transaction = this._transaction;
  10828. }
  10829. if (((this.Adapter != null)
  10830. && (this.Adapter.DeleteCommand != null))) {
  10831. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10832. }
  10833. if (((this.Adapter != null)
  10834. && (this.Adapter.InsertCommand != null))) {
  10835. this.Adapter.InsertCommand.Transaction = this._transaction;
  10836. }
  10837. if (((this.Adapter != null)
  10838. && (this.Adapter.UpdateCommand != null))) {
  10839. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10840. }
  10841. }
  10842. }
  10843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10845. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10846. get {
  10847. if ((this._commandCollection == null)) {
  10848. this.InitCommandCollection();
  10849. }
  10850. return this._commandCollection;
  10851. }
  10852. }
  10853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10855. public bool ClearBeforeFill {
  10856. get {
  10857. return this._clearBeforeFill;
  10858. }
  10859. set {
  10860. this._clearBeforeFill = value;
  10861. }
  10862. }
  10863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10865. private void InitAdapter() {
  10866. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10867. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10868. tableMapping.SourceTable = "Table";
  10869. tableMapping.DataSetTable = "Авторизация";
  10870. tableMapping.ColumnMappings.Add("Логин", "Логин");
  10871. tableMapping.ColumnMappings.Add("Пароль", "Пароль");
  10872. this._adapter.TableMappings.Add(tableMapping);
  10873. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  10874. this._adapter.InsertCommand.Connection = this.Connection;
  10875. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Авторизация] ([Логин], [Пароль]) VALUES (@Логин, @Пароль)";
  10876. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  10877. 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, "", "", ""));
  10878. 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, "", "", ""));
  10879. }
  10880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10881. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10882. private void InitConnection() {
  10883. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10884. this._connection.ConnectionString = global::BB_Grishina.Properties.Settings.Default.BB_GrishinaConnectionString;
  10885. }
  10886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10888. private void InitCommandCollection() {
  10889. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10890. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10891. this._commandCollection[0].Connection = this.Connection;
  10892. this._commandCollection[0].CommandText = "SELECT Логин, Пароль FROM dbo.Авторизация";
  10893. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10894. }
  10895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10897. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10898. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10899. public virtual int Fill(BB_GrishinaDataSet.АвторизацияDataTable dataTable) {
  10900. this.Adapter.SelectCommand = this.CommandCollection[0];
  10901. if ((this.ClearBeforeFill == true)) {
  10902. dataTable.Clear();
  10903. }
  10904. int returnValue = this.Adapter.Fill(dataTable);
  10905. return returnValue;
  10906. }
  10907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10909. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10910. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10911. public virtual BB_GrishinaDataSet.АвторизацияDataTable GetData() {
  10912. this.Adapter.SelectCommand = this.CommandCollection[0];
  10913. BB_GrishinaDataSet.АвторизацияDataTable dataTable = new BB_GrishinaDataSet.АвторизацияDataTable();
  10914. this.Adapter.Fill(dataTable);
  10915. return dataTable;
  10916. }
  10917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10919. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10920. public virtual int Update(BB_GrishinaDataSet.АвторизацияDataTable dataTable) {
  10921. return this.Adapter.Update(dataTable);
  10922. }
  10923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10925. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10926. public virtual int Update(BB_GrishinaDataSet dataSet) {
  10927. return this.Adapter.Update(dataSet, "Авторизация");
  10928. }
  10929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10931. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10932. public virtual int Update(global::System.Data.DataRow dataRow) {
  10933. return this.Adapter.Update(new global::System.Data.DataRow[] {
  10934. dataRow});
  10935. }
  10936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10938. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10939. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  10940. return this.Adapter.Update(dataRows);
  10941. }
  10942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10944. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10945. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10946. public virtual int Insert(global::System.Nullable<int> Логин, global::System.Nullable<int> Пароль) {
  10947. if ((Логин.HasValue == true)) {
  10948. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Логин.Value));
  10949. }
  10950. else {
  10951. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  10952. }
  10953. if ((Пароль.HasValue == true)) {
  10954. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(Пароль.Value));
  10955. }
  10956. else {
  10957. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  10958. }
  10959. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10960. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10961. != global::System.Data.ConnectionState.Open)) {
  10962. this.Adapter.InsertCommand.Connection.Open();
  10963. }
  10964. try {
  10965. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10966. return returnValue;
  10967. }
  10968. finally {
  10969. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10970. this.Adapter.InsertCommand.Connection.Close();
  10971. }
  10972. }
  10973. }
  10974. }
  10975. /// <summary>
  10976. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  10977. ///</summary>
  10978. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10979. [global::System.ComponentModel.ToolboxItem(true)]
  10980. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  10981. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10982. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  10983. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  10984. private UpdateOrderOption _updateOrder;
  10985. private AttachedProductTableAdapter _attachedProductTableAdapter;
  10986. private ClientTableAdapter _clientTableAdapter;
  10987. private ClientServiceTableAdapter _clientServiceTableAdapter;
  10988. private DocumentByServiceTableAdapter _documentByServiceTableAdapter;
  10989. private GenderTableAdapter _genderTableAdapter;
  10990. private ManufacturerTableAdapter _manufacturerTableAdapter;
  10991. private ProductTableAdapter _productTableAdapter;
  10992. private ProductPhotoTableAdapter _productPhotoTableAdapter;
  10993. private ProductSaleTableAdapter _productSaleTableAdapter;
  10994. private ServiceTableAdapter _serviceTableAdapter;
  10995. private ServicePhotoTableAdapter _servicePhotoTableAdapter;
  10996. private TagTableAdapter _tagTableAdapter;
  10997. private TagOfClientTableAdapter _tagOfClientTableAdapter;
  10998. private АвторизацияTableAdapter _авторизацияTableAdapter;
  10999. private bool _backupDataSetBeforeUpdate;
  11000. private global::System.Data.IDbConnection _connection;
  11001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11003. public UpdateOrderOption UpdateOrder {
  11004. get {
  11005. return this._updateOrder;
  11006. }
  11007. set {
  11008. this._updateOrder = value;
  11009. }
  11010. }
  11011. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11012. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11013. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  11014. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  11015. "a", "System.Drawing.Design.UITypeEditor")]
  11016. public AttachedProductTableAdapter AttachedProductTableAdapter {
  11017. get {
  11018. return this._attachedProductTableAdapter;
  11019. }
  11020. set {
  11021. this._attachedProductTableAdapter = value;
  11022. }
  11023. }
  11024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11026. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  11027. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  11028. "a", "System.Drawing.Design.UITypeEditor")]
  11029. public ClientTableAdapter ClientTableAdapter {
  11030. get {
  11031. return this._clientTableAdapter;
  11032. }
  11033. set {
  11034. this._clientTableAdapter = value;
  11035. }
  11036. }
  11037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11039. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  11040. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  11041. "a", "System.Drawing.Design.UITypeEditor")]
  11042. public ClientServiceTableAdapter ClientServiceTableAdapter {
  11043. get {
  11044. return this._clientServiceTableAdapter;
  11045. }
  11046. set {
  11047. this._clientServiceTableAdapter = value;
  11048. }
  11049. }
  11050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11052. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  11053. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  11054. "a", "System.Drawing.Design.UITypeEditor")]
  11055. public DocumentByServiceTableAdapter DocumentByServiceTableAdapter {
  11056. get {
  11057. return this._documentByServiceTableAdapter;
  11058. }
  11059. set {
  11060. this._documentByServiceTableAdapter = value;
  11061. }
  11062. }
  11063. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11064. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11065. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  11066. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  11067. "a", "System.Drawing.Design.UITypeEditor")]
  11068. public GenderTableAdapter GenderTableAdapter {
  11069. get {
  11070. return this._genderTableAdapter;
  11071. }
  11072. set {
  11073. this._genderTableAdapter = value;
  11074. }
  11075. }
  11076. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11077. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11078. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  11079. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  11080. "a", "System.Drawing.Design.UITypeEditor")]
  11081. public ManufacturerTableAdapter ManufacturerTableAdapter {
  11082. get {
  11083. return this._manufacturerTableAdapter;
  11084. }
  11085. set {
  11086. this._manufacturerTableAdapter = value;
  11087. }
  11088. }
  11089. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11090. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11091. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  11092. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  11093. "a", "System.Drawing.Design.UITypeEditor")]
  11094. public ProductTableAdapter ProductTableAdapter {
  11095. get {
  11096. return this._productTableAdapter;
  11097. }
  11098. set {
  11099. this._productTableAdapter = value;
  11100. }
  11101. }
  11102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11103. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11104. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  11105. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  11106. "a", "System.Drawing.Design.UITypeEditor")]
  11107. public ProductPhotoTableAdapter ProductPhotoTableAdapter {
  11108. get {
  11109. return this._productPhotoTableAdapter;
  11110. }
  11111. set {
  11112. this._productPhotoTableAdapter = value;
  11113. }
  11114. }
  11115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11117. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  11118. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  11119. "a", "System.Drawing.Design.UITypeEditor")]
  11120. public ProductSaleTableAdapter ProductSaleTableAdapter {
  11121. get {
  11122. return this._productSaleTableAdapter;
  11123. }
  11124. set {
  11125. this._productSaleTableAdapter = value;
  11126. }
  11127. }
  11128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11130. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  11131. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  11132. "a", "System.Drawing.Design.UITypeEditor")]
  11133. public ServiceTableAdapter ServiceTableAdapter {
  11134. get {
  11135. return this._serviceTableAdapter;
  11136. }
  11137. set {
  11138. this._serviceTableAdapter = value;
  11139. }
  11140. }
  11141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11143. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  11144. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  11145. "a", "System.Drawing.Design.UITypeEditor")]
  11146. public ServicePhotoTableAdapter ServicePhotoTableAdapter {
  11147. get {
  11148. return this._servicePhotoTableAdapter;
  11149. }
  11150. set {
  11151. this._servicePhotoTableAdapter = value;
  11152. }
  11153. }
  11154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11156. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  11157. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  11158. "a", "System.Drawing.Design.UITypeEditor")]
  11159. public TagTableAdapter TagTableAdapter {
  11160. get {
  11161. return this._tagTableAdapter;
  11162. }
  11163. set {
  11164. this._tagTableAdapter = value;
  11165. }
  11166. }
  11167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11169. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  11170. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  11171. "a", "System.Drawing.Design.UITypeEditor")]
  11172. public TagOfClientTableAdapter TagOfClientTableAdapter {
  11173. get {
  11174. return this._tagOfClientTableAdapter;
  11175. }
  11176. set {
  11177. this._tagOfClientTableAdapter = value;
  11178. }
  11179. }
  11180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11182. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  11183. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  11184. "a", "System.Drawing.Design.UITypeEditor")]
  11185. public АвторизацияTableAdapter АвторизацияTableAdapter {
  11186. get {
  11187. return this._авторизацияTableAdapter;
  11188. }
  11189. set {
  11190. this._авторизацияTableAdapter = value;
  11191. }
  11192. }
  11193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11195. public bool BackupDataSetBeforeUpdate {
  11196. get {
  11197. return this._backupDataSetBeforeUpdate;
  11198. }
  11199. set {
  11200. this._backupDataSetBeforeUpdate = value;
  11201. }
  11202. }
  11203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11205. [global::System.ComponentModel.Browsable(false)]
  11206. public global::System.Data.IDbConnection Connection {
  11207. get {
  11208. if ((this._connection != null)) {
  11209. return this._connection;
  11210. }
  11211. if (((this._attachedProductTableAdapter != null)
  11212. && (this._attachedProductTableAdapter.Connection != null))) {
  11213. return this._attachedProductTableAdapter.Connection;
  11214. }
  11215. if (((this._clientTableAdapter != null)
  11216. && (this._clientTableAdapter.Connection != null))) {
  11217. return this._clientTableAdapter.Connection;
  11218. }
  11219. if (((this._clientServiceTableAdapter != null)
  11220. && (this._clientServiceTableAdapter.Connection != null))) {
  11221. return this._clientServiceTableAdapter.Connection;
  11222. }
  11223. if (((this._documentByServiceTableAdapter != null)
  11224. && (this._documentByServiceTableAdapter.Connection != null))) {
  11225. return this._documentByServiceTableAdapter.Connection;
  11226. }
  11227. if (((this._genderTableAdapter != null)
  11228. && (this._genderTableAdapter.Connection != null))) {
  11229. return this._genderTableAdapter.Connection;
  11230. }
  11231. if (((this._manufacturerTableAdapter != null)
  11232. && (this._manufacturerTableAdapter.Connection != null))) {
  11233. return this._manufacturerTableAdapter.Connection;
  11234. }
  11235. if (((this._productTableAdapter != null)
  11236. && (this._productTableAdapter.Connection != null))) {
  11237. return this._productTableAdapter.Connection;
  11238. }
  11239. if (((this._productPhotoTableAdapter != null)
  11240. && (this._productPhotoTableAdapter.Connection != null))) {
  11241. return this._productPhotoTableAdapter.Connection;
  11242. }
  11243. if (((this._productSaleTableAdapter != null)
  11244. && (this._productSaleTableAdapter.Connection != null))) {
  11245. return this._productSaleTableAdapter.Connection;
  11246. }
  11247. if (((this._serviceTableAdapter != null)
  11248. && (this._serviceTableAdapter.Connection != null))) {
  11249. return this._serviceTableAdapter.Connection;
  11250. }
  11251. if (((this._servicePhotoTableAdapter != null)
  11252. && (this._servicePhotoTableAdapter.Connection != null))) {
  11253. return this._servicePhotoTableAdapter.Connection;
  11254. }
  11255. if (((this._tagTableAdapter != null)
  11256. && (this._tagTableAdapter.Connection != null))) {
  11257. return this._tagTableAdapter.Connection;
  11258. }
  11259. if (((this._tagOfClientTableAdapter != null)
  11260. && (this._tagOfClientTableAdapter.Connection != null))) {
  11261. return this._tagOfClientTableAdapter.Connection;
  11262. }
  11263. if (((this._авторизацияTableAdapter != null)
  11264. && (this._авторизацияTableAdapter.Connection != null))) {
  11265. return this._авторизацияTableAdapter.Connection;
  11266. }
  11267. return null;
  11268. }
  11269. set {
  11270. this._connection = value;
  11271. }
  11272. }
  11273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11275. [global::System.ComponentModel.Browsable(false)]
  11276. public int TableAdapterInstanceCount {
  11277. get {
  11278. int count = 0;
  11279. if ((this._attachedProductTableAdapter != null)) {
  11280. count = (count + 1);
  11281. }
  11282. if ((this._clientTableAdapter != null)) {
  11283. count = (count + 1);
  11284. }
  11285. if ((this._clientServiceTableAdapter != null)) {
  11286. count = (count + 1);
  11287. }
  11288. if ((this._documentByServiceTableAdapter != null)) {
  11289. count = (count + 1);
  11290. }
  11291. if ((this._genderTableAdapter != null)) {
  11292. count = (count + 1);
  11293. }
  11294. if ((this._manufacturerTableAdapter != null)) {
  11295. count = (count + 1);
  11296. }
  11297. if ((this._productTableAdapter != null)) {
  11298. count = (count + 1);
  11299. }
  11300. if ((this._productPhotoTableAdapter != null)) {
  11301. count = (count + 1);
  11302. }
  11303. if ((this._productSaleTableAdapter != null)) {
  11304. count = (count + 1);
  11305. }
  11306. if ((this._serviceTableAdapter != null)) {
  11307. count = (count + 1);
  11308. }
  11309. if ((this._servicePhotoTableAdapter != null)) {
  11310. count = (count + 1);
  11311. }
  11312. if ((this._tagTableAdapter != null)) {
  11313. count = (count + 1);
  11314. }
  11315. if ((this._tagOfClientTableAdapter != null)) {
  11316. count = (count + 1);
  11317. }
  11318. if ((this._авторизацияTableAdapter != null)) {
  11319. count = (count + 1);
  11320. }
  11321. return count;
  11322. }
  11323. }
  11324. /// <summary>
  11325. ///Update rows in top-down order.
  11326. ///</summary>
  11327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11328. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11329. private int UpdateUpdatedRows(BB_GrishinaDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  11330. int result = 0;
  11331. if ((this._genderTableAdapter != null)) {
  11332. global::System.Data.DataRow[] updatedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11333. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11334. if (((updatedRows != null)
  11335. && (0 < updatedRows.Length))) {
  11336. result = (result + this._genderTableAdapter.Update(updatedRows));
  11337. allChangedRows.AddRange(updatedRows);
  11338. }
  11339. }
  11340. if ((this._clientTableAdapter != null)) {
  11341. global::System.Data.DataRow[] updatedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11342. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11343. if (((updatedRows != null)
  11344. && (0 < updatedRows.Length))) {
  11345. result = (result + this._clientTableAdapter.Update(updatedRows));
  11346. allChangedRows.AddRange(updatedRows);
  11347. }
  11348. }
  11349. if ((this._manufacturerTableAdapter != null)) {
  11350. global::System.Data.DataRow[] updatedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11351. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11352. if (((updatedRows != null)
  11353. && (0 < updatedRows.Length))) {
  11354. result = (result + this._manufacturerTableAdapter.Update(updatedRows));
  11355. allChangedRows.AddRange(updatedRows);
  11356. }
  11357. }
  11358. if ((this._serviceTableAdapter != null)) {
  11359. global::System.Data.DataRow[] updatedRows = dataSet.Service.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11360. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11361. if (((updatedRows != null)
  11362. && (0 < updatedRows.Length))) {
  11363. result = (result + this._serviceTableAdapter.Update(updatedRows));
  11364. allChangedRows.AddRange(updatedRows);
  11365. }
  11366. }
  11367. if ((this._clientServiceTableAdapter != null)) {
  11368. global::System.Data.DataRow[] updatedRows = dataSet.ClientService.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11369. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11370. if (((updatedRows != null)
  11371. && (0 < updatedRows.Length))) {
  11372. result = (result + this._clientServiceTableAdapter.Update(updatedRows));
  11373. allChangedRows.AddRange(updatedRows);
  11374. }
  11375. }
  11376. if ((this._productTableAdapter != null)) {
  11377. global::System.Data.DataRow[] updatedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11378. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11379. if (((updatedRows != null)
  11380. && (0 < updatedRows.Length))) {
  11381. result = (result + this._productTableAdapter.Update(updatedRows));
  11382. allChangedRows.AddRange(updatedRows);
  11383. }
  11384. }
  11385. if ((this._tagTableAdapter != null)) {
  11386. global::System.Data.DataRow[] updatedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11387. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11388. if (((updatedRows != null)
  11389. && (0 < updatedRows.Length))) {
  11390. result = (result + this._tagTableAdapter.Update(updatedRows));
  11391. allChangedRows.AddRange(updatedRows);
  11392. }
  11393. }
  11394. if ((this._attachedProductTableAdapter != null)) {
  11395. global::System.Data.DataRow[] updatedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11396. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11397. if (((updatedRows != null)
  11398. && (0 < updatedRows.Length))) {
  11399. result = (result + this._attachedProductTableAdapter.Update(updatedRows));
  11400. allChangedRows.AddRange(updatedRows);
  11401. }
  11402. }
  11403. if ((this._documentByServiceTableAdapter != null)) {
  11404. global::System.Data.DataRow[] updatedRows = dataSet.DocumentByService.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11405. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11406. if (((updatedRows != null)
  11407. && (0 < updatedRows.Length))) {
  11408. result = (result + this._documentByServiceTableAdapter.Update(updatedRows));
  11409. allChangedRows.AddRange(updatedRows);
  11410. }
  11411. }
  11412. if ((this._productPhotoTableAdapter != null)) {
  11413. global::System.Data.DataRow[] updatedRows = dataSet.ProductPhoto.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11414. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11415. if (((updatedRows != null)
  11416. && (0 < updatedRows.Length))) {
  11417. result = (result + this._productPhotoTableAdapter.Update(updatedRows));
  11418. allChangedRows.AddRange(updatedRows);
  11419. }
  11420. }
  11421. if ((this._productSaleTableAdapter != null)) {
  11422. global::System.Data.DataRow[] updatedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11423. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11424. if (((updatedRows != null)
  11425. && (0 < updatedRows.Length))) {
  11426. result = (result + this._productSaleTableAdapter.Update(updatedRows));
  11427. allChangedRows.AddRange(updatedRows);
  11428. }
  11429. }
  11430. if ((this._servicePhotoTableAdapter != null)) {
  11431. global::System.Data.DataRow[] updatedRows = dataSet.ServicePhoto.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11432. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11433. if (((updatedRows != null)
  11434. && (0 < updatedRows.Length))) {
  11435. result = (result + this._servicePhotoTableAdapter.Update(updatedRows));
  11436. allChangedRows.AddRange(updatedRows);
  11437. }
  11438. }
  11439. if ((this._tagOfClientTableAdapter != null)) {
  11440. global::System.Data.DataRow[] updatedRows = dataSet.TagOfClient.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11441. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11442. if (((updatedRows != null)
  11443. && (0 < updatedRows.Length))) {
  11444. result = (result + this._tagOfClientTableAdapter.Update(updatedRows));
  11445. allChangedRows.AddRange(updatedRows);
  11446. }
  11447. }
  11448. if ((this._авторизацияTableAdapter != null)) {
  11449. global::System.Data.DataRow[] updatedRows = dataSet.Авторизация.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11450. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11451. if (((updatedRows != null)
  11452. && (0 < updatedRows.Length))) {
  11453. result = (result + this._авторизацияTableAdapter.Update(updatedRows));
  11454. allChangedRows.AddRange(updatedRows);
  11455. }
  11456. }
  11457. return result;
  11458. }
  11459. /// <summary>
  11460. ///Insert rows in top-down order.
  11461. ///</summary>
  11462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11464. private int UpdateInsertedRows(BB_GrishinaDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  11465. int result = 0;
  11466. if ((this._genderTableAdapter != null)) {
  11467. global::System.Data.DataRow[] addedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.Added);
  11468. if (((addedRows != null)
  11469. && (0 < addedRows.Length))) {
  11470. result = (result + this._genderTableAdapter.Update(addedRows));
  11471. allAddedRows.AddRange(addedRows);
  11472. }
  11473. }
  11474. if ((this._clientTableAdapter != null)) {
  11475. global::System.Data.DataRow[] addedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.Added);
  11476. if (((addedRows != null)
  11477. && (0 < addedRows.Length))) {
  11478. result = (result + this._clientTableAdapter.Update(addedRows));
  11479. allAddedRows.AddRange(addedRows);
  11480. }
  11481. }
  11482. if ((this._manufacturerTableAdapter != null)) {
  11483. global::System.Data.DataRow[] addedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.Added);
  11484. if (((addedRows != null)
  11485. && (0 < addedRows.Length))) {
  11486. result = (result + this._manufacturerTableAdapter.Update(addedRows));
  11487. allAddedRows.AddRange(addedRows);
  11488. }
  11489. }
  11490. if ((this._serviceTableAdapter != null)) {
  11491. global::System.Data.DataRow[] addedRows = dataSet.Service.Select(null, null, global::System.Data.DataViewRowState.Added);
  11492. if (((addedRows != null)
  11493. && (0 < addedRows.Length))) {
  11494. result = (result + this._serviceTableAdapter.Update(addedRows));
  11495. allAddedRows.AddRange(addedRows);
  11496. }
  11497. }
  11498. if ((this._clientServiceTableAdapter != null)) {
  11499. global::System.Data.DataRow[] addedRows = dataSet.ClientService.Select(null, null, global::System.Data.DataViewRowState.Added);
  11500. if (((addedRows != null)
  11501. && (0 < addedRows.Length))) {
  11502. result = (result + this._clientServiceTableAdapter.Update(addedRows));
  11503. allAddedRows.AddRange(addedRows);
  11504. }
  11505. }
  11506. if ((this._productTableAdapter != null)) {
  11507. global::System.Data.DataRow[] addedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Added);
  11508. if (((addedRows != null)
  11509. && (0 < addedRows.Length))) {
  11510. result = (result + this._productTableAdapter.Update(addedRows));
  11511. allAddedRows.AddRange(addedRows);
  11512. }
  11513. }
  11514. if ((this._tagTableAdapter != null)) {
  11515. global::System.Data.DataRow[] addedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.Added);
  11516. if (((addedRows != null)
  11517. && (0 < addedRows.Length))) {
  11518. result = (result + this._tagTableAdapter.Update(addedRows));
  11519. allAddedRows.AddRange(addedRows);
  11520. }
  11521. }
  11522. if ((this._attachedProductTableAdapter != null)) {
  11523. global::System.Data.DataRow[] addedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.Added);
  11524. if (((addedRows != null)
  11525. && (0 < addedRows.Length))) {
  11526. result = (result + this._attachedProductTableAdapter.Update(addedRows));
  11527. allAddedRows.AddRange(addedRows);
  11528. }
  11529. }
  11530. if ((this._documentByServiceTableAdapter != null)) {
  11531. global::System.Data.DataRow[] addedRows = dataSet.DocumentByService.Select(null, null, global::System.Data.DataViewRowState.Added);
  11532. if (((addedRows != null)
  11533. && (0 < addedRows.Length))) {
  11534. result = (result + this._documentByServiceTableAdapter.Update(addedRows));
  11535. allAddedRows.AddRange(addedRows);
  11536. }
  11537. }
  11538. if ((this._productPhotoTableAdapter != null)) {
  11539. global::System.Data.DataRow[] addedRows = dataSet.ProductPhoto.Select(null, null, global::System.Data.DataViewRowState.Added);
  11540. if (((addedRows != null)
  11541. && (0 < addedRows.Length))) {
  11542. result = (result + this._productPhotoTableAdapter.Update(addedRows));
  11543. allAddedRows.AddRange(addedRows);
  11544. }
  11545. }
  11546. if ((this._productSaleTableAdapter != null)) {
  11547. global::System.Data.DataRow[] addedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.Added);
  11548. if (((addedRows != null)
  11549. && (0 < addedRows.Length))) {
  11550. result = (result + this._productSaleTableAdapter.Update(addedRows));
  11551. allAddedRows.AddRange(addedRows);
  11552. }
  11553. }
  11554. if ((this._servicePhotoTableAdapter != null)) {
  11555. global::System.Data.DataRow[] addedRows = dataSet.ServicePhoto.Select(null, null, global::System.Data.DataViewRowState.Added);
  11556. if (((addedRows != null)
  11557. && (0 < addedRows.Length))) {
  11558. result = (result + this._servicePhotoTableAdapter.Update(addedRows));
  11559. allAddedRows.AddRange(addedRows);
  11560. }
  11561. }
  11562. if ((this._tagOfClientTableAdapter != null)) {
  11563. global::System.Data.DataRow[] addedRows = dataSet.TagOfClient.Select(null, null, global::System.Data.DataViewRowState.Added);
  11564. if (((addedRows != null)
  11565. && (0 < addedRows.Length))) {
  11566. result = (result + this._tagOfClientTableAdapter.Update(addedRows));
  11567. allAddedRows.AddRange(addedRows);
  11568. }
  11569. }
  11570. if ((this._авторизацияTableAdapter != null)) {
  11571. global::System.Data.DataRow[] addedRows = dataSet.Авторизация.Select(null, null, global::System.Data.DataViewRowState.Added);
  11572. if (((addedRows != null)
  11573. && (0 < addedRows.Length))) {
  11574. result = (result + this._авторизацияTableAdapter.Update(addedRows));
  11575. allAddedRows.AddRange(addedRows);
  11576. }
  11577. }
  11578. return result;
  11579. }
  11580. /// <summary>
  11581. ///Delete rows in bottom-up order.
  11582. ///</summary>
  11583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11585. private int UpdateDeletedRows(BB_GrishinaDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  11586. int result = 0;
  11587. if ((this._авторизацияTableAdapter != null)) {
  11588. global::System.Data.DataRow[] deletedRows = dataSet.Авторизация.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11589. if (((deletedRows != null)
  11590. && (0 < deletedRows.Length))) {
  11591. result = (result + this._авторизацияTableAdapter.Update(deletedRows));
  11592. allChangedRows.AddRange(deletedRows);
  11593. }
  11594. }
  11595. if ((this._tagOfClientTableAdapter != null)) {
  11596. global::System.Data.DataRow[] deletedRows = dataSet.TagOfClient.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11597. if (((deletedRows != null)
  11598. && (0 < deletedRows.Length))) {
  11599. result = (result + this._tagOfClientTableAdapter.Update(deletedRows));
  11600. allChangedRows.AddRange(deletedRows);
  11601. }
  11602. }
  11603. if ((this._servicePhotoTableAdapter != null)) {
  11604. global::System.Data.DataRow[] deletedRows = dataSet.ServicePhoto.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11605. if (((deletedRows != null)
  11606. && (0 < deletedRows.Length))) {
  11607. result = (result + this._servicePhotoTableAdapter.Update(deletedRows));
  11608. allChangedRows.AddRange(deletedRows);
  11609. }
  11610. }
  11611. if ((this._productSaleTableAdapter != null)) {
  11612. global::System.Data.DataRow[] deletedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11613. if (((deletedRows != null)
  11614. && (0 < deletedRows.Length))) {
  11615. result = (result + this._productSaleTableAdapter.Update(deletedRows));
  11616. allChangedRows.AddRange(deletedRows);
  11617. }
  11618. }
  11619. if ((this._productPhotoTableAdapter != null)) {
  11620. global::System.Data.DataRow[] deletedRows = dataSet.ProductPhoto.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11621. if (((deletedRows != null)
  11622. && (0 < deletedRows.Length))) {
  11623. result = (result + this._productPhotoTableAdapter.Update(deletedRows));
  11624. allChangedRows.AddRange(deletedRows);
  11625. }
  11626. }
  11627. if ((this._documentByServiceTableAdapter != null)) {
  11628. global::System.Data.DataRow[] deletedRows = dataSet.DocumentByService.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11629. if (((deletedRows != null)
  11630. && (0 < deletedRows.Length))) {
  11631. result = (result + this._documentByServiceTableAdapter.Update(deletedRows));
  11632. allChangedRows.AddRange(deletedRows);
  11633. }
  11634. }
  11635. if ((this._attachedProductTableAdapter != null)) {
  11636. global::System.Data.DataRow[] deletedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11637. if (((deletedRows != null)
  11638. && (0 < deletedRows.Length))) {
  11639. result = (result + this._attachedProductTableAdapter.Update(deletedRows));
  11640. allChangedRows.AddRange(deletedRows);
  11641. }
  11642. }
  11643. if ((this._tagTableAdapter != null)) {
  11644. global::System.Data.DataRow[] deletedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11645. if (((deletedRows != null)
  11646. && (0 < deletedRows.Length))) {
  11647. result = (result + this._tagTableAdapter.Update(deletedRows));
  11648. allChangedRows.AddRange(deletedRows);
  11649. }
  11650. }
  11651. if ((this._productTableAdapter != null)) {
  11652. global::System.Data.DataRow[] deletedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11653. if (((deletedRows != null)
  11654. && (0 < deletedRows.Length))) {
  11655. result = (result + this._productTableAdapter.Update(deletedRows));
  11656. allChangedRows.AddRange(deletedRows);
  11657. }
  11658. }
  11659. if ((this._clientServiceTableAdapter != null)) {
  11660. global::System.Data.DataRow[] deletedRows = dataSet.ClientService.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11661. if (((deletedRows != null)
  11662. && (0 < deletedRows.Length))) {
  11663. result = (result + this._clientServiceTableAdapter.Update(deletedRows));
  11664. allChangedRows.AddRange(deletedRows);
  11665. }
  11666. }
  11667. if ((this._serviceTableAdapter != null)) {
  11668. global::System.Data.DataRow[] deletedRows = dataSet.Service.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11669. if (((deletedRows != null)
  11670. && (0 < deletedRows.Length))) {
  11671. result = (result + this._serviceTableAdapter.Update(deletedRows));
  11672. allChangedRows.AddRange(deletedRows);
  11673. }
  11674. }
  11675. if ((this._manufacturerTableAdapter != null)) {
  11676. global::System.Data.DataRow[] deletedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11677. if (((deletedRows != null)
  11678. && (0 < deletedRows.Length))) {
  11679. result = (result + this._manufacturerTableAdapter.Update(deletedRows));
  11680. allChangedRows.AddRange(deletedRows);
  11681. }
  11682. }
  11683. if ((this._clientTableAdapter != null)) {
  11684. global::System.Data.DataRow[] deletedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11685. if (((deletedRows != null)
  11686. && (0 < deletedRows.Length))) {
  11687. result = (result + this._clientTableAdapter.Update(deletedRows));
  11688. allChangedRows.AddRange(deletedRows);
  11689. }
  11690. }
  11691. if ((this._genderTableAdapter != null)) {
  11692. global::System.Data.DataRow[] deletedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11693. if (((deletedRows != null)
  11694. && (0 < deletedRows.Length))) {
  11695. result = (result + this._genderTableAdapter.Update(deletedRows));
  11696. allChangedRows.AddRange(deletedRows);
  11697. }
  11698. }
  11699. return result;
  11700. }
  11701. /// <summary>
  11702. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  11703. ///</summary>
  11704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11706. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  11707. if (((updatedRows == null)
  11708. || (updatedRows.Length < 1))) {
  11709. return updatedRows;
  11710. }
  11711. if (((allAddedRows == null)
  11712. || (allAddedRows.Count < 1))) {
  11713. return updatedRows;
  11714. }
  11715. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  11716. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  11717. global::System.Data.DataRow row = updatedRows[i];
  11718. if ((allAddedRows.Contains(row) == false)) {
  11719. realUpdatedRows.Add(row);
  11720. }
  11721. }
  11722. return realUpdatedRows.ToArray();
  11723. }
  11724. /// <summary>
  11725. ///Update all changes to the dataset.
  11726. ///</summary>
  11727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11729. public virtual int UpdateAll(BB_GrishinaDataSet dataSet) {
  11730. if ((dataSet == null)) {
  11731. throw new global::System.ArgumentNullException("dataSet");
  11732. }
  11733. if ((dataSet.HasChanges() == false)) {
  11734. return 0;
  11735. }
  11736. if (((this._attachedProductTableAdapter != null)
  11737. && (this.MatchTableAdapterConnection(this._attachedProductTableAdapter.Connection) == false))) {
  11738. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11739. "r, должны использовать одинаковую строку подключения.");
  11740. }
  11741. if (((this._clientTableAdapter != null)
  11742. && (this.MatchTableAdapterConnection(this._clientTableAdapter.Connection) == false))) {
  11743. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11744. "r, должны использовать одинаковую строку подключения.");
  11745. }
  11746. if (((this._clientServiceTableAdapter != null)
  11747. && (this.MatchTableAdapterConnection(this._clientServiceTableAdapter.Connection) == false))) {
  11748. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11749. "r, должны использовать одинаковую строку подключения.");
  11750. }
  11751. if (((this._documentByServiceTableAdapter != null)
  11752. && (this.MatchTableAdapterConnection(this._documentByServiceTableAdapter.Connection) == false))) {
  11753. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11754. "r, должны использовать одинаковую строку подключения.");
  11755. }
  11756. if (((this._genderTableAdapter != null)
  11757. && (this.MatchTableAdapterConnection(this._genderTableAdapter.Connection) == false))) {
  11758. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11759. "r, должны использовать одинаковую строку подключения.");
  11760. }
  11761. if (((this._manufacturerTableAdapter != null)
  11762. && (this.MatchTableAdapterConnection(this._manufacturerTableAdapter.Connection) == false))) {
  11763. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11764. "r, должны использовать одинаковую строку подключения.");
  11765. }
  11766. if (((this._productTableAdapter != null)
  11767. && (this.MatchTableAdapterConnection(this._productTableAdapter.Connection) == false))) {
  11768. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11769. "r, должны использовать одинаковую строку подключения.");
  11770. }
  11771. if (((this._productPhotoTableAdapter != null)
  11772. && (this.MatchTableAdapterConnection(this._productPhotoTableAdapter.Connection) == false))) {
  11773. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11774. "r, должны использовать одинаковую строку подключения.");
  11775. }
  11776. if (((this._productSaleTableAdapter != null)
  11777. && (this.MatchTableAdapterConnection(this._productSaleTableAdapter.Connection) == false))) {
  11778. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11779. "r, должны использовать одинаковую строку подключения.");
  11780. }
  11781. if (((this._serviceTableAdapter != null)
  11782. && (this.MatchTableAdapterConnection(this._serviceTableAdapter.Connection) == false))) {
  11783. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11784. "r, должны использовать одинаковую строку подключения.");
  11785. }
  11786. if (((this._servicePhotoTableAdapter != null)
  11787. && (this.MatchTableAdapterConnection(this._servicePhotoTableAdapter.Connection) == false))) {
  11788. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11789. "r, должны использовать одинаковую строку подключения.");
  11790. }
  11791. if (((this._tagTableAdapter != null)
  11792. && (this.MatchTableAdapterConnection(this._tagTableAdapter.Connection) == false))) {
  11793. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11794. "r, должны использовать одинаковую строку подключения.");
  11795. }
  11796. if (((this._tagOfClientTableAdapter != null)
  11797. && (this.MatchTableAdapterConnection(this._tagOfClientTableAdapter.Connection) == false))) {
  11798. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11799. "r, должны использовать одинаковую строку подключения.");
  11800. }
  11801. if (((this._авторизацияTableAdapter != null)
  11802. && (this.MatchTableAdapterConnection(this._авторизацияTableAdapter.Connection) == false))) {
  11803. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11804. "r, должны использовать одинаковую строку подключения.");
  11805. }
  11806. global::System.Data.IDbConnection workConnection = this.Connection;
  11807. if ((workConnection == null)) {
  11808. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  11809. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  11810. }
  11811. bool workConnOpened = false;
  11812. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  11813. == global::System.Data.ConnectionState.Broken)) {
  11814. workConnection.Close();
  11815. }
  11816. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  11817. workConnection.Open();
  11818. workConnOpened = true;
  11819. }
  11820. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  11821. if ((workTransaction == null)) {
  11822. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  11823. "и или текущее состояние не позволяет начать транзакцию.");
  11824. }
  11825. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  11826. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  11827. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  11828. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  11829. int result = 0;
  11830. global::System.Data.DataSet backupDataSet = null;
  11831. if (this.BackupDataSetBeforeUpdate) {
  11832. backupDataSet = new global::System.Data.DataSet();
  11833. backupDataSet.Merge(dataSet);
  11834. }
  11835. try {
  11836. // ---- Prepare for update -----------
  11837. //
  11838. if ((this._attachedProductTableAdapter != null)) {
  11839. revertConnections.Add(this._attachedProductTableAdapter, this._attachedProductTableAdapter.Connection);
  11840. this._attachedProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11841. this._attachedProductTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11842. if (this._attachedProductTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11843. this._attachedProductTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11844. adaptersWithAcceptChangesDuringUpdate.Add(this._attachedProductTableAdapter.Adapter);
  11845. }
  11846. }
  11847. if ((this._clientTableAdapter != null)) {
  11848. revertConnections.Add(this._clientTableAdapter, this._clientTableAdapter.Connection);
  11849. this._clientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11850. this._clientTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11851. if (this._clientTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11852. this._clientTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11853. adaptersWithAcceptChangesDuringUpdate.Add(this._clientTableAdapter.Adapter);
  11854. }
  11855. }
  11856. if ((this._clientServiceTableAdapter != null)) {
  11857. revertConnections.Add(this._clientServiceTableAdapter, this._clientServiceTableAdapter.Connection);
  11858. this._clientServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11859. this._clientServiceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11860. if (this._clientServiceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11861. this._clientServiceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11862. adaptersWithAcceptChangesDuringUpdate.Add(this._clientServiceTableAdapter.Adapter);
  11863. }
  11864. }
  11865. if ((this._documentByServiceTableAdapter != null)) {
  11866. revertConnections.Add(this._documentByServiceTableAdapter, this._documentByServiceTableAdapter.Connection);
  11867. this._documentByServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11868. this._documentByServiceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11869. if (this._documentByServiceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11870. this._documentByServiceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11871. adaptersWithAcceptChangesDuringUpdate.Add(this._documentByServiceTableAdapter.Adapter);
  11872. }
  11873. }
  11874. if ((this._genderTableAdapter != null)) {
  11875. revertConnections.Add(this._genderTableAdapter, this._genderTableAdapter.Connection);
  11876. this._genderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11877. this._genderTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11878. if (this._genderTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11879. this._genderTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11880. adaptersWithAcceptChangesDuringUpdate.Add(this._genderTableAdapter.Adapter);
  11881. }
  11882. }
  11883. if ((this._manufacturerTableAdapter != null)) {
  11884. revertConnections.Add(this._manufacturerTableAdapter, this._manufacturerTableAdapter.Connection);
  11885. this._manufacturerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11886. this._manufacturerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11887. if (this._manufacturerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11888. this._manufacturerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11889. adaptersWithAcceptChangesDuringUpdate.Add(this._manufacturerTableAdapter.Adapter);
  11890. }
  11891. }
  11892. if ((this._productTableAdapter != null)) {
  11893. revertConnections.Add(this._productTableAdapter, this._productTableAdapter.Connection);
  11894. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11895. this._productTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11896. if (this._productTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11897. this._productTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11898. adaptersWithAcceptChangesDuringUpdate.Add(this._productTableAdapter.Adapter);
  11899. }
  11900. }
  11901. if ((this._productPhotoTableAdapter != null)) {
  11902. revertConnections.Add(this._productPhotoTableAdapter, this._productPhotoTableAdapter.Connection);
  11903. this._productPhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11904. this._productPhotoTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11905. if (this._productPhotoTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11906. this._productPhotoTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11907. adaptersWithAcceptChangesDuringUpdate.Add(this._productPhotoTableAdapter.Adapter);
  11908. }
  11909. }
  11910. if ((this._productSaleTableAdapter != null)) {
  11911. revertConnections.Add(this._productSaleTableAdapter, this._productSaleTableAdapter.Connection);
  11912. this._productSaleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11913. this._productSaleTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11914. if (this._productSaleTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11915. this._productSaleTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11916. adaptersWithAcceptChangesDuringUpdate.Add(this._productSaleTableAdapter.Adapter);
  11917. }
  11918. }
  11919. if ((this._serviceTableAdapter != null)) {
  11920. revertConnections.Add(this._serviceTableAdapter, this._serviceTableAdapter.Connection);
  11921. this._serviceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11922. this._serviceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11923. if (this._serviceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11924. this._serviceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11925. adaptersWithAcceptChangesDuringUpdate.Add(this._serviceTableAdapter.Adapter);
  11926. }
  11927. }
  11928. if ((this._servicePhotoTableAdapter != null)) {
  11929. revertConnections.Add(this._servicePhotoTableAdapter, this._servicePhotoTableAdapter.Connection);
  11930. this._servicePhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11931. this._servicePhotoTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11932. if (this._servicePhotoTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11933. this._servicePhotoTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11934. adaptersWithAcceptChangesDuringUpdate.Add(this._servicePhotoTableAdapter.Adapter);
  11935. }
  11936. }
  11937. if ((this._tagTableAdapter != null)) {
  11938. revertConnections.Add(this._tagTableAdapter, this._tagTableAdapter.Connection);
  11939. this._tagTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11940. this._tagTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11941. if (this._tagTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11942. this._tagTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11943. adaptersWithAcceptChangesDuringUpdate.Add(this._tagTableAdapter.Adapter);
  11944. }
  11945. }
  11946. if ((this._tagOfClientTableAdapter != null)) {
  11947. revertConnections.Add(this._tagOfClientTableAdapter, this._tagOfClientTableAdapter.Connection);
  11948. this._tagOfClientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11949. this._tagOfClientTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11950. if (this._tagOfClientTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11951. this._tagOfClientTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11952. adaptersWithAcceptChangesDuringUpdate.Add(this._tagOfClientTableAdapter.Adapter);
  11953. }
  11954. }
  11955. if ((this._авторизацияTableAdapter != null)) {
  11956. revertConnections.Add(this._авторизацияTableAdapter, this._авторизацияTableAdapter.Connection);
  11957. this._авторизацияTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11958. this._авторизацияTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11959. if (this._авторизацияTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11960. this._авторизацияTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11961. adaptersWithAcceptChangesDuringUpdate.Add(this._авторизацияTableAdapter.Adapter);
  11962. }
  11963. }
  11964. //
  11965. //---- Perform updates -----------
  11966. //
  11967. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  11968. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  11969. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  11970. }
  11971. else {
  11972. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  11973. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  11974. }
  11975. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  11976. //
  11977. //---- Commit updates -----------
  11978. //
  11979. workTransaction.Commit();
  11980. if ((0 < allAddedRows.Count)) {
  11981. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  11982. allAddedRows.CopyTo(rows);
  11983. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  11984. global::System.Data.DataRow row = rows[i];
  11985. row.AcceptChanges();
  11986. }
  11987. }
  11988. if ((0 < allChangedRows.Count)) {
  11989. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  11990. allChangedRows.CopyTo(rows);
  11991. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  11992. global::System.Data.DataRow row = rows[i];
  11993. row.AcceptChanges();
  11994. }
  11995. }
  11996. }
  11997. catch (global::System.Exception ex) {
  11998. workTransaction.Rollback();
  11999. // ---- Restore the dataset -----------
  12000. if (this.BackupDataSetBeforeUpdate) {
  12001. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  12002. dataSet.Clear();
  12003. dataSet.Merge(backupDataSet);
  12004. }
  12005. else {
  12006. if ((0 < allAddedRows.Count)) {
  12007. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  12008. allAddedRows.CopyTo(rows);
  12009. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  12010. global::System.Data.DataRow row = rows[i];
  12011. row.AcceptChanges();
  12012. row.SetAdded();
  12013. }
  12014. }
  12015. }
  12016. throw ex;
  12017. }
  12018. finally {
  12019. if (workConnOpened) {
  12020. workConnection.Close();
  12021. }
  12022. if ((this._attachedProductTableAdapter != null)) {
  12023. this._attachedProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._attachedProductTableAdapter]));
  12024. this._attachedProductTableAdapter.Transaction = null;
  12025. }
  12026. if ((this._clientTableAdapter != null)) {
  12027. this._clientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._clientTableAdapter]));
  12028. this._clientTableAdapter.Transaction = null;
  12029. }
  12030. if ((this._clientServiceTableAdapter != null)) {
  12031. this._clientServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._clientServiceTableAdapter]));
  12032. this._clientServiceTableAdapter.Transaction = null;
  12033. }
  12034. if ((this._documentByServiceTableAdapter != null)) {
  12035. this._documentByServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._documentByServiceTableAdapter]));
  12036. this._documentByServiceTableAdapter.Transaction = null;
  12037. }
  12038. if ((this._genderTableAdapter != null)) {
  12039. this._genderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._genderTableAdapter]));
  12040. this._genderTableAdapter.Transaction = null;
  12041. }
  12042. if ((this._manufacturerTableAdapter != null)) {
  12043. this._manufacturerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._manufacturerTableAdapter]));
  12044. this._manufacturerTableAdapter.Transaction = null;
  12045. }
  12046. if ((this._productTableAdapter != null)) {
  12047. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productTableAdapter]));
  12048. this._productTableAdapter.Transaction = null;
  12049. }
  12050. if ((this._productPhotoTableAdapter != null)) {
  12051. this._productPhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productPhotoTableAdapter]));
  12052. this._productPhotoTableAdapter.Transaction = null;
  12053. }
  12054. if ((this._productSaleTableAdapter != null)) {
  12055. this._productSaleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productSaleTableAdapter]));
  12056. this._productSaleTableAdapter.Transaction = null;
  12057. }
  12058. if ((this._serviceTableAdapter != null)) {
  12059. this._serviceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._serviceTableAdapter]));
  12060. this._serviceTableAdapter.Transaction = null;
  12061. }
  12062. if ((this._servicePhotoTableAdapter != null)) {
  12063. this._servicePhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._servicePhotoTableAdapter]));
  12064. this._servicePhotoTableAdapter.Transaction = null;
  12065. }
  12066. if ((this._tagTableAdapter != null)) {
  12067. this._tagTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tagTableAdapter]));
  12068. this._tagTableAdapter.Transaction = null;
  12069. }
  12070. if ((this._tagOfClientTableAdapter != null)) {
  12071. this._tagOfClientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tagOfClientTableAdapter]));
  12072. this._tagOfClientTableAdapter.Transaction = null;
  12073. }
  12074. if ((this._авторизацияTableAdapter != null)) {
  12075. this._авторизацияTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._авторизацияTableAdapter]));
  12076. this._авторизацияTableAdapter.Transaction = null;
  12077. }
  12078. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  12079. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  12080. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  12081. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  12082. global::System.Data.Common.DataAdapter adapter = adapters[i];
  12083. adapter.AcceptChangesDuringUpdate = true;
  12084. }
  12085. }
  12086. }
  12087. return result;
  12088. }
  12089. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12090. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12091. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  12092. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  12093. }
  12094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12095. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12096. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  12097. if ((this._connection != null)) {
  12098. return true;
  12099. }
  12100. if (((this.Connection == null)
  12101. || (inputConnection == null))) {
  12102. return true;
  12103. }
  12104. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  12105. return true;
  12106. }
  12107. return false;
  12108. }
  12109. /// <summary>
  12110. ///Update Order Option
  12111. ///</summary>
  12112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12113. public enum UpdateOrderOption {
  12114. InsertUpdateDelete = 0,
  12115. UpdateInsertDelete = 1,
  12116. }
  12117. /// <summary>
  12118. ///Used to sort self-referenced table's rows
  12119. ///</summary>
  12120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12121. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  12122. private global::System.Data.DataRelation _relation;
  12123. private int _childFirst;
  12124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12126. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  12127. this._relation = relation;
  12128. if (childFirst) {
  12129. this._childFirst = -1;
  12130. }
  12131. else {
  12132. this._childFirst = 1;
  12133. }
  12134. }
  12135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12137. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  12138. global::System.Diagnostics.Debug.Assert((row != null));
  12139. global::System.Data.DataRow root = row;
  12140. distance = 0;
  12141. 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>();
  12142. traversedRows[row] = row;
  12143. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  12144. for (
  12145. ; ((parent != null)
  12146. && (traversedRows.ContainsKey(parent) == false));
  12147. ) {
  12148. distance = (distance + 1);
  12149. root = parent;
  12150. traversedRows[parent] = parent;
  12151. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  12152. }
  12153. if ((distance == 0)) {
  12154. traversedRows.Clear();
  12155. traversedRows[row] = row;
  12156. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  12157. for (
  12158. ; ((parent != null)
  12159. && (traversedRows.ContainsKey(parent) == false));
  12160. ) {
  12161. distance = (distance + 1);
  12162. root = parent;
  12163. traversedRows[parent] = parent;
  12164. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  12165. }
  12166. }
  12167. return root;
  12168. }
  12169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12171. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  12172. if (object.ReferenceEquals(row1, row2)) {
  12173. return 0;
  12174. }
  12175. if ((row1 == null)) {
  12176. return -1;
  12177. }
  12178. if ((row2 == null)) {
  12179. return 1;
  12180. }
  12181. int distance1 = 0;
  12182. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  12183. int distance2 = 0;
  12184. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  12185. if (object.ReferenceEquals(root1, root2)) {
  12186. return (this._childFirst * distance1.CompareTo(distance2));
  12187. }
  12188. else {
  12189. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  12190. && (root2.Table != null)));
  12191. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  12192. return -1;
  12193. }
  12194. else {
  12195. return 1;
  12196. }
  12197. }
  12198. }
  12199. }
  12200. }
  12201. }
  12202. #pragma warning restore 1591