beauty_saloonDataSet.Designer.cs 754 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace BeautySaloon {
  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("beauty_saloonDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class beauty_saloonDataSet : 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 global::System.Data.DataRelation relationFK_AttachedProduct_Product;
  36. private global::System.Data.DataRelation relationFK_AttachedProduct_Product1;
  37. private global::System.Data.DataRelation relationFK_Client_Gender;
  38. private global::System.Data.DataRelation relationFK_ClientService_Client;
  39. private global::System.Data.DataRelation relationFK_ClientService_Service;
  40. private global::System.Data.DataRelation relationFK_DocumentByService_ClientService;
  41. private global::System.Data.DataRelation relationFK_Product_Manufacturer;
  42. private global::System.Data.DataRelation relationFK_ProductPhoto_Product;
  43. private global::System.Data.DataRelation relationFK_ProductSale_ClientService;
  44. private global::System.Data.DataRelation relationFK_ProductSale_Product;
  45. private global::System.Data.DataRelation relationFK_ServicePhoto_Service;
  46. private global::System.Data.DataRelation relationFK_TagOfClient_Client;
  47. private global::System.Data.DataRelation relationFK_TagOfClient_Tag;
  48. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  49. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  50. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  51. public beauty_saloonDataSet() {
  52. this.BeginInit();
  53. this.InitClass();
  54. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  55. base.Tables.CollectionChanged += schemaChangedHandler;
  56. base.Relations.CollectionChanged += schemaChangedHandler;
  57. this.EndInit();
  58. }
  59. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  60. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  61. protected beauty_saloonDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  62. base(info, context, false) {
  63. if ((this.IsBinarySerialized(info, context) == true)) {
  64. this.InitVars(false);
  65. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  66. this.Tables.CollectionChanged += schemaChangedHandler1;
  67. this.Relations.CollectionChanged += schemaChangedHandler1;
  68. return;
  69. }
  70. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  71. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  72. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  73. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  74. if ((ds.Tables["AttachedProduct"] != null)) {
  75. base.Tables.Add(new AttachedProductDataTable(ds.Tables["AttachedProduct"]));
  76. }
  77. if ((ds.Tables["Client"] != null)) {
  78. base.Tables.Add(new ClientDataTable(ds.Tables["Client"]));
  79. }
  80. if ((ds.Tables["ClientService"] != null)) {
  81. base.Tables.Add(new ClientServiceDataTable(ds.Tables["ClientService"]));
  82. }
  83. if ((ds.Tables["DocumentByService"] != null)) {
  84. base.Tables.Add(new DocumentByServiceDataTable(ds.Tables["DocumentByService"]));
  85. }
  86. if ((ds.Tables["Gender"] != null)) {
  87. base.Tables.Add(new GenderDataTable(ds.Tables["Gender"]));
  88. }
  89. if ((ds.Tables["Manufacturer"] != null)) {
  90. base.Tables.Add(new ManufacturerDataTable(ds.Tables["Manufacturer"]));
  91. }
  92. if ((ds.Tables["Product"] != null)) {
  93. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  94. }
  95. if ((ds.Tables["ProductPhoto"] != null)) {
  96. base.Tables.Add(new ProductPhotoDataTable(ds.Tables["ProductPhoto"]));
  97. }
  98. if ((ds.Tables["ProductSale"] != null)) {
  99. base.Tables.Add(new ProductSaleDataTable(ds.Tables["ProductSale"]));
  100. }
  101. if ((ds.Tables["Service"] != null)) {
  102. base.Tables.Add(new ServiceDataTable(ds.Tables["Service"]));
  103. }
  104. if ((ds.Tables["ServicePhoto"] != null)) {
  105. base.Tables.Add(new ServicePhotoDataTable(ds.Tables["ServicePhoto"]));
  106. }
  107. if ((ds.Tables["Tag"] != null)) {
  108. base.Tables.Add(new TagDataTable(ds.Tables["Tag"]));
  109. }
  110. if ((ds.Tables["TagOfClient"] != null)) {
  111. base.Tables.Add(new TagOfClientDataTable(ds.Tables["TagOfClient"]));
  112. }
  113. this.DataSetName = ds.DataSetName;
  114. this.Prefix = ds.Prefix;
  115. this.Namespace = ds.Namespace;
  116. this.Locale = ds.Locale;
  117. this.CaseSensitive = ds.CaseSensitive;
  118. this.EnforceConstraints = ds.EnforceConstraints;
  119. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  120. this.InitVars();
  121. }
  122. else {
  123. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  124. }
  125. this.GetSerializationData(info, context);
  126. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  127. base.Tables.CollectionChanged += schemaChangedHandler;
  128. this.Relations.CollectionChanged += schemaChangedHandler;
  129. }
  130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  132. [global::System.ComponentModel.Browsable(false)]
  133. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  134. public AttachedProductDataTable AttachedProduct {
  135. get {
  136. return this.tableAttachedProduct;
  137. }
  138. }
  139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  141. [global::System.ComponentModel.Browsable(false)]
  142. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  143. public ClientDataTable Client {
  144. get {
  145. return this.tableClient;
  146. }
  147. }
  148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  150. [global::System.ComponentModel.Browsable(false)]
  151. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  152. public ClientServiceDataTable ClientService {
  153. get {
  154. return this.tableClientService;
  155. }
  156. }
  157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  159. [global::System.ComponentModel.Browsable(false)]
  160. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  161. public DocumentByServiceDataTable DocumentByService {
  162. get {
  163. return this.tableDocumentByService;
  164. }
  165. }
  166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  168. [global::System.ComponentModel.Browsable(false)]
  169. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  170. public GenderDataTable Gender {
  171. get {
  172. return this.tableGender;
  173. }
  174. }
  175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  177. [global::System.ComponentModel.Browsable(false)]
  178. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  179. public ManufacturerDataTable Manufacturer {
  180. get {
  181. return this.tableManufacturer;
  182. }
  183. }
  184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  186. [global::System.ComponentModel.Browsable(false)]
  187. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  188. public ProductDataTable Product {
  189. get {
  190. return this.tableProduct;
  191. }
  192. }
  193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  195. [global::System.ComponentModel.Browsable(false)]
  196. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  197. public ProductPhotoDataTable ProductPhoto {
  198. get {
  199. return this.tableProductPhoto;
  200. }
  201. }
  202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  204. [global::System.ComponentModel.Browsable(false)]
  205. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  206. public ProductSaleDataTable ProductSale {
  207. get {
  208. return this.tableProductSale;
  209. }
  210. }
  211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  213. [global::System.ComponentModel.Browsable(false)]
  214. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  215. public ServiceDataTable Service {
  216. get {
  217. return this.tableService;
  218. }
  219. }
  220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  222. [global::System.ComponentModel.Browsable(false)]
  223. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  224. public ServicePhotoDataTable ServicePhoto {
  225. get {
  226. return this.tableServicePhoto;
  227. }
  228. }
  229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  231. [global::System.ComponentModel.Browsable(false)]
  232. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  233. public TagDataTable Tag {
  234. get {
  235. return this.tableTag;
  236. }
  237. }
  238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  240. [global::System.ComponentModel.Browsable(false)]
  241. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  242. public TagOfClientDataTable TagOfClient {
  243. get {
  244. return this.tableTagOfClient;
  245. }
  246. }
  247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  249. [global::System.ComponentModel.BrowsableAttribute(true)]
  250. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  251. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  252. get {
  253. return this._schemaSerializationMode;
  254. }
  255. set {
  256. this._schemaSerializationMode = value;
  257. }
  258. }
  259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  261. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  262. public new global::System.Data.DataTableCollection Tables {
  263. get {
  264. return base.Tables;
  265. }
  266. }
  267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  269. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  270. public new global::System.Data.DataRelationCollection Relations {
  271. get {
  272. return base.Relations;
  273. }
  274. }
  275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  277. protected override void InitializeDerivedDataSet() {
  278. this.BeginInit();
  279. this.InitClass();
  280. this.EndInit();
  281. }
  282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  284. public override global::System.Data.DataSet Clone() {
  285. beauty_saloonDataSet cln = ((beauty_saloonDataSet)(base.Clone()));
  286. cln.InitVars();
  287. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  288. return cln;
  289. }
  290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  291. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  292. protected override bool ShouldSerializeTables() {
  293. return false;
  294. }
  295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  297. protected override bool ShouldSerializeRelations() {
  298. return false;
  299. }
  300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  302. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  303. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  304. this.Reset();
  305. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  306. ds.ReadXml(reader);
  307. if ((ds.Tables["AttachedProduct"] != null)) {
  308. base.Tables.Add(new AttachedProductDataTable(ds.Tables["AttachedProduct"]));
  309. }
  310. if ((ds.Tables["Client"] != null)) {
  311. base.Tables.Add(new ClientDataTable(ds.Tables["Client"]));
  312. }
  313. if ((ds.Tables["ClientService"] != null)) {
  314. base.Tables.Add(new ClientServiceDataTable(ds.Tables["ClientService"]));
  315. }
  316. if ((ds.Tables["DocumentByService"] != null)) {
  317. base.Tables.Add(new DocumentByServiceDataTable(ds.Tables["DocumentByService"]));
  318. }
  319. if ((ds.Tables["Gender"] != null)) {
  320. base.Tables.Add(new GenderDataTable(ds.Tables["Gender"]));
  321. }
  322. if ((ds.Tables["Manufacturer"] != null)) {
  323. base.Tables.Add(new ManufacturerDataTable(ds.Tables["Manufacturer"]));
  324. }
  325. if ((ds.Tables["Product"] != null)) {
  326. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  327. }
  328. if ((ds.Tables["ProductPhoto"] != null)) {
  329. base.Tables.Add(new ProductPhotoDataTable(ds.Tables["ProductPhoto"]));
  330. }
  331. if ((ds.Tables["ProductSale"] != null)) {
  332. base.Tables.Add(new ProductSaleDataTable(ds.Tables["ProductSale"]));
  333. }
  334. if ((ds.Tables["Service"] != null)) {
  335. base.Tables.Add(new ServiceDataTable(ds.Tables["Service"]));
  336. }
  337. if ((ds.Tables["ServicePhoto"] != null)) {
  338. base.Tables.Add(new ServicePhotoDataTable(ds.Tables["ServicePhoto"]));
  339. }
  340. if ((ds.Tables["Tag"] != null)) {
  341. base.Tables.Add(new TagDataTable(ds.Tables["Tag"]));
  342. }
  343. if ((ds.Tables["TagOfClient"] != null)) {
  344. base.Tables.Add(new TagOfClientDataTable(ds.Tables["TagOfClient"]));
  345. }
  346. this.DataSetName = ds.DataSetName;
  347. this.Prefix = ds.Prefix;
  348. this.Namespace = ds.Namespace;
  349. this.Locale = ds.Locale;
  350. this.CaseSensitive = ds.CaseSensitive;
  351. this.EnforceConstraints = ds.EnforceConstraints;
  352. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  353. this.InitVars();
  354. }
  355. else {
  356. this.ReadXml(reader);
  357. this.InitVars();
  358. }
  359. }
  360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  362. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  363. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  364. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  365. stream.Position = 0;
  366. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  367. }
  368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  370. internal void InitVars() {
  371. this.InitVars(true);
  372. }
  373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  375. internal void InitVars(bool initTable) {
  376. this.tableAttachedProduct = ((AttachedProductDataTable)(base.Tables["AttachedProduct"]));
  377. if ((initTable == true)) {
  378. if ((this.tableAttachedProduct != null)) {
  379. this.tableAttachedProduct.InitVars();
  380. }
  381. }
  382. this.tableClient = ((ClientDataTable)(base.Tables["Client"]));
  383. if ((initTable == true)) {
  384. if ((this.tableClient != null)) {
  385. this.tableClient.InitVars();
  386. }
  387. }
  388. this.tableClientService = ((ClientServiceDataTable)(base.Tables["ClientService"]));
  389. if ((initTable == true)) {
  390. if ((this.tableClientService != null)) {
  391. this.tableClientService.InitVars();
  392. }
  393. }
  394. this.tableDocumentByService = ((DocumentByServiceDataTable)(base.Tables["DocumentByService"]));
  395. if ((initTable == true)) {
  396. if ((this.tableDocumentByService != null)) {
  397. this.tableDocumentByService.InitVars();
  398. }
  399. }
  400. this.tableGender = ((GenderDataTable)(base.Tables["Gender"]));
  401. if ((initTable == true)) {
  402. if ((this.tableGender != null)) {
  403. this.tableGender.InitVars();
  404. }
  405. }
  406. this.tableManufacturer = ((ManufacturerDataTable)(base.Tables["Manufacturer"]));
  407. if ((initTable == true)) {
  408. if ((this.tableManufacturer != null)) {
  409. this.tableManufacturer.InitVars();
  410. }
  411. }
  412. this.tableProduct = ((ProductDataTable)(base.Tables["Product"]));
  413. if ((initTable == true)) {
  414. if ((this.tableProduct != null)) {
  415. this.tableProduct.InitVars();
  416. }
  417. }
  418. this.tableProductPhoto = ((ProductPhotoDataTable)(base.Tables["ProductPhoto"]));
  419. if ((initTable == true)) {
  420. if ((this.tableProductPhoto != null)) {
  421. this.tableProductPhoto.InitVars();
  422. }
  423. }
  424. this.tableProductSale = ((ProductSaleDataTable)(base.Tables["ProductSale"]));
  425. if ((initTable == true)) {
  426. if ((this.tableProductSale != null)) {
  427. this.tableProductSale.InitVars();
  428. }
  429. }
  430. this.tableService = ((ServiceDataTable)(base.Tables["Service"]));
  431. if ((initTable == true)) {
  432. if ((this.tableService != null)) {
  433. this.tableService.InitVars();
  434. }
  435. }
  436. this.tableServicePhoto = ((ServicePhotoDataTable)(base.Tables["ServicePhoto"]));
  437. if ((initTable == true)) {
  438. if ((this.tableServicePhoto != null)) {
  439. this.tableServicePhoto.InitVars();
  440. }
  441. }
  442. this.tableTag = ((TagDataTable)(base.Tables["Tag"]));
  443. if ((initTable == true)) {
  444. if ((this.tableTag != null)) {
  445. this.tableTag.InitVars();
  446. }
  447. }
  448. this.tableTagOfClient = ((TagOfClientDataTable)(base.Tables["TagOfClient"]));
  449. if ((initTable == true)) {
  450. if ((this.tableTagOfClient != null)) {
  451. this.tableTagOfClient.InitVars();
  452. }
  453. }
  454. this.relationFK_AttachedProduct_Product = this.Relations["FK_AttachedProduct_Product"];
  455. this.relationFK_AttachedProduct_Product1 = this.Relations["FK_AttachedProduct_Product1"];
  456. this.relationFK_Client_Gender = this.Relations["FK_Client_Gender"];
  457. this.relationFK_ClientService_Client = this.Relations["FK_ClientService_Client"];
  458. this.relationFK_ClientService_Service = this.Relations["FK_ClientService_Service"];
  459. this.relationFK_DocumentByService_ClientService = this.Relations["FK_DocumentByService_ClientService"];
  460. this.relationFK_Product_Manufacturer = this.Relations["FK_Product_Manufacturer"];
  461. this.relationFK_ProductPhoto_Product = this.Relations["FK_ProductPhoto_Product"];
  462. this.relationFK_ProductSale_ClientService = this.Relations["FK_ProductSale_ClientService"];
  463. this.relationFK_ProductSale_Product = this.Relations["FK_ProductSale_Product"];
  464. this.relationFK_ServicePhoto_Service = this.Relations["FK_ServicePhoto_Service"];
  465. this.relationFK_TagOfClient_Client = this.Relations["FK_TagOfClient_Client"];
  466. this.relationFK_TagOfClient_Tag = this.Relations["FK_TagOfClient_Tag"];
  467. }
  468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  470. private void InitClass() {
  471. this.DataSetName = "beauty_saloonDataSet";
  472. this.Prefix = "";
  473. this.Namespace = "http://tempuri.org/beauty_saloonDataSet.xsd";
  474. this.EnforceConstraints = true;
  475. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  476. this.tableAttachedProduct = new AttachedProductDataTable();
  477. base.Tables.Add(this.tableAttachedProduct);
  478. this.tableClient = new ClientDataTable();
  479. base.Tables.Add(this.tableClient);
  480. this.tableClientService = new ClientServiceDataTable();
  481. base.Tables.Add(this.tableClientService);
  482. this.tableDocumentByService = new DocumentByServiceDataTable();
  483. base.Tables.Add(this.tableDocumentByService);
  484. this.tableGender = new GenderDataTable();
  485. base.Tables.Add(this.tableGender);
  486. this.tableManufacturer = new ManufacturerDataTable();
  487. base.Tables.Add(this.tableManufacturer);
  488. this.tableProduct = new ProductDataTable();
  489. base.Tables.Add(this.tableProduct);
  490. this.tableProductPhoto = new ProductPhotoDataTable();
  491. base.Tables.Add(this.tableProductPhoto);
  492. this.tableProductSale = new ProductSaleDataTable();
  493. base.Tables.Add(this.tableProductSale);
  494. this.tableService = new ServiceDataTable();
  495. base.Tables.Add(this.tableService);
  496. this.tableServicePhoto = new ServicePhotoDataTable();
  497. base.Tables.Add(this.tableServicePhoto);
  498. this.tableTag = new TagDataTable();
  499. base.Tables.Add(this.tableTag);
  500. this.tableTagOfClient = new TagOfClientDataTable();
  501. base.Tables.Add(this.tableTagOfClient);
  502. this.relationFK_AttachedProduct_Product = new global::System.Data.DataRelation("FK_AttachedProduct_Product", new global::System.Data.DataColumn[] {
  503. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  504. this.tableAttachedProduct.MainProductIDColumn}, false);
  505. this.Relations.Add(this.relationFK_AttachedProduct_Product);
  506. this.relationFK_AttachedProduct_Product1 = new global::System.Data.DataRelation("FK_AttachedProduct_Product1", new global::System.Data.DataColumn[] {
  507. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  508. this.tableAttachedProduct.AttachedProductIDColumn}, false);
  509. this.Relations.Add(this.relationFK_AttachedProduct_Product1);
  510. this.relationFK_Client_Gender = new global::System.Data.DataRelation("FK_Client_Gender", new global::System.Data.DataColumn[] {
  511. this.tableGender.CodeColumn}, new global::System.Data.DataColumn[] {
  512. this.tableClient.GenderCodeColumn}, false);
  513. this.Relations.Add(this.relationFK_Client_Gender);
  514. this.relationFK_ClientService_Client = new global::System.Data.DataRelation("FK_ClientService_Client", new global::System.Data.DataColumn[] {
  515. this.tableClient.IDColumn}, new global::System.Data.DataColumn[] {
  516. this.tableClientService.ClientIDColumn}, false);
  517. this.Relations.Add(this.relationFK_ClientService_Client);
  518. this.relationFK_ClientService_Service = new global::System.Data.DataRelation("FK_ClientService_Service", new global::System.Data.DataColumn[] {
  519. this.tableService.IDColumn}, new global::System.Data.DataColumn[] {
  520. this.tableClientService.ServiceIDColumn}, false);
  521. this.Relations.Add(this.relationFK_ClientService_Service);
  522. this.relationFK_DocumentByService_ClientService = new global::System.Data.DataRelation("FK_DocumentByService_ClientService", new global::System.Data.DataColumn[] {
  523. this.tableClientService.IDColumn}, new global::System.Data.DataColumn[] {
  524. this.tableDocumentByService.ClientServiceIDColumn}, false);
  525. this.Relations.Add(this.relationFK_DocumentByService_ClientService);
  526. this.relationFK_Product_Manufacturer = new global::System.Data.DataRelation("FK_Product_Manufacturer", new global::System.Data.DataColumn[] {
  527. this.tableManufacturer.IDColumn}, new global::System.Data.DataColumn[] {
  528. this.tableProduct.ManufacturerIDColumn}, false);
  529. this.Relations.Add(this.relationFK_Product_Manufacturer);
  530. this.relationFK_ProductPhoto_Product = new global::System.Data.DataRelation("FK_ProductPhoto_Product", new global::System.Data.DataColumn[] {
  531. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  532. this.tableProductPhoto.ProductIDColumn}, false);
  533. this.Relations.Add(this.relationFK_ProductPhoto_Product);
  534. this.relationFK_ProductSale_ClientService = new global::System.Data.DataRelation("FK_ProductSale_ClientService", new global::System.Data.DataColumn[] {
  535. this.tableClientService.IDColumn}, new global::System.Data.DataColumn[] {
  536. this.tableProductSale.ClientServiceIDColumn}, false);
  537. this.Relations.Add(this.relationFK_ProductSale_ClientService);
  538. this.relationFK_ProductSale_Product = new global::System.Data.DataRelation("FK_ProductSale_Product", new global::System.Data.DataColumn[] {
  539. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  540. this.tableProductSale.ProductIDColumn}, false);
  541. this.Relations.Add(this.relationFK_ProductSale_Product);
  542. this.relationFK_ServicePhoto_Service = new global::System.Data.DataRelation("FK_ServicePhoto_Service", new global::System.Data.DataColumn[] {
  543. this.tableService.IDColumn}, new global::System.Data.DataColumn[] {
  544. this.tableServicePhoto.ServiceIDColumn}, false);
  545. this.Relations.Add(this.relationFK_ServicePhoto_Service);
  546. this.relationFK_TagOfClient_Client = new global::System.Data.DataRelation("FK_TagOfClient_Client", new global::System.Data.DataColumn[] {
  547. this.tableClient.IDColumn}, new global::System.Data.DataColumn[] {
  548. this.tableTagOfClient.ClientIDColumn}, false);
  549. this.Relations.Add(this.relationFK_TagOfClient_Client);
  550. this.relationFK_TagOfClient_Tag = new global::System.Data.DataRelation("FK_TagOfClient_Tag", new global::System.Data.DataColumn[] {
  551. this.tableTag.IDColumn}, new global::System.Data.DataColumn[] {
  552. this.tableTagOfClient.TagIDColumn}, false);
  553. this.Relations.Add(this.relationFK_TagOfClient_Tag);
  554. }
  555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  557. private bool ShouldSerializeAttachedProduct() {
  558. return false;
  559. }
  560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  562. private bool ShouldSerializeClient() {
  563. return false;
  564. }
  565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  567. private bool ShouldSerializeClientService() {
  568. return false;
  569. }
  570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  572. private bool ShouldSerializeDocumentByService() {
  573. return false;
  574. }
  575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  577. private bool ShouldSerializeGender() {
  578. return false;
  579. }
  580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  582. private bool ShouldSerializeManufacturer() {
  583. return false;
  584. }
  585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  587. private bool ShouldSerializeProduct() {
  588. return false;
  589. }
  590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  592. private bool ShouldSerializeProductPhoto() {
  593. return false;
  594. }
  595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  597. private bool ShouldSerializeProductSale() {
  598. return false;
  599. }
  600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  602. private bool ShouldSerializeService() {
  603. return false;
  604. }
  605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  607. private bool ShouldSerializeServicePhoto() {
  608. return false;
  609. }
  610. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  611. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  612. private bool ShouldSerializeTag() {
  613. return false;
  614. }
  615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  617. private bool ShouldSerializeTagOfClient() {
  618. return false;
  619. }
  620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  622. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  623. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  624. this.InitVars();
  625. }
  626. }
  627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  629. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  630. beauty_saloonDataSet ds = new beauty_saloonDataSet();
  631. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  632. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  633. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  634. any.Namespace = ds.Namespace;
  635. sequence.Items.Add(any);
  636. type.Particle = sequence;
  637. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  638. if (xs.Contains(dsSchema.TargetNamespace)) {
  639. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  640. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  641. try {
  642. global::System.Xml.Schema.XmlSchema schema = null;
  643. dsSchema.Write(s1);
  644. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  645. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  646. s2.SetLength(0);
  647. schema.Write(s2);
  648. if ((s1.Length == s2.Length)) {
  649. s1.Position = 0;
  650. s2.Position = 0;
  651. for (; ((s1.Position != s1.Length)
  652. && (s1.ReadByte() == s2.ReadByte())); ) {
  653. ;
  654. }
  655. if ((s1.Position == s1.Length)) {
  656. return type;
  657. }
  658. }
  659. }
  660. }
  661. finally {
  662. if ((s1 != null)) {
  663. s1.Close();
  664. }
  665. if ((s2 != null)) {
  666. s2.Close();
  667. }
  668. }
  669. }
  670. xs.Add(dsSchema);
  671. return type;
  672. }
  673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  674. public delegate void AttachedProductRowChangeEventHandler(object sender, AttachedProductRowChangeEvent e);
  675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  676. public delegate void ClientRowChangeEventHandler(object sender, ClientRowChangeEvent e);
  677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  678. public delegate void ClientServiceRowChangeEventHandler(object sender, ClientServiceRowChangeEvent e);
  679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  680. public delegate void DocumentByServiceRowChangeEventHandler(object sender, DocumentByServiceRowChangeEvent e);
  681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  682. public delegate void GenderRowChangeEventHandler(object sender, GenderRowChangeEvent e);
  683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  684. public delegate void ManufacturerRowChangeEventHandler(object sender, ManufacturerRowChangeEvent e);
  685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  686. public delegate void ProductRowChangeEventHandler(object sender, ProductRowChangeEvent e);
  687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  688. public delegate void ProductPhotoRowChangeEventHandler(object sender, ProductPhotoRowChangeEvent e);
  689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  690. public delegate void ProductSaleRowChangeEventHandler(object sender, ProductSaleRowChangeEvent e);
  691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  692. public delegate void ServiceRowChangeEventHandler(object sender, ServiceRowChangeEvent e);
  693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  694. public delegate void ServicePhotoRowChangeEventHandler(object sender, ServicePhotoRowChangeEvent e);
  695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  696. public delegate void TagRowChangeEventHandler(object sender, TagRowChangeEvent e);
  697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  698. public delegate void TagOfClientRowChangeEventHandler(object sender, TagOfClientRowChangeEvent e);
  699. /// <summary>
  700. ///Represents the strongly named DataTable class.
  701. ///</summary>
  702. [global::System.Serializable()]
  703. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  704. public partial class AttachedProductDataTable : global::System.Data.TypedTableBase<AttachedProductRow> {
  705. private global::System.Data.DataColumn columnMainProductID;
  706. private global::System.Data.DataColumn columnAttachedProductID;
  707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  709. public AttachedProductDataTable() {
  710. this.TableName = "AttachedProduct";
  711. this.BeginInit();
  712. this.InitClass();
  713. this.EndInit();
  714. }
  715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  717. internal AttachedProductDataTable(global::System.Data.DataTable table) {
  718. this.TableName = table.TableName;
  719. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  720. this.CaseSensitive = table.CaseSensitive;
  721. }
  722. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  723. this.Locale = table.Locale;
  724. }
  725. if ((table.Namespace != table.DataSet.Namespace)) {
  726. this.Namespace = table.Namespace;
  727. }
  728. this.Prefix = table.Prefix;
  729. this.MinimumCapacity = table.MinimumCapacity;
  730. }
  731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  733. protected AttachedProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  734. base(info, context) {
  735. this.InitVars();
  736. }
  737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  739. public global::System.Data.DataColumn MainProductIDColumn {
  740. get {
  741. return this.columnMainProductID;
  742. }
  743. }
  744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  746. public global::System.Data.DataColumn AttachedProductIDColumn {
  747. get {
  748. return this.columnAttachedProductID;
  749. }
  750. }
  751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  753. [global::System.ComponentModel.Browsable(false)]
  754. public int Count {
  755. get {
  756. return this.Rows.Count;
  757. }
  758. }
  759. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  760. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  761. public AttachedProductRow this[int index] {
  762. get {
  763. return ((AttachedProductRow)(this.Rows[index]));
  764. }
  765. }
  766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  767. public event AttachedProductRowChangeEventHandler AttachedProductRowChanging;
  768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  769. public event AttachedProductRowChangeEventHandler AttachedProductRowChanged;
  770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  771. public event AttachedProductRowChangeEventHandler AttachedProductRowDeleting;
  772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  773. public event AttachedProductRowChangeEventHandler AttachedProductRowDeleted;
  774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  776. public void AddAttachedProductRow(AttachedProductRow row) {
  777. this.Rows.Add(row);
  778. }
  779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  781. public AttachedProductRow AddAttachedProductRow(ProductRow parentProductRowByFK_AttachedProduct_Product, ProductRow parentProductRowByFK_AttachedProduct_Product1) {
  782. AttachedProductRow rowAttachedProductRow = ((AttachedProductRow)(this.NewRow()));
  783. object[] columnValuesArray = new object[] {
  784. null,
  785. null};
  786. if ((parentProductRowByFK_AttachedProduct_Product != null)) {
  787. columnValuesArray[0] = parentProductRowByFK_AttachedProduct_Product[0];
  788. }
  789. if ((parentProductRowByFK_AttachedProduct_Product1 != null)) {
  790. columnValuesArray[1] = parentProductRowByFK_AttachedProduct_Product1[0];
  791. }
  792. rowAttachedProductRow.ItemArray = columnValuesArray;
  793. this.Rows.Add(rowAttachedProductRow);
  794. return rowAttachedProductRow;
  795. }
  796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  798. public AttachedProductRow FindByMainProductIDAttachedProductID(int MainProductID, int AttachedProductID) {
  799. return ((AttachedProductRow)(this.Rows.Find(new object[] {
  800. MainProductID,
  801. AttachedProductID})));
  802. }
  803. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  804. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  805. public override global::System.Data.DataTable Clone() {
  806. AttachedProductDataTable cln = ((AttachedProductDataTable)(base.Clone()));
  807. cln.InitVars();
  808. return cln;
  809. }
  810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  812. protected override global::System.Data.DataTable CreateInstance() {
  813. return new AttachedProductDataTable();
  814. }
  815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  817. internal void InitVars() {
  818. this.columnMainProductID = base.Columns["MainProductID"];
  819. this.columnAttachedProductID = base.Columns["AttachedProductID"];
  820. }
  821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  823. private void InitClass() {
  824. this.columnMainProductID = new global::System.Data.DataColumn("MainProductID", typeof(int), null, global::System.Data.MappingType.Element);
  825. base.Columns.Add(this.columnMainProductID);
  826. this.columnAttachedProductID = new global::System.Data.DataColumn("AttachedProductID", typeof(int), null, global::System.Data.MappingType.Element);
  827. base.Columns.Add(this.columnAttachedProductID);
  828. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  829. this.columnMainProductID,
  830. this.columnAttachedProductID}, true));
  831. this.columnMainProductID.AllowDBNull = false;
  832. this.columnAttachedProductID.AllowDBNull = false;
  833. }
  834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  836. public AttachedProductRow NewAttachedProductRow() {
  837. return ((AttachedProductRow)(this.NewRow()));
  838. }
  839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  841. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  842. return new AttachedProductRow(builder);
  843. }
  844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  846. protected override global::System.Type GetRowType() {
  847. return typeof(AttachedProductRow);
  848. }
  849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  851. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  852. base.OnRowChanged(e);
  853. if ((this.AttachedProductRowChanged != null)) {
  854. this.AttachedProductRowChanged(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  855. }
  856. }
  857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  859. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  860. base.OnRowChanging(e);
  861. if ((this.AttachedProductRowChanging != null)) {
  862. this.AttachedProductRowChanging(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  863. }
  864. }
  865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  867. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  868. base.OnRowDeleted(e);
  869. if ((this.AttachedProductRowDeleted != null)) {
  870. this.AttachedProductRowDeleted(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  871. }
  872. }
  873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  875. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  876. base.OnRowDeleting(e);
  877. if ((this.AttachedProductRowDeleting != null)) {
  878. this.AttachedProductRowDeleting(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  879. }
  880. }
  881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  883. public void RemoveAttachedProductRow(AttachedProductRow row) {
  884. this.Rows.Remove(row);
  885. }
  886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  888. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  889. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  890. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  891. beauty_saloonDataSet ds = new beauty_saloonDataSet();
  892. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  893. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  894. any1.MinOccurs = new decimal(0);
  895. any1.MaxOccurs = decimal.MaxValue;
  896. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  897. sequence.Items.Add(any1);
  898. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  899. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  900. any2.MinOccurs = new decimal(1);
  901. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  902. sequence.Items.Add(any2);
  903. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  904. attribute1.Name = "namespace";
  905. attribute1.FixedValue = ds.Namespace;
  906. type.Attributes.Add(attribute1);
  907. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  908. attribute2.Name = "tableTypeName";
  909. attribute2.FixedValue = "AttachedProductDataTable";
  910. type.Attributes.Add(attribute2);
  911. type.Particle = sequence;
  912. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  913. if (xs.Contains(dsSchema.TargetNamespace)) {
  914. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  915. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  916. try {
  917. global::System.Xml.Schema.XmlSchema schema = null;
  918. dsSchema.Write(s1);
  919. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  920. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  921. s2.SetLength(0);
  922. schema.Write(s2);
  923. if ((s1.Length == s2.Length)) {
  924. s1.Position = 0;
  925. s2.Position = 0;
  926. for (; ((s1.Position != s1.Length)
  927. && (s1.ReadByte() == s2.ReadByte())); ) {
  928. ;
  929. }
  930. if ((s1.Position == s1.Length)) {
  931. return type;
  932. }
  933. }
  934. }
  935. }
  936. finally {
  937. if ((s1 != null)) {
  938. s1.Close();
  939. }
  940. if ((s2 != null)) {
  941. s2.Close();
  942. }
  943. }
  944. }
  945. xs.Add(dsSchema);
  946. return type;
  947. }
  948. }
  949. /// <summary>
  950. ///Represents the strongly named DataTable class.
  951. ///</summary>
  952. [global::System.Serializable()]
  953. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  954. public partial class ClientDataTable : global::System.Data.TypedTableBase<ClientRow> {
  955. private global::System.Data.DataColumn columnID;
  956. private global::System.Data.DataColumn columnFirstName;
  957. private global::System.Data.DataColumn columnLastName;
  958. private global::System.Data.DataColumn columnPatronymic;
  959. private global::System.Data.DataColumn columnBirthday;
  960. private global::System.Data.DataColumn columnRegistrationDate;
  961. private global::System.Data.DataColumn columnEmail;
  962. private global::System.Data.DataColumn columnPhone;
  963. private global::System.Data.DataColumn columnGenderCode;
  964. private global::System.Data.DataColumn columnPhotoPath;
  965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  967. public ClientDataTable() {
  968. this.TableName = "Client";
  969. this.BeginInit();
  970. this.InitClass();
  971. this.EndInit();
  972. }
  973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  975. internal ClientDataTable(global::System.Data.DataTable table) {
  976. this.TableName = table.TableName;
  977. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  978. this.CaseSensitive = table.CaseSensitive;
  979. }
  980. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  981. this.Locale = table.Locale;
  982. }
  983. if ((table.Namespace != table.DataSet.Namespace)) {
  984. this.Namespace = table.Namespace;
  985. }
  986. this.Prefix = table.Prefix;
  987. this.MinimumCapacity = table.MinimumCapacity;
  988. }
  989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  991. protected ClientDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  992. base(info, context) {
  993. this.InitVars();
  994. }
  995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  997. public global::System.Data.DataColumn IDColumn {
  998. get {
  999. return this.columnID;
  1000. }
  1001. }
  1002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1004. public global::System.Data.DataColumn FirstNameColumn {
  1005. get {
  1006. return this.columnFirstName;
  1007. }
  1008. }
  1009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1011. public global::System.Data.DataColumn LastNameColumn {
  1012. get {
  1013. return this.columnLastName;
  1014. }
  1015. }
  1016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1018. public global::System.Data.DataColumn PatronymicColumn {
  1019. get {
  1020. return this.columnPatronymic;
  1021. }
  1022. }
  1023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1025. public global::System.Data.DataColumn BirthdayColumn {
  1026. get {
  1027. return this.columnBirthday;
  1028. }
  1029. }
  1030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1032. public global::System.Data.DataColumn RegistrationDateColumn {
  1033. get {
  1034. return this.columnRegistrationDate;
  1035. }
  1036. }
  1037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1039. public global::System.Data.DataColumn EmailColumn {
  1040. get {
  1041. return this.columnEmail;
  1042. }
  1043. }
  1044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1046. public global::System.Data.DataColumn PhoneColumn {
  1047. get {
  1048. return this.columnPhone;
  1049. }
  1050. }
  1051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1053. public global::System.Data.DataColumn GenderCodeColumn {
  1054. get {
  1055. return this.columnGenderCode;
  1056. }
  1057. }
  1058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1060. public global::System.Data.DataColumn PhotoPathColumn {
  1061. get {
  1062. return this.columnPhotoPath;
  1063. }
  1064. }
  1065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1067. [global::System.ComponentModel.Browsable(false)]
  1068. public int Count {
  1069. get {
  1070. return this.Rows.Count;
  1071. }
  1072. }
  1073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1075. public ClientRow this[int index] {
  1076. get {
  1077. return ((ClientRow)(this.Rows[index]));
  1078. }
  1079. }
  1080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1081. public event ClientRowChangeEventHandler ClientRowChanging;
  1082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1083. public event ClientRowChangeEventHandler ClientRowChanged;
  1084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1085. public event ClientRowChangeEventHandler ClientRowDeleting;
  1086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1087. public event ClientRowChangeEventHandler ClientRowDeleted;
  1088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1090. public void AddClientRow(ClientRow row) {
  1091. this.Rows.Add(row);
  1092. }
  1093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1095. public ClientRow AddClientRow(string FirstName, string LastName, string Patronymic, System.DateTime Birthday, System.DateTime RegistrationDate, string Email, string Phone, GenderRow parentGenderRowByFK_Client_Gender, string PhotoPath) {
  1096. ClientRow rowClientRow = ((ClientRow)(this.NewRow()));
  1097. object[] columnValuesArray = new object[] {
  1098. null,
  1099. FirstName,
  1100. LastName,
  1101. Patronymic,
  1102. Birthday,
  1103. RegistrationDate,
  1104. Email,
  1105. Phone,
  1106. null,
  1107. PhotoPath};
  1108. if ((parentGenderRowByFK_Client_Gender != null)) {
  1109. columnValuesArray[8] = parentGenderRowByFK_Client_Gender[0];
  1110. }
  1111. rowClientRow.ItemArray = columnValuesArray;
  1112. this.Rows.Add(rowClientRow);
  1113. return rowClientRow;
  1114. }
  1115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1117. public ClientRow FindByID(int ID) {
  1118. return ((ClientRow)(this.Rows.Find(new object[] {
  1119. ID})));
  1120. }
  1121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1123. public override global::System.Data.DataTable Clone() {
  1124. ClientDataTable cln = ((ClientDataTable)(base.Clone()));
  1125. cln.InitVars();
  1126. return cln;
  1127. }
  1128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1130. protected override global::System.Data.DataTable CreateInstance() {
  1131. return new ClientDataTable();
  1132. }
  1133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1135. internal void InitVars() {
  1136. this.columnID = base.Columns["ID"];
  1137. this.columnFirstName = base.Columns["FirstName"];
  1138. this.columnLastName = base.Columns["LastName"];
  1139. this.columnPatronymic = base.Columns["Patronymic"];
  1140. this.columnBirthday = base.Columns["Birthday"];
  1141. this.columnRegistrationDate = base.Columns["RegistrationDate"];
  1142. this.columnEmail = base.Columns["Email"];
  1143. this.columnPhone = base.Columns["Phone"];
  1144. this.columnGenderCode = base.Columns["GenderCode"];
  1145. this.columnPhotoPath = base.Columns["PhotoPath"];
  1146. }
  1147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1149. private void InitClass() {
  1150. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1151. base.Columns.Add(this.columnID);
  1152. this.columnFirstName = new global::System.Data.DataColumn("FirstName", typeof(string), null, global::System.Data.MappingType.Element);
  1153. base.Columns.Add(this.columnFirstName);
  1154. this.columnLastName = new global::System.Data.DataColumn("LastName", typeof(string), null, global::System.Data.MappingType.Element);
  1155. base.Columns.Add(this.columnLastName);
  1156. this.columnPatronymic = new global::System.Data.DataColumn("Patronymic", typeof(string), null, global::System.Data.MappingType.Element);
  1157. base.Columns.Add(this.columnPatronymic);
  1158. this.columnBirthday = new global::System.Data.DataColumn("Birthday", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1159. base.Columns.Add(this.columnBirthday);
  1160. this.columnRegistrationDate = new global::System.Data.DataColumn("RegistrationDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1161. base.Columns.Add(this.columnRegistrationDate);
  1162. this.columnEmail = new global::System.Data.DataColumn("Email", typeof(string), null, global::System.Data.MappingType.Element);
  1163. base.Columns.Add(this.columnEmail);
  1164. this.columnPhone = new global::System.Data.DataColumn("Phone", typeof(string), null, global::System.Data.MappingType.Element);
  1165. base.Columns.Add(this.columnPhone);
  1166. this.columnGenderCode = new global::System.Data.DataColumn("GenderCode", typeof(string), null, global::System.Data.MappingType.Element);
  1167. base.Columns.Add(this.columnGenderCode);
  1168. this.columnPhotoPath = new global::System.Data.DataColumn("PhotoPath", typeof(string), null, global::System.Data.MappingType.Element);
  1169. base.Columns.Add(this.columnPhotoPath);
  1170. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1171. this.columnID}, true));
  1172. this.columnID.AutoIncrement = true;
  1173. this.columnID.AutoIncrementSeed = -1;
  1174. this.columnID.AutoIncrementStep = -1;
  1175. this.columnID.AllowDBNull = false;
  1176. this.columnID.ReadOnly = true;
  1177. this.columnID.Unique = true;
  1178. this.columnFirstName.AllowDBNull = false;
  1179. this.columnFirstName.MaxLength = 50;
  1180. this.columnLastName.AllowDBNull = false;
  1181. this.columnLastName.MaxLength = 50;
  1182. this.columnPatronymic.MaxLength = 50;
  1183. this.columnRegistrationDate.AllowDBNull = false;
  1184. this.columnEmail.MaxLength = 255;
  1185. this.columnPhone.AllowDBNull = false;
  1186. this.columnPhone.MaxLength = 20;
  1187. this.columnGenderCode.AllowDBNull = false;
  1188. this.columnGenderCode.MaxLength = 1;
  1189. this.columnPhotoPath.MaxLength = 1000;
  1190. }
  1191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1193. public ClientRow NewClientRow() {
  1194. return ((ClientRow)(this.NewRow()));
  1195. }
  1196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1198. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1199. return new ClientRow(builder);
  1200. }
  1201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1203. protected override global::System.Type GetRowType() {
  1204. return typeof(ClientRow);
  1205. }
  1206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1208. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1209. base.OnRowChanged(e);
  1210. if ((this.ClientRowChanged != null)) {
  1211. this.ClientRowChanged(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  1212. }
  1213. }
  1214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1216. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1217. base.OnRowChanging(e);
  1218. if ((this.ClientRowChanging != null)) {
  1219. this.ClientRowChanging(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  1220. }
  1221. }
  1222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1224. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1225. base.OnRowDeleted(e);
  1226. if ((this.ClientRowDeleted != null)) {
  1227. this.ClientRowDeleted(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  1228. }
  1229. }
  1230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1232. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1233. base.OnRowDeleting(e);
  1234. if ((this.ClientRowDeleting != null)) {
  1235. this.ClientRowDeleting(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  1236. }
  1237. }
  1238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1240. public void RemoveClientRow(ClientRow row) {
  1241. this.Rows.Remove(row);
  1242. }
  1243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1245. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1246. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1247. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1248. beauty_saloonDataSet ds = new beauty_saloonDataSet();
  1249. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1250. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1251. any1.MinOccurs = new decimal(0);
  1252. any1.MaxOccurs = decimal.MaxValue;
  1253. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1254. sequence.Items.Add(any1);
  1255. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1256. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1257. any2.MinOccurs = new decimal(1);
  1258. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1259. sequence.Items.Add(any2);
  1260. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1261. attribute1.Name = "namespace";
  1262. attribute1.FixedValue = ds.Namespace;
  1263. type.Attributes.Add(attribute1);
  1264. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1265. attribute2.Name = "tableTypeName";
  1266. attribute2.FixedValue = "ClientDataTable";
  1267. type.Attributes.Add(attribute2);
  1268. type.Particle = sequence;
  1269. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1270. if (xs.Contains(dsSchema.TargetNamespace)) {
  1271. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1272. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1273. try {
  1274. global::System.Xml.Schema.XmlSchema schema = null;
  1275. dsSchema.Write(s1);
  1276. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1277. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1278. s2.SetLength(0);
  1279. schema.Write(s2);
  1280. if ((s1.Length == s2.Length)) {
  1281. s1.Position = 0;
  1282. s2.Position = 0;
  1283. for (; ((s1.Position != s1.Length)
  1284. && (s1.ReadByte() == s2.ReadByte())); ) {
  1285. ;
  1286. }
  1287. if ((s1.Position == s1.Length)) {
  1288. return type;
  1289. }
  1290. }
  1291. }
  1292. }
  1293. finally {
  1294. if ((s1 != null)) {
  1295. s1.Close();
  1296. }
  1297. if ((s2 != null)) {
  1298. s2.Close();
  1299. }
  1300. }
  1301. }
  1302. xs.Add(dsSchema);
  1303. return type;
  1304. }
  1305. }
  1306. /// <summary>
  1307. ///Represents the strongly named DataTable class.
  1308. ///</summary>
  1309. [global::System.Serializable()]
  1310. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1311. public partial class ClientServiceDataTable : global::System.Data.TypedTableBase<ClientServiceRow> {
  1312. private global::System.Data.DataColumn columnID;
  1313. private global::System.Data.DataColumn columnClientID;
  1314. private global::System.Data.DataColumn columnServiceID;
  1315. private global::System.Data.DataColumn columnStartTime;
  1316. private global::System.Data.DataColumn columnComment;
  1317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1319. public ClientServiceDataTable() {
  1320. this.TableName = "ClientService";
  1321. this.BeginInit();
  1322. this.InitClass();
  1323. this.EndInit();
  1324. }
  1325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1327. internal ClientServiceDataTable(global::System.Data.DataTable table) {
  1328. this.TableName = table.TableName;
  1329. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1330. this.CaseSensitive = table.CaseSensitive;
  1331. }
  1332. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1333. this.Locale = table.Locale;
  1334. }
  1335. if ((table.Namespace != table.DataSet.Namespace)) {
  1336. this.Namespace = table.Namespace;
  1337. }
  1338. this.Prefix = table.Prefix;
  1339. this.MinimumCapacity = table.MinimumCapacity;
  1340. }
  1341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1343. protected ClientServiceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1344. base(info, context) {
  1345. this.InitVars();
  1346. }
  1347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1349. public global::System.Data.DataColumn IDColumn {
  1350. get {
  1351. return this.columnID;
  1352. }
  1353. }
  1354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1355. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1356. public global::System.Data.DataColumn ClientIDColumn {
  1357. get {
  1358. return this.columnClientID;
  1359. }
  1360. }
  1361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1363. public global::System.Data.DataColumn ServiceIDColumn {
  1364. get {
  1365. return this.columnServiceID;
  1366. }
  1367. }
  1368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1370. public global::System.Data.DataColumn StartTimeColumn {
  1371. get {
  1372. return this.columnStartTime;
  1373. }
  1374. }
  1375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1377. public global::System.Data.DataColumn CommentColumn {
  1378. get {
  1379. return this.columnComment;
  1380. }
  1381. }
  1382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1384. [global::System.ComponentModel.Browsable(false)]
  1385. public int Count {
  1386. get {
  1387. return this.Rows.Count;
  1388. }
  1389. }
  1390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1392. public ClientServiceRow this[int index] {
  1393. get {
  1394. return ((ClientServiceRow)(this.Rows[index]));
  1395. }
  1396. }
  1397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1398. public event ClientServiceRowChangeEventHandler ClientServiceRowChanging;
  1399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1400. public event ClientServiceRowChangeEventHandler ClientServiceRowChanged;
  1401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1402. public event ClientServiceRowChangeEventHandler ClientServiceRowDeleting;
  1403. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1404. public event ClientServiceRowChangeEventHandler ClientServiceRowDeleted;
  1405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1407. public void AddClientServiceRow(ClientServiceRow row) {
  1408. this.Rows.Add(row);
  1409. }
  1410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1412. public ClientServiceRow AddClientServiceRow(ClientRow parentClientRowByFK_ClientService_Client, ServiceRow parentServiceRowByFK_ClientService_Service, System.DateTime StartTime, string Comment) {
  1413. ClientServiceRow rowClientServiceRow = ((ClientServiceRow)(this.NewRow()));
  1414. object[] columnValuesArray = new object[] {
  1415. null,
  1416. null,
  1417. null,
  1418. StartTime,
  1419. Comment};
  1420. if ((parentClientRowByFK_ClientService_Client != null)) {
  1421. columnValuesArray[1] = parentClientRowByFK_ClientService_Client[0];
  1422. }
  1423. if ((parentServiceRowByFK_ClientService_Service != null)) {
  1424. columnValuesArray[2] = parentServiceRowByFK_ClientService_Service[0];
  1425. }
  1426. rowClientServiceRow.ItemArray = columnValuesArray;
  1427. this.Rows.Add(rowClientServiceRow);
  1428. return rowClientServiceRow;
  1429. }
  1430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1432. public ClientServiceRow FindByID(int ID) {
  1433. return ((ClientServiceRow)(this.Rows.Find(new object[] {
  1434. ID})));
  1435. }
  1436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1438. public override global::System.Data.DataTable Clone() {
  1439. ClientServiceDataTable cln = ((ClientServiceDataTable)(base.Clone()));
  1440. cln.InitVars();
  1441. return cln;
  1442. }
  1443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1444. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1445. protected override global::System.Data.DataTable CreateInstance() {
  1446. return new ClientServiceDataTable();
  1447. }
  1448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1450. internal void InitVars() {
  1451. this.columnID = base.Columns["ID"];
  1452. this.columnClientID = base.Columns["ClientID"];
  1453. this.columnServiceID = base.Columns["ServiceID"];
  1454. this.columnStartTime = base.Columns["StartTime"];
  1455. this.columnComment = base.Columns["Comment"];
  1456. }
  1457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1458. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1459. private void InitClass() {
  1460. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1461. base.Columns.Add(this.columnID);
  1462. this.columnClientID = new global::System.Data.DataColumn("ClientID", typeof(int), null, global::System.Data.MappingType.Element);
  1463. base.Columns.Add(this.columnClientID);
  1464. this.columnServiceID = new global::System.Data.DataColumn("ServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  1465. base.Columns.Add(this.columnServiceID);
  1466. this.columnStartTime = new global::System.Data.DataColumn("StartTime", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1467. base.Columns.Add(this.columnStartTime);
  1468. this.columnComment = new global::System.Data.DataColumn("Comment", typeof(string), null, global::System.Data.MappingType.Element);
  1469. base.Columns.Add(this.columnComment);
  1470. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1471. this.columnID}, true));
  1472. this.columnID.AutoIncrement = true;
  1473. this.columnID.AutoIncrementSeed = -1;
  1474. this.columnID.AutoIncrementStep = -1;
  1475. this.columnID.AllowDBNull = false;
  1476. this.columnID.ReadOnly = true;
  1477. this.columnID.Unique = true;
  1478. this.columnClientID.AllowDBNull = false;
  1479. this.columnServiceID.AllowDBNull = false;
  1480. this.columnStartTime.AllowDBNull = false;
  1481. this.columnComment.MaxLength = 2147483647;
  1482. }
  1483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1485. public ClientServiceRow NewClientServiceRow() {
  1486. return ((ClientServiceRow)(this.NewRow()));
  1487. }
  1488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1490. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1491. return new ClientServiceRow(builder);
  1492. }
  1493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1495. protected override global::System.Type GetRowType() {
  1496. return typeof(ClientServiceRow);
  1497. }
  1498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1500. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1501. base.OnRowChanged(e);
  1502. if ((this.ClientServiceRowChanged != null)) {
  1503. this.ClientServiceRowChanged(this, new ClientServiceRowChangeEvent(((ClientServiceRow)(e.Row)), e.Action));
  1504. }
  1505. }
  1506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1508. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1509. base.OnRowChanging(e);
  1510. if ((this.ClientServiceRowChanging != null)) {
  1511. this.ClientServiceRowChanging(this, new ClientServiceRowChangeEvent(((ClientServiceRow)(e.Row)), e.Action));
  1512. }
  1513. }
  1514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1516. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1517. base.OnRowDeleted(e);
  1518. if ((this.ClientServiceRowDeleted != null)) {
  1519. this.ClientServiceRowDeleted(this, new ClientServiceRowChangeEvent(((ClientServiceRow)(e.Row)), e.Action));
  1520. }
  1521. }
  1522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1524. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1525. base.OnRowDeleting(e);
  1526. if ((this.ClientServiceRowDeleting != null)) {
  1527. this.ClientServiceRowDeleting(this, new ClientServiceRowChangeEvent(((ClientServiceRow)(e.Row)), e.Action));
  1528. }
  1529. }
  1530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1532. public void RemoveClientServiceRow(ClientServiceRow row) {
  1533. this.Rows.Remove(row);
  1534. }
  1535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1537. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1538. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1539. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1540. beauty_saloonDataSet ds = new beauty_saloonDataSet();
  1541. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1542. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1543. any1.MinOccurs = new decimal(0);
  1544. any1.MaxOccurs = decimal.MaxValue;
  1545. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1546. sequence.Items.Add(any1);
  1547. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1548. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1549. any2.MinOccurs = new decimal(1);
  1550. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1551. sequence.Items.Add(any2);
  1552. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1553. attribute1.Name = "namespace";
  1554. attribute1.FixedValue = ds.Namespace;
  1555. type.Attributes.Add(attribute1);
  1556. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1557. attribute2.Name = "tableTypeName";
  1558. attribute2.FixedValue = "ClientServiceDataTable";
  1559. type.Attributes.Add(attribute2);
  1560. type.Particle = sequence;
  1561. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1562. if (xs.Contains(dsSchema.TargetNamespace)) {
  1563. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1564. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1565. try {
  1566. global::System.Xml.Schema.XmlSchema schema = null;
  1567. dsSchema.Write(s1);
  1568. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1569. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1570. s2.SetLength(0);
  1571. schema.Write(s2);
  1572. if ((s1.Length == s2.Length)) {
  1573. s1.Position = 0;
  1574. s2.Position = 0;
  1575. for (; ((s1.Position != s1.Length)
  1576. && (s1.ReadByte() == s2.ReadByte())); ) {
  1577. ;
  1578. }
  1579. if ((s1.Position == s1.Length)) {
  1580. return type;
  1581. }
  1582. }
  1583. }
  1584. }
  1585. finally {
  1586. if ((s1 != null)) {
  1587. s1.Close();
  1588. }
  1589. if ((s2 != null)) {
  1590. s2.Close();
  1591. }
  1592. }
  1593. }
  1594. xs.Add(dsSchema);
  1595. return type;
  1596. }
  1597. }
  1598. /// <summary>
  1599. ///Represents the strongly named DataTable class.
  1600. ///</summary>
  1601. [global::System.Serializable()]
  1602. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1603. public partial class DocumentByServiceDataTable : global::System.Data.TypedTableBase<DocumentByServiceRow> {
  1604. private global::System.Data.DataColumn columnID;
  1605. private global::System.Data.DataColumn columnClientServiceID;
  1606. private global::System.Data.DataColumn columnDocumentPath;
  1607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1609. public DocumentByServiceDataTable() {
  1610. this.TableName = "DocumentByService";
  1611. this.BeginInit();
  1612. this.InitClass();
  1613. this.EndInit();
  1614. }
  1615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1617. internal DocumentByServiceDataTable(global::System.Data.DataTable table) {
  1618. this.TableName = table.TableName;
  1619. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1620. this.CaseSensitive = table.CaseSensitive;
  1621. }
  1622. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1623. this.Locale = table.Locale;
  1624. }
  1625. if ((table.Namespace != table.DataSet.Namespace)) {
  1626. this.Namespace = table.Namespace;
  1627. }
  1628. this.Prefix = table.Prefix;
  1629. this.MinimumCapacity = table.MinimumCapacity;
  1630. }
  1631. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1633. protected DocumentByServiceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1634. base(info, context) {
  1635. this.InitVars();
  1636. }
  1637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1639. public global::System.Data.DataColumn IDColumn {
  1640. get {
  1641. return this.columnID;
  1642. }
  1643. }
  1644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1646. public global::System.Data.DataColumn ClientServiceIDColumn {
  1647. get {
  1648. return this.columnClientServiceID;
  1649. }
  1650. }
  1651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1653. public global::System.Data.DataColumn DocumentPathColumn {
  1654. get {
  1655. return this.columnDocumentPath;
  1656. }
  1657. }
  1658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1660. [global::System.ComponentModel.Browsable(false)]
  1661. public int Count {
  1662. get {
  1663. return this.Rows.Count;
  1664. }
  1665. }
  1666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1668. public DocumentByServiceRow this[int index] {
  1669. get {
  1670. return ((DocumentByServiceRow)(this.Rows[index]));
  1671. }
  1672. }
  1673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1674. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowChanging;
  1675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1676. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowChanged;
  1677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1678. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowDeleting;
  1679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1680. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowDeleted;
  1681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1683. public void AddDocumentByServiceRow(DocumentByServiceRow row) {
  1684. this.Rows.Add(row);
  1685. }
  1686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1688. public DocumentByServiceRow AddDocumentByServiceRow(ClientServiceRow parentClientServiceRowByFK_DocumentByService_ClientService, string DocumentPath) {
  1689. DocumentByServiceRow rowDocumentByServiceRow = ((DocumentByServiceRow)(this.NewRow()));
  1690. object[] columnValuesArray = new object[] {
  1691. null,
  1692. null,
  1693. DocumentPath};
  1694. if ((parentClientServiceRowByFK_DocumentByService_ClientService != null)) {
  1695. columnValuesArray[1] = parentClientServiceRowByFK_DocumentByService_ClientService[0];
  1696. }
  1697. rowDocumentByServiceRow.ItemArray = columnValuesArray;
  1698. this.Rows.Add(rowDocumentByServiceRow);
  1699. return rowDocumentByServiceRow;
  1700. }
  1701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1703. public DocumentByServiceRow FindByID(int ID) {
  1704. return ((DocumentByServiceRow)(this.Rows.Find(new object[] {
  1705. ID})));
  1706. }
  1707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1709. public override global::System.Data.DataTable Clone() {
  1710. DocumentByServiceDataTable cln = ((DocumentByServiceDataTable)(base.Clone()));
  1711. cln.InitVars();
  1712. return cln;
  1713. }
  1714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1716. protected override global::System.Data.DataTable CreateInstance() {
  1717. return new DocumentByServiceDataTable();
  1718. }
  1719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1721. internal void InitVars() {
  1722. this.columnID = base.Columns["ID"];
  1723. this.columnClientServiceID = base.Columns["ClientServiceID"];
  1724. this.columnDocumentPath = base.Columns["DocumentPath"];
  1725. }
  1726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1728. private void InitClass() {
  1729. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1730. base.Columns.Add(this.columnID);
  1731. this.columnClientServiceID = new global::System.Data.DataColumn("ClientServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  1732. base.Columns.Add(this.columnClientServiceID);
  1733. this.columnDocumentPath = new global::System.Data.DataColumn("DocumentPath", typeof(string), null, global::System.Data.MappingType.Element);
  1734. base.Columns.Add(this.columnDocumentPath);
  1735. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1736. this.columnID}, true));
  1737. this.columnID.AutoIncrement = true;
  1738. this.columnID.AutoIncrementSeed = -1;
  1739. this.columnID.AutoIncrementStep = -1;
  1740. this.columnID.AllowDBNull = false;
  1741. this.columnID.ReadOnly = true;
  1742. this.columnID.Unique = true;
  1743. this.columnClientServiceID.AllowDBNull = false;
  1744. this.columnDocumentPath.AllowDBNull = false;
  1745. this.columnDocumentPath.MaxLength = 1000;
  1746. }
  1747. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1748. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1749. public DocumentByServiceRow NewDocumentByServiceRow() {
  1750. return ((DocumentByServiceRow)(this.NewRow()));
  1751. }
  1752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1754. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1755. return new DocumentByServiceRow(builder);
  1756. }
  1757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1759. protected override global::System.Type GetRowType() {
  1760. return typeof(DocumentByServiceRow);
  1761. }
  1762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1764. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1765. base.OnRowChanged(e);
  1766. if ((this.DocumentByServiceRowChanged != null)) {
  1767. this.DocumentByServiceRowChanged(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  1768. }
  1769. }
  1770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1772. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1773. base.OnRowChanging(e);
  1774. if ((this.DocumentByServiceRowChanging != null)) {
  1775. this.DocumentByServiceRowChanging(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  1776. }
  1777. }
  1778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1780. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1781. base.OnRowDeleted(e);
  1782. if ((this.DocumentByServiceRowDeleted != null)) {
  1783. this.DocumentByServiceRowDeleted(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  1784. }
  1785. }
  1786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1788. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1789. base.OnRowDeleting(e);
  1790. if ((this.DocumentByServiceRowDeleting != null)) {
  1791. this.DocumentByServiceRowDeleting(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  1792. }
  1793. }
  1794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1796. public void RemoveDocumentByServiceRow(DocumentByServiceRow row) {
  1797. this.Rows.Remove(row);
  1798. }
  1799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1801. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1802. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1803. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1804. beauty_saloonDataSet ds = new beauty_saloonDataSet();
  1805. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1806. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1807. any1.MinOccurs = new decimal(0);
  1808. any1.MaxOccurs = decimal.MaxValue;
  1809. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1810. sequence.Items.Add(any1);
  1811. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1812. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1813. any2.MinOccurs = new decimal(1);
  1814. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1815. sequence.Items.Add(any2);
  1816. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1817. attribute1.Name = "namespace";
  1818. attribute1.FixedValue = ds.Namespace;
  1819. type.Attributes.Add(attribute1);
  1820. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1821. attribute2.Name = "tableTypeName";
  1822. attribute2.FixedValue = "DocumentByServiceDataTable";
  1823. type.Attributes.Add(attribute2);
  1824. type.Particle = sequence;
  1825. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1826. if (xs.Contains(dsSchema.TargetNamespace)) {
  1827. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1828. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1829. try {
  1830. global::System.Xml.Schema.XmlSchema schema = null;
  1831. dsSchema.Write(s1);
  1832. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1833. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1834. s2.SetLength(0);
  1835. schema.Write(s2);
  1836. if ((s1.Length == s2.Length)) {
  1837. s1.Position = 0;
  1838. s2.Position = 0;
  1839. for (; ((s1.Position != s1.Length)
  1840. && (s1.ReadByte() == s2.ReadByte())); ) {
  1841. ;
  1842. }
  1843. if ((s1.Position == s1.Length)) {
  1844. return type;
  1845. }
  1846. }
  1847. }
  1848. }
  1849. finally {
  1850. if ((s1 != null)) {
  1851. s1.Close();
  1852. }
  1853. if ((s2 != null)) {
  1854. s2.Close();
  1855. }
  1856. }
  1857. }
  1858. xs.Add(dsSchema);
  1859. return type;
  1860. }
  1861. }
  1862. /// <summary>
  1863. ///Represents the strongly named DataTable class.
  1864. ///</summary>
  1865. [global::System.Serializable()]
  1866. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1867. public partial class GenderDataTable : global::System.Data.TypedTableBase<GenderRow> {
  1868. private global::System.Data.DataColumn columnCode;
  1869. private global::System.Data.DataColumn columnName;
  1870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1872. public GenderDataTable() {
  1873. this.TableName = "Gender";
  1874. this.BeginInit();
  1875. this.InitClass();
  1876. this.EndInit();
  1877. }
  1878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1880. internal GenderDataTable(global::System.Data.DataTable table) {
  1881. this.TableName = table.TableName;
  1882. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1883. this.CaseSensitive = table.CaseSensitive;
  1884. }
  1885. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1886. this.Locale = table.Locale;
  1887. }
  1888. if ((table.Namespace != table.DataSet.Namespace)) {
  1889. this.Namespace = table.Namespace;
  1890. }
  1891. this.Prefix = table.Prefix;
  1892. this.MinimumCapacity = table.MinimumCapacity;
  1893. }
  1894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1896. protected GenderDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1897. base(info, context) {
  1898. this.InitVars();
  1899. }
  1900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1902. public global::System.Data.DataColumn CodeColumn {
  1903. get {
  1904. return this.columnCode;
  1905. }
  1906. }
  1907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1909. public global::System.Data.DataColumn NameColumn {
  1910. get {
  1911. return this.columnName;
  1912. }
  1913. }
  1914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1915. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1916. [global::System.ComponentModel.Browsable(false)]
  1917. public int Count {
  1918. get {
  1919. return this.Rows.Count;
  1920. }
  1921. }
  1922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1923. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1924. public GenderRow this[int index] {
  1925. get {
  1926. return ((GenderRow)(this.Rows[index]));
  1927. }
  1928. }
  1929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1930. public event GenderRowChangeEventHandler GenderRowChanging;
  1931. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1932. public event GenderRowChangeEventHandler GenderRowChanged;
  1933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1934. public event GenderRowChangeEventHandler GenderRowDeleting;
  1935. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1936. public event GenderRowChangeEventHandler GenderRowDeleted;
  1937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1939. public void AddGenderRow(GenderRow row) {
  1940. this.Rows.Add(row);
  1941. }
  1942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1944. public GenderRow AddGenderRow(string Code, string Name) {
  1945. GenderRow rowGenderRow = ((GenderRow)(this.NewRow()));
  1946. object[] columnValuesArray = new object[] {
  1947. Code,
  1948. Name};
  1949. rowGenderRow.ItemArray = columnValuesArray;
  1950. this.Rows.Add(rowGenderRow);
  1951. return rowGenderRow;
  1952. }
  1953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1955. public GenderRow FindByCode(string Code) {
  1956. return ((GenderRow)(this.Rows.Find(new object[] {
  1957. Code})));
  1958. }
  1959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1961. public override global::System.Data.DataTable Clone() {
  1962. GenderDataTable cln = ((GenderDataTable)(base.Clone()));
  1963. cln.InitVars();
  1964. return cln;
  1965. }
  1966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1968. protected override global::System.Data.DataTable CreateInstance() {
  1969. return new GenderDataTable();
  1970. }
  1971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1972. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1973. internal void InitVars() {
  1974. this.columnCode = base.Columns["Code"];
  1975. this.columnName = base.Columns["Name"];
  1976. }
  1977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1978. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1979. private void InitClass() {
  1980. this.columnCode = new global::System.Data.DataColumn("Code", typeof(string), null, global::System.Data.MappingType.Element);
  1981. base.Columns.Add(this.columnCode);
  1982. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  1983. base.Columns.Add(this.columnName);
  1984. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1985. this.columnCode}, true));
  1986. this.columnCode.AllowDBNull = false;
  1987. this.columnCode.Unique = true;
  1988. this.columnCode.MaxLength = 1;
  1989. this.columnName.MaxLength = 10;
  1990. }
  1991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1993. public GenderRow NewGenderRow() {
  1994. return ((GenderRow)(this.NewRow()));
  1995. }
  1996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1998. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1999. return new GenderRow(builder);
  2000. }
  2001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2003. protected override global::System.Type GetRowType() {
  2004. return typeof(GenderRow);
  2005. }
  2006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2008. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2009. base.OnRowChanged(e);
  2010. if ((this.GenderRowChanged != null)) {
  2011. this.GenderRowChanged(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2012. }
  2013. }
  2014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2016. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2017. base.OnRowChanging(e);
  2018. if ((this.GenderRowChanging != null)) {
  2019. this.GenderRowChanging(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2020. }
  2021. }
  2022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2024. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2025. base.OnRowDeleted(e);
  2026. if ((this.GenderRowDeleted != null)) {
  2027. this.GenderRowDeleted(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2028. }
  2029. }
  2030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2032. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2033. base.OnRowDeleting(e);
  2034. if ((this.GenderRowDeleting != null)) {
  2035. this.GenderRowDeleting(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2036. }
  2037. }
  2038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2039. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2040. public void RemoveGenderRow(GenderRow row) {
  2041. this.Rows.Remove(row);
  2042. }
  2043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2045. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2046. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2047. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2048. beauty_saloonDataSet ds = new beauty_saloonDataSet();
  2049. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2050. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2051. any1.MinOccurs = new decimal(0);
  2052. any1.MaxOccurs = decimal.MaxValue;
  2053. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2054. sequence.Items.Add(any1);
  2055. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2056. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2057. any2.MinOccurs = new decimal(1);
  2058. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2059. sequence.Items.Add(any2);
  2060. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2061. attribute1.Name = "namespace";
  2062. attribute1.FixedValue = ds.Namespace;
  2063. type.Attributes.Add(attribute1);
  2064. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2065. attribute2.Name = "tableTypeName";
  2066. attribute2.FixedValue = "GenderDataTable";
  2067. type.Attributes.Add(attribute2);
  2068. type.Particle = sequence;
  2069. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2070. if (xs.Contains(dsSchema.TargetNamespace)) {
  2071. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2072. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2073. try {
  2074. global::System.Xml.Schema.XmlSchema schema = null;
  2075. dsSchema.Write(s1);
  2076. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2077. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2078. s2.SetLength(0);
  2079. schema.Write(s2);
  2080. if ((s1.Length == s2.Length)) {
  2081. s1.Position = 0;
  2082. s2.Position = 0;
  2083. for (; ((s1.Position != s1.Length)
  2084. && (s1.ReadByte() == s2.ReadByte())); ) {
  2085. ;
  2086. }
  2087. if ((s1.Position == s1.Length)) {
  2088. return type;
  2089. }
  2090. }
  2091. }
  2092. }
  2093. finally {
  2094. if ((s1 != null)) {
  2095. s1.Close();
  2096. }
  2097. if ((s2 != null)) {
  2098. s2.Close();
  2099. }
  2100. }
  2101. }
  2102. xs.Add(dsSchema);
  2103. return type;
  2104. }
  2105. }
  2106. /// <summary>
  2107. ///Represents the strongly named DataTable class.
  2108. ///</summary>
  2109. [global::System.Serializable()]
  2110. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2111. public partial class ManufacturerDataTable : global::System.Data.TypedTableBase<ManufacturerRow> {
  2112. private global::System.Data.DataColumn columnID;
  2113. private global::System.Data.DataColumn columnName;
  2114. private global::System.Data.DataColumn columnStartDate;
  2115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2117. public ManufacturerDataTable() {
  2118. this.TableName = "Manufacturer";
  2119. this.BeginInit();
  2120. this.InitClass();
  2121. this.EndInit();
  2122. }
  2123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2125. internal ManufacturerDataTable(global::System.Data.DataTable table) {
  2126. this.TableName = table.TableName;
  2127. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2128. this.CaseSensitive = table.CaseSensitive;
  2129. }
  2130. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2131. this.Locale = table.Locale;
  2132. }
  2133. if ((table.Namespace != table.DataSet.Namespace)) {
  2134. this.Namespace = table.Namespace;
  2135. }
  2136. this.Prefix = table.Prefix;
  2137. this.MinimumCapacity = table.MinimumCapacity;
  2138. }
  2139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2141. protected ManufacturerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2142. base(info, context) {
  2143. this.InitVars();
  2144. }
  2145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2147. public global::System.Data.DataColumn IDColumn {
  2148. get {
  2149. return this.columnID;
  2150. }
  2151. }
  2152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2154. public global::System.Data.DataColumn NameColumn {
  2155. get {
  2156. return this.columnName;
  2157. }
  2158. }
  2159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2161. public global::System.Data.DataColumn StartDateColumn {
  2162. get {
  2163. return this.columnStartDate;
  2164. }
  2165. }
  2166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2168. [global::System.ComponentModel.Browsable(false)]
  2169. public int Count {
  2170. get {
  2171. return this.Rows.Count;
  2172. }
  2173. }
  2174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2176. public ManufacturerRow this[int index] {
  2177. get {
  2178. return ((ManufacturerRow)(this.Rows[index]));
  2179. }
  2180. }
  2181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2182. public event ManufacturerRowChangeEventHandler ManufacturerRowChanging;
  2183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2184. public event ManufacturerRowChangeEventHandler ManufacturerRowChanged;
  2185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2186. public event ManufacturerRowChangeEventHandler ManufacturerRowDeleting;
  2187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2188. public event ManufacturerRowChangeEventHandler ManufacturerRowDeleted;
  2189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2191. public void AddManufacturerRow(ManufacturerRow row) {
  2192. this.Rows.Add(row);
  2193. }
  2194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2196. public ManufacturerRow AddManufacturerRow(string Name, System.DateTime StartDate) {
  2197. ManufacturerRow rowManufacturerRow = ((ManufacturerRow)(this.NewRow()));
  2198. object[] columnValuesArray = new object[] {
  2199. null,
  2200. Name,
  2201. StartDate};
  2202. rowManufacturerRow.ItemArray = columnValuesArray;
  2203. this.Rows.Add(rowManufacturerRow);
  2204. return rowManufacturerRow;
  2205. }
  2206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2208. public ManufacturerRow FindByID(int ID) {
  2209. return ((ManufacturerRow)(this.Rows.Find(new object[] {
  2210. ID})));
  2211. }
  2212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2213. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2214. public override global::System.Data.DataTable Clone() {
  2215. ManufacturerDataTable cln = ((ManufacturerDataTable)(base.Clone()));
  2216. cln.InitVars();
  2217. return cln;
  2218. }
  2219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2221. protected override global::System.Data.DataTable CreateInstance() {
  2222. return new ManufacturerDataTable();
  2223. }
  2224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2226. internal void InitVars() {
  2227. this.columnID = base.Columns["ID"];
  2228. this.columnName = base.Columns["Name"];
  2229. this.columnStartDate = base.Columns["StartDate"];
  2230. }
  2231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2233. private void InitClass() {
  2234. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2235. base.Columns.Add(this.columnID);
  2236. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  2237. base.Columns.Add(this.columnName);
  2238. this.columnStartDate = new global::System.Data.DataColumn("StartDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  2239. base.Columns.Add(this.columnStartDate);
  2240. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2241. this.columnID}, true));
  2242. this.columnID.AutoIncrement = true;
  2243. this.columnID.AutoIncrementSeed = -1;
  2244. this.columnID.AutoIncrementStep = -1;
  2245. this.columnID.AllowDBNull = false;
  2246. this.columnID.ReadOnly = true;
  2247. this.columnID.Unique = true;
  2248. this.columnName.AllowDBNull = false;
  2249. this.columnName.MaxLength = 100;
  2250. }
  2251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2253. public ManufacturerRow NewManufacturerRow() {
  2254. return ((ManufacturerRow)(this.NewRow()));
  2255. }
  2256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2258. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2259. return new ManufacturerRow(builder);
  2260. }
  2261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2263. protected override global::System.Type GetRowType() {
  2264. return typeof(ManufacturerRow);
  2265. }
  2266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2268. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2269. base.OnRowChanged(e);
  2270. if ((this.ManufacturerRowChanged != null)) {
  2271. this.ManufacturerRowChanged(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  2272. }
  2273. }
  2274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2276. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2277. base.OnRowChanging(e);
  2278. if ((this.ManufacturerRowChanging != null)) {
  2279. this.ManufacturerRowChanging(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  2280. }
  2281. }
  2282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2284. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2285. base.OnRowDeleted(e);
  2286. if ((this.ManufacturerRowDeleted != null)) {
  2287. this.ManufacturerRowDeleted(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  2288. }
  2289. }
  2290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2291. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2292. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2293. base.OnRowDeleting(e);
  2294. if ((this.ManufacturerRowDeleting != null)) {
  2295. this.ManufacturerRowDeleting(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  2296. }
  2297. }
  2298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2300. public void RemoveManufacturerRow(ManufacturerRow row) {
  2301. this.Rows.Remove(row);
  2302. }
  2303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2304. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2305. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2306. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2307. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2308. beauty_saloonDataSet ds = new beauty_saloonDataSet();
  2309. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2310. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2311. any1.MinOccurs = new decimal(0);
  2312. any1.MaxOccurs = decimal.MaxValue;
  2313. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2314. sequence.Items.Add(any1);
  2315. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2316. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2317. any2.MinOccurs = new decimal(1);
  2318. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2319. sequence.Items.Add(any2);
  2320. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2321. attribute1.Name = "namespace";
  2322. attribute1.FixedValue = ds.Namespace;
  2323. type.Attributes.Add(attribute1);
  2324. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2325. attribute2.Name = "tableTypeName";
  2326. attribute2.FixedValue = "ManufacturerDataTable";
  2327. type.Attributes.Add(attribute2);
  2328. type.Particle = sequence;
  2329. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2330. if (xs.Contains(dsSchema.TargetNamespace)) {
  2331. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2332. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2333. try {
  2334. global::System.Xml.Schema.XmlSchema schema = null;
  2335. dsSchema.Write(s1);
  2336. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2337. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2338. s2.SetLength(0);
  2339. schema.Write(s2);
  2340. if ((s1.Length == s2.Length)) {
  2341. s1.Position = 0;
  2342. s2.Position = 0;
  2343. for (; ((s1.Position != s1.Length)
  2344. && (s1.ReadByte() == s2.ReadByte())); ) {
  2345. ;
  2346. }
  2347. if ((s1.Position == s1.Length)) {
  2348. return type;
  2349. }
  2350. }
  2351. }
  2352. }
  2353. finally {
  2354. if ((s1 != null)) {
  2355. s1.Close();
  2356. }
  2357. if ((s2 != null)) {
  2358. s2.Close();
  2359. }
  2360. }
  2361. }
  2362. xs.Add(dsSchema);
  2363. return type;
  2364. }
  2365. }
  2366. /// <summary>
  2367. ///Represents the strongly named DataTable class.
  2368. ///</summary>
  2369. [global::System.Serializable()]
  2370. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2371. public partial class ProductDataTable : global::System.Data.TypedTableBase<ProductRow> {
  2372. private global::System.Data.DataColumn columnID;
  2373. private global::System.Data.DataColumn columnTitle;
  2374. private global::System.Data.DataColumn columnCost;
  2375. private global::System.Data.DataColumn columnDescription;
  2376. private global::System.Data.DataColumn columnMainImagePath;
  2377. private global::System.Data.DataColumn columnIsActive;
  2378. private global::System.Data.DataColumn columnManufacturerID;
  2379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2381. public ProductDataTable() {
  2382. this.TableName = "Product";
  2383. this.BeginInit();
  2384. this.InitClass();
  2385. this.EndInit();
  2386. }
  2387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2389. internal ProductDataTable(global::System.Data.DataTable table) {
  2390. this.TableName = table.TableName;
  2391. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2392. this.CaseSensitive = table.CaseSensitive;
  2393. }
  2394. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2395. this.Locale = table.Locale;
  2396. }
  2397. if ((table.Namespace != table.DataSet.Namespace)) {
  2398. this.Namespace = table.Namespace;
  2399. }
  2400. this.Prefix = table.Prefix;
  2401. this.MinimumCapacity = table.MinimumCapacity;
  2402. }
  2403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2405. protected ProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2406. base(info, context) {
  2407. this.InitVars();
  2408. }
  2409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2411. public global::System.Data.DataColumn IDColumn {
  2412. get {
  2413. return this.columnID;
  2414. }
  2415. }
  2416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2418. public global::System.Data.DataColumn TitleColumn {
  2419. get {
  2420. return this.columnTitle;
  2421. }
  2422. }
  2423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2425. public global::System.Data.DataColumn CostColumn {
  2426. get {
  2427. return this.columnCost;
  2428. }
  2429. }
  2430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2432. public global::System.Data.DataColumn DescriptionColumn {
  2433. get {
  2434. return this.columnDescription;
  2435. }
  2436. }
  2437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2439. public global::System.Data.DataColumn MainImagePathColumn {
  2440. get {
  2441. return this.columnMainImagePath;
  2442. }
  2443. }
  2444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2446. public global::System.Data.DataColumn IsActiveColumn {
  2447. get {
  2448. return this.columnIsActive;
  2449. }
  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 ManufacturerIDColumn {
  2454. get {
  2455. return this.columnManufacturerID;
  2456. }
  2457. }
  2458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2459. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2460. [global::System.ComponentModel.Browsable(false)]
  2461. public int Count {
  2462. get {
  2463. return this.Rows.Count;
  2464. }
  2465. }
  2466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2468. public ProductRow this[int index] {
  2469. get {
  2470. return ((ProductRow)(this.Rows[index]));
  2471. }
  2472. }
  2473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2474. public event ProductRowChangeEventHandler ProductRowChanging;
  2475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2476. public event ProductRowChangeEventHandler ProductRowChanged;
  2477. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2478. public event ProductRowChangeEventHandler ProductRowDeleting;
  2479. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2480. public event ProductRowChangeEventHandler ProductRowDeleted;
  2481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2483. public void AddProductRow(ProductRow row) {
  2484. this.Rows.Add(row);
  2485. }
  2486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2488. public ProductRow AddProductRow(string Title, decimal Cost, string Description, string MainImagePath, bool IsActive, ManufacturerRow parentManufacturerRowByFK_Product_Manufacturer) {
  2489. ProductRow rowProductRow = ((ProductRow)(this.NewRow()));
  2490. object[] columnValuesArray = new object[] {
  2491. null,
  2492. Title,
  2493. Cost,
  2494. Description,
  2495. MainImagePath,
  2496. IsActive,
  2497. null};
  2498. if ((parentManufacturerRowByFK_Product_Manufacturer != null)) {
  2499. columnValuesArray[6] = parentManufacturerRowByFK_Product_Manufacturer[0];
  2500. }
  2501. rowProductRow.ItemArray = columnValuesArray;
  2502. this.Rows.Add(rowProductRow);
  2503. return rowProductRow;
  2504. }
  2505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2507. public ProductRow FindByID(int ID) {
  2508. return ((ProductRow)(this.Rows.Find(new object[] {
  2509. ID})));
  2510. }
  2511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2513. public override global::System.Data.DataTable Clone() {
  2514. ProductDataTable cln = ((ProductDataTable)(base.Clone()));
  2515. cln.InitVars();
  2516. return cln;
  2517. }
  2518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2520. protected override global::System.Data.DataTable CreateInstance() {
  2521. return new ProductDataTable();
  2522. }
  2523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2525. internal void InitVars() {
  2526. this.columnID = base.Columns["ID"];
  2527. this.columnTitle = base.Columns["Title"];
  2528. this.columnCost = base.Columns["Cost"];
  2529. this.columnDescription = base.Columns["Description"];
  2530. this.columnMainImagePath = base.Columns["MainImagePath"];
  2531. this.columnIsActive = base.Columns["IsActive"];
  2532. this.columnManufacturerID = base.Columns["ManufacturerID"];
  2533. }
  2534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2536. private void InitClass() {
  2537. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2538. base.Columns.Add(this.columnID);
  2539. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  2540. base.Columns.Add(this.columnTitle);
  2541. this.columnCost = new global::System.Data.DataColumn("Cost", typeof(decimal), null, global::System.Data.MappingType.Element);
  2542. base.Columns.Add(this.columnCost);
  2543. this.columnDescription = new global::System.Data.DataColumn("Description", typeof(string), null, global::System.Data.MappingType.Element);
  2544. base.Columns.Add(this.columnDescription);
  2545. this.columnMainImagePath = new global::System.Data.DataColumn("MainImagePath", typeof(string), null, global::System.Data.MappingType.Element);
  2546. base.Columns.Add(this.columnMainImagePath);
  2547. this.columnIsActive = new global::System.Data.DataColumn("IsActive", typeof(bool), null, global::System.Data.MappingType.Element);
  2548. base.Columns.Add(this.columnIsActive);
  2549. this.columnManufacturerID = new global::System.Data.DataColumn("ManufacturerID", typeof(int), null, global::System.Data.MappingType.Element);
  2550. base.Columns.Add(this.columnManufacturerID);
  2551. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2552. this.columnID}, true));
  2553. this.columnID.AutoIncrement = true;
  2554. this.columnID.AutoIncrementSeed = -1;
  2555. this.columnID.AutoIncrementStep = -1;
  2556. this.columnID.AllowDBNull = false;
  2557. this.columnID.ReadOnly = true;
  2558. this.columnID.Unique = true;
  2559. this.columnTitle.AllowDBNull = false;
  2560. this.columnTitle.MaxLength = 100;
  2561. this.columnCost.AllowDBNull = false;
  2562. this.columnDescription.MaxLength = 2147483647;
  2563. this.columnMainImagePath.MaxLength = 1000;
  2564. this.columnIsActive.AllowDBNull = false;
  2565. }
  2566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2568. public ProductRow NewProductRow() {
  2569. return ((ProductRow)(this.NewRow()));
  2570. }
  2571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2573. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2574. return new ProductRow(builder);
  2575. }
  2576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2578. protected override global::System.Type GetRowType() {
  2579. return typeof(ProductRow);
  2580. }
  2581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2583. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2584. base.OnRowChanged(e);
  2585. if ((this.ProductRowChanged != null)) {
  2586. this.ProductRowChanged(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2587. }
  2588. }
  2589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2591. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2592. base.OnRowChanging(e);
  2593. if ((this.ProductRowChanging != null)) {
  2594. this.ProductRowChanging(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2595. }
  2596. }
  2597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2599. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2600. base.OnRowDeleted(e);
  2601. if ((this.ProductRowDeleted != null)) {
  2602. this.ProductRowDeleted(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2603. }
  2604. }
  2605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2607. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2608. base.OnRowDeleting(e);
  2609. if ((this.ProductRowDeleting != null)) {
  2610. this.ProductRowDeleting(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2611. }
  2612. }
  2613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2615. public void RemoveProductRow(ProductRow row) {
  2616. this.Rows.Remove(row);
  2617. }
  2618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2620. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2621. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2622. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2623. beauty_saloonDataSet ds = new beauty_saloonDataSet();
  2624. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2625. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2626. any1.MinOccurs = new decimal(0);
  2627. any1.MaxOccurs = decimal.MaxValue;
  2628. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2629. sequence.Items.Add(any1);
  2630. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2631. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2632. any2.MinOccurs = new decimal(1);
  2633. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2634. sequence.Items.Add(any2);
  2635. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2636. attribute1.Name = "namespace";
  2637. attribute1.FixedValue = ds.Namespace;
  2638. type.Attributes.Add(attribute1);
  2639. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2640. attribute2.Name = "tableTypeName";
  2641. attribute2.FixedValue = "ProductDataTable";
  2642. type.Attributes.Add(attribute2);
  2643. type.Particle = sequence;
  2644. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2645. if (xs.Contains(dsSchema.TargetNamespace)) {
  2646. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2647. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2648. try {
  2649. global::System.Xml.Schema.XmlSchema schema = null;
  2650. dsSchema.Write(s1);
  2651. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2652. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2653. s2.SetLength(0);
  2654. schema.Write(s2);
  2655. if ((s1.Length == s2.Length)) {
  2656. s1.Position = 0;
  2657. s2.Position = 0;
  2658. for (; ((s1.Position != s1.Length)
  2659. && (s1.ReadByte() == s2.ReadByte())); ) {
  2660. ;
  2661. }
  2662. if ((s1.Position == s1.Length)) {
  2663. return type;
  2664. }
  2665. }
  2666. }
  2667. }
  2668. finally {
  2669. if ((s1 != null)) {
  2670. s1.Close();
  2671. }
  2672. if ((s2 != null)) {
  2673. s2.Close();
  2674. }
  2675. }
  2676. }
  2677. xs.Add(dsSchema);
  2678. return type;
  2679. }
  2680. }
  2681. /// <summary>
  2682. ///Represents the strongly named DataTable class.
  2683. ///</summary>
  2684. [global::System.Serializable()]
  2685. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2686. public partial class ProductPhotoDataTable : global::System.Data.TypedTableBase<ProductPhotoRow> {
  2687. private global::System.Data.DataColumn columnID;
  2688. private global::System.Data.DataColumn columnProductID;
  2689. private global::System.Data.DataColumn columnPhotoPath;
  2690. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2692. public ProductPhotoDataTable() {
  2693. this.TableName = "ProductPhoto";
  2694. this.BeginInit();
  2695. this.InitClass();
  2696. this.EndInit();
  2697. }
  2698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2700. internal ProductPhotoDataTable(global::System.Data.DataTable table) {
  2701. this.TableName = table.TableName;
  2702. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2703. this.CaseSensitive = table.CaseSensitive;
  2704. }
  2705. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2706. this.Locale = table.Locale;
  2707. }
  2708. if ((table.Namespace != table.DataSet.Namespace)) {
  2709. this.Namespace = table.Namespace;
  2710. }
  2711. this.Prefix = table.Prefix;
  2712. this.MinimumCapacity = table.MinimumCapacity;
  2713. }
  2714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2716. protected ProductPhotoDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2717. base(info, context) {
  2718. this.InitVars();
  2719. }
  2720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2722. public global::System.Data.DataColumn IDColumn {
  2723. get {
  2724. return this.columnID;
  2725. }
  2726. }
  2727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2729. public global::System.Data.DataColumn ProductIDColumn {
  2730. get {
  2731. return this.columnProductID;
  2732. }
  2733. }
  2734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2736. public global::System.Data.DataColumn PhotoPathColumn {
  2737. get {
  2738. return this.columnPhotoPath;
  2739. }
  2740. }
  2741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2742. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2743. [global::System.ComponentModel.Browsable(false)]
  2744. public int Count {
  2745. get {
  2746. return this.Rows.Count;
  2747. }
  2748. }
  2749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2751. public ProductPhotoRow this[int index] {
  2752. get {
  2753. return ((ProductPhotoRow)(this.Rows[index]));
  2754. }
  2755. }
  2756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2757. public event ProductPhotoRowChangeEventHandler ProductPhotoRowChanging;
  2758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2759. public event ProductPhotoRowChangeEventHandler ProductPhotoRowChanged;
  2760. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2761. public event ProductPhotoRowChangeEventHandler ProductPhotoRowDeleting;
  2762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2763. public event ProductPhotoRowChangeEventHandler ProductPhotoRowDeleted;
  2764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2766. public void AddProductPhotoRow(ProductPhotoRow row) {
  2767. this.Rows.Add(row);
  2768. }
  2769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2771. public ProductPhotoRow AddProductPhotoRow(ProductRow parentProductRowByFK_ProductPhoto_Product, string PhotoPath) {
  2772. ProductPhotoRow rowProductPhotoRow = ((ProductPhotoRow)(this.NewRow()));
  2773. object[] columnValuesArray = new object[] {
  2774. null,
  2775. null,
  2776. PhotoPath};
  2777. if ((parentProductRowByFK_ProductPhoto_Product != null)) {
  2778. columnValuesArray[1] = parentProductRowByFK_ProductPhoto_Product[0];
  2779. }
  2780. rowProductPhotoRow.ItemArray = columnValuesArray;
  2781. this.Rows.Add(rowProductPhotoRow);
  2782. return rowProductPhotoRow;
  2783. }
  2784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2786. public ProductPhotoRow FindByID(int ID) {
  2787. return ((ProductPhotoRow)(this.Rows.Find(new object[] {
  2788. ID})));
  2789. }
  2790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2792. public override global::System.Data.DataTable Clone() {
  2793. ProductPhotoDataTable cln = ((ProductPhotoDataTable)(base.Clone()));
  2794. cln.InitVars();
  2795. return cln;
  2796. }
  2797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2799. protected override global::System.Data.DataTable CreateInstance() {
  2800. return new ProductPhotoDataTable();
  2801. }
  2802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2804. internal void InitVars() {
  2805. this.columnID = base.Columns["ID"];
  2806. this.columnProductID = base.Columns["ProductID"];
  2807. this.columnPhotoPath = base.Columns["PhotoPath"];
  2808. }
  2809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2811. private void InitClass() {
  2812. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2813. base.Columns.Add(this.columnID);
  2814. this.columnProductID = new global::System.Data.DataColumn("ProductID", typeof(int), null, global::System.Data.MappingType.Element);
  2815. base.Columns.Add(this.columnProductID);
  2816. this.columnPhotoPath = new global::System.Data.DataColumn("PhotoPath", typeof(string), null, global::System.Data.MappingType.Element);
  2817. base.Columns.Add(this.columnPhotoPath);
  2818. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2819. this.columnID}, true));
  2820. this.columnID.AutoIncrement = true;
  2821. this.columnID.AutoIncrementSeed = -1;
  2822. this.columnID.AutoIncrementStep = -1;
  2823. this.columnID.AllowDBNull = false;
  2824. this.columnID.ReadOnly = true;
  2825. this.columnID.Unique = true;
  2826. this.columnProductID.AllowDBNull = false;
  2827. this.columnPhotoPath.AllowDBNull = false;
  2828. this.columnPhotoPath.MaxLength = 1000;
  2829. }
  2830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2831. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2832. public ProductPhotoRow NewProductPhotoRow() {
  2833. return ((ProductPhotoRow)(this.NewRow()));
  2834. }
  2835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2837. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2838. return new ProductPhotoRow(builder);
  2839. }
  2840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2841. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2842. protected override global::System.Type GetRowType() {
  2843. return typeof(ProductPhotoRow);
  2844. }
  2845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2847. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2848. base.OnRowChanged(e);
  2849. if ((this.ProductPhotoRowChanged != null)) {
  2850. this.ProductPhotoRowChanged(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  2851. }
  2852. }
  2853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2855. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2856. base.OnRowChanging(e);
  2857. if ((this.ProductPhotoRowChanging != null)) {
  2858. this.ProductPhotoRowChanging(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  2859. }
  2860. }
  2861. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2862. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2863. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2864. base.OnRowDeleted(e);
  2865. if ((this.ProductPhotoRowDeleted != null)) {
  2866. this.ProductPhotoRowDeleted(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  2867. }
  2868. }
  2869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2871. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2872. base.OnRowDeleting(e);
  2873. if ((this.ProductPhotoRowDeleting != null)) {
  2874. this.ProductPhotoRowDeleting(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  2875. }
  2876. }
  2877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2879. public void RemoveProductPhotoRow(ProductPhotoRow row) {
  2880. this.Rows.Remove(row);
  2881. }
  2882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2884. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2885. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2886. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2887. beauty_saloonDataSet ds = new beauty_saloonDataSet();
  2888. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2889. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2890. any1.MinOccurs = new decimal(0);
  2891. any1.MaxOccurs = decimal.MaxValue;
  2892. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2893. sequence.Items.Add(any1);
  2894. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2895. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2896. any2.MinOccurs = new decimal(1);
  2897. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2898. sequence.Items.Add(any2);
  2899. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2900. attribute1.Name = "namespace";
  2901. attribute1.FixedValue = ds.Namespace;
  2902. type.Attributes.Add(attribute1);
  2903. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2904. attribute2.Name = "tableTypeName";
  2905. attribute2.FixedValue = "ProductPhotoDataTable";
  2906. type.Attributes.Add(attribute2);
  2907. type.Particle = sequence;
  2908. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2909. if (xs.Contains(dsSchema.TargetNamespace)) {
  2910. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2911. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2912. try {
  2913. global::System.Xml.Schema.XmlSchema schema = null;
  2914. dsSchema.Write(s1);
  2915. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2916. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2917. s2.SetLength(0);
  2918. schema.Write(s2);
  2919. if ((s1.Length == s2.Length)) {
  2920. s1.Position = 0;
  2921. s2.Position = 0;
  2922. for (; ((s1.Position != s1.Length)
  2923. && (s1.ReadByte() == s2.ReadByte())); ) {
  2924. ;
  2925. }
  2926. if ((s1.Position == s1.Length)) {
  2927. return type;
  2928. }
  2929. }
  2930. }
  2931. }
  2932. finally {
  2933. if ((s1 != null)) {
  2934. s1.Close();
  2935. }
  2936. if ((s2 != null)) {
  2937. s2.Close();
  2938. }
  2939. }
  2940. }
  2941. xs.Add(dsSchema);
  2942. return type;
  2943. }
  2944. }
  2945. /// <summary>
  2946. ///Represents the strongly named DataTable class.
  2947. ///</summary>
  2948. [global::System.Serializable()]
  2949. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2950. public partial class ProductSaleDataTable : global::System.Data.TypedTableBase<ProductSaleRow> {
  2951. private global::System.Data.DataColumn columnID;
  2952. private global::System.Data.DataColumn columnSaleDate;
  2953. private global::System.Data.DataColumn columnProductID;
  2954. private global::System.Data.DataColumn columnQuantity;
  2955. private global::System.Data.DataColumn columnClientServiceID;
  2956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2958. public ProductSaleDataTable() {
  2959. this.TableName = "ProductSale";
  2960. this.BeginInit();
  2961. this.InitClass();
  2962. this.EndInit();
  2963. }
  2964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2966. internal ProductSaleDataTable(global::System.Data.DataTable table) {
  2967. this.TableName = table.TableName;
  2968. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2969. this.CaseSensitive = table.CaseSensitive;
  2970. }
  2971. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2972. this.Locale = table.Locale;
  2973. }
  2974. if ((table.Namespace != table.DataSet.Namespace)) {
  2975. this.Namespace = table.Namespace;
  2976. }
  2977. this.Prefix = table.Prefix;
  2978. this.MinimumCapacity = table.MinimumCapacity;
  2979. }
  2980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2981. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2982. protected ProductSaleDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2983. base(info, context) {
  2984. this.InitVars();
  2985. }
  2986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2987. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2988. public global::System.Data.DataColumn IDColumn {
  2989. get {
  2990. return this.columnID;
  2991. }
  2992. }
  2993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2995. public global::System.Data.DataColumn SaleDateColumn {
  2996. get {
  2997. return this.columnSaleDate;
  2998. }
  2999. }
  3000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3002. public global::System.Data.DataColumn ProductIDColumn {
  3003. get {
  3004. return this.columnProductID;
  3005. }
  3006. }
  3007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3008. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3009. public global::System.Data.DataColumn QuantityColumn {
  3010. get {
  3011. return this.columnQuantity;
  3012. }
  3013. }
  3014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3016. public global::System.Data.DataColumn ClientServiceIDColumn {
  3017. get {
  3018. return this.columnClientServiceID;
  3019. }
  3020. }
  3021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3023. [global::System.ComponentModel.Browsable(false)]
  3024. public int Count {
  3025. get {
  3026. return this.Rows.Count;
  3027. }
  3028. }
  3029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3031. public ProductSaleRow this[int index] {
  3032. get {
  3033. return ((ProductSaleRow)(this.Rows[index]));
  3034. }
  3035. }
  3036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3037. public event ProductSaleRowChangeEventHandler ProductSaleRowChanging;
  3038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3039. public event ProductSaleRowChangeEventHandler ProductSaleRowChanged;
  3040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3041. public event ProductSaleRowChangeEventHandler ProductSaleRowDeleting;
  3042. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3043. public event ProductSaleRowChangeEventHandler ProductSaleRowDeleted;
  3044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3046. public void AddProductSaleRow(ProductSaleRow row) {
  3047. this.Rows.Add(row);
  3048. }
  3049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3051. public ProductSaleRow AddProductSaleRow(System.DateTime SaleDate, ProductRow parentProductRowByFK_ProductSale_Product, int Quantity, ClientServiceRow parentClientServiceRowByFK_ProductSale_ClientService) {
  3052. ProductSaleRow rowProductSaleRow = ((ProductSaleRow)(this.NewRow()));
  3053. object[] columnValuesArray = new object[] {
  3054. null,
  3055. SaleDate,
  3056. null,
  3057. Quantity,
  3058. null};
  3059. if ((parentProductRowByFK_ProductSale_Product != null)) {
  3060. columnValuesArray[2] = parentProductRowByFK_ProductSale_Product[0];
  3061. }
  3062. if ((parentClientServiceRowByFK_ProductSale_ClientService != null)) {
  3063. columnValuesArray[4] = parentClientServiceRowByFK_ProductSale_ClientService[0];
  3064. }
  3065. rowProductSaleRow.ItemArray = columnValuesArray;
  3066. this.Rows.Add(rowProductSaleRow);
  3067. return rowProductSaleRow;
  3068. }
  3069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3070. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3071. public ProductSaleRow FindByID(int ID) {
  3072. return ((ProductSaleRow)(this.Rows.Find(new object[] {
  3073. ID})));
  3074. }
  3075. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3076. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3077. public override global::System.Data.DataTable Clone() {
  3078. ProductSaleDataTable cln = ((ProductSaleDataTable)(base.Clone()));
  3079. cln.InitVars();
  3080. return cln;
  3081. }
  3082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3084. protected override global::System.Data.DataTable CreateInstance() {
  3085. return new ProductSaleDataTable();
  3086. }
  3087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3089. internal void InitVars() {
  3090. this.columnID = base.Columns["ID"];
  3091. this.columnSaleDate = base.Columns["SaleDate"];
  3092. this.columnProductID = base.Columns["ProductID"];
  3093. this.columnQuantity = base.Columns["Quantity"];
  3094. this.columnClientServiceID = base.Columns["ClientServiceID"];
  3095. }
  3096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3098. private void InitClass() {
  3099. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3100. base.Columns.Add(this.columnID);
  3101. this.columnSaleDate = new global::System.Data.DataColumn("SaleDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  3102. base.Columns.Add(this.columnSaleDate);
  3103. this.columnProductID = new global::System.Data.DataColumn("ProductID", typeof(int), null, global::System.Data.MappingType.Element);
  3104. base.Columns.Add(this.columnProductID);
  3105. this.columnQuantity = new global::System.Data.DataColumn("Quantity", typeof(int), null, global::System.Data.MappingType.Element);
  3106. base.Columns.Add(this.columnQuantity);
  3107. this.columnClientServiceID = new global::System.Data.DataColumn("ClientServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  3108. base.Columns.Add(this.columnClientServiceID);
  3109. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3110. this.columnID}, true));
  3111. this.columnID.AutoIncrement = true;
  3112. this.columnID.AutoIncrementSeed = -1;
  3113. this.columnID.AutoIncrementStep = -1;
  3114. this.columnID.AllowDBNull = false;
  3115. this.columnID.ReadOnly = true;
  3116. this.columnID.Unique = true;
  3117. this.columnSaleDate.AllowDBNull = false;
  3118. this.columnProductID.AllowDBNull = false;
  3119. this.columnQuantity.AllowDBNull = false;
  3120. }
  3121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3123. public ProductSaleRow NewProductSaleRow() {
  3124. return ((ProductSaleRow)(this.NewRow()));
  3125. }
  3126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3128. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3129. return new ProductSaleRow(builder);
  3130. }
  3131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3133. protected override global::System.Type GetRowType() {
  3134. return typeof(ProductSaleRow);
  3135. }
  3136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3138. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3139. base.OnRowChanged(e);
  3140. if ((this.ProductSaleRowChanged != null)) {
  3141. this.ProductSaleRowChanged(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3142. }
  3143. }
  3144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3146. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3147. base.OnRowChanging(e);
  3148. if ((this.ProductSaleRowChanging != null)) {
  3149. this.ProductSaleRowChanging(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3150. }
  3151. }
  3152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3154. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3155. base.OnRowDeleted(e);
  3156. if ((this.ProductSaleRowDeleted != null)) {
  3157. this.ProductSaleRowDeleted(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3158. }
  3159. }
  3160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3162. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3163. base.OnRowDeleting(e);
  3164. if ((this.ProductSaleRowDeleting != null)) {
  3165. this.ProductSaleRowDeleting(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3166. }
  3167. }
  3168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3170. public void RemoveProductSaleRow(ProductSaleRow row) {
  3171. this.Rows.Remove(row);
  3172. }
  3173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3175. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3176. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3177. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3178. beauty_saloonDataSet ds = new beauty_saloonDataSet();
  3179. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3180. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3181. any1.MinOccurs = new decimal(0);
  3182. any1.MaxOccurs = decimal.MaxValue;
  3183. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3184. sequence.Items.Add(any1);
  3185. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3186. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3187. any2.MinOccurs = new decimal(1);
  3188. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3189. sequence.Items.Add(any2);
  3190. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3191. attribute1.Name = "namespace";
  3192. attribute1.FixedValue = ds.Namespace;
  3193. type.Attributes.Add(attribute1);
  3194. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3195. attribute2.Name = "tableTypeName";
  3196. attribute2.FixedValue = "ProductSaleDataTable";
  3197. type.Attributes.Add(attribute2);
  3198. type.Particle = sequence;
  3199. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3200. if (xs.Contains(dsSchema.TargetNamespace)) {
  3201. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3202. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3203. try {
  3204. global::System.Xml.Schema.XmlSchema schema = null;
  3205. dsSchema.Write(s1);
  3206. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3207. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3208. s2.SetLength(0);
  3209. schema.Write(s2);
  3210. if ((s1.Length == s2.Length)) {
  3211. s1.Position = 0;
  3212. s2.Position = 0;
  3213. for (; ((s1.Position != s1.Length)
  3214. && (s1.ReadByte() == s2.ReadByte())); ) {
  3215. ;
  3216. }
  3217. if ((s1.Position == s1.Length)) {
  3218. return type;
  3219. }
  3220. }
  3221. }
  3222. }
  3223. finally {
  3224. if ((s1 != null)) {
  3225. s1.Close();
  3226. }
  3227. if ((s2 != null)) {
  3228. s2.Close();
  3229. }
  3230. }
  3231. }
  3232. xs.Add(dsSchema);
  3233. return type;
  3234. }
  3235. }
  3236. /// <summary>
  3237. ///Represents the strongly named DataTable class.
  3238. ///</summary>
  3239. [global::System.Serializable()]
  3240. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3241. public partial class ServiceDataTable : global::System.Data.TypedTableBase<ServiceRow> {
  3242. private global::System.Data.DataColumn columnID;
  3243. private global::System.Data.DataColumn columnTitle;
  3244. private global::System.Data.DataColumn columnCost;
  3245. private global::System.Data.DataColumn columnDurationInSeconds;
  3246. private global::System.Data.DataColumn columnDescription;
  3247. private global::System.Data.DataColumn columnDiscount;
  3248. private global::System.Data.DataColumn columnMainImagePath;
  3249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3251. public ServiceDataTable() {
  3252. this.TableName = "Service";
  3253. this.BeginInit();
  3254. this.InitClass();
  3255. this.EndInit();
  3256. }
  3257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3259. internal ServiceDataTable(global::System.Data.DataTable table) {
  3260. this.TableName = table.TableName;
  3261. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3262. this.CaseSensitive = table.CaseSensitive;
  3263. }
  3264. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3265. this.Locale = table.Locale;
  3266. }
  3267. if ((table.Namespace != table.DataSet.Namespace)) {
  3268. this.Namespace = table.Namespace;
  3269. }
  3270. this.Prefix = table.Prefix;
  3271. this.MinimumCapacity = table.MinimumCapacity;
  3272. }
  3273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3275. protected ServiceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3276. base(info, context) {
  3277. this.InitVars();
  3278. }
  3279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3281. public global::System.Data.DataColumn IDColumn {
  3282. get {
  3283. return this.columnID;
  3284. }
  3285. }
  3286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3287. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3288. public global::System.Data.DataColumn TitleColumn {
  3289. get {
  3290. return this.columnTitle;
  3291. }
  3292. }
  3293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3295. public global::System.Data.DataColumn CostColumn {
  3296. get {
  3297. return this.columnCost;
  3298. }
  3299. }
  3300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3302. public global::System.Data.DataColumn DurationInSecondsColumn {
  3303. get {
  3304. return this.columnDurationInSeconds;
  3305. }
  3306. }
  3307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3309. public global::System.Data.DataColumn DescriptionColumn {
  3310. get {
  3311. return this.columnDescription;
  3312. }
  3313. }
  3314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3316. public global::System.Data.DataColumn DiscountColumn {
  3317. get {
  3318. return this.columnDiscount;
  3319. }
  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 MainImagePathColumn {
  3324. get {
  3325. return this.columnMainImagePath;
  3326. }
  3327. }
  3328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3330. [global::System.ComponentModel.Browsable(false)]
  3331. public int Count {
  3332. get {
  3333. return this.Rows.Count;
  3334. }
  3335. }
  3336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3338. public ServiceRow this[int index] {
  3339. get {
  3340. return ((ServiceRow)(this.Rows[index]));
  3341. }
  3342. }
  3343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3344. public event ServiceRowChangeEventHandler ServiceRowChanging;
  3345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3346. public event ServiceRowChangeEventHandler ServiceRowChanged;
  3347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3348. public event ServiceRowChangeEventHandler ServiceRowDeleting;
  3349. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3350. public event ServiceRowChangeEventHandler ServiceRowDeleted;
  3351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3352. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3353. public void AddServiceRow(ServiceRow row) {
  3354. this.Rows.Add(row);
  3355. }
  3356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3358. public ServiceRow AddServiceRow(string Title, decimal Cost, int DurationInSeconds, string Description, double Discount, string MainImagePath) {
  3359. ServiceRow rowServiceRow = ((ServiceRow)(this.NewRow()));
  3360. object[] columnValuesArray = new object[] {
  3361. null,
  3362. Title,
  3363. Cost,
  3364. DurationInSeconds,
  3365. Description,
  3366. Discount,
  3367. MainImagePath};
  3368. rowServiceRow.ItemArray = columnValuesArray;
  3369. this.Rows.Add(rowServiceRow);
  3370. return rowServiceRow;
  3371. }
  3372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3374. public ServiceRow FindByID(int ID) {
  3375. return ((ServiceRow)(this.Rows.Find(new object[] {
  3376. ID})));
  3377. }
  3378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3379. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3380. public override global::System.Data.DataTable Clone() {
  3381. ServiceDataTable cln = ((ServiceDataTable)(base.Clone()));
  3382. cln.InitVars();
  3383. return cln;
  3384. }
  3385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3387. protected override global::System.Data.DataTable CreateInstance() {
  3388. return new ServiceDataTable();
  3389. }
  3390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3392. internal void InitVars() {
  3393. this.columnID = base.Columns["ID"];
  3394. this.columnTitle = base.Columns["Title"];
  3395. this.columnCost = base.Columns["Cost"];
  3396. this.columnDurationInSeconds = base.Columns["DurationInSeconds"];
  3397. this.columnDescription = base.Columns["Description"];
  3398. this.columnDiscount = base.Columns["Discount"];
  3399. this.columnMainImagePath = base.Columns["MainImagePath"];
  3400. }
  3401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3403. private void InitClass() {
  3404. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3405. base.Columns.Add(this.columnID);
  3406. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  3407. base.Columns.Add(this.columnTitle);
  3408. this.columnCost = new global::System.Data.DataColumn("Cost", typeof(decimal), null, global::System.Data.MappingType.Element);
  3409. base.Columns.Add(this.columnCost);
  3410. this.columnDurationInSeconds = new global::System.Data.DataColumn("DurationInSeconds", typeof(int), null, global::System.Data.MappingType.Element);
  3411. base.Columns.Add(this.columnDurationInSeconds);
  3412. this.columnDescription = new global::System.Data.DataColumn("Description", typeof(string), null, global::System.Data.MappingType.Element);
  3413. base.Columns.Add(this.columnDescription);
  3414. this.columnDiscount = new global::System.Data.DataColumn("Discount", typeof(double), null, global::System.Data.MappingType.Element);
  3415. base.Columns.Add(this.columnDiscount);
  3416. this.columnMainImagePath = new global::System.Data.DataColumn("MainImagePath", typeof(string), null, global::System.Data.MappingType.Element);
  3417. base.Columns.Add(this.columnMainImagePath);
  3418. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3419. this.columnID}, true));
  3420. this.columnID.AutoIncrement = true;
  3421. this.columnID.AutoIncrementSeed = -1;
  3422. this.columnID.AutoIncrementStep = -1;
  3423. this.columnID.AllowDBNull = false;
  3424. this.columnID.ReadOnly = true;
  3425. this.columnID.Unique = true;
  3426. this.columnTitle.AllowDBNull = false;
  3427. this.columnTitle.MaxLength = 100;
  3428. this.columnCost.AllowDBNull = false;
  3429. this.columnDurationInSeconds.AllowDBNull = false;
  3430. this.columnDescription.MaxLength = 2147483647;
  3431. this.columnMainImagePath.MaxLength = 1000;
  3432. }
  3433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3434. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3435. public ServiceRow NewServiceRow() {
  3436. return ((ServiceRow)(this.NewRow()));
  3437. }
  3438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3440. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3441. return new ServiceRow(builder);
  3442. }
  3443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3444. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3445. protected override global::System.Type GetRowType() {
  3446. return typeof(ServiceRow);
  3447. }
  3448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3450. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3451. base.OnRowChanged(e);
  3452. if ((this.ServiceRowChanged != null)) {
  3453. this.ServiceRowChanged(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3454. }
  3455. }
  3456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3458. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3459. base.OnRowChanging(e);
  3460. if ((this.ServiceRowChanging != null)) {
  3461. this.ServiceRowChanging(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3462. }
  3463. }
  3464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3466. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3467. base.OnRowDeleted(e);
  3468. if ((this.ServiceRowDeleted != null)) {
  3469. this.ServiceRowDeleted(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3470. }
  3471. }
  3472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3474. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3475. base.OnRowDeleting(e);
  3476. if ((this.ServiceRowDeleting != null)) {
  3477. this.ServiceRowDeleting(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3478. }
  3479. }
  3480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3482. public void RemoveServiceRow(ServiceRow row) {
  3483. this.Rows.Remove(row);
  3484. }
  3485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3487. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3488. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3489. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3490. beauty_saloonDataSet ds = new beauty_saloonDataSet();
  3491. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3492. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3493. any1.MinOccurs = new decimal(0);
  3494. any1.MaxOccurs = decimal.MaxValue;
  3495. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3496. sequence.Items.Add(any1);
  3497. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3498. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3499. any2.MinOccurs = new decimal(1);
  3500. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3501. sequence.Items.Add(any2);
  3502. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3503. attribute1.Name = "namespace";
  3504. attribute1.FixedValue = ds.Namespace;
  3505. type.Attributes.Add(attribute1);
  3506. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3507. attribute2.Name = "tableTypeName";
  3508. attribute2.FixedValue = "ServiceDataTable";
  3509. type.Attributes.Add(attribute2);
  3510. type.Particle = sequence;
  3511. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3512. if (xs.Contains(dsSchema.TargetNamespace)) {
  3513. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3514. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3515. try {
  3516. global::System.Xml.Schema.XmlSchema schema = null;
  3517. dsSchema.Write(s1);
  3518. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3519. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3520. s2.SetLength(0);
  3521. schema.Write(s2);
  3522. if ((s1.Length == s2.Length)) {
  3523. s1.Position = 0;
  3524. s2.Position = 0;
  3525. for (; ((s1.Position != s1.Length)
  3526. && (s1.ReadByte() == s2.ReadByte())); ) {
  3527. ;
  3528. }
  3529. if ((s1.Position == s1.Length)) {
  3530. return type;
  3531. }
  3532. }
  3533. }
  3534. }
  3535. finally {
  3536. if ((s1 != null)) {
  3537. s1.Close();
  3538. }
  3539. if ((s2 != null)) {
  3540. s2.Close();
  3541. }
  3542. }
  3543. }
  3544. xs.Add(dsSchema);
  3545. return type;
  3546. }
  3547. }
  3548. /// <summary>
  3549. ///Represents the strongly named DataTable class.
  3550. ///</summary>
  3551. [global::System.Serializable()]
  3552. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3553. public partial class ServicePhotoDataTable : global::System.Data.TypedTableBase<ServicePhotoRow> {
  3554. private global::System.Data.DataColumn columnID;
  3555. private global::System.Data.DataColumn columnServiceID;
  3556. private global::System.Data.DataColumn columnPhotoPath;
  3557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3559. public ServicePhotoDataTable() {
  3560. this.TableName = "ServicePhoto";
  3561. this.BeginInit();
  3562. this.InitClass();
  3563. this.EndInit();
  3564. }
  3565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3567. internal ServicePhotoDataTable(global::System.Data.DataTable table) {
  3568. this.TableName = table.TableName;
  3569. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3570. this.CaseSensitive = table.CaseSensitive;
  3571. }
  3572. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3573. this.Locale = table.Locale;
  3574. }
  3575. if ((table.Namespace != table.DataSet.Namespace)) {
  3576. this.Namespace = table.Namespace;
  3577. }
  3578. this.Prefix = table.Prefix;
  3579. this.MinimumCapacity = table.MinimumCapacity;
  3580. }
  3581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3583. protected ServicePhotoDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3584. base(info, context) {
  3585. this.InitVars();
  3586. }
  3587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3589. public global::System.Data.DataColumn IDColumn {
  3590. get {
  3591. return this.columnID;
  3592. }
  3593. }
  3594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3596. public global::System.Data.DataColumn ServiceIDColumn {
  3597. get {
  3598. return this.columnServiceID;
  3599. }
  3600. }
  3601. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3602. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3603. public global::System.Data.DataColumn PhotoPathColumn {
  3604. get {
  3605. return this.columnPhotoPath;
  3606. }
  3607. }
  3608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3610. [global::System.ComponentModel.Browsable(false)]
  3611. public int Count {
  3612. get {
  3613. return this.Rows.Count;
  3614. }
  3615. }
  3616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3618. public ServicePhotoRow this[int index] {
  3619. get {
  3620. return ((ServicePhotoRow)(this.Rows[index]));
  3621. }
  3622. }
  3623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3624. public event ServicePhotoRowChangeEventHandler ServicePhotoRowChanging;
  3625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3626. public event ServicePhotoRowChangeEventHandler ServicePhotoRowChanged;
  3627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3628. public event ServicePhotoRowChangeEventHandler ServicePhotoRowDeleting;
  3629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3630. public event ServicePhotoRowChangeEventHandler ServicePhotoRowDeleted;
  3631. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3633. public void AddServicePhotoRow(ServicePhotoRow row) {
  3634. this.Rows.Add(row);
  3635. }
  3636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3638. public ServicePhotoRow AddServicePhotoRow(ServiceRow parentServiceRowByFK_ServicePhoto_Service, string PhotoPath) {
  3639. ServicePhotoRow rowServicePhotoRow = ((ServicePhotoRow)(this.NewRow()));
  3640. object[] columnValuesArray = new object[] {
  3641. null,
  3642. null,
  3643. PhotoPath};
  3644. if ((parentServiceRowByFK_ServicePhoto_Service != null)) {
  3645. columnValuesArray[1] = parentServiceRowByFK_ServicePhoto_Service[0];
  3646. }
  3647. rowServicePhotoRow.ItemArray = columnValuesArray;
  3648. this.Rows.Add(rowServicePhotoRow);
  3649. return rowServicePhotoRow;
  3650. }
  3651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3653. public ServicePhotoRow FindByID(int ID) {
  3654. return ((ServicePhotoRow)(this.Rows.Find(new object[] {
  3655. ID})));
  3656. }
  3657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3659. public override global::System.Data.DataTable Clone() {
  3660. ServicePhotoDataTable cln = ((ServicePhotoDataTable)(base.Clone()));
  3661. cln.InitVars();
  3662. return cln;
  3663. }
  3664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3666. protected override global::System.Data.DataTable CreateInstance() {
  3667. return new ServicePhotoDataTable();
  3668. }
  3669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3671. internal void InitVars() {
  3672. this.columnID = base.Columns["ID"];
  3673. this.columnServiceID = base.Columns["ServiceID"];
  3674. this.columnPhotoPath = base.Columns["PhotoPath"];
  3675. }
  3676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3678. private void InitClass() {
  3679. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3680. base.Columns.Add(this.columnID);
  3681. this.columnServiceID = new global::System.Data.DataColumn("ServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  3682. base.Columns.Add(this.columnServiceID);
  3683. this.columnPhotoPath = new global::System.Data.DataColumn("PhotoPath", typeof(string), null, global::System.Data.MappingType.Element);
  3684. base.Columns.Add(this.columnPhotoPath);
  3685. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3686. this.columnID}, true));
  3687. this.columnID.AutoIncrement = true;
  3688. this.columnID.AutoIncrementSeed = -1;
  3689. this.columnID.AutoIncrementStep = -1;
  3690. this.columnID.AllowDBNull = false;
  3691. this.columnID.ReadOnly = true;
  3692. this.columnID.Unique = true;
  3693. this.columnServiceID.AllowDBNull = false;
  3694. this.columnPhotoPath.AllowDBNull = false;
  3695. this.columnPhotoPath.MaxLength = 1000;
  3696. }
  3697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3699. public ServicePhotoRow NewServicePhotoRow() {
  3700. return ((ServicePhotoRow)(this.NewRow()));
  3701. }
  3702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3703. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3704. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3705. return new ServicePhotoRow(builder);
  3706. }
  3707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3709. protected override global::System.Type GetRowType() {
  3710. return typeof(ServicePhotoRow);
  3711. }
  3712. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3713. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3714. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3715. base.OnRowChanged(e);
  3716. if ((this.ServicePhotoRowChanged != null)) {
  3717. this.ServicePhotoRowChanged(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  3718. }
  3719. }
  3720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3722. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3723. base.OnRowChanging(e);
  3724. if ((this.ServicePhotoRowChanging != null)) {
  3725. this.ServicePhotoRowChanging(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  3726. }
  3727. }
  3728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3730. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3731. base.OnRowDeleted(e);
  3732. if ((this.ServicePhotoRowDeleted != null)) {
  3733. this.ServicePhotoRowDeleted(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  3734. }
  3735. }
  3736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3738. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3739. base.OnRowDeleting(e);
  3740. if ((this.ServicePhotoRowDeleting != null)) {
  3741. this.ServicePhotoRowDeleting(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  3742. }
  3743. }
  3744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3746. public void RemoveServicePhotoRow(ServicePhotoRow row) {
  3747. this.Rows.Remove(row);
  3748. }
  3749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3751. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3752. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3753. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3754. beauty_saloonDataSet ds = new beauty_saloonDataSet();
  3755. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3756. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3757. any1.MinOccurs = new decimal(0);
  3758. any1.MaxOccurs = decimal.MaxValue;
  3759. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3760. sequence.Items.Add(any1);
  3761. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3762. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3763. any2.MinOccurs = new decimal(1);
  3764. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3765. sequence.Items.Add(any2);
  3766. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3767. attribute1.Name = "namespace";
  3768. attribute1.FixedValue = ds.Namespace;
  3769. type.Attributes.Add(attribute1);
  3770. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3771. attribute2.Name = "tableTypeName";
  3772. attribute2.FixedValue = "ServicePhotoDataTable";
  3773. type.Attributes.Add(attribute2);
  3774. type.Particle = sequence;
  3775. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3776. if (xs.Contains(dsSchema.TargetNamespace)) {
  3777. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3778. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3779. try {
  3780. global::System.Xml.Schema.XmlSchema schema = null;
  3781. dsSchema.Write(s1);
  3782. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3783. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3784. s2.SetLength(0);
  3785. schema.Write(s2);
  3786. if ((s1.Length == s2.Length)) {
  3787. s1.Position = 0;
  3788. s2.Position = 0;
  3789. for (; ((s1.Position != s1.Length)
  3790. && (s1.ReadByte() == s2.ReadByte())); ) {
  3791. ;
  3792. }
  3793. if ((s1.Position == s1.Length)) {
  3794. return type;
  3795. }
  3796. }
  3797. }
  3798. }
  3799. finally {
  3800. if ((s1 != null)) {
  3801. s1.Close();
  3802. }
  3803. if ((s2 != null)) {
  3804. s2.Close();
  3805. }
  3806. }
  3807. }
  3808. xs.Add(dsSchema);
  3809. return type;
  3810. }
  3811. }
  3812. /// <summary>
  3813. ///Represents the strongly named DataTable class.
  3814. ///</summary>
  3815. [global::System.Serializable()]
  3816. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3817. public partial class TagDataTable : global::System.Data.TypedTableBase<TagRow> {
  3818. private global::System.Data.DataColumn columnID;
  3819. private global::System.Data.DataColumn columnTitle;
  3820. private global::System.Data.DataColumn columnColor;
  3821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3823. public TagDataTable() {
  3824. this.TableName = "Tag";
  3825. this.BeginInit();
  3826. this.InitClass();
  3827. this.EndInit();
  3828. }
  3829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3831. internal TagDataTable(global::System.Data.DataTable table) {
  3832. this.TableName = table.TableName;
  3833. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3834. this.CaseSensitive = table.CaseSensitive;
  3835. }
  3836. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3837. this.Locale = table.Locale;
  3838. }
  3839. if ((table.Namespace != table.DataSet.Namespace)) {
  3840. this.Namespace = table.Namespace;
  3841. }
  3842. this.Prefix = table.Prefix;
  3843. this.MinimumCapacity = table.MinimumCapacity;
  3844. }
  3845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3847. protected TagDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3848. base(info, context) {
  3849. this.InitVars();
  3850. }
  3851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3853. public global::System.Data.DataColumn IDColumn {
  3854. get {
  3855. return this.columnID;
  3856. }
  3857. }
  3858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3860. public global::System.Data.DataColumn TitleColumn {
  3861. get {
  3862. return this.columnTitle;
  3863. }
  3864. }
  3865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3867. public global::System.Data.DataColumn ColorColumn {
  3868. get {
  3869. return this.columnColor;
  3870. }
  3871. }
  3872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3874. [global::System.ComponentModel.Browsable(false)]
  3875. public int Count {
  3876. get {
  3877. return this.Rows.Count;
  3878. }
  3879. }
  3880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3881. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3882. public TagRow this[int index] {
  3883. get {
  3884. return ((TagRow)(this.Rows[index]));
  3885. }
  3886. }
  3887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3888. public event TagRowChangeEventHandler TagRowChanging;
  3889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3890. public event TagRowChangeEventHandler TagRowChanged;
  3891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3892. public event TagRowChangeEventHandler TagRowDeleting;
  3893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3894. public event TagRowChangeEventHandler TagRowDeleted;
  3895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3897. public void AddTagRow(TagRow row) {
  3898. this.Rows.Add(row);
  3899. }
  3900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3902. public TagRow AddTagRow(string Title, string Color) {
  3903. TagRow rowTagRow = ((TagRow)(this.NewRow()));
  3904. object[] columnValuesArray = new object[] {
  3905. null,
  3906. Title,
  3907. Color};
  3908. rowTagRow.ItemArray = columnValuesArray;
  3909. this.Rows.Add(rowTagRow);
  3910. return rowTagRow;
  3911. }
  3912. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3913. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3914. public TagRow FindByID(int ID) {
  3915. return ((TagRow)(this.Rows.Find(new object[] {
  3916. ID})));
  3917. }
  3918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3920. public override global::System.Data.DataTable Clone() {
  3921. TagDataTable cln = ((TagDataTable)(base.Clone()));
  3922. cln.InitVars();
  3923. return cln;
  3924. }
  3925. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3926. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3927. protected override global::System.Data.DataTable CreateInstance() {
  3928. return new TagDataTable();
  3929. }
  3930. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3931. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3932. internal void InitVars() {
  3933. this.columnID = base.Columns["ID"];
  3934. this.columnTitle = base.Columns["Title"];
  3935. this.columnColor = base.Columns["Color"];
  3936. }
  3937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3939. private void InitClass() {
  3940. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3941. base.Columns.Add(this.columnID);
  3942. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  3943. base.Columns.Add(this.columnTitle);
  3944. this.columnColor = new global::System.Data.DataColumn("Color", typeof(string), null, global::System.Data.MappingType.Element);
  3945. base.Columns.Add(this.columnColor);
  3946. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3947. this.columnID}, true));
  3948. this.columnID.AutoIncrement = true;
  3949. this.columnID.AutoIncrementSeed = -1;
  3950. this.columnID.AutoIncrementStep = -1;
  3951. this.columnID.AllowDBNull = false;
  3952. this.columnID.ReadOnly = true;
  3953. this.columnID.Unique = true;
  3954. this.columnTitle.AllowDBNull = false;
  3955. this.columnTitle.MaxLength = 30;
  3956. this.columnColor.AllowDBNull = false;
  3957. this.columnColor.MaxLength = 6;
  3958. }
  3959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3961. public TagRow NewTagRow() {
  3962. return ((TagRow)(this.NewRow()));
  3963. }
  3964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3966. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3967. return new TagRow(builder);
  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.Type GetRowType() {
  3972. return typeof(TagRow);
  3973. }
  3974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3976. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3977. base.OnRowChanged(e);
  3978. if ((this.TagRowChanged != null)) {
  3979. this.TagRowChanged(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  3980. }
  3981. }
  3982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3984. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3985. base.OnRowChanging(e);
  3986. if ((this.TagRowChanging != null)) {
  3987. this.TagRowChanging(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  3988. }
  3989. }
  3990. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3991. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3992. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3993. base.OnRowDeleted(e);
  3994. if ((this.TagRowDeleted != null)) {
  3995. this.TagRowDeleted(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  3996. }
  3997. }
  3998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4000. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4001. base.OnRowDeleting(e);
  4002. if ((this.TagRowDeleting != null)) {
  4003. this.TagRowDeleting(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  4004. }
  4005. }
  4006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4008. public void RemoveTagRow(TagRow row) {
  4009. this.Rows.Remove(row);
  4010. }
  4011. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4012. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4013. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4014. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4015. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4016. beauty_saloonDataSet ds = new beauty_saloonDataSet();
  4017. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4018. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4019. any1.MinOccurs = new decimal(0);
  4020. any1.MaxOccurs = decimal.MaxValue;
  4021. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4022. sequence.Items.Add(any1);
  4023. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4024. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4025. any2.MinOccurs = new decimal(1);
  4026. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4027. sequence.Items.Add(any2);
  4028. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4029. attribute1.Name = "namespace";
  4030. attribute1.FixedValue = ds.Namespace;
  4031. type.Attributes.Add(attribute1);
  4032. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4033. attribute2.Name = "tableTypeName";
  4034. attribute2.FixedValue = "TagDataTable";
  4035. type.Attributes.Add(attribute2);
  4036. type.Particle = sequence;
  4037. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4038. if (xs.Contains(dsSchema.TargetNamespace)) {
  4039. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4040. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4041. try {
  4042. global::System.Xml.Schema.XmlSchema schema = null;
  4043. dsSchema.Write(s1);
  4044. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4045. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4046. s2.SetLength(0);
  4047. schema.Write(s2);
  4048. if ((s1.Length == s2.Length)) {
  4049. s1.Position = 0;
  4050. s2.Position = 0;
  4051. for (; ((s1.Position != s1.Length)
  4052. && (s1.ReadByte() == s2.ReadByte())); ) {
  4053. ;
  4054. }
  4055. if ((s1.Position == s1.Length)) {
  4056. return type;
  4057. }
  4058. }
  4059. }
  4060. }
  4061. finally {
  4062. if ((s1 != null)) {
  4063. s1.Close();
  4064. }
  4065. if ((s2 != null)) {
  4066. s2.Close();
  4067. }
  4068. }
  4069. }
  4070. xs.Add(dsSchema);
  4071. return type;
  4072. }
  4073. }
  4074. /// <summary>
  4075. ///Represents the strongly named DataTable class.
  4076. ///</summary>
  4077. [global::System.Serializable()]
  4078. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  4079. public partial class TagOfClientDataTable : global::System.Data.TypedTableBase<TagOfClientRow> {
  4080. private global::System.Data.DataColumn columnClientID;
  4081. private global::System.Data.DataColumn columnTagID;
  4082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4084. public TagOfClientDataTable() {
  4085. this.TableName = "TagOfClient";
  4086. this.BeginInit();
  4087. this.InitClass();
  4088. this.EndInit();
  4089. }
  4090. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4091. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4092. internal TagOfClientDataTable(global::System.Data.DataTable table) {
  4093. this.TableName = table.TableName;
  4094. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  4095. this.CaseSensitive = table.CaseSensitive;
  4096. }
  4097. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  4098. this.Locale = table.Locale;
  4099. }
  4100. if ((table.Namespace != table.DataSet.Namespace)) {
  4101. this.Namespace = table.Namespace;
  4102. }
  4103. this.Prefix = table.Prefix;
  4104. this.MinimumCapacity = table.MinimumCapacity;
  4105. }
  4106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4108. protected TagOfClientDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  4109. base(info, context) {
  4110. this.InitVars();
  4111. }
  4112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4113. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4114. public global::System.Data.DataColumn ClientIDColumn {
  4115. get {
  4116. return this.columnClientID;
  4117. }
  4118. }
  4119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4121. public global::System.Data.DataColumn TagIDColumn {
  4122. get {
  4123. return this.columnTagID;
  4124. }
  4125. }
  4126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4128. [global::System.ComponentModel.Browsable(false)]
  4129. public int Count {
  4130. get {
  4131. return this.Rows.Count;
  4132. }
  4133. }
  4134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4136. public TagOfClientRow this[int index] {
  4137. get {
  4138. return ((TagOfClientRow)(this.Rows[index]));
  4139. }
  4140. }
  4141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4142. public event TagOfClientRowChangeEventHandler TagOfClientRowChanging;
  4143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4144. public event TagOfClientRowChangeEventHandler TagOfClientRowChanged;
  4145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4146. public event TagOfClientRowChangeEventHandler TagOfClientRowDeleting;
  4147. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4148. public event TagOfClientRowChangeEventHandler TagOfClientRowDeleted;
  4149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4151. public void AddTagOfClientRow(TagOfClientRow row) {
  4152. this.Rows.Add(row);
  4153. }
  4154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4156. public TagOfClientRow AddTagOfClientRow(ClientRow parentClientRowByFK_TagOfClient_Client, TagRow parentTagRowByFK_TagOfClient_Tag) {
  4157. TagOfClientRow rowTagOfClientRow = ((TagOfClientRow)(this.NewRow()));
  4158. object[] columnValuesArray = new object[] {
  4159. null,
  4160. null};
  4161. if ((parentClientRowByFK_TagOfClient_Client != null)) {
  4162. columnValuesArray[0] = parentClientRowByFK_TagOfClient_Client[0];
  4163. }
  4164. if ((parentTagRowByFK_TagOfClient_Tag != null)) {
  4165. columnValuesArray[1] = parentTagRowByFK_TagOfClient_Tag[0];
  4166. }
  4167. rowTagOfClientRow.ItemArray = columnValuesArray;
  4168. this.Rows.Add(rowTagOfClientRow);
  4169. return rowTagOfClientRow;
  4170. }
  4171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4173. public TagOfClientRow FindByClientIDTagID(int ClientID, int TagID) {
  4174. return ((TagOfClientRow)(this.Rows.Find(new object[] {
  4175. ClientID,
  4176. TagID})));
  4177. }
  4178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4180. public override global::System.Data.DataTable Clone() {
  4181. TagOfClientDataTable cln = ((TagOfClientDataTable)(base.Clone()));
  4182. cln.InitVars();
  4183. return cln;
  4184. }
  4185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4187. protected override global::System.Data.DataTable CreateInstance() {
  4188. return new TagOfClientDataTable();
  4189. }
  4190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4191. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4192. internal void InitVars() {
  4193. this.columnClientID = base.Columns["ClientID"];
  4194. this.columnTagID = base.Columns["TagID"];
  4195. }
  4196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4198. private void InitClass() {
  4199. this.columnClientID = new global::System.Data.DataColumn("ClientID", typeof(int), null, global::System.Data.MappingType.Element);
  4200. base.Columns.Add(this.columnClientID);
  4201. this.columnTagID = new global::System.Data.DataColumn("TagID", typeof(int), null, global::System.Data.MappingType.Element);
  4202. base.Columns.Add(this.columnTagID);
  4203. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  4204. this.columnClientID,
  4205. this.columnTagID}, true));
  4206. this.columnClientID.AllowDBNull = false;
  4207. this.columnTagID.AllowDBNull = false;
  4208. }
  4209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4211. public TagOfClientRow NewTagOfClientRow() {
  4212. return ((TagOfClientRow)(this.NewRow()));
  4213. }
  4214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4216. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4217. return new TagOfClientRow(builder);
  4218. }
  4219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4221. protected override global::System.Type GetRowType() {
  4222. return typeof(TagOfClientRow);
  4223. }
  4224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4226. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4227. base.OnRowChanged(e);
  4228. if ((this.TagOfClientRowChanged != null)) {
  4229. this.TagOfClientRowChanged(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  4230. }
  4231. }
  4232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4234. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4235. base.OnRowChanging(e);
  4236. if ((this.TagOfClientRowChanging != null)) {
  4237. this.TagOfClientRowChanging(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  4238. }
  4239. }
  4240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4242. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4243. base.OnRowDeleted(e);
  4244. if ((this.TagOfClientRowDeleted != null)) {
  4245. this.TagOfClientRowDeleted(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  4246. }
  4247. }
  4248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4250. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4251. base.OnRowDeleting(e);
  4252. if ((this.TagOfClientRowDeleting != null)) {
  4253. this.TagOfClientRowDeleting(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  4254. }
  4255. }
  4256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4258. public void RemoveTagOfClientRow(TagOfClientRow row) {
  4259. this.Rows.Remove(row);
  4260. }
  4261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4263. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4264. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4265. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4266. beauty_saloonDataSet ds = new beauty_saloonDataSet();
  4267. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4268. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4269. any1.MinOccurs = new decimal(0);
  4270. any1.MaxOccurs = decimal.MaxValue;
  4271. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4272. sequence.Items.Add(any1);
  4273. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4274. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4275. any2.MinOccurs = new decimal(1);
  4276. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4277. sequence.Items.Add(any2);
  4278. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4279. attribute1.Name = "namespace";
  4280. attribute1.FixedValue = ds.Namespace;
  4281. type.Attributes.Add(attribute1);
  4282. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4283. attribute2.Name = "tableTypeName";
  4284. attribute2.FixedValue = "TagOfClientDataTable";
  4285. type.Attributes.Add(attribute2);
  4286. type.Particle = sequence;
  4287. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4288. if (xs.Contains(dsSchema.TargetNamespace)) {
  4289. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4290. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4291. try {
  4292. global::System.Xml.Schema.XmlSchema schema = null;
  4293. dsSchema.Write(s1);
  4294. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4295. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4296. s2.SetLength(0);
  4297. schema.Write(s2);
  4298. if ((s1.Length == s2.Length)) {
  4299. s1.Position = 0;
  4300. s2.Position = 0;
  4301. for (; ((s1.Position != s1.Length)
  4302. && (s1.ReadByte() == s2.ReadByte())); ) {
  4303. ;
  4304. }
  4305. if ((s1.Position == s1.Length)) {
  4306. return type;
  4307. }
  4308. }
  4309. }
  4310. }
  4311. finally {
  4312. if ((s1 != null)) {
  4313. s1.Close();
  4314. }
  4315. if ((s2 != null)) {
  4316. s2.Close();
  4317. }
  4318. }
  4319. }
  4320. xs.Add(dsSchema);
  4321. return type;
  4322. }
  4323. }
  4324. /// <summary>
  4325. ///Represents strongly named DataRow class.
  4326. ///</summary>
  4327. public partial class AttachedProductRow : global::System.Data.DataRow {
  4328. private AttachedProductDataTable tableAttachedProduct;
  4329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4331. internal AttachedProductRow(global::System.Data.DataRowBuilder rb) :
  4332. base(rb) {
  4333. this.tableAttachedProduct = ((AttachedProductDataTable)(this.Table));
  4334. }
  4335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4337. public int MainProductID {
  4338. get {
  4339. return ((int)(this[this.tableAttachedProduct.MainProductIDColumn]));
  4340. }
  4341. set {
  4342. this[this.tableAttachedProduct.MainProductIDColumn] = value;
  4343. }
  4344. }
  4345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4347. public int AttachedProductID {
  4348. get {
  4349. return ((int)(this[this.tableAttachedProduct.AttachedProductIDColumn]));
  4350. }
  4351. set {
  4352. this[this.tableAttachedProduct.AttachedProductIDColumn] = value;
  4353. }
  4354. }
  4355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4357. public ProductRow ProductRowByFK_AttachedProduct_Product {
  4358. get {
  4359. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_AttachedProduct_Product"])));
  4360. }
  4361. set {
  4362. this.SetParentRow(value, this.Table.ParentRelations["FK_AttachedProduct_Product"]);
  4363. }
  4364. }
  4365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4367. public ProductRow ProductRowByFK_AttachedProduct_Product1 {
  4368. get {
  4369. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_AttachedProduct_Product1"])));
  4370. }
  4371. set {
  4372. this.SetParentRow(value, this.Table.ParentRelations["FK_AttachedProduct_Product1"]);
  4373. }
  4374. }
  4375. }
  4376. /// <summary>
  4377. ///Represents strongly named DataRow class.
  4378. ///</summary>
  4379. public partial class ClientRow : global::System.Data.DataRow {
  4380. private ClientDataTable tableClient;
  4381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4383. internal ClientRow(global::System.Data.DataRowBuilder rb) :
  4384. base(rb) {
  4385. this.tableClient = ((ClientDataTable)(this.Table));
  4386. }
  4387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4389. public int ID {
  4390. get {
  4391. return ((int)(this[this.tableClient.IDColumn]));
  4392. }
  4393. set {
  4394. this[this.tableClient.IDColumn] = value;
  4395. }
  4396. }
  4397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4399. public string FirstName {
  4400. get {
  4401. return ((string)(this[this.tableClient.FirstNameColumn]));
  4402. }
  4403. set {
  4404. this[this.tableClient.FirstNameColumn] = value;
  4405. }
  4406. }
  4407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4408. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4409. public string LastName {
  4410. get {
  4411. return ((string)(this[this.tableClient.LastNameColumn]));
  4412. }
  4413. set {
  4414. this[this.tableClient.LastNameColumn] = value;
  4415. }
  4416. }
  4417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4419. public string Patronymic {
  4420. get {
  4421. try {
  4422. return ((string)(this[this.tableClient.PatronymicColumn]));
  4423. }
  4424. catch (global::System.InvalidCastException e) {
  4425. throw new global::System.Data.StrongTypingException("Значение для столбца \'Patronymic\' в таблице \'Client\' равно DBNull.", e);
  4426. }
  4427. }
  4428. set {
  4429. this[this.tableClient.PatronymicColumn] = value;
  4430. }
  4431. }
  4432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4433. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4434. public System.DateTime Birthday {
  4435. get {
  4436. try {
  4437. return ((global::System.DateTime)(this[this.tableClient.BirthdayColumn]));
  4438. }
  4439. catch (global::System.InvalidCastException e) {
  4440. throw new global::System.Data.StrongTypingException("Значение для столбца \'Birthday\' в таблице \'Client\' равно DBNull.", e);
  4441. }
  4442. }
  4443. set {
  4444. this[this.tableClient.BirthdayColumn] = value;
  4445. }
  4446. }
  4447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4448. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4449. public System.DateTime RegistrationDate {
  4450. get {
  4451. return ((global::System.DateTime)(this[this.tableClient.RegistrationDateColumn]));
  4452. }
  4453. set {
  4454. this[this.tableClient.RegistrationDateColumn] = value;
  4455. }
  4456. }
  4457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4458. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4459. public string Email {
  4460. get {
  4461. try {
  4462. return ((string)(this[this.tableClient.EmailColumn]));
  4463. }
  4464. catch (global::System.InvalidCastException e) {
  4465. throw new global::System.Data.StrongTypingException("Значение для столбца \'Email\' в таблице \'Client\' равно DBNull.", e);
  4466. }
  4467. }
  4468. set {
  4469. this[this.tableClient.EmailColumn] = value;
  4470. }
  4471. }
  4472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4474. public string Phone {
  4475. get {
  4476. return ((string)(this[this.tableClient.PhoneColumn]));
  4477. }
  4478. set {
  4479. this[this.tableClient.PhoneColumn] = value;
  4480. }
  4481. }
  4482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4484. public string GenderCode {
  4485. get {
  4486. return ((string)(this[this.tableClient.GenderCodeColumn]));
  4487. }
  4488. set {
  4489. this[this.tableClient.GenderCodeColumn] = value;
  4490. }
  4491. }
  4492. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4493. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4494. public string PhotoPath {
  4495. get {
  4496. try {
  4497. return ((string)(this[this.tableClient.PhotoPathColumn]));
  4498. }
  4499. catch (global::System.InvalidCastException e) {
  4500. throw new global::System.Data.StrongTypingException("Значение для столбца \'PhotoPath\' в таблице \'Client\' равно DBNull.", e);
  4501. }
  4502. }
  4503. set {
  4504. this[this.tableClient.PhotoPathColumn] = value;
  4505. }
  4506. }
  4507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4509. public GenderRow GenderRow {
  4510. get {
  4511. return ((GenderRow)(this.GetParentRow(this.Table.ParentRelations["FK_Client_Gender"])));
  4512. }
  4513. set {
  4514. this.SetParentRow(value, this.Table.ParentRelations["FK_Client_Gender"]);
  4515. }
  4516. }
  4517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4519. public bool IsPatronymicNull() {
  4520. return this.IsNull(this.tableClient.PatronymicColumn);
  4521. }
  4522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4524. public void SetPatronymicNull() {
  4525. this[this.tableClient.PatronymicColumn] = global::System.Convert.DBNull;
  4526. }
  4527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4529. public bool IsBirthdayNull() {
  4530. return this.IsNull(this.tableClient.BirthdayColumn);
  4531. }
  4532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4533. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4534. public void SetBirthdayNull() {
  4535. this[this.tableClient.BirthdayColumn] = global::System.Convert.DBNull;
  4536. }
  4537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4539. public bool IsEmailNull() {
  4540. return this.IsNull(this.tableClient.EmailColumn);
  4541. }
  4542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4544. public void SetEmailNull() {
  4545. this[this.tableClient.EmailColumn] = global::System.Convert.DBNull;
  4546. }
  4547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4549. public bool IsPhotoPathNull() {
  4550. return this.IsNull(this.tableClient.PhotoPathColumn);
  4551. }
  4552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4554. public void SetPhotoPathNull() {
  4555. this[this.tableClient.PhotoPathColumn] = global::System.Convert.DBNull;
  4556. }
  4557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4559. public ClientServiceRow[] GetClientServiceRows() {
  4560. if ((this.Table.ChildRelations["FK_ClientService_Client"] == null)) {
  4561. return new ClientServiceRow[0];
  4562. }
  4563. else {
  4564. return ((ClientServiceRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ClientService_Client"])));
  4565. }
  4566. }
  4567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4569. public TagOfClientRow[] GetTagOfClientRows() {
  4570. if ((this.Table.ChildRelations["FK_TagOfClient_Client"] == null)) {
  4571. return new TagOfClientRow[0];
  4572. }
  4573. else {
  4574. return ((TagOfClientRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TagOfClient_Client"])));
  4575. }
  4576. }
  4577. }
  4578. /// <summary>
  4579. ///Represents strongly named DataRow class.
  4580. ///</summary>
  4581. public partial class ClientServiceRow : global::System.Data.DataRow {
  4582. private ClientServiceDataTable tableClientService;
  4583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4585. internal ClientServiceRow(global::System.Data.DataRowBuilder rb) :
  4586. base(rb) {
  4587. this.tableClientService = ((ClientServiceDataTable)(this.Table));
  4588. }
  4589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4591. public int ID {
  4592. get {
  4593. return ((int)(this[this.tableClientService.IDColumn]));
  4594. }
  4595. set {
  4596. this[this.tableClientService.IDColumn] = value;
  4597. }
  4598. }
  4599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4600. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4601. public int ClientID {
  4602. get {
  4603. return ((int)(this[this.tableClientService.ClientIDColumn]));
  4604. }
  4605. set {
  4606. this[this.tableClientService.ClientIDColumn] = value;
  4607. }
  4608. }
  4609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4611. public int ServiceID {
  4612. get {
  4613. return ((int)(this[this.tableClientService.ServiceIDColumn]));
  4614. }
  4615. set {
  4616. this[this.tableClientService.ServiceIDColumn] = value;
  4617. }
  4618. }
  4619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4621. public System.DateTime StartTime {
  4622. get {
  4623. return ((global::System.DateTime)(this[this.tableClientService.StartTimeColumn]));
  4624. }
  4625. set {
  4626. this[this.tableClientService.StartTimeColumn] = value;
  4627. }
  4628. }
  4629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4631. public string Comment {
  4632. get {
  4633. try {
  4634. return ((string)(this[this.tableClientService.CommentColumn]));
  4635. }
  4636. catch (global::System.InvalidCastException e) {
  4637. throw new global::System.Data.StrongTypingException("Значение для столбца \'Comment\' в таблице \'ClientService\' равно DBNull.", e);
  4638. }
  4639. }
  4640. set {
  4641. this[this.tableClientService.CommentColumn] = value;
  4642. }
  4643. }
  4644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4646. public ClientRow ClientRow {
  4647. get {
  4648. return ((ClientRow)(this.GetParentRow(this.Table.ParentRelations["FK_ClientService_Client"])));
  4649. }
  4650. set {
  4651. this.SetParentRow(value, this.Table.ParentRelations["FK_ClientService_Client"]);
  4652. }
  4653. }
  4654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4656. public ServiceRow ServiceRow {
  4657. get {
  4658. return ((ServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_ClientService_Service"])));
  4659. }
  4660. set {
  4661. this.SetParentRow(value, this.Table.ParentRelations["FK_ClientService_Service"]);
  4662. }
  4663. }
  4664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4666. public bool IsCommentNull() {
  4667. return this.IsNull(this.tableClientService.CommentColumn);
  4668. }
  4669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4671. public void SetCommentNull() {
  4672. this[this.tableClientService.CommentColumn] = global::System.Convert.DBNull;
  4673. }
  4674. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4676. public DocumentByServiceRow[] GetDocumentByServiceRows() {
  4677. if ((this.Table.ChildRelations["FK_DocumentByService_ClientService"] == null)) {
  4678. return new DocumentByServiceRow[0];
  4679. }
  4680. else {
  4681. return ((DocumentByServiceRow[])(base.GetChildRows(this.Table.ChildRelations["FK_DocumentByService_ClientService"])));
  4682. }
  4683. }
  4684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4686. public ProductSaleRow[] GetProductSaleRows() {
  4687. if ((this.Table.ChildRelations["FK_ProductSale_ClientService"] == null)) {
  4688. return new ProductSaleRow[0];
  4689. }
  4690. else {
  4691. return ((ProductSaleRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductSale_ClientService"])));
  4692. }
  4693. }
  4694. }
  4695. /// <summary>
  4696. ///Represents strongly named DataRow class.
  4697. ///</summary>
  4698. public partial class DocumentByServiceRow : global::System.Data.DataRow {
  4699. private DocumentByServiceDataTable tableDocumentByService;
  4700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4702. internal DocumentByServiceRow(global::System.Data.DataRowBuilder rb) :
  4703. base(rb) {
  4704. this.tableDocumentByService = ((DocumentByServiceDataTable)(this.Table));
  4705. }
  4706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4708. public int ID {
  4709. get {
  4710. return ((int)(this[this.tableDocumentByService.IDColumn]));
  4711. }
  4712. set {
  4713. this[this.tableDocumentByService.IDColumn] = value;
  4714. }
  4715. }
  4716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4718. public int ClientServiceID {
  4719. get {
  4720. return ((int)(this[this.tableDocumentByService.ClientServiceIDColumn]));
  4721. }
  4722. set {
  4723. this[this.tableDocumentByService.ClientServiceIDColumn] = value;
  4724. }
  4725. }
  4726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4728. public string DocumentPath {
  4729. get {
  4730. return ((string)(this[this.tableDocumentByService.DocumentPathColumn]));
  4731. }
  4732. set {
  4733. this[this.tableDocumentByService.DocumentPathColumn] = value;
  4734. }
  4735. }
  4736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4738. public ClientServiceRow ClientServiceRow {
  4739. get {
  4740. return ((ClientServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_DocumentByService_ClientService"])));
  4741. }
  4742. set {
  4743. this.SetParentRow(value, this.Table.ParentRelations["FK_DocumentByService_ClientService"]);
  4744. }
  4745. }
  4746. }
  4747. /// <summary>
  4748. ///Represents strongly named DataRow class.
  4749. ///</summary>
  4750. public partial class GenderRow : global::System.Data.DataRow {
  4751. private GenderDataTable tableGender;
  4752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4754. internal GenderRow(global::System.Data.DataRowBuilder rb) :
  4755. base(rb) {
  4756. this.tableGender = ((GenderDataTable)(this.Table));
  4757. }
  4758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4760. public string Code {
  4761. get {
  4762. return ((string)(this[this.tableGender.CodeColumn]));
  4763. }
  4764. set {
  4765. this[this.tableGender.CodeColumn] = value;
  4766. }
  4767. }
  4768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4770. public string Name {
  4771. get {
  4772. try {
  4773. return ((string)(this[this.tableGender.NameColumn]));
  4774. }
  4775. catch (global::System.InvalidCastException e) {
  4776. throw new global::System.Data.StrongTypingException("Значение для столбца \'Name\' в таблице \'Gender\' равно DBNull.", e);
  4777. }
  4778. }
  4779. set {
  4780. this[this.tableGender.NameColumn] = value;
  4781. }
  4782. }
  4783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4785. public bool IsNameNull() {
  4786. return this.IsNull(this.tableGender.NameColumn);
  4787. }
  4788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4790. public void SetNameNull() {
  4791. this[this.tableGender.NameColumn] = global::System.Convert.DBNull;
  4792. }
  4793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4795. public ClientRow[] GetClientRows() {
  4796. if ((this.Table.ChildRelations["FK_Client_Gender"] == null)) {
  4797. return new ClientRow[0];
  4798. }
  4799. else {
  4800. return ((ClientRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Client_Gender"])));
  4801. }
  4802. }
  4803. }
  4804. /// <summary>
  4805. ///Represents strongly named DataRow class.
  4806. ///</summary>
  4807. public partial class ManufacturerRow : global::System.Data.DataRow {
  4808. private ManufacturerDataTable tableManufacturer;
  4809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4811. internal ManufacturerRow(global::System.Data.DataRowBuilder rb) :
  4812. base(rb) {
  4813. this.tableManufacturer = ((ManufacturerDataTable)(this.Table));
  4814. }
  4815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4817. public int ID {
  4818. get {
  4819. return ((int)(this[this.tableManufacturer.IDColumn]));
  4820. }
  4821. set {
  4822. this[this.tableManufacturer.IDColumn] = value;
  4823. }
  4824. }
  4825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4827. public string Name {
  4828. get {
  4829. return ((string)(this[this.tableManufacturer.NameColumn]));
  4830. }
  4831. set {
  4832. this[this.tableManufacturer.NameColumn] = value;
  4833. }
  4834. }
  4835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4837. public System.DateTime StartDate {
  4838. get {
  4839. try {
  4840. return ((global::System.DateTime)(this[this.tableManufacturer.StartDateColumn]));
  4841. }
  4842. catch (global::System.InvalidCastException e) {
  4843. throw new global::System.Data.StrongTypingException("Значение для столбца \'StartDate\' в таблице \'Manufacturer\' равно DBNull.", e);
  4844. }
  4845. }
  4846. set {
  4847. this[this.tableManufacturer.StartDateColumn] = value;
  4848. }
  4849. }
  4850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4852. public bool IsStartDateNull() {
  4853. return this.IsNull(this.tableManufacturer.StartDateColumn);
  4854. }
  4855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4857. public void SetStartDateNull() {
  4858. this[this.tableManufacturer.StartDateColumn] = global::System.Convert.DBNull;
  4859. }
  4860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4862. public ProductRow[] GetProductRows() {
  4863. if ((this.Table.ChildRelations["FK_Product_Manufacturer"] == null)) {
  4864. return new ProductRow[0];
  4865. }
  4866. else {
  4867. return ((ProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Product_Manufacturer"])));
  4868. }
  4869. }
  4870. }
  4871. /// <summary>
  4872. ///Represents strongly named DataRow class.
  4873. ///</summary>
  4874. public partial class ProductRow : global::System.Data.DataRow {
  4875. private ProductDataTable tableProduct;
  4876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4878. internal ProductRow(global::System.Data.DataRowBuilder rb) :
  4879. base(rb) {
  4880. this.tableProduct = ((ProductDataTable)(this.Table));
  4881. }
  4882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4884. public int ID {
  4885. get {
  4886. return ((int)(this[this.tableProduct.IDColumn]));
  4887. }
  4888. set {
  4889. this[this.tableProduct.IDColumn] = value;
  4890. }
  4891. }
  4892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4894. public string Title {
  4895. get {
  4896. return ((string)(this[this.tableProduct.TitleColumn]));
  4897. }
  4898. set {
  4899. this[this.tableProduct.TitleColumn] = value;
  4900. }
  4901. }
  4902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4904. public decimal Cost {
  4905. get {
  4906. return ((decimal)(this[this.tableProduct.CostColumn]));
  4907. }
  4908. set {
  4909. this[this.tableProduct.CostColumn] = value;
  4910. }
  4911. }
  4912. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4913. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4914. public string Description {
  4915. get {
  4916. try {
  4917. return ((string)(this[this.tableProduct.DescriptionColumn]));
  4918. }
  4919. catch (global::System.InvalidCastException e) {
  4920. throw new global::System.Data.StrongTypingException("Значение для столбца \'Description\' в таблице \'Product\' равно DBNull.", e);
  4921. }
  4922. }
  4923. set {
  4924. this[this.tableProduct.DescriptionColumn] = value;
  4925. }
  4926. }
  4927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4929. public string MainImagePath {
  4930. get {
  4931. try {
  4932. return ((string)(this[this.tableProduct.MainImagePathColumn]));
  4933. }
  4934. catch (global::System.InvalidCastException e) {
  4935. throw new global::System.Data.StrongTypingException("Значение для столбца \'MainImagePath\' в таблице \'Product\' равно DBNull.", e);
  4936. }
  4937. }
  4938. set {
  4939. this[this.tableProduct.MainImagePathColumn] = value;
  4940. }
  4941. }
  4942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4944. public bool IsActive {
  4945. get {
  4946. return ((bool)(this[this.tableProduct.IsActiveColumn]));
  4947. }
  4948. set {
  4949. this[this.tableProduct.IsActiveColumn] = value;
  4950. }
  4951. }
  4952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4953. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4954. public int ManufacturerID {
  4955. get {
  4956. try {
  4957. return ((int)(this[this.tableProduct.ManufacturerIDColumn]));
  4958. }
  4959. catch (global::System.InvalidCastException e) {
  4960. throw new global::System.Data.StrongTypingException("Значение для столбца \'ManufacturerID\' в таблице \'Product\' равно DBNull.", e);
  4961. }
  4962. }
  4963. set {
  4964. this[this.tableProduct.ManufacturerIDColumn] = value;
  4965. }
  4966. }
  4967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4969. public ManufacturerRow ManufacturerRow {
  4970. get {
  4971. return ((ManufacturerRow)(this.GetParentRow(this.Table.ParentRelations["FK_Product_Manufacturer"])));
  4972. }
  4973. set {
  4974. this.SetParentRow(value, this.Table.ParentRelations["FK_Product_Manufacturer"]);
  4975. }
  4976. }
  4977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4978. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4979. public bool IsDescriptionNull() {
  4980. return this.IsNull(this.tableProduct.DescriptionColumn);
  4981. }
  4982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4984. public void SetDescriptionNull() {
  4985. this[this.tableProduct.DescriptionColumn] = global::System.Convert.DBNull;
  4986. }
  4987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4989. public bool IsMainImagePathNull() {
  4990. return this.IsNull(this.tableProduct.MainImagePathColumn);
  4991. }
  4992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4994. public void SetMainImagePathNull() {
  4995. this[this.tableProduct.MainImagePathColumn] = global::System.Convert.DBNull;
  4996. }
  4997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4998. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4999. public bool IsManufacturerIDNull() {
  5000. return this.IsNull(this.tableProduct.ManufacturerIDColumn);
  5001. }
  5002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5004. public void SetManufacturerIDNull() {
  5005. this[this.tableProduct.ManufacturerIDColumn] = global::System.Convert.DBNull;
  5006. }
  5007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5008. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5009. public AttachedProductRow[] GetAttachedProductRowsByFK_AttachedProduct_Product() {
  5010. if ((this.Table.ChildRelations["FK_AttachedProduct_Product"] == null)) {
  5011. return new AttachedProductRow[0];
  5012. }
  5013. else {
  5014. return ((AttachedProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AttachedProduct_Product"])));
  5015. }
  5016. }
  5017. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5019. public AttachedProductRow[] GetAttachedProductRowsByFK_AttachedProduct_Product1() {
  5020. if ((this.Table.ChildRelations["FK_AttachedProduct_Product1"] == null)) {
  5021. return new AttachedProductRow[0];
  5022. }
  5023. else {
  5024. return ((AttachedProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AttachedProduct_Product1"])));
  5025. }
  5026. }
  5027. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5028. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5029. public ProductPhotoRow[] GetProductPhotoRows() {
  5030. if ((this.Table.ChildRelations["FK_ProductPhoto_Product"] == null)) {
  5031. return new ProductPhotoRow[0];
  5032. }
  5033. else {
  5034. return ((ProductPhotoRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductPhoto_Product"])));
  5035. }
  5036. }
  5037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5039. public ProductSaleRow[] GetProductSaleRows() {
  5040. if ((this.Table.ChildRelations["FK_ProductSale_Product"] == null)) {
  5041. return new ProductSaleRow[0];
  5042. }
  5043. else {
  5044. return ((ProductSaleRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductSale_Product"])));
  5045. }
  5046. }
  5047. }
  5048. /// <summary>
  5049. ///Represents strongly named DataRow class.
  5050. ///</summary>
  5051. public partial class ProductPhotoRow : global::System.Data.DataRow {
  5052. private ProductPhotoDataTable tableProductPhoto;
  5053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5055. internal ProductPhotoRow(global::System.Data.DataRowBuilder rb) :
  5056. base(rb) {
  5057. this.tableProductPhoto = ((ProductPhotoDataTable)(this.Table));
  5058. }
  5059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5061. public int ID {
  5062. get {
  5063. return ((int)(this[this.tableProductPhoto.IDColumn]));
  5064. }
  5065. set {
  5066. this[this.tableProductPhoto.IDColumn] = value;
  5067. }
  5068. }
  5069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5070. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5071. public int ProductID {
  5072. get {
  5073. return ((int)(this[this.tableProductPhoto.ProductIDColumn]));
  5074. }
  5075. set {
  5076. this[this.tableProductPhoto.ProductIDColumn] = value;
  5077. }
  5078. }
  5079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5081. public string PhotoPath {
  5082. get {
  5083. return ((string)(this[this.tableProductPhoto.PhotoPathColumn]));
  5084. }
  5085. set {
  5086. this[this.tableProductPhoto.PhotoPathColumn] = value;
  5087. }
  5088. }
  5089. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5090. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5091. public ProductRow ProductRow {
  5092. get {
  5093. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductPhoto_Product"])));
  5094. }
  5095. set {
  5096. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductPhoto_Product"]);
  5097. }
  5098. }
  5099. }
  5100. /// <summary>
  5101. ///Represents strongly named DataRow class.
  5102. ///</summary>
  5103. public partial class ProductSaleRow : global::System.Data.DataRow {
  5104. private ProductSaleDataTable tableProductSale;
  5105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5106. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5107. internal ProductSaleRow(global::System.Data.DataRowBuilder rb) :
  5108. base(rb) {
  5109. this.tableProductSale = ((ProductSaleDataTable)(this.Table));
  5110. }
  5111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5113. public int ID {
  5114. get {
  5115. return ((int)(this[this.tableProductSale.IDColumn]));
  5116. }
  5117. set {
  5118. this[this.tableProductSale.IDColumn] = value;
  5119. }
  5120. }
  5121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5123. public System.DateTime SaleDate {
  5124. get {
  5125. return ((global::System.DateTime)(this[this.tableProductSale.SaleDateColumn]));
  5126. }
  5127. set {
  5128. this[this.tableProductSale.SaleDateColumn] = value;
  5129. }
  5130. }
  5131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5133. public int ProductID {
  5134. get {
  5135. return ((int)(this[this.tableProductSale.ProductIDColumn]));
  5136. }
  5137. set {
  5138. this[this.tableProductSale.ProductIDColumn] = value;
  5139. }
  5140. }
  5141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5143. public int Quantity {
  5144. get {
  5145. return ((int)(this[this.tableProductSale.QuantityColumn]));
  5146. }
  5147. set {
  5148. this[this.tableProductSale.QuantityColumn] = value;
  5149. }
  5150. }
  5151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5153. public int ClientServiceID {
  5154. get {
  5155. try {
  5156. return ((int)(this[this.tableProductSale.ClientServiceIDColumn]));
  5157. }
  5158. catch (global::System.InvalidCastException e) {
  5159. throw new global::System.Data.StrongTypingException("Значение для столбца \'ClientServiceID\' в таблице \'ProductSale\' равно DBNull.", e);
  5160. }
  5161. }
  5162. set {
  5163. this[this.tableProductSale.ClientServiceIDColumn] = value;
  5164. }
  5165. }
  5166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5168. public ClientServiceRow ClientServiceRow {
  5169. get {
  5170. return ((ClientServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductSale_ClientService"])));
  5171. }
  5172. set {
  5173. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductSale_ClientService"]);
  5174. }
  5175. }
  5176. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5177. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5178. public ProductRow ProductRow {
  5179. get {
  5180. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductSale_Product"])));
  5181. }
  5182. set {
  5183. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductSale_Product"]);
  5184. }
  5185. }
  5186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5188. public bool IsClientServiceIDNull() {
  5189. return this.IsNull(this.tableProductSale.ClientServiceIDColumn);
  5190. }
  5191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5193. public void SetClientServiceIDNull() {
  5194. this[this.tableProductSale.ClientServiceIDColumn] = global::System.Convert.DBNull;
  5195. }
  5196. }
  5197. /// <summary>
  5198. ///Represents strongly named DataRow class.
  5199. ///</summary>
  5200. public partial class ServiceRow : global::System.Data.DataRow {
  5201. private ServiceDataTable tableService;
  5202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5204. internal ServiceRow(global::System.Data.DataRowBuilder rb) :
  5205. base(rb) {
  5206. this.tableService = ((ServiceDataTable)(this.Table));
  5207. }
  5208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5210. public int ID {
  5211. get {
  5212. return ((int)(this[this.tableService.IDColumn]));
  5213. }
  5214. set {
  5215. this[this.tableService.IDColumn] = value;
  5216. }
  5217. }
  5218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5220. public string Title {
  5221. get {
  5222. return ((string)(this[this.tableService.TitleColumn]));
  5223. }
  5224. set {
  5225. this[this.tableService.TitleColumn] = value;
  5226. }
  5227. }
  5228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5230. public decimal Cost {
  5231. get {
  5232. return ((decimal)(this[this.tableService.CostColumn]));
  5233. }
  5234. set {
  5235. this[this.tableService.CostColumn] = value;
  5236. }
  5237. }
  5238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5240. public int DurationInSeconds {
  5241. get {
  5242. return ((int)(this[this.tableService.DurationInSecondsColumn]));
  5243. }
  5244. set {
  5245. this[this.tableService.DurationInSecondsColumn] = value;
  5246. }
  5247. }
  5248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5250. public string Description {
  5251. get {
  5252. try {
  5253. return ((string)(this[this.tableService.DescriptionColumn]));
  5254. }
  5255. catch (global::System.InvalidCastException e) {
  5256. throw new global::System.Data.StrongTypingException("Значение для столбца \'Description\' в таблице \'Service\' равно DBNull.", e);
  5257. }
  5258. }
  5259. set {
  5260. this[this.tableService.DescriptionColumn] = value;
  5261. }
  5262. }
  5263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5265. public double Discount {
  5266. get {
  5267. try {
  5268. return ((double)(this[this.tableService.DiscountColumn]));
  5269. }
  5270. catch (global::System.InvalidCastException e) {
  5271. throw new global::System.Data.StrongTypingException("Значение для столбца \'Discount\' в таблице \'Service\' равно DBNull.", e);
  5272. }
  5273. }
  5274. set {
  5275. this[this.tableService.DiscountColumn] = value;
  5276. }
  5277. }
  5278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5280. public string MainImagePath {
  5281. get {
  5282. try {
  5283. return ((string)(this[this.tableService.MainImagePathColumn]));
  5284. }
  5285. catch (global::System.InvalidCastException e) {
  5286. throw new global::System.Data.StrongTypingException("Значение для столбца \'MainImagePath\' в таблице \'Service\' равно DBNull.", e);
  5287. }
  5288. }
  5289. set {
  5290. this[this.tableService.MainImagePathColumn] = value;
  5291. }
  5292. }
  5293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5295. public bool IsDescriptionNull() {
  5296. return this.IsNull(this.tableService.DescriptionColumn);
  5297. }
  5298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5300. public void SetDescriptionNull() {
  5301. this[this.tableService.DescriptionColumn] = global::System.Convert.DBNull;
  5302. }
  5303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5304. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5305. public bool IsDiscountNull() {
  5306. return this.IsNull(this.tableService.DiscountColumn);
  5307. }
  5308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5310. public void SetDiscountNull() {
  5311. this[this.tableService.DiscountColumn] = global::System.Convert.DBNull;
  5312. }
  5313. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5314. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5315. public bool IsMainImagePathNull() {
  5316. return this.IsNull(this.tableService.MainImagePathColumn);
  5317. }
  5318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5320. public void SetMainImagePathNull() {
  5321. this[this.tableService.MainImagePathColumn] = global::System.Convert.DBNull;
  5322. }
  5323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5325. public ClientServiceRow[] GetClientServiceRows() {
  5326. if ((this.Table.ChildRelations["FK_ClientService_Service"] == null)) {
  5327. return new ClientServiceRow[0];
  5328. }
  5329. else {
  5330. return ((ClientServiceRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ClientService_Service"])));
  5331. }
  5332. }
  5333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5335. public ServicePhotoRow[] GetServicePhotoRows() {
  5336. if ((this.Table.ChildRelations["FK_ServicePhoto_Service"] == null)) {
  5337. return new ServicePhotoRow[0];
  5338. }
  5339. else {
  5340. return ((ServicePhotoRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ServicePhoto_Service"])));
  5341. }
  5342. }
  5343. }
  5344. /// <summary>
  5345. ///Represents strongly named DataRow class.
  5346. ///</summary>
  5347. public partial class ServicePhotoRow : global::System.Data.DataRow {
  5348. private ServicePhotoDataTable tableServicePhoto;
  5349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5351. internal ServicePhotoRow(global::System.Data.DataRowBuilder rb) :
  5352. base(rb) {
  5353. this.tableServicePhoto = ((ServicePhotoDataTable)(this.Table));
  5354. }
  5355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5357. public int ID {
  5358. get {
  5359. return ((int)(this[this.tableServicePhoto.IDColumn]));
  5360. }
  5361. set {
  5362. this[this.tableServicePhoto.IDColumn] = value;
  5363. }
  5364. }
  5365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5367. public int ServiceID {
  5368. get {
  5369. return ((int)(this[this.tableServicePhoto.ServiceIDColumn]));
  5370. }
  5371. set {
  5372. this[this.tableServicePhoto.ServiceIDColumn] = value;
  5373. }
  5374. }
  5375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5377. public string PhotoPath {
  5378. get {
  5379. return ((string)(this[this.tableServicePhoto.PhotoPathColumn]));
  5380. }
  5381. set {
  5382. this[this.tableServicePhoto.PhotoPathColumn] = value;
  5383. }
  5384. }
  5385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5387. public ServiceRow ServiceRow {
  5388. get {
  5389. return ((ServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_ServicePhoto_Service"])));
  5390. }
  5391. set {
  5392. this.SetParentRow(value, this.Table.ParentRelations["FK_ServicePhoto_Service"]);
  5393. }
  5394. }
  5395. }
  5396. /// <summary>
  5397. ///Represents strongly named DataRow class.
  5398. ///</summary>
  5399. public partial class TagRow : global::System.Data.DataRow {
  5400. private TagDataTable tableTag;
  5401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5403. internal TagRow(global::System.Data.DataRowBuilder rb) :
  5404. base(rb) {
  5405. this.tableTag = ((TagDataTable)(this.Table));
  5406. }
  5407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5408. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5409. public int ID {
  5410. get {
  5411. return ((int)(this[this.tableTag.IDColumn]));
  5412. }
  5413. set {
  5414. this[this.tableTag.IDColumn] = value;
  5415. }
  5416. }
  5417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5419. public string Title {
  5420. get {
  5421. return ((string)(this[this.tableTag.TitleColumn]));
  5422. }
  5423. set {
  5424. this[this.tableTag.TitleColumn] = value;
  5425. }
  5426. }
  5427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5429. public string Color {
  5430. get {
  5431. return ((string)(this[this.tableTag.ColorColumn]));
  5432. }
  5433. set {
  5434. this[this.tableTag.ColorColumn] = value;
  5435. }
  5436. }
  5437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5439. public TagOfClientRow[] GetTagOfClientRows() {
  5440. if ((this.Table.ChildRelations["FK_TagOfClient_Tag"] == null)) {
  5441. return new TagOfClientRow[0];
  5442. }
  5443. else {
  5444. return ((TagOfClientRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TagOfClient_Tag"])));
  5445. }
  5446. }
  5447. }
  5448. /// <summary>
  5449. ///Represents strongly named DataRow class.
  5450. ///</summary>
  5451. public partial class TagOfClientRow : global::System.Data.DataRow {
  5452. private TagOfClientDataTable tableTagOfClient;
  5453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5454. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5455. internal TagOfClientRow(global::System.Data.DataRowBuilder rb) :
  5456. base(rb) {
  5457. this.tableTagOfClient = ((TagOfClientDataTable)(this.Table));
  5458. }
  5459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5461. public int ClientID {
  5462. get {
  5463. return ((int)(this[this.tableTagOfClient.ClientIDColumn]));
  5464. }
  5465. set {
  5466. this[this.tableTagOfClient.ClientIDColumn] = value;
  5467. }
  5468. }
  5469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5471. public int TagID {
  5472. get {
  5473. return ((int)(this[this.tableTagOfClient.TagIDColumn]));
  5474. }
  5475. set {
  5476. this[this.tableTagOfClient.TagIDColumn] = value;
  5477. }
  5478. }
  5479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5480. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5481. public ClientRow ClientRow {
  5482. get {
  5483. return ((ClientRow)(this.GetParentRow(this.Table.ParentRelations["FK_TagOfClient_Client"])));
  5484. }
  5485. set {
  5486. this.SetParentRow(value, this.Table.ParentRelations["FK_TagOfClient_Client"]);
  5487. }
  5488. }
  5489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5491. public TagRow TagRow {
  5492. get {
  5493. return ((TagRow)(this.GetParentRow(this.Table.ParentRelations["FK_TagOfClient_Tag"])));
  5494. }
  5495. set {
  5496. this.SetParentRow(value, this.Table.ParentRelations["FK_TagOfClient_Tag"]);
  5497. }
  5498. }
  5499. }
  5500. /// <summary>
  5501. ///Row event argument class
  5502. ///</summary>
  5503. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5504. public class AttachedProductRowChangeEvent : global::System.EventArgs {
  5505. private AttachedProductRow eventRow;
  5506. private global::System.Data.DataRowAction eventAction;
  5507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5509. public AttachedProductRowChangeEvent(AttachedProductRow row, global::System.Data.DataRowAction action) {
  5510. this.eventRow = row;
  5511. this.eventAction = action;
  5512. }
  5513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5515. public AttachedProductRow Row {
  5516. get {
  5517. return this.eventRow;
  5518. }
  5519. }
  5520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5522. public global::System.Data.DataRowAction Action {
  5523. get {
  5524. return this.eventAction;
  5525. }
  5526. }
  5527. }
  5528. /// <summary>
  5529. ///Row event argument class
  5530. ///</summary>
  5531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5532. public class ClientRowChangeEvent : global::System.EventArgs {
  5533. private ClientRow eventRow;
  5534. private global::System.Data.DataRowAction eventAction;
  5535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5537. public ClientRowChangeEvent(ClientRow row, global::System.Data.DataRowAction action) {
  5538. this.eventRow = row;
  5539. this.eventAction = action;
  5540. }
  5541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5543. public ClientRow Row {
  5544. get {
  5545. return this.eventRow;
  5546. }
  5547. }
  5548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5549. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5550. public global::System.Data.DataRowAction Action {
  5551. get {
  5552. return this.eventAction;
  5553. }
  5554. }
  5555. }
  5556. /// <summary>
  5557. ///Row event argument class
  5558. ///</summary>
  5559. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5560. public class ClientServiceRowChangeEvent : global::System.EventArgs {
  5561. private ClientServiceRow eventRow;
  5562. private global::System.Data.DataRowAction eventAction;
  5563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5565. public ClientServiceRowChangeEvent(ClientServiceRow row, global::System.Data.DataRowAction action) {
  5566. this.eventRow = row;
  5567. this.eventAction = action;
  5568. }
  5569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5571. public ClientServiceRow Row {
  5572. get {
  5573. return this.eventRow;
  5574. }
  5575. }
  5576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5578. public global::System.Data.DataRowAction Action {
  5579. get {
  5580. return this.eventAction;
  5581. }
  5582. }
  5583. }
  5584. /// <summary>
  5585. ///Row event argument class
  5586. ///</summary>
  5587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5588. public class DocumentByServiceRowChangeEvent : global::System.EventArgs {
  5589. private DocumentByServiceRow eventRow;
  5590. private global::System.Data.DataRowAction eventAction;
  5591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5593. public DocumentByServiceRowChangeEvent(DocumentByServiceRow row, global::System.Data.DataRowAction action) {
  5594. this.eventRow = row;
  5595. this.eventAction = action;
  5596. }
  5597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5599. public DocumentByServiceRow Row {
  5600. get {
  5601. return this.eventRow;
  5602. }
  5603. }
  5604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5606. public global::System.Data.DataRowAction Action {
  5607. get {
  5608. return this.eventAction;
  5609. }
  5610. }
  5611. }
  5612. /// <summary>
  5613. ///Row event argument class
  5614. ///</summary>
  5615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5616. public class GenderRowChangeEvent : global::System.EventArgs {
  5617. private GenderRow eventRow;
  5618. private global::System.Data.DataRowAction eventAction;
  5619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5621. public GenderRowChangeEvent(GenderRow row, global::System.Data.DataRowAction action) {
  5622. this.eventRow = row;
  5623. this.eventAction = action;
  5624. }
  5625. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5626. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5627. public GenderRow Row {
  5628. get {
  5629. return this.eventRow;
  5630. }
  5631. }
  5632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5634. public global::System.Data.DataRowAction Action {
  5635. get {
  5636. return this.eventAction;
  5637. }
  5638. }
  5639. }
  5640. /// <summary>
  5641. ///Row event argument class
  5642. ///</summary>
  5643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5644. public class ManufacturerRowChangeEvent : global::System.EventArgs {
  5645. private ManufacturerRow eventRow;
  5646. private global::System.Data.DataRowAction eventAction;
  5647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5649. public ManufacturerRowChangeEvent(ManufacturerRow row, global::System.Data.DataRowAction action) {
  5650. this.eventRow = row;
  5651. this.eventAction = action;
  5652. }
  5653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5655. public ManufacturerRow Row {
  5656. get {
  5657. return this.eventRow;
  5658. }
  5659. }
  5660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5662. public global::System.Data.DataRowAction Action {
  5663. get {
  5664. return this.eventAction;
  5665. }
  5666. }
  5667. }
  5668. /// <summary>
  5669. ///Row event argument class
  5670. ///</summary>
  5671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5672. public class ProductRowChangeEvent : global::System.EventArgs {
  5673. private ProductRow eventRow;
  5674. private global::System.Data.DataRowAction eventAction;
  5675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5676. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5677. public ProductRowChangeEvent(ProductRow row, global::System.Data.DataRowAction action) {
  5678. this.eventRow = row;
  5679. this.eventAction = action;
  5680. }
  5681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5683. public ProductRow Row {
  5684. get {
  5685. return this.eventRow;
  5686. }
  5687. }
  5688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5690. public global::System.Data.DataRowAction Action {
  5691. get {
  5692. return this.eventAction;
  5693. }
  5694. }
  5695. }
  5696. /// <summary>
  5697. ///Row event argument class
  5698. ///</summary>
  5699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5700. public class ProductPhotoRowChangeEvent : global::System.EventArgs {
  5701. private ProductPhotoRow eventRow;
  5702. private global::System.Data.DataRowAction eventAction;
  5703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5705. public ProductPhotoRowChangeEvent(ProductPhotoRow row, global::System.Data.DataRowAction action) {
  5706. this.eventRow = row;
  5707. this.eventAction = action;
  5708. }
  5709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5711. public ProductPhotoRow Row {
  5712. get {
  5713. return this.eventRow;
  5714. }
  5715. }
  5716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5718. public global::System.Data.DataRowAction Action {
  5719. get {
  5720. return this.eventAction;
  5721. }
  5722. }
  5723. }
  5724. /// <summary>
  5725. ///Row event argument class
  5726. ///</summary>
  5727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5728. public class ProductSaleRowChangeEvent : global::System.EventArgs {
  5729. private ProductSaleRow eventRow;
  5730. private global::System.Data.DataRowAction eventAction;
  5731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5733. public ProductSaleRowChangeEvent(ProductSaleRow row, global::System.Data.DataRowAction action) {
  5734. this.eventRow = row;
  5735. this.eventAction = action;
  5736. }
  5737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5739. public ProductSaleRow Row {
  5740. get {
  5741. return this.eventRow;
  5742. }
  5743. }
  5744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5746. public global::System.Data.DataRowAction Action {
  5747. get {
  5748. return this.eventAction;
  5749. }
  5750. }
  5751. }
  5752. /// <summary>
  5753. ///Row event argument class
  5754. ///</summary>
  5755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5756. public class ServiceRowChangeEvent : global::System.EventArgs {
  5757. private ServiceRow eventRow;
  5758. private global::System.Data.DataRowAction eventAction;
  5759. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5760. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5761. public ServiceRowChangeEvent(ServiceRow row, global::System.Data.DataRowAction action) {
  5762. this.eventRow = row;
  5763. this.eventAction = action;
  5764. }
  5765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5767. public ServiceRow Row {
  5768. get {
  5769. return this.eventRow;
  5770. }
  5771. }
  5772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5774. public global::System.Data.DataRowAction Action {
  5775. get {
  5776. return this.eventAction;
  5777. }
  5778. }
  5779. }
  5780. /// <summary>
  5781. ///Row event argument class
  5782. ///</summary>
  5783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5784. public class ServicePhotoRowChangeEvent : global::System.EventArgs {
  5785. private ServicePhotoRow eventRow;
  5786. private global::System.Data.DataRowAction eventAction;
  5787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5788. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5789. public ServicePhotoRowChangeEvent(ServicePhotoRow row, global::System.Data.DataRowAction action) {
  5790. this.eventRow = row;
  5791. this.eventAction = action;
  5792. }
  5793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5795. public ServicePhotoRow Row {
  5796. get {
  5797. return this.eventRow;
  5798. }
  5799. }
  5800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5802. public global::System.Data.DataRowAction Action {
  5803. get {
  5804. return this.eventAction;
  5805. }
  5806. }
  5807. }
  5808. /// <summary>
  5809. ///Row event argument class
  5810. ///</summary>
  5811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5812. public class TagRowChangeEvent : global::System.EventArgs {
  5813. private TagRow eventRow;
  5814. private global::System.Data.DataRowAction eventAction;
  5815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5817. public TagRowChangeEvent(TagRow row, global::System.Data.DataRowAction action) {
  5818. this.eventRow = row;
  5819. this.eventAction = action;
  5820. }
  5821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5823. public TagRow Row {
  5824. get {
  5825. return this.eventRow;
  5826. }
  5827. }
  5828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5830. public global::System.Data.DataRowAction Action {
  5831. get {
  5832. return this.eventAction;
  5833. }
  5834. }
  5835. }
  5836. /// <summary>
  5837. ///Row event argument class
  5838. ///</summary>
  5839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5840. public class TagOfClientRowChangeEvent : global::System.EventArgs {
  5841. private TagOfClientRow eventRow;
  5842. private global::System.Data.DataRowAction eventAction;
  5843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5845. public TagOfClientRowChangeEvent(TagOfClientRow row, global::System.Data.DataRowAction action) {
  5846. this.eventRow = row;
  5847. this.eventAction = action;
  5848. }
  5849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5851. public TagOfClientRow Row {
  5852. get {
  5853. return this.eventRow;
  5854. }
  5855. }
  5856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5858. public global::System.Data.DataRowAction Action {
  5859. get {
  5860. return this.eventAction;
  5861. }
  5862. }
  5863. }
  5864. }
  5865. }
  5866. namespace BeautySaloon.beauty_saloonDataSetTableAdapters {
  5867. /// <summary>
  5868. ///Represents the connection and commands used to retrieve and save data.
  5869. ///</summary>
  5870. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5871. [global::System.ComponentModel.ToolboxItem(true)]
  5872. [global::System.ComponentModel.DataObjectAttribute(true)]
  5873. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5874. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5875. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5876. public partial class AttachedProductTableAdapter : global::System.ComponentModel.Component {
  5877. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5878. private global::System.Data.SqlClient.SqlConnection _connection;
  5879. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5880. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5881. private bool _clearBeforeFill;
  5882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5884. public AttachedProductTableAdapter() {
  5885. this.ClearBeforeFill = true;
  5886. }
  5887. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5888. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5889. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5890. get {
  5891. if ((this._adapter == null)) {
  5892. this.InitAdapter();
  5893. }
  5894. return this._adapter;
  5895. }
  5896. }
  5897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5899. internal global::System.Data.SqlClient.SqlConnection Connection {
  5900. get {
  5901. if ((this._connection == null)) {
  5902. this.InitConnection();
  5903. }
  5904. return this._connection;
  5905. }
  5906. set {
  5907. this._connection = value;
  5908. if ((this.Adapter.InsertCommand != null)) {
  5909. this.Adapter.InsertCommand.Connection = value;
  5910. }
  5911. if ((this.Adapter.DeleteCommand != null)) {
  5912. this.Adapter.DeleteCommand.Connection = value;
  5913. }
  5914. if ((this.Adapter.UpdateCommand != null)) {
  5915. this.Adapter.UpdateCommand.Connection = value;
  5916. }
  5917. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5918. if ((this.CommandCollection[i] != null)) {
  5919. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5920. }
  5921. }
  5922. }
  5923. }
  5924. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5925. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5926. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5927. get {
  5928. return this._transaction;
  5929. }
  5930. set {
  5931. this._transaction = value;
  5932. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5933. this.CommandCollection[i].Transaction = this._transaction;
  5934. }
  5935. if (((this.Adapter != null)
  5936. && (this.Adapter.DeleteCommand != null))) {
  5937. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5938. }
  5939. if (((this.Adapter != null)
  5940. && (this.Adapter.InsertCommand != null))) {
  5941. this.Adapter.InsertCommand.Transaction = this._transaction;
  5942. }
  5943. if (((this.Adapter != null)
  5944. && (this.Adapter.UpdateCommand != null))) {
  5945. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5946. }
  5947. }
  5948. }
  5949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5950. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5951. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5952. get {
  5953. if ((this._commandCollection == null)) {
  5954. this.InitCommandCollection();
  5955. }
  5956. return this._commandCollection;
  5957. }
  5958. }
  5959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5961. public bool ClearBeforeFill {
  5962. get {
  5963. return this._clearBeforeFill;
  5964. }
  5965. set {
  5966. this._clearBeforeFill = value;
  5967. }
  5968. }
  5969. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5970. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5971. private void InitAdapter() {
  5972. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5973. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5974. tableMapping.SourceTable = "Table";
  5975. tableMapping.DataSetTable = "AttachedProduct";
  5976. tableMapping.ColumnMappings.Add("MainProductID", "MainProductID");
  5977. tableMapping.ColumnMappings.Add("AttachedProductID", "AttachedProductID");
  5978. this._adapter.TableMappings.Add(tableMapping);
  5979. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5980. this._adapter.DeleteCommand.Connection = this.Connection;
  5981. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[AttachedProduct] WHERE (([MainProductID] = @Original_MainProdu" +
  5982. "ctID) AND ([AttachedProductID] = @Original_AttachedProductID))";
  5983. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5984. 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, "", "", ""));
  5985. 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, "", "", ""));
  5986. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5987. this._adapter.InsertCommand.Connection = this.Connection;
  5988. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[AttachedProduct] ([MainProductID], [AttachedProductID]) VALUES (@MainProductID, @AttachedProductID);
  5989. SELECT MainProductID, AttachedProductID FROM AttachedProduct WHERE (AttachedProductID = @AttachedProductID) AND (MainProductID = @MainProductID)";
  5990. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5991. 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, "", "", ""));
  5992. 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, "", "", ""));
  5993. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5994. this._adapter.UpdateCommand.Connection = this.Connection;
  5995. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AttachedProduct] SET [MainProductID] = @MainProductID, [AttachedProductID] = @AttachedProductID WHERE (([MainProductID] = @Original_MainProductID) AND ([AttachedProductID] = @Original_AttachedProductID));
  5996. SELECT MainProductID, AttachedProductID FROM AttachedProduct WHERE (AttachedProductID = @AttachedProductID) AND (MainProductID = @MainProductID)";
  5997. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5998. 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, "", "", ""));
  5999. 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, "", "", ""));
  6000. 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, "", "", ""));
  6001. 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, "", "", ""));
  6002. }
  6003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6005. private void InitConnection() {
  6006. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6007. this._connection.ConnectionString = global::BeautySaloon.Properties.Settings.Default.beauty_saloonConnectionString;
  6008. }
  6009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6011. private void InitCommandCollection() {
  6012. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6013. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6014. this._commandCollection[0].Connection = this.Connection;
  6015. this._commandCollection[0].CommandText = "SELECT MainProductID, AttachedProductID FROM dbo.AttachedProduct";
  6016. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6017. }
  6018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6020. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6021. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6022. public virtual int Fill(beauty_saloonDataSet.AttachedProductDataTable dataTable) {
  6023. this.Adapter.SelectCommand = this.CommandCollection[0];
  6024. if ((this.ClearBeforeFill == true)) {
  6025. dataTable.Clear();
  6026. }
  6027. int returnValue = this.Adapter.Fill(dataTable);
  6028. return returnValue;
  6029. }
  6030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6032. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6033. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6034. public virtual beauty_saloonDataSet.AttachedProductDataTable GetData() {
  6035. this.Adapter.SelectCommand = this.CommandCollection[0];
  6036. beauty_saloonDataSet.AttachedProductDataTable dataTable = new beauty_saloonDataSet.AttachedProductDataTable();
  6037. this.Adapter.Fill(dataTable);
  6038. return dataTable;
  6039. }
  6040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6042. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6043. public virtual int Update(beauty_saloonDataSet.AttachedProductDataTable dataTable) {
  6044. return this.Adapter.Update(dataTable);
  6045. }
  6046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6048. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6049. public virtual int Update(beauty_saloonDataSet dataSet) {
  6050. return this.Adapter.Update(dataSet, "AttachedProduct");
  6051. }
  6052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6054. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6055. public virtual int Update(global::System.Data.DataRow dataRow) {
  6056. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6057. dataRow});
  6058. }
  6059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6061. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6062. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6063. return this.Adapter.Update(dataRows);
  6064. }
  6065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6067. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6068. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6069. public virtual int Delete(int Original_MainProductID, int Original_AttachedProductID) {
  6070. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_MainProductID));
  6071. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_AttachedProductID));
  6072. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6073. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6074. != global::System.Data.ConnectionState.Open)) {
  6075. this.Adapter.DeleteCommand.Connection.Open();
  6076. }
  6077. try {
  6078. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6079. return returnValue;
  6080. }
  6081. finally {
  6082. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6083. this.Adapter.DeleteCommand.Connection.Close();
  6084. }
  6085. }
  6086. }
  6087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6089. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6090. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6091. public virtual int Insert(int MainProductID, int AttachedProductID) {
  6092. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(MainProductID));
  6093. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(AttachedProductID));
  6094. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6095. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6096. != global::System.Data.ConnectionState.Open)) {
  6097. this.Adapter.InsertCommand.Connection.Open();
  6098. }
  6099. try {
  6100. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6101. return returnValue;
  6102. }
  6103. finally {
  6104. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6105. this.Adapter.InsertCommand.Connection.Close();
  6106. }
  6107. }
  6108. }
  6109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6110. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6111. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6112. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6113. public virtual int Update(int MainProductID, int AttachedProductID, int Original_MainProductID, int Original_AttachedProductID) {
  6114. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(MainProductID));
  6115. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(AttachedProductID));
  6116. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_MainProductID));
  6117. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_AttachedProductID));
  6118. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6119. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6120. != global::System.Data.ConnectionState.Open)) {
  6121. this.Adapter.UpdateCommand.Connection.Open();
  6122. }
  6123. try {
  6124. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6125. return returnValue;
  6126. }
  6127. finally {
  6128. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6129. this.Adapter.UpdateCommand.Connection.Close();
  6130. }
  6131. }
  6132. }
  6133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6135. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6136. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6137. public virtual int Update(int Original_MainProductID, int Original_AttachedProductID) {
  6138. return this.Update(Original_MainProductID, Original_AttachedProductID, Original_MainProductID, Original_AttachedProductID);
  6139. }
  6140. }
  6141. /// <summary>
  6142. ///Represents the connection and commands used to retrieve and save data.
  6143. ///</summary>
  6144. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6145. [global::System.ComponentModel.ToolboxItem(true)]
  6146. [global::System.ComponentModel.DataObjectAttribute(true)]
  6147. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6148. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6149. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6150. public partial class ClientTableAdapter : global::System.ComponentModel.Component {
  6151. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6152. private global::System.Data.SqlClient.SqlConnection _connection;
  6153. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6154. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6155. private bool _clearBeforeFill;
  6156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6158. public ClientTableAdapter() {
  6159. this.ClearBeforeFill = true;
  6160. }
  6161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6162. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6163. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6164. get {
  6165. if ((this._adapter == null)) {
  6166. this.InitAdapter();
  6167. }
  6168. return this._adapter;
  6169. }
  6170. }
  6171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6173. internal global::System.Data.SqlClient.SqlConnection Connection {
  6174. get {
  6175. if ((this._connection == null)) {
  6176. this.InitConnection();
  6177. }
  6178. return this._connection;
  6179. }
  6180. set {
  6181. this._connection = value;
  6182. if ((this.Adapter.InsertCommand != null)) {
  6183. this.Adapter.InsertCommand.Connection = value;
  6184. }
  6185. if ((this.Adapter.DeleteCommand != null)) {
  6186. this.Adapter.DeleteCommand.Connection = value;
  6187. }
  6188. if ((this.Adapter.UpdateCommand != null)) {
  6189. this.Adapter.UpdateCommand.Connection = value;
  6190. }
  6191. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6192. if ((this.CommandCollection[i] != null)) {
  6193. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6194. }
  6195. }
  6196. }
  6197. }
  6198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6200. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6201. get {
  6202. return this._transaction;
  6203. }
  6204. set {
  6205. this._transaction = value;
  6206. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6207. this.CommandCollection[i].Transaction = this._transaction;
  6208. }
  6209. if (((this.Adapter != null)
  6210. && (this.Adapter.DeleteCommand != null))) {
  6211. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6212. }
  6213. if (((this.Adapter != null)
  6214. && (this.Adapter.InsertCommand != null))) {
  6215. this.Adapter.InsertCommand.Transaction = this._transaction;
  6216. }
  6217. if (((this.Adapter != null)
  6218. && (this.Adapter.UpdateCommand != null))) {
  6219. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6220. }
  6221. }
  6222. }
  6223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6225. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6226. get {
  6227. if ((this._commandCollection == null)) {
  6228. this.InitCommandCollection();
  6229. }
  6230. return this._commandCollection;
  6231. }
  6232. }
  6233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6235. public bool ClearBeforeFill {
  6236. get {
  6237. return this._clearBeforeFill;
  6238. }
  6239. set {
  6240. this._clearBeforeFill = value;
  6241. }
  6242. }
  6243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6245. private void InitAdapter() {
  6246. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6247. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6248. tableMapping.SourceTable = "Table";
  6249. tableMapping.DataSetTable = "Client";
  6250. tableMapping.ColumnMappings.Add("ID", "ID");
  6251. tableMapping.ColumnMappings.Add("FirstName", "FirstName");
  6252. tableMapping.ColumnMappings.Add("LastName", "LastName");
  6253. tableMapping.ColumnMappings.Add("Patronymic", "Patronymic");
  6254. tableMapping.ColumnMappings.Add("Birthday", "Birthday");
  6255. tableMapping.ColumnMappings.Add("RegistrationDate", "RegistrationDate");
  6256. tableMapping.ColumnMappings.Add("Email", "Email");
  6257. tableMapping.ColumnMappings.Add("Phone", "Phone");
  6258. tableMapping.ColumnMappings.Add("GenderCode", "GenderCode");
  6259. tableMapping.ColumnMappings.Add("PhotoPath", "PhotoPath");
  6260. this._adapter.TableMappings.Add(tableMapping);
  6261. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6262. this._adapter.DeleteCommand.Connection = this.Connection;
  6263. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Client] WHERE (([ID] = @Original_ID) AND ([FirstName] = @Original_FirstName) AND ([LastName] = @Original_LastName) AND ((@IsNull_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) AND ((@IsNull_Birthday = 1 AND [Birthday] IS NULL) OR ([Birthday] = @Original_Birthday)) AND ([RegistrationDate] = @Original_RegistrationDate) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ([Phone] = @Original_Phone) AND ([GenderCode] = @Original_GenderCode) AND ((@IsNull_PhotoPath = 1 AND [PhotoPath] IS NULL) OR ([PhotoPath] = @Original_PhotoPath)))";
  6264. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6265. 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, "", "", ""));
  6266. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FirstName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FirstName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6267. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_LastName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6268. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Patronymic", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6269. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6270. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Birthday", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Birthday", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6271. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Birthday", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Birthday", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6272. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RegistrationDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RegistrationDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6273. 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, "", "", ""));
  6274. 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, "", "", ""));
  6275. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6276. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_GenderCode", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GenderCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6277. 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, "", "", ""));
  6278. 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, "", "", ""));
  6279. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6280. this._adapter.InsertCommand.Connection = this.Connection;
  6281. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Client] ([FirstName], [LastName], [Patronymic], [Birthday], [RegistrationDate], [Email], [Phone], [GenderCode], [PhotoPath]) VALUES (@FirstName, @LastName, @Patronymic, @Birthday, @RegistrationDate, @Email, @Phone, @GenderCode, @PhotoPath);
  6282. SELECT ID, FirstName, LastName, Patronymic, Birthday, RegistrationDate, Email, Phone, GenderCode, PhotoPath FROM Client WHERE (ID = SCOPE_IDENTITY())";
  6283. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6284. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FirstName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FirstName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6285. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LastName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6286. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6287. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Birthday", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Birthday", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6288. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RegistrationDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RegistrationDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6289. 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, "", "", ""));
  6290. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6291. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GenderCode", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GenderCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6292. 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, "", "", ""));
  6293. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6294. this._adapter.UpdateCommand.Connection = this.Connection;
  6295. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Client] SET [FirstName] = @FirstName, [LastName] = @LastName, [Patronymic] = @Patronymic, [Birthday] = @Birthday, [RegistrationDate] = @RegistrationDate, [Email] = @Email, [Phone] = @Phone, [GenderCode] = @GenderCode, [PhotoPath] = @PhotoPath WHERE (([ID] = @Original_ID) AND ([FirstName] = @Original_FirstName) AND ([LastName] = @Original_LastName) AND ((@IsNull_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) AND ((@IsNull_Birthday = 1 AND [Birthday] IS NULL) OR ([Birthday] = @Original_Birthday)) AND ([RegistrationDate] = @Original_RegistrationDate) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ([Phone] = @Original_Phone) AND ([GenderCode] = @Original_GenderCode) AND ((@IsNull_PhotoPath = 1 AND [PhotoPath] IS NULL) OR ([PhotoPath] = @Original_PhotoPath)));
  6296. SELECT ID, FirstName, LastName, Patronymic, Birthday, RegistrationDate, Email, Phone, GenderCode, PhotoPath FROM Client WHERE (ID = @ID)";
  6297. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6298. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FirstName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FirstName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6299. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LastName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6300. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6301. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Birthday", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Birthday", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6302. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RegistrationDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RegistrationDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6303. 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, "", "", ""));
  6304. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6305. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GenderCode", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GenderCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6306. 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, "", "", ""));
  6307. 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, "", "", ""));
  6308. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FirstName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FirstName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6309. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_LastName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6310. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Patronymic", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6311. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6312. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Birthday", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Birthday", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6313. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Birthday", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Birthday", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6314. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RegistrationDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RegistrationDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6315. 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, "", "", ""));
  6316. 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, "", "", ""));
  6317. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6318. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_GenderCode", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GenderCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6319. 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, "", "", ""));
  6320. 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, "", "", ""));
  6321. 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, "", "", ""));
  6322. }
  6323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6325. private void InitConnection() {
  6326. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6327. this._connection.ConnectionString = global::BeautySaloon.Properties.Settings.Default.beauty_saloonConnectionString;
  6328. }
  6329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6331. private void InitCommandCollection() {
  6332. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6333. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6334. this._commandCollection[0].Connection = this.Connection;
  6335. this._commandCollection[0].CommandText = "SELECT ID, FirstName, LastName, Patronymic, Birthday, RegistrationDate, Email, Ph" +
  6336. "one, GenderCode, PhotoPath FROM dbo.Client";
  6337. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6338. }
  6339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6341. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6342. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6343. public virtual int Fill(beauty_saloonDataSet.ClientDataTable dataTable) {
  6344. this.Adapter.SelectCommand = this.CommandCollection[0];
  6345. if ((this.ClearBeforeFill == true)) {
  6346. dataTable.Clear();
  6347. }
  6348. int returnValue = this.Adapter.Fill(dataTable);
  6349. return returnValue;
  6350. }
  6351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6352. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6353. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6354. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6355. public virtual beauty_saloonDataSet.ClientDataTable GetData() {
  6356. this.Adapter.SelectCommand = this.CommandCollection[0];
  6357. beauty_saloonDataSet.ClientDataTable dataTable = new beauty_saloonDataSet.ClientDataTable();
  6358. this.Adapter.Fill(dataTable);
  6359. return dataTable;
  6360. }
  6361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6363. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6364. public virtual int Update(beauty_saloonDataSet.ClientDataTable dataTable) {
  6365. return this.Adapter.Update(dataTable);
  6366. }
  6367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6369. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6370. public virtual int Update(beauty_saloonDataSet dataSet) {
  6371. return this.Adapter.Update(dataSet, "Client");
  6372. }
  6373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6375. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6376. public virtual int Update(global::System.Data.DataRow dataRow) {
  6377. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6378. dataRow});
  6379. }
  6380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6382. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6383. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6384. return this.Adapter.Update(dataRows);
  6385. }
  6386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6388. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6389. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6390. public virtual int Delete(int Original_ID, string Original_FirstName, string Original_LastName, string Original_Patronymic, global::System.Nullable<global::System.DateTime> Original_Birthday, System.DateTime Original_RegistrationDate, string Original_Email, string Original_Phone, string Original_GenderCode, string Original_PhotoPath) {
  6391. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  6392. if ((Original_FirstName == null)) {
  6393. throw new global::System.ArgumentNullException("Original_FirstName");
  6394. }
  6395. else {
  6396. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_FirstName));
  6397. }
  6398. if ((Original_LastName == null)) {
  6399. throw new global::System.ArgumentNullException("Original_LastName");
  6400. }
  6401. else {
  6402. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_LastName));
  6403. }
  6404. if ((Original_Patronymic == null)) {
  6405. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  6406. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  6407. }
  6408. else {
  6409. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  6410. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Patronymic));
  6411. }
  6412. if ((Original_Birthday.HasValue == true)) {
  6413. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  6414. this.Adapter.DeleteCommand.Parameters[6].Value = ((System.DateTime)(Original_Birthday.Value));
  6415. }
  6416. else {
  6417. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  6418. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  6419. }
  6420. this.Adapter.DeleteCommand.Parameters[7].Value = ((System.DateTime)(Original_RegistrationDate));
  6421. if ((Original_Email == null)) {
  6422. this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(1));
  6423. this.Adapter.DeleteCommand.Parameters[9].Value = global::System.DBNull.Value;
  6424. }
  6425. else {
  6426. this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(0));
  6427. this.Adapter.DeleteCommand.Parameters[9].Value = ((string)(Original_Email));
  6428. }
  6429. if ((Original_Phone == null)) {
  6430. throw new global::System.ArgumentNullException("Original_Phone");
  6431. }
  6432. else {
  6433. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Phone));
  6434. }
  6435. if ((Original_GenderCode == null)) {
  6436. throw new global::System.ArgumentNullException("Original_GenderCode");
  6437. }
  6438. else {
  6439. this.Adapter.DeleteCommand.Parameters[11].Value = ((string)(Original_GenderCode));
  6440. }
  6441. if ((Original_PhotoPath == null)) {
  6442. this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(1));
  6443. this.Adapter.DeleteCommand.Parameters[13].Value = global::System.DBNull.Value;
  6444. }
  6445. else {
  6446. this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(0));
  6447. this.Adapter.DeleteCommand.Parameters[13].Value = ((string)(Original_PhotoPath));
  6448. }
  6449. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6450. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6451. != global::System.Data.ConnectionState.Open)) {
  6452. this.Adapter.DeleteCommand.Connection.Open();
  6453. }
  6454. try {
  6455. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6456. return returnValue;
  6457. }
  6458. finally {
  6459. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6460. this.Adapter.DeleteCommand.Connection.Close();
  6461. }
  6462. }
  6463. }
  6464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6466. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6467. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6468. public virtual int Insert(string FirstName, string LastName, string Patronymic, global::System.Nullable<global::System.DateTime> Birthday, System.DateTime RegistrationDate, string Email, string Phone, string GenderCode, string PhotoPath) {
  6469. if ((FirstName == null)) {
  6470. throw new global::System.ArgumentNullException("FirstName");
  6471. }
  6472. else {
  6473. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(FirstName));
  6474. }
  6475. if ((LastName == null)) {
  6476. throw new global::System.ArgumentNullException("LastName");
  6477. }
  6478. else {
  6479. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(LastName));
  6480. }
  6481. if ((Patronymic == null)) {
  6482. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6483. }
  6484. else {
  6485. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Patronymic));
  6486. }
  6487. if ((Birthday.HasValue == true)) {
  6488. this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(Birthday.Value));
  6489. }
  6490. else {
  6491. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  6492. }
  6493. this.Adapter.InsertCommand.Parameters[4].Value = ((System.DateTime)(RegistrationDate));
  6494. if ((Email == null)) {
  6495. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  6496. }
  6497. else {
  6498. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Email));
  6499. }
  6500. if ((Phone == null)) {
  6501. throw new global::System.ArgumentNullException("Phone");
  6502. }
  6503. else {
  6504. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Phone));
  6505. }
  6506. if ((GenderCode == null)) {
  6507. throw new global::System.ArgumentNullException("GenderCode");
  6508. }
  6509. else {
  6510. this.Adapter.InsertCommand.Parameters[7].Value = ((string)(GenderCode));
  6511. }
  6512. if ((PhotoPath == null)) {
  6513. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  6514. }
  6515. else {
  6516. this.Adapter.InsertCommand.Parameters[8].Value = ((string)(PhotoPath));
  6517. }
  6518. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6519. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6520. != global::System.Data.ConnectionState.Open)) {
  6521. this.Adapter.InsertCommand.Connection.Open();
  6522. }
  6523. try {
  6524. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6525. return returnValue;
  6526. }
  6527. finally {
  6528. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6529. this.Adapter.InsertCommand.Connection.Close();
  6530. }
  6531. }
  6532. }
  6533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6535. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6536. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6537. public virtual int Update(
  6538. string FirstName,
  6539. string LastName,
  6540. string Patronymic,
  6541. global::System.Nullable<global::System.DateTime> Birthday,
  6542. System.DateTime RegistrationDate,
  6543. string Email,
  6544. string Phone,
  6545. string GenderCode,
  6546. string PhotoPath,
  6547. int Original_ID,
  6548. string Original_FirstName,
  6549. string Original_LastName,
  6550. string Original_Patronymic,
  6551. global::System.Nullable<global::System.DateTime> Original_Birthday,
  6552. System.DateTime Original_RegistrationDate,
  6553. string Original_Email,
  6554. string Original_Phone,
  6555. string Original_GenderCode,
  6556. string Original_PhotoPath,
  6557. int ID) {
  6558. if ((FirstName == null)) {
  6559. throw new global::System.ArgumentNullException("FirstName");
  6560. }
  6561. else {
  6562. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(FirstName));
  6563. }
  6564. if ((LastName == null)) {
  6565. throw new global::System.ArgumentNullException("LastName");
  6566. }
  6567. else {
  6568. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(LastName));
  6569. }
  6570. if ((Patronymic == null)) {
  6571. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  6572. }
  6573. else {
  6574. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Patronymic));
  6575. }
  6576. if ((Birthday.HasValue == true)) {
  6577. this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(Birthday.Value));
  6578. }
  6579. else {
  6580. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6581. }
  6582. this.Adapter.UpdateCommand.Parameters[4].Value = ((System.DateTime)(RegistrationDate));
  6583. if ((Email == null)) {
  6584. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  6585. }
  6586. else {
  6587. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Email));
  6588. }
  6589. if ((Phone == null)) {
  6590. throw new global::System.ArgumentNullException("Phone");
  6591. }
  6592. else {
  6593. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Phone));
  6594. }
  6595. if ((GenderCode == null)) {
  6596. throw new global::System.ArgumentNullException("GenderCode");
  6597. }
  6598. else {
  6599. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(GenderCode));
  6600. }
  6601. if ((PhotoPath == null)) {
  6602. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  6603. }
  6604. else {
  6605. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(PhotoPath));
  6606. }
  6607. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_ID));
  6608. if ((Original_FirstName == null)) {
  6609. throw new global::System.ArgumentNullException("Original_FirstName");
  6610. }
  6611. else {
  6612. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_FirstName));
  6613. }
  6614. if ((Original_LastName == null)) {
  6615. throw new global::System.ArgumentNullException("Original_LastName");
  6616. }
  6617. else {
  6618. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_LastName));
  6619. }
  6620. if ((Original_Patronymic == null)) {
  6621. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  6622. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  6623. }
  6624. else {
  6625. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  6626. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_Patronymic));
  6627. }
  6628. if ((Original_Birthday.HasValue == true)) {
  6629. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  6630. this.Adapter.UpdateCommand.Parameters[15].Value = ((System.DateTime)(Original_Birthday.Value));
  6631. }
  6632. else {
  6633. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  6634. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  6635. }
  6636. this.Adapter.UpdateCommand.Parameters[16].Value = ((System.DateTime)(Original_RegistrationDate));
  6637. if ((Original_Email == null)) {
  6638. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
  6639. this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
  6640. }
  6641. else {
  6642. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
  6643. this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_Email));
  6644. }
  6645. if ((Original_Phone == null)) {
  6646. throw new global::System.ArgumentNullException("Original_Phone");
  6647. }
  6648. else {
  6649. this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_Phone));
  6650. }
  6651. if ((Original_GenderCode == null)) {
  6652. throw new global::System.ArgumentNullException("Original_GenderCode");
  6653. }
  6654. else {
  6655. this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(Original_GenderCode));
  6656. }
  6657. if ((Original_PhotoPath == null)) {
  6658. this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(1));
  6659. this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value;
  6660. }
  6661. else {
  6662. this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(0));
  6663. this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(Original_PhotoPath));
  6664. }
  6665. this.Adapter.UpdateCommand.Parameters[23].Value = ((int)(ID));
  6666. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6667. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6668. != global::System.Data.ConnectionState.Open)) {
  6669. this.Adapter.UpdateCommand.Connection.Open();
  6670. }
  6671. try {
  6672. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6673. return returnValue;
  6674. }
  6675. finally {
  6676. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6677. this.Adapter.UpdateCommand.Connection.Close();
  6678. }
  6679. }
  6680. }
  6681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6683. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6684. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6685. public virtual int Update(
  6686. string FirstName,
  6687. string LastName,
  6688. string Patronymic,
  6689. global::System.Nullable<global::System.DateTime> Birthday,
  6690. System.DateTime RegistrationDate,
  6691. string Email,
  6692. string Phone,
  6693. string GenderCode,
  6694. string PhotoPath,
  6695. int Original_ID,
  6696. string Original_FirstName,
  6697. string Original_LastName,
  6698. string Original_Patronymic,
  6699. global::System.Nullable<global::System.DateTime> Original_Birthday,
  6700. System.DateTime Original_RegistrationDate,
  6701. string Original_Email,
  6702. string Original_Phone,
  6703. string Original_GenderCode,
  6704. string Original_PhotoPath) {
  6705. return this.Update(FirstName, LastName, Patronymic, Birthday, RegistrationDate, Email, Phone, GenderCode, PhotoPath, Original_ID, Original_FirstName, Original_LastName, Original_Patronymic, Original_Birthday, Original_RegistrationDate, Original_Email, Original_Phone, Original_GenderCode, Original_PhotoPath, Original_ID);
  6706. }
  6707. }
  6708. /// <summary>
  6709. ///Represents the connection and commands used to retrieve and save data.
  6710. ///</summary>
  6711. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6712. [global::System.ComponentModel.ToolboxItem(true)]
  6713. [global::System.ComponentModel.DataObjectAttribute(true)]
  6714. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6715. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6716. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6717. public partial class ClientServiceTableAdapter : global::System.ComponentModel.Component {
  6718. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6719. private global::System.Data.SqlClient.SqlConnection _connection;
  6720. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6721. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6722. private bool _clearBeforeFill;
  6723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6725. public ClientServiceTableAdapter() {
  6726. this.ClearBeforeFill = true;
  6727. }
  6728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6730. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6731. get {
  6732. if ((this._adapter == null)) {
  6733. this.InitAdapter();
  6734. }
  6735. return this._adapter;
  6736. }
  6737. }
  6738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6740. internal global::System.Data.SqlClient.SqlConnection Connection {
  6741. get {
  6742. if ((this._connection == null)) {
  6743. this.InitConnection();
  6744. }
  6745. return this._connection;
  6746. }
  6747. set {
  6748. this._connection = value;
  6749. if ((this.Adapter.InsertCommand != null)) {
  6750. this.Adapter.InsertCommand.Connection = value;
  6751. }
  6752. if ((this.Adapter.DeleteCommand != null)) {
  6753. this.Adapter.DeleteCommand.Connection = value;
  6754. }
  6755. if ((this.Adapter.UpdateCommand != null)) {
  6756. this.Adapter.UpdateCommand.Connection = value;
  6757. }
  6758. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6759. if ((this.CommandCollection[i] != null)) {
  6760. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6761. }
  6762. }
  6763. }
  6764. }
  6765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6767. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6768. get {
  6769. return this._transaction;
  6770. }
  6771. set {
  6772. this._transaction = value;
  6773. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6774. this.CommandCollection[i].Transaction = this._transaction;
  6775. }
  6776. if (((this.Adapter != null)
  6777. && (this.Adapter.DeleteCommand != null))) {
  6778. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6779. }
  6780. if (((this.Adapter != null)
  6781. && (this.Adapter.InsertCommand != null))) {
  6782. this.Adapter.InsertCommand.Transaction = this._transaction;
  6783. }
  6784. if (((this.Adapter != null)
  6785. && (this.Adapter.UpdateCommand != null))) {
  6786. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6787. }
  6788. }
  6789. }
  6790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6792. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6793. get {
  6794. if ((this._commandCollection == null)) {
  6795. this.InitCommandCollection();
  6796. }
  6797. return this._commandCollection;
  6798. }
  6799. }
  6800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6802. public bool ClearBeforeFill {
  6803. get {
  6804. return this._clearBeforeFill;
  6805. }
  6806. set {
  6807. this._clearBeforeFill = value;
  6808. }
  6809. }
  6810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6812. private void InitAdapter() {
  6813. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6814. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6815. tableMapping.SourceTable = "Table";
  6816. tableMapping.DataSetTable = "ClientService";
  6817. tableMapping.ColumnMappings.Add("ID", "ID");
  6818. tableMapping.ColumnMappings.Add("ClientID", "ClientID");
  6819. tableMapping.ColumnMappings.Add("ServiceID", "ServiceID");
  6820. tableMapping.ColumnMappings.Add("StartTime", "StartTime");
  6821. tableMapping.ColumnMappings.Add("Comment", "Comment");
  6822. this._adapter.TableMappings.Add(tableMapping);
  6823. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6824. this._adapter.DeleteCommand.Connection = this.Connection;
  6825. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ClientService] WHERE (([ID] = @Original_ID) AND ([ClientID] = " +
  6826. "@Original_ClientID) AND ([ServiceID] = @Original_ServiceID) AND ([StartTime] = @" +
  6827. "Original_StartTime))";
  6828. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6829. 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, "", "", ""));
  6830. 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, "", "", ""));
  6831. 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, "", "", ""));
  6832. 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, "", "", ""));
  6833. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6834. this._adapter.InsertCommand.Connection = this.Connection;
  6835. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ClientService] ([ClientID], [ServiceID], [StartTime], [Comment" +
  6836. "]) VALUES (@ClientID, @ServiceID, @StartTime, @Comment);\r\nSELECT ID, ClientID, S" +
  6837. "erviceID, StartTime, Comment FROM ClientService WHERE (ID = SCOPE_IDENTITY())";
  6838. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6839. 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, "", "", ""));
  6840. 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, "", "", ""));
  6841. 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, "", "", ""));
  6842. 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, "", "", ""));
  6843. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6844. this._adapter.UpdateCommand.Connection = this.Connection;
  6845. 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));
  6846. SELECT ID, ClientID, ServiceID, StartTime, Comment FROM ClientService WHERE (ID = @ID)";
  6847. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6848. 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, "", "", ""));
  6849. 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, "", "", ""));
  6850. 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, "", "", ""));
  6851. 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, "", "", ""));
  6852. 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, "", "", ""));
  6853. 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, "", "", ""));
  6854. 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, "", "", ""));
  6855. 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, "", "", ""));
  6856. 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, "", "", ""));
  6857. }
  6858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6860. private void InitConnection() {
  6861. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6862. this._connection.ConnectionString = global::BeautySaloon.Properties.Settings.Default.beauty_saloonConnectionString;
  6863. }
  6864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6866. private void InitCommandCollection() {
  6867. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6868. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6869. this._commandCollection[0].Connection = this.Connection;
  6870. this._commandCollection[0].CommandText = "SELECT ID, ClientID, ServiceID, StartTime, Comment FROM dbo.ClientService";
  6871. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6872. }
  6873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6875. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6876. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6877. public virtual int Fill(beauty_saloonDataSet.ClientServiceDataTable dataTable) {
  6878. this.Adapter.SelectCommand = this.CommandCollection[0];
  6879. if ((this.ClearBeforeFill == true)) {
  6880. dataTable.Clear();
  6881. }
  6882. int returnValue = this.Adapter.Fill(dataTable);
  6883. return returnValue;
  6884. }
  6885. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6886. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6887. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6888. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6889. public virtual beauty_saloonDataSet.ClientServiceDataTable GetData() {
  6890. this.Adapter.SelectCommand = this.CommandCollection[0];
  6891. beauty_saloonDataSet.ClientServiceDataTable dataTable = new beauty_saloonDataSet.ClientServiceDataTable();
  6892. this.Adapter.Fill(dataTable);
  6893. return dataTable;
  6894. }
  6895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6897. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6898. public virtual int Update(beauty_saloonDataSet.ClientServiceDataTable dataTable) {
  6899. return this.Adapter.Update(dataTable);
  6900. }
  6901. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6902. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6903. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6904. public virtual int Update(beauty_saloonDataSet dataSet) {
  6905. return this.Adapter.Update(dataSet, "ClientService");
  6906. }
  6907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6909. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6910. public virtual int Update(global::System.Data.DataRow dataRow) {
  6911. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6912. dataRow});
  6913. }
  6914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6915. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6916. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6917. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6918. return this.Adapter.Update(dataRows);
  6919. }
  6920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6921. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6922. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6923. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6924. public virtual int Delete(int Original_ID, int Original_ClientID, int Original_ServiceID, System.DateTime Original_StartTime) {
  6925. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  6926. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ClientID));
  6927. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_ServiceID));
  6928. this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_StartTime));
  6929. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6930. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6931. != global::System.Data.ConnectionState.Open)) {
  6932. this.Adapter.DeleteCommand.Connection.Open();
  6933. }
  6934. try {
  6935. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6936. return returnValue;
  6937. }
  6938. finally {
  6939. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6940. this.Adapter.DeleteCommand.Connection.Close();
  6941. }
  6942. }
  6943. }
  6944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6946. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6947. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6948. public virtual int Insert(int ClientID, int ServiceID, System.DateTime StartTime, string Comment) {
  6949. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ClientID));
  6950. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ServiceID));
  6951. this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(StartTime));
  6952. if ((Comment == null)) {
  6953. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  6954. }
  6955. else {
  6956. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Comment));
  6957. }
  6958. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6959. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6960. != global::System.Data.ConnectionState.Open)) {
  6961. this.Adapter.InsertCommand.Connection.Open();
  6962. }
  6963. try {
  6964. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6965. return returnValue;
  6966. }
  6967. finally {
  6968. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6969. this.Adapter.InsertCommand.Connection.Close();
  6970. }
  6971. }
  6972. }
  6973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6975. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6976. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6977. 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) {
  6978. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ClientID));
  6979. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(ServiceID));
  6980. this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(StartTime));
  6981. if ((Comment == null)) {
  6982. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6983. }
  6984. else {
  6985. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Comment));
  6986. }
  6987. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_ID));
  6988. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_ClientID));
  6989. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ServiceID));
  6990. this.Adapter.UpdateCommand.Parameters[7].Value = ((System.DateTime)(Original_StartTime));
  6991. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(ID));
  6992. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6993. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6994. != global::System.Data.ConnectionState.Open)) {
  6995. this.Adapter.UpdateCommand.Connection.Open();
  6996. }
  6997. try {
  6998. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6999. return returnValue;
  7000. }
  7001. finally {
  7002. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7003. this.Adapter.UpdateCommand.Connection.Close();
  7004. }
  7005. }
  7006. }
  7007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7008. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7009. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7010. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7011. 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) {
  7012. return this.Update(ClientID, ServiceID, StartTime, Comment, Original_ID, Original_ClientID, Original_ServiceID, Original_StartTime, Original_ID);
  7013. }
  7014. }
  7015. /// <summary>
  7016. ///Represents the connection and commands used to retrieve and save data.
  7017. ///</summary>
  7018. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7019. [global::System.ComponentModel.ToolboxItem(true)]
  7020. [global::System.ComponentModel.DataObjectAttribute(true)]
  7021. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7022. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7023. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7024. public partial class DocumentByServiceTableAdapter : global::System.ComponentModel.Component {
  7025. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7026. private global::System.Data.SqlClient.SqlConnection _connection;
  7027. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7028. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7029. private bool _clearBeforeFill;
  7030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7032. public DocumentByServiceTableAdapter() {
  7033. this.ClearBeforeFill = true;
  7034. }
  7035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7037. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7038. get {
  7039. if ((this._adapter == null)) {
  7040. this.InitAdapter();
  7041. }
  7042. return this._adapter;
  7043. }
  7044. }
  7045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7047. internal global::System.Data.SqlClient.SqlConnection Connection {
  7048. get {
  7049. if ((this._connection == null)) {
  7050. this.InitConnection();
  7051. }
  7052. return this._connection;
  7053. }
  7054. set {
  7055. this._connection = value;
  7056. if ((this.Adapter.InsertCommand != null)) {
  7057. this.Adapter.InsertCommand.Connection = value;
  7058. }
  7059. if ((this.Adapter.DeleteCommand != null)) {
  7060. this.Adapter.DeleteCommand.Connection = value;
  7061. }
  7062. if ((this.Adapter.UpdateCommand != null)) {
  7063. this.Adapter.UpdateCommand.Connection = value;
  7064. }
  7065. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7066. if ((this.CommandCollection[i] != null)) {
  7067. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7068. }
  7069. }
  7070. }
  7071. }
  7072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7074. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7075. get {
  7076. return this._transaction;
  7077. }
  7078. set {
  7079. this._transaction = value;
  7080. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7081. this.CommandCollection[i].Transaction = this._transaction;
  7082. }
  7083. if (((this.Adapter != null)
  7084. && (this.Adapter.DeleteCommand != null))) {
  7085. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7086. }
  7087. if (((this.Adapter != null)
  7088. && (this.Adapter.InsertCommand != null))) {
  7089. this.Adapter.InsertCommand.Transaction = this._transaction;
  7090. }
  7091. if (((this.Adapter != null)
  7092. && (this.Adapter.UpdateCommand != null))) {
  7093. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7094. }
  7095. }
  7096. }
  7097. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7098. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7099. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7100. get {
  7101. if ((this._commandCollection == null)) {
  7102. this.InitCommandCollection();
  7103. }
  7104. return this._commandCollection;
  7105. }
  7106. }
  7107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7108. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7109. public bool ClearBeforeFill {
  7110. get {
  7111. return this._clearBeforeFill;
  7112. }
  7113. set {
  7114. this._clearBeforeFill = value;
  7115. }
  7116. }
  7117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7119. private void InitAdapter() {
  7120. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7121. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7122. tableMapping.SourceTable = "Table";
  7123. tableMapping.DataSetTable = "DocumentByService";
  7124. tableMapping.ColumnMappings.Add("ID", "ID");
  7125. tableMapping.ColumnMappings.Add("ClientServiceID", "ClientServiceID");
  7126. tableMapping.ColumnMappings.Add("DocumentPath", "DocumentPath");
  7127. this._adapter.TableMappings.Add(tableMapping);
  7128. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7129. this._adapter.DeleteCommand.Connection = this.Connection;
  7130. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[DocumentByService] WHERE (([ID] = @Original_ID) AND ([ClientSe" +
  7131. "rviceID] = @Original_ClientServiceID) AND ([DocumentPath] = @Original_DocumentPa" +
  7132. "th))";
  7133. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7134. 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, "", "", ""));
  7135. 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, "", "", ""));
  7136. 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, "", "", ""));
  7137. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7138. this._adapter.InsertCommand.Connection = this.Connection;
  7139. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[DocumentByService] ([ClientServiceID], [DocumentPath]) VALUES " +
  7140. "(@ClientServiceID, @DocumentPath);\r\nSELECT ID, ClientServiceID, DocumentPath FRO" +
  7141. "M DocumentByService WHERE (ID = SCOPE_IDENTITY())";
  7142. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7143. 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, "", "", ""));
  7144. 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, "", "", ""));
  7145. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7146. this._adapter.UpdateCommand.Connection = this.Connection;
  7147. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[DocumentByService] SET [ClientServiceID] = @ClientServiceID, [DocumentPath] = @DocumentPath WHERE (([ID] = @Original_ID) AND ([ClientServiceID] = @Original_ClientServiceID) AND ([DocumentPath] = @Original_DocumentPath));
  7148. SELECT ID, ClientServiceID, DocumentPath FROM DocumentByService WHERE (ID = @ID)";
  7149. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7150. 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, "", "", ""));
  7151. 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, "", "", ""));
  7152. 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, "", "", ""));
  7153. 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, "", "", ""));
  7154. 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, "", "", ""));
  7155. 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, "", "", ""));
  7156. }
  7157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7159. private void InitConnection() {
  7160. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7161. this._connection.ConnectionString = global::BeautySaloon.Properties.Settings.Default.beauty_saloonConnectionString;
  7162. }
  7163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7165. private void InitCommandCollection() {
  7166. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7167. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7168. this._commandCollection[0].Connection = this.Connection;
  7169. this._commandCollection[0].CommandText = "SELECT ID, ClientServiceID, DocumentPath FROM dbo.DocumentByService";
  7170. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7171. }
  7172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7174. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7175. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7176. public virtual int Fill(beauty_saloonDataSet.DocumentByServiceDataTable dataTable) {
  7177. this.Adapter.SelectCommand = this.CommandCollection[0];
  7178. if ((this.ClearBeforeFill == true)) {
  7179. dataTable.Clear();
  7180. }
  7181. int returnValue = this.Adapter.Fill(dataTable);
  7182. return returnValue;
  7183. }
  7184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7186. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7187. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7188. public virtual beauty_saloonDataSet.DocumentByServiceDataTable GetData() {
  7189. this.Adapter.SelectCommand = this.CommandCollection[0];
  7190. beauty_saloonDataSet.DocumentByServiceDataTable dataTable = new beauty_saloonDataSet.DocumentByServiceDataTable();
  7191. this.Adapter.Fill(dataTable);
  7192. return dataTable;
  7193. }
  7194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7196. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7197. public virtual int Update(beauty_saloonDataSet.DocumentByServiceDataTable dataTable) {
  7198. return this.Adapter.Update(dataTable);
  7199. }
  7200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7201. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7202. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7203. public virtual int Update(beauty_saloonDataSet dataSet) {
  7204. return this.Adapter.Update(dataSet, "DocumentByService");
  7205. }
  7206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7208. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7209. public virtual int Update(global::System.Data.DataRow dataRow) {
  7210. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7211. dataRow});
  7212. }
  7213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7215. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7216. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7217. return this.Adapter.Update(dataRows);
  7218. }
  7219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7221. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7222. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7223. public virtual int Delete(int Original_ID, int Original_ClientServiceID, string Original_DocumentPath) {
  7224. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  7225. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ClientServiceID));
  7226. if ((Original_DocumentPath == null)) {
  7227. throw new global::System.ArgumentNullException("Original_DocumentPath");
  7228. }
  7229. else {
  7230. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_DocumentPath));
  7231. }
  7232. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7233. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7234. != global::System.Data.ConnectionState.Open)) {
  7235. this.Adapter.DeleteCommand.Connection.Open();
  7236. }
  7237. try {
  7238. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7239. return returnValue;
  7240. }
  7241. finally {
  7242. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7243. this.Adapter.DeleteCommand.Connection.Close();
  7244. }
  7245. }
  7246. }
  7247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7249. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7250. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7251. public virtual int Insert(int ClientServiceID, string DocumentPath) {
  7252. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ClientServiceID));
  7253. if ((DocumentPath == null)) {
  7254. throw new global::System.ArgumentNullException("DocumentPath");
  7255. }
  7256. else {
  7257. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DocumentPath));
  7258. }
  7259. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7260. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7261. != global::System.Data.ConnectionState.Open)) {
  7262. this.Adapter.InsertCommand.Connection.Open();
  7263. }
  7264. try {
  7265. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7266. return returnValue;
  7267. }
  7268. finally {
  7269. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7270. this.Adapter.InsertCommand.Connection.Close();
  7271. }
  7272. }
  7273. }
  7274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7276. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7277. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7278. public virtual int Update(int ClientServiceID, string DocumentPath, int Original_ID, int Original_ClientServiceID, string Original_DocumentPath, int ID) {
  7279. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ClientServiceID));
  7280. if ((DocumentPath == null)) {
  7281. throw new global::System.ArgumentNullException("DocumentPath");
  7282. }
  7283. else {
  7284. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DocumentPath));
  7285. }
  7286. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  7287. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ClientServiceID));
  7288. if ((Original_DocumentPath == null)) {
  7289. throw new global::System.ArgumentNullException("Original_DocumentPath");
  7290. }
  7291. else {
  7292. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_DocumentPath));
  7293. }
  7294. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  7295. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7296. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7297. != global::System.Data.ConnectionState.Open)) {
  7298. this.Adapter.UpdateCommand.Connection.Open();
  7299. }
  7300. try {
  7301. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7302. return returnValue;
  7303. }
  7304. finally {
  7305. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7306. this.Adapter.UpdateCommand.Connection.Close();
  7307. }
  7308. }
  7309. }
  7310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7312. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7313. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7314. public virtual int Update(int ClientServiceID, string DocumentPath, int Original_ID, int Original_ClientServiceID, string Original_DocumentPath) {
  7315. return this.Update(ClientServiceID, DocumentPath, Original_ID, Original_ClientServiceID, Original_DocumentPath, Original_ID);
  7316. }
  7317. }
  7318. /// <summary>
  7319. ///Represents the connection and commands used to retrieve and save data.
  7320. ///</summary>
  7321. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7322. [global::System.ComponentModel.ToolboxItem(true)]
  7323. [global::System.ComponentModel.DataObjectAttribute(true)]
  7324. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7325. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7326. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7327. public partial class GenderTableAdapter : global::System.ComponentModel.Component {
  7328. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7329. private global::System.Data.SqlClient.SqlConnection _connection;
  7330. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7331. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7332. private bool _clearBeforeFill;
  7333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7335. public GenderTableAdapter() {
  7336. this.ClearBeforeFill = true;
  7337. }
  7338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7340. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7341. get {
  7342. if ((this._adapter == null)) {
  7343. this.InitAdapter();
  7344. }
  7345. return this._adapter;
  7346. }
  7347. }
  7348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7349. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7350. internal global::System.Data.SqlClient.SqlConnection Connection {
  7351. get {
  7352. if ((this._connection == null)) {
  7353. this.InitConnection();
  7354. }
  7355. return this._connection;
  7356. }
  7357. set {
  7358. this._connection = value;
  7359. if ((this.Adapter.InsertCommand != null)) {
  7360. this.Adapter.InsertCommand.Connection = value;
  7361. }
  7362. if ((this.Adapter.DeleteCommand != null)) {
  7363. this.Adapter.DeleteCommand.Connection = value;
  7364. }
  7365. if ((this.Adapter.UpdateCommand != null)) {
  7366. this.Adapter.UpdateCommand.Connection = value;
  7367. }
  7368. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7369. if ((this.CommandCollection[i] != null)) {
  7370. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7371. }
  7372. }
  7373. }
  7374. }
  7375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7377. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7378. get {
  7379. return this._transaction;
  7380. }
  7381. set {
  7382. this._transaction = value;
  7383. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7384. this.CommandCollection[i].Transaction = this._transaction;
  7385. }
  7386. if (((this.Adapter != null)
  7387. && (this.Adapter.DeleteCommand != null))) {
  7388. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7389. }
  7390. if (((this.Adapter != null)
  7391. && (this.Adapter.InsertCommand != null))) {
  7392. this.Adapter.InsertCommand.Transaction = this._transaction;
  7393. }
  7394. if (((this.Adapter != null)
  7395. && (this.Adapter.UpdateCommand != null))) {
  7396. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7397. }
  7398. }
  7399. }
  7400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7402. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7403. get {
  7404. if ((this._commandCollection == null)) {
  7405. this.InitCommandCollection();
  7406. }
  7407. return this._commandCollection;
  7408. }
  7409. }
  7410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7412. public bool ClearBeforeFill {
  7413. get {
  7414. return this._clearBeforeFill;
  7415. }
  7416. set {
  7417. this._clearBeforeFill = value;
  7418. }
  7419. }
  7420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7422. private void InitAdapter() {
  7423. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7424. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7425. tableMapping.SourceTable = "Table";
  7426. tableMapping.DataSetTable = "Gender";
  7427. tableMapping.ColumnMappings.Add("Code", "Code");
  7428. tableMapping.ColumnMappings.Add("Name", "Name");
  7429. this._adapter.TableMappings.Add(tableMapping);
  7430. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7431. this._adapter.DeleteCommand.Connection = this.Connection;
  7432. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Gender] WHERE (([Code] = @Original_Code) AND ((@IsNull_Name = " +
  7433. "1 AND [Name] IS NULL) OR ([Name] = @Original_Name)))";
  7434. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7435. 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, "", "", ""));
  7436. 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, "", "", ""));
  7437. 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, "", "", ""));
  7438. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7439. this._adapter.InsertCommand.Connection = this.Connection;
  7440. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Gender] ([Code], [Name]) VALUES (@Code, @Name);\r\nSELECT Code, " +
  7441. "Name FROM Gender WHERE (Code = @Code)";
  7442. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7443. 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, "", "", ""));
  7444. 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, "", "", ""));
  7445. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7446. this._adapter.UpdateCommand.Connection = this.Connection;
  7447. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Gender] SET [Code] = @Code, [Name] = @Name WHERE (([Code] = @Origin" +
  7448. "al_Code) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)" +
  7449. "));\r\nSELECT Code, Name FROM Gender WHERE (Code = @Code)";
  7450. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7451. 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, "", "", ""));
  7452. 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, "", "", ""));
  7453. 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, "", "", ""));
  7454. 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, "", "", ""));
  7455. 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, "", "", ""));
  7456. }
  7457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7458. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7459. private void InitConnection() {
  7460. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7461. this._connection.ConnectionString = global::BeautySaloon.Properties.Settings.Default.beauty_saloonConnectionString;
  7462. }
  7463. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7464. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7465. private void InitCommandCollection() {
  7466. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7467. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7468. this._commandCollection[0].Connection = this.Connection;
  7469. this._commandCollection[0].CommandText = "SELECT Code, Name FROM dbo.Gender";
  7470. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7471. }
  7472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7474. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7475. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7476. public virtual int Fill(beauty_saloonDataSet.GenderDataTable dataTable) {
  7477. this.Adapter.SelectCommand = this.CommandCollection[0];
  7478. if ((this.ClearBeforeFill == true)) {
  7479. dataTable.Clear();
  7480. }
  7481. int returnValue = this.Adapter.Fill(dataTable);
  7482. return returnValue;
  7483. }
  7484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7486. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7487. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7488. public virtual beauty_saloonDataSet.GenderDataTable GetData() {
  7489. this.Adapter.SelectCommand = this.CommandCollection[0];
  7490. beauty_saloonDataSet.GenderDataTable dataTable = new beauty_saloonDataSet.GenderDataTable();
  7491. this.Adapter.Fill(dataTable);
  7492. return dataTable;
  7493. }
  7494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7496. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7497. public virtual int Update(beauty_saloonDataSet.GenderDataTable dataTable) {
  7498. return this.Adapter.Update(dataTable);
  7499. }
  7500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7502. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7503. public virtual int Update(beauty_saloonDataSet dataSet) {
  7504. return this.Adapter.Update(dataSet, "Gender");
  7505. }
  7506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7508. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7509. public virtual int Update(global::System.Data.DataRow dataRow) {
  7510. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7511. dataRow});
  7512. }
  7513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7515. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7516. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7517. return this.Adapter.Update(dataRows);
  7518. }
  7519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7521. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7522. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7523. public virtual int Delete(string Original_Code, string Original_Name) {
  7524. if ((Original_Code == null)) {
  7525. throw new global::System.ArgumentNullException("Original_Code");
  7526. }
  7527. else {
  7528. this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_Code));
  7529. }
  7530. if ((Original_Name == null)) {
  7531. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7532. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7533. }
  7534. else {
  7535. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7536. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Name));
  7537. }
  7538. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7539. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7540. != global::System.Data.ConnectionState.Open)) {
  7541. this.Adapter.DeleteCommand.Connection.Open();
  7542. }
  7543. try {
  7544. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7545. return returnValue;
  7546. }
  7547. finally {
  7548. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7549. this.Adapter.DeleteCommand.Connection.Close();
  7550. }
  7551. }
  7552. }
  7553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7555. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7556. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7557. public virtual int Insert(string Code, string Name) {
  7558. if ((Code == null)) {
  7559. throw new global::System.ArgumentNullException("Code");
  7560. }
  7561. else {
  7562. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Code));
  7563. }
  7564. if ((Name == null)) {
  7565. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7566. }
  7567. else {
  7568. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Name));
  7569. }
  7570. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7571. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7572. != global::System.Data.ConnectionState.Open)) {
  7573. this.Adapter.InsertCommand.Connection.Open();
  7574. }
  7575. try {
  7576. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7577. return returnValue;
  7578. }
  7579. finally {
  7580. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7581. this.Adapter.InsertCommand.Connection.Close();
  7582. }
  7583. }
  7584. }
  7585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7587. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7588. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7589. public virtual int Update(string Code, string Name, string Original_Code, string Original_Name) {
  7590. if ((Code == null)) {
  7591. throw new global::System.ArgumentNullException("Code");
  7592. }
  7593. else {
  7594. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Code));
  7595. }
  7596. if ((Name == null)) {
  7597. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7598. }
  7599. else {
  7600. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Name));
  7601. }
  7602. if ((Original_Code == null)) {
  7603. throw new global::System.ArgumentNullException("Original_Code");
  7604. }
  7605. else {
  7606. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_Code));
  7607. }
  7608. if ((Original_Name == null)) {
  7609. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  7610. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  7611. }
  7612. else {
  7613. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  7614. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Name));
  7615. }
  7616. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7617. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7618. != global::System.Data.ConnectionState.Open)) {
  7619. this.Adapter.UpdateCommand.Connection.Open();
  7620. }
  7621. try {
  7622. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7623. return returnValue;
  7624. }
  7625. finally {
  7626. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7627. this.Adapter.UpdateCommand.Connection.Close();
  7628. }
  7629. }
  7630. }
  7631. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7633. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7634. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7635. public virtual int Update(string Name, string Original_Code, string Original_Name) {
  7636. return this.Update(Original_Code, Name, Original_Code, Original_Name);
  7637. }
  7638. }
  7639. /// <summary>
  7640. ///Represents the connection and commands used to retrieve and save data.
  7641. ///</summary>
  7642. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7643. [global::System.ComponentModel.ToolboxItem(true)]
  7644. [global::System.ComponentModel.DataObjectAttribute(true)]
  7645. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7646. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7647. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7648. public partial class ManufacturerTableAdapter : global::System.ComponentModel.Component {
  7649. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7650. private global::System.Data.SqlClient.SqlConnection _connection;
  7651. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7652. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7653. private bool _clearBeforeFill;
  7654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7656. public ManufacturerTableAdapter() {
  7657. this.ClearBeforeFill = true;
  7658. }
  7659. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7660. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7661. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7662. get {
  7663. if ((this._adapter == null)) {
  7664. this.InitAdapter();
  7665. }
  7666. return this._adapter;
  7667. }
  7668. }
  7669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7671. internal global::System.Data.SqlClient.SqlConnection Connection {
  7672. get {
  7673. if ((this._connection == null)) {
  7674. this.InitConnection();
  7675. }
  7676. return this._connection;
  7677. }
  7678. set {
  7679. this._connection = value;
  7680. if ((this.Adapter.InsertCommand != null)) {
  7681. this.Adapter.InsertCommand.Connection = value;
  7682. }
  7683. if ((this.Adapter.DeleteCommand != null)) {
  7684. this.Adapter.DeleteCommand.Connection = value;
  7685. }
  7686. if ((this.Adapter.UpdateCommand != null)) {
  7687. this.Adapter.UpdateCommand.Connection = value;
  7688. }
  7689. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7690. if ((this.CommandCollection[i] != null)) {
  7691. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7692. }
  7693. }
  7694. }
  7695. }
  7696. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7698. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7699. get {
  7700. return this._transaction;
  7701. }
  7702. set {
  7703. this._transaction = value;
  7704. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7705. this.CommandCollection[i].Transaction = this._transaction;
  7706. }
  7707. if (((this.Adapter != null)
  7708. && (this.Adapter.DeleteCommand != null))) {
  7709. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7710. }
  7711. if (((this.Adapter != null)
  7712. && (this.Adapter.InsertCommand != null))) {
  7713. this.Adapter.InsertCommand.Transaction = this._transaction;
  7714. }
  7715. if (((this.Adapter != null)
  7716. && (this.Adapter.UpdateCommand != null))) {
  7717. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7718. }
  7719. }
  7720. }
  7721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7723. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7724. get {
  7725. if ((this._commandCollection == null)) {
  7726. this.InitCommandCollection();
  7727. }
  7728. return this._commandCollection;
  7729. }
  7730. }
  7731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7733. public bool ClearBeforeFill {
  7734. get {
  7735. return this._clearBeforeFill;
  7736. }
  7737. set {
  7738. this._clearBeforeFill = value;
  7739. }
  7740. }
  7741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7742. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7743. private void InitAdapter() {
  7744. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7745. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7746. tableMapping.SourceTable = "Table";
  7747. tableMapping.DataSetTable = "Manufacturer";
  7748. tableMapping.ColumnMappings.Add("ID", "ID");
  7749. tableMapping.ColumnMappings.Add("Name", "Name");
  7750. tableMapping.ColumnMappings.Add("StartDate", "StartDate");
  7751. this._adapter.TableMappings.Add(tableMapping);
  7752. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7753. this._adapter.DeleteCommand.Connection = this.Connection;
  7754. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Manufacturer] WHERE (([ID] = @Original_ID) AND ([Name] = @Orig" +
  7755. "inal_Name) AND ((@IsNull_StartDate = 1 AND [StartDate] IS NULL) OR ([StartDate] " +
  7756. "= @Original_StartDate)))";
  7757. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7758. 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, "", "", ""));
  7759. 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, "", "", ""));
  7760. 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, "", "", ""));
  7761. 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, "", "", ""));
  7762. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7763. this._adapter.InsertCommand.Connection = this.Connection;
  7764. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Manufacturer] ([Name], [StartDate]) VALUES (@Name, @StartDate)" +
  7765. ";\r\nSELECT ID, Name, StartDate FROM Manufacturer WHERE (ID = SCOPE_IDENTITY())";
  7766. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7767. 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, "", "", ""));
  7768. 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, "", "", ""));
  7769. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7770. this._adapter.UpdateCommand.Connection = this.Connection;
  7771. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Manufacturer] SET [Name] = @Name, [StartDate] = @StartDate WHERE (([ID] = @Original_ID) AND ([Name] = @Original_Name) AND ((@IsNull_StartDate = 1 AND [StartDate] IS NULL) OR ([StartDate] = @Original_StartDate)));
  7772. SELECT ID, Name, StartDate FROM Manufacturer WHERE (ID = @ID)";
  7773. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7774. 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, "", "", ""));
  7775. 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, "", "", ""));
  7776. 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, "", "", ""));
  7777. 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, "", "", ""));
  7778. 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, "", "", ""));
  7779. 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, "", "", ""));
  7780. 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, "", "", ""));
  7781. }
  7782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7784. private void InitConnection() {
  7785. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7786. this._connection.ConnectionString = global::BeautySaloon.Properties.Settings.Default.beauty_saloonConnectionString;
  7787. }
  7788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7790. private void InitCommandCollection() {
  7791. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7792. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7793. this._commandCollection[0].Connection = this.Connection;
  7794. this._commandCollection[0].CommandText = "SELECT ID, Name, StartDate FROM dbo.Manufacturer";
  7795. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7796. }
  7797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7799. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7800. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7801. public virtual int Fill(beauty_saloonDataSet.ManufacturerDataTable dataTable) {
  7802. this.Adapter.SelectCommand = this.CommandCollection[0];
  7803. if ((this.ClearBeforeFill == true)) {
  7804. dataTable.Clear();
  7805. }
  7806. int returnValue = this.Adapter.Fill(dataTable);
  7807. return returnValue;
  7808. }
  7809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7811. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7812. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7813. public virtual beauty_saloonDataSet.ManufacturerDataTable GetData() {
  7814. this.Adapter.SelectCommand = this.CommandCollection[0];
  7815. beauty_saloonDataSet.ManufacturerDataTable dataTable = new beauty_saloonDataSet.ManufacturerDataTable();
  7816. this.Adapter.Fill(dataTable);
  7817. return dataTable;
  7818. }
  7819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7821. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7822. public virtual int Update(beauty_saloonDataSet.ManufacturerDataTable dataTable) {
  7823. return this.Adapter.Update(dataTable);
  7824. }
  7825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7827. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7828. public virtual int Update(beauty_saloonDataSet dataSet) {
  7829. return this.Adapter.Update(dataSet, "Manufacturer");
  7830. }
  7831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7832. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7833. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7834. public virtual int Update(global::System.Data.DataRow dataRow) {
  7835. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7836. dataRow});
  7837. }
  7838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7840. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7841. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7842. return this.Adapter.Update(dataRows);
  7843. }
  7844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7846. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7847. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7848. public virtual int Delete(int Original_ID, string Original_Name, global::System.Nullable<global::System.DateTime> Original_StartDate) {
  7849. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  7850. if ((Original_Name == null)) {
  7851. throw new global::System.ArgumentNullException("Original_Name");
  7852. }
  7853. else {
  7854. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Name));
  7855. }
  7856. if ((Original_StartDate.HasValue == true)) {
  7857. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  7858. this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_StartDate.Value));
  7859. }
  7860. else {
  7861. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  7862. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  7863. }
  7864. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7865. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7866. != global::System.Data.ConnectionState.Open)) {
  7867. this.Adapter.DeleteCommand.Connection.Open();
  7868. }
  7869. try {
  7870. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7871. return returnValue;
  7872. }
  7873. finally {
  7874. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7875. this.Adapter.DeleteCommand.Connection.Close();
  7876. }
  7877. }
  7878. }
  7879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7881. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7882. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7883. public virtual int Insert(string Name, global::System.Nullable<global::System.DateTime> StartDate) {
  7884. if ((Name == null)) {
  7885. throw new global::System.ArgumentNullException("Name");
  7886. }
  7887. else {
  7888. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Name));
  7889. }
  7890. if ((StartDate.HasValue == true)) {
  7891. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(StartDate.Value));
  7892. }
  7893. else {
  7894. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7895. }
  7896. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7897. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7898. != global::System.Data.ConnectionState.Open)) {
  7899. this.Adapter.InsertCommand.Connection.Open();
  7900. }
  7901. try {
  7902. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7903. return returnValue;
  7904. }
  7905. finally {
  7906. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7907. this.Adapter.InsertCommand.Connection.Close();
  7908. }
  7909. }
  7910. }
  7911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7913. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7914. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7915. public virtual int Update(string Name, global::System.Nullable<global::System.DateTime> StartDate, int Original_ID, string Original_Name, global::System.Nullable<global::System.DateTime> Original_StartDate, int ID) {
  7916. if ((Name == null)) {
  7917. throw new global::System.ArgumentNullException("Name");
  7918. }
  7919. else {
  7920. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Name));
  7921. }
  7922. if ((StartDate.HasValue == true)) {
  7923. this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(StartDate.Value));
  7924. }
  7925. else {
  7926. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7927. }
  7928. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  7929. if ((Original_Name == null)) {
  7930. throw new global::System.ArgumentNullException("Original_Name");
  7931. }
  7932. else {
  7933. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Name));
  7934. }
  7935. if ((Original_StartDate.HasValue == true)) {
  7936. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  7937. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(Original_StartDate.Value));
  7938. }
  7939. else {
  7940. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  7941. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  7942. }
  7943. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(ID));
  7944. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7945. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7946. != global::System.Data.ConnectionState.Open)) {
  7947. this.Adapter.UpdateCommand.Connection.Open();
  7948. }
  7949. try {
  7950. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7951. return returnValue;
  7952. }
  7953. finally {
  7954. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7955. this.Adapter.UpdateCommand.Connection.Close();
  7956. }
  7957. }
  7958. }
  7959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7961. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7962. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7963. public virtual int Update(string Name, global::System.Nullable<global::System.DateTime> StartDate, int Original_ID, string Original_Name, global::System.Nullable<global::System.DateTime> Original_StartDate) {
  7964. return this.Update(Name, StartDate, Original_ID, Original_Name, Original_StartDate, Original_ID);
  7965. }
  7966. }
  7967. /// <summary>
  7968. ///Represents the connection and commands used to retrieve and save data.
  7969. ///</summary>
  7970. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7971. [global::System.ComponentModel.ToolboxItem(true)]
  7972. [global::System.ComponentModel.DataObjectAttribute(true)]
  7973. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7974. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7975. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7976. public partial class ProductTableAdapter : global::System.ComponentModel.Component {
  7977. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7978. private global::System.Data.SqlClient.SqlConnection _connection;
  7979. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7980. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7981. private bool _clearBeforeFill;
  7982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7984. public ProductTableAdapter() {
  7985. this.ClearBeforeFill = true;
  7986. }
  7987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7989. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7990. get {
  7991. if ((this._adapter == null)) {
  7992. this.InitAdapter();
  7993. }
  7994. return this._adapter;
  7995. }
  7996. }
  7997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7998. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7999. internal global::System.Data.SqlClient.SqlConnection Connection {
  8000. get {
  8001. if ((this._connection == null)) {
  8002. this.InitConnection();
  8003. }
  8004. return this._connection;
  8005. }
  8006. set {
  8007. this._connection = value;
  8008. if ((this.Adapter.InsertCommand != null)) {
  8009. this.Adapter.InsertCommand.Connection = value;
  8010. }
  8011. if ((this.Adapter.DeleteCommand != null)) {
  8012. this.Adapter.DeleteCommand.Connection = value;
  8013. }
  8014. if ((this.Adapter.UpdateCommand != null)) {
  8015. this.Adapter.UpdateCommand.Connection = value;
  8016. }
  8017. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8018. if ((this.CommandCollection[i] != null)) {
  8019. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8020. }
  8021. }
  8022. }
  8023. }
  8024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8026. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8027. get {
  8028. return this._transaction;
  8029. }
  8030. set {
  8031. this._transaction = value;
  8032. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8033. this.CommandCollection[i].Transaction = this._transaction;
  8034. }
  8035. if (((this.Adapter != null)
  8036. && (this.Adapter.DeleteCommand != null))) {
  8037. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8038. }
  8039. if (((this.Adapter != null)
  8040. && (this.Adapter.InsertCommand != null))) {
  8041. this.Adapter.InsertCommand.Transaction = this._transaction;
  8042. }
  8043. if (((this.Adapter != null)
  8044. && (this.Adapter.UpdateCommand != null))) {
  8045. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8046. }
  8047. }
  8048. }
  8049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8051. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8052. get {
  8053. if ((this._commandCollection == null)) {
  8054. this.InitCommandCollection();
  8055. }
  8056. return this._commandCollection;
  8057. }
  8058. }
  8059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8061. public bool ClearBeforeFill {
  8062. get {
  8063. return this._clearBeforeFill;
  8064. }
  8065. set {
  8066. this._clearBeforeFill = value;
  8067. }
  8068. }
  8069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8070. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8071. private void InitAdapter() {
  8072. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8073. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8074. tableMapping.SourceTable = "Table";
  8075. tableMapping.DataSetTable = "Product";
  8076. tableMapping.ColumnMappings.Add("ID", "ID");
  8077. tableMapping.ColumnMappings.Add("Title", "Title");
  8078. tableMapping.ColumnMappings.Add("Cost", "Cost");
  8079. tableMapping.ColumnMappings.Add("Description", "Description");
  8080. tableMapping.ColumnMappings.Add("MainImagePath", "MainImagePath");
  8081. tableMapping.ColumnMappings.Add("IsActive", "IsActive");
  8082. tableMapping.ColumnMappings.Add("ManufacturerID", "ManufacturerID");
  8083. this._adapter.TableMappings.Add(tableMapping);
  8084. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8085. this._adapter.DeleteCommand.Connection = this.Connection;
  8086. 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)))";
  8087. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8088. 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, "", "", ""));
  8089. 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, "", "", ""));
  8090. 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, "", "", ""));
  8091. 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, "", "", ""));
  8092. 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, "", "", ""));
  8093. 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, "", "", ""));
  8094. 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, "", "", ""));
  8095. 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, "", "", ""));
  8096. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8097. this._adapter.InsertCommand.Connection = this.Connection;
  8098. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Product] ([Title], [Cost], [Description], [MainImagePath], [IsActive], [ManufacturerID]) VALUES (@Title, @Cost, @Description, @MainImagePath, @IsActive, @ManufacturerID);
  8099. SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM Product WHERE (ID = SCOPE_IDENTITY())";
  8100. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8101. 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, "", "", ""));
  8102. 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, "", "", ""));
  8103. 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, "", "", ""));
  8104. 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, "", "", ""));
  8105. 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, "", "", ""));
  8106. 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, "", "", ""));
  8107. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8108. this._adapter.UpdateCommand.Connection = this.Connection;
  8109. 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)));
  8110. SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM Product WHERE (ID = @ID)";
  8111. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8112. 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, "", "", ""));
  8113. 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, "", "", ""));
  8114. 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, "", "", ""));
  8115. 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, "", "", ""));
  8116. 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, "", "", ""));
  8117. 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, "", "", ""));
  8118. 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, "", "", ""));
  8119. 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, "", "", ""));
  8120. 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, "", "", ""));
  8121. 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, "", "", ""));
  8122. 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, "", "", ""));
  8123. 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, "", "", ""));
  8124. 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, "", "", ""));
  8125. 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, "", "", ""));
  8126. 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, "", "", ""));
  8127. }
  8128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8130. private void InitConnection() {
  8131. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8132. this._connection.ConnectionString = global::BeautySaloon.Properties.Settings.Default.beauty_saloonConnectionString;
  8133. }
  8134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8136. private void InitCommandCollection() {
  8137. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8138. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8139. this._commandCollection[0].Connection = this.Connection;
  8140. this._commandCollection[0].CommandText = "SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM" +
  8141. " dbo.Product";
  8142. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8143. }
  8144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8146. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8147. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8148. public virtual int Fill(beauty_saloonDataSet.ProductDataTable dataTable) {
  8149. this.Adapter.SelectCommand = this.CommandCollection[0];
  8150. if ((this.ClearBeforeFill == true)) {
  8151. dataTable.Clear();
  8152. }
  8153. int returnValue = this.Adapter.Fill(dataTable);
  8154. return returnValue;
  8155. }
  8156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8158. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8159. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8160. public virtual beauty_saloonDataSet.ProductDataTable GetData() {
  8161. this.Adapter.SelectCommand = this.CommandCollection[0];
  8162. beauty_saloonDataSet.ProductDataTable dataTable = new beauty_saloonDataSet.ProductDataTable();
  8163. this.Adapter.Fill(dataTable);
  8164. return dataTable;
  8165. }
  8166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8168. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8169. public virtual int Update(beauty_saloonDataSet.ProductDataTable dataTable) {
  8170. return this.Adapter.Update(dataTable);
  8171. }
  8172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8174. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8175. public virtual int Update(beauty_saloonDataSet dataSet) {
  8176. return this.Adapter.Update(dataSet, "Product");
  8177. }
  8178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8180. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8181. public virtual int Update(global::System.Data.DataRow dataRow) {
  8182. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8183. dataRow});
  8184. }
  8185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8187. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8188. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8189. return this.Adapter.Update(dataRows);
  8190. }
  8191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8193. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8194. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8195. 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) {
  8196. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  8197. if ((Original_Title == null)) {
  8198. throw new global::System.ArgumentNullException("Original_Title");
  8199. }
  8200. else {
  8201. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  8202. }
  8203. this.Adapter.DeleteCommand.Parameters[2].Value = ((decimal)(Original_Cost));
  8204. if ((Original_MainImagePath == null)) {
  8205. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  8206. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  8207. }
  8208. else {
  8209. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  8210. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_MainImagePath));
  8211. }
  8212. this.Adapter.DeleteCommand.Parameters[5].Value = ((bool)(Original_IsActive));
  8213. if ((Original_ManufacturerID.HasValue == true)) {
  8214. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
  8215. this.Adapter.DeleteCommand.Parameters[7].Value = ((int)(Original_ManufacturerID.Value));
  8216. }
  8217. else {
  8218. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
  8219. this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
  8220. }
  8221. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8222. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8223. != global::System.Data.ConnectionState.Open)) {
  8224. this.Adapter.DeleteCommand.Connection.Open();
  8225. }
  8226. try {
  8227. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8228. return returnValue;
  8229. }
  8230. finally {
  8231. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8232. this.Adapter.DeleteCommand.Connection.Close();
  8233. }
  8234. }
  8235. }
  8236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8238. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8239. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8240. public virtual int Insert(string Title, decimal Cost, string Description, string MainImagePath, bool IsActive, global::System.Nullable<int> ManufacturerID) {
  8241. if ((Title == null)) {
  8242. throw new global::System.ArgumentNullException("Title");
  8243. }
  8244. else {
  8245. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  8246. }
  8247. this.Adapter.InsertCommand.Parameters[1].Value = ((decimal)(Cost));
  8248. if ((Description == null)) {
  8249. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  8250. }
  8251. else {
  8252. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Description));
  8253. }
  8254. if ((MainImagePath == null)) {
  8255. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  8256. }
  8257. else {
  8258. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(MainImagePath));
  8259. }
  8260. this.Adapter.InsertCommand.Parameters[4].Value = ((bool)(IsActive));
  8261. if ((ManufacturerID.HasValue == true)) {
  8262. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(ManufacturerID.Value));
  8263. }
  8264. else {
  8265. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  8266. }
  8267. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8268. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8269. != global::System.Data.ConnectionState.Open)) {
  8270. this.Adapter.InsertCommand.Connection.Open();
  8271. }
  8272. try {
  8273. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8274. return returnValue;
  8275. }
  8276. finally {
  8277. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8278. this.Adapter.InsertCommand.Connection.Close();
  8279. }
  8280. }
  8281. }
  8282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8284. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8285. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8286. 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) {
  8287. if ((Title == null)) {
  8288. throw new global::System.ArgumentNullException("Title");
  8289. }
  8290. else {
  8291. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  8292. }
  8293. this.Adapter.UpdateCommand.Parameters[1].Value = ((decimal)(Cost));
  8294. if ((Description == null)) {
  8295. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  8296. }
  8297. else {
  8298. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Description));
  8299. }
  8300. if ((MainImagePath == null)) {
  8301. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8302. }
  8303. else {
  8304. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(MainImagePath));
  8305. }
  8306. this.Adapter.UpdateCommand.Parameters[4].Value = ((bool)(IsActive));
  8307. if ((ManufacturerID.HasValue == true)) {
  8308. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ManufacturerID.Value));
  8309. }
  8310. else {
  8311. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  8312. }
  8313. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ID));
  8314. if ((Original_Title == null)) {
  8315. throw new global::System.ArgumentNullException("Original_Title");
  8316. }
  8317. else {
  8318. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Title));
  8319. }
  8320. this.Adapter.UpdateCommand.Parameters[8].Value = ((decimal)(Original_Cost));
  8321. if ((Original_MainImagePath == null)) {
  8322. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  8323. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  8324. }
  8325. else {
  8326. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  8327. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_MainImagePath));
  8328. }
  8329. this.Adapter.UpdateCommand.Parameters[11].Value = ((bool)(Original_IsActive));
  8330. if ((Original_ManufacturerID.HasValue == true)) {
  8331. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  8332. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_ManufacturerID.Value));
  8333. }
  8334. else {
  8335. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  8336. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  8337. }
  8338. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(ID));
  8339. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8340. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8341. != global::System.Data.ConnectionState.Open)) {
  8342. this.Adapter.UpdateCommand.Connection.Open();
  8343. }
  8344. try {
  8345. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8346. return returnValue;
  8347. }
  8348. finally {
  8349. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8350. this.Adapter.UpdateCommand.Connection.Close();
  8351. }
  8352. }
  8353. }
  8354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8355. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8356. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8357. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8358. 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) {
  8359. return this.Update(Title, Cost, Description, MainImagePath, IsActive, ManufacturerID, Original_ID, Original_Title, Original_Cost, Original_MainImagePath, Original_IsActive, Original_ManufacturerID, Original_ID);
  8360. }
  8361. }
  8362. /// <summary>
  8363. ///Represents the connection and commands used to retrieve and save data.
  8364. ///</summary>
  8365. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8366. [global::System.ComponentModel.ToolboxItem(true)]
  8367. [global::System.ComponentModel.DataObjectAttribute(true)]
  8368. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8369. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8370. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8371. public partial class ProductPhotoTableAdapter : global::System.ComponentModel.Component {
  8372. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8373. private global::System.Data.SqlClient.SqlConnection _connection;
  8374. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8375. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8376. private bool _clearBeforeFill;
  8377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8378. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8379. public ProductPhotoTableAdapter() {
  8380. this.ClearBeforeFill = true;
  8381. }
  8382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8384. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8385. get {
  8386. if ((this._adapter == null)) {
  8387. this.InitAdapter();
  8388. }
  8389. return this._adapter;
  8390. }
  8391. }
  8392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8394. internal global::System.Data.SqlClient.SqlConnection Connection {
  8395. get {
  8396. if ((this._connection == null)) {
  8397. this.InitConnection();
  8398. }
  8399. return this._connection;
  8400. }
  8401. set {
  8402. this._connection = value;
  8403. if ((this.Adapter.InsertCommand != null)) {
  8404. this.Adapter.InsertCommand.Connection = value;
  8405. }
  8406. if ((this.Adapter.DeleteCommand != null)) {
  8407. this.Adapter.DeleteCommand.Connection = value;
  8408. }
  8409. if ((this.Adapter.UpdateCommand != null)) {
  8410. this.Adapter.UpdateCommand.Connection = value;
  8411. }
  8412. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8413. if ((this.CommandCollection[i] != null)) {
  8414. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8415. }
  8416. }
  8417. }
  8418. }
  8419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8421. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8422. get {
  8423. return this._transaction;
  8424. }
  8425. set {
  8426. this._transaction = value;
  8427. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8428. this.CommandCollection[i].Transaction = this._transaction;
  8429. }
  8430. if (((this.Adapter != null)
  8431. && (this.Adapter.DeleteCommand != null))) {
  8432. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8433. }
  8434. if (((this.Adapter != null)
  8435. && (this.Adapter.InsertCommand != null))) {
  8436. this.Adapter.InsertCommand.Transaction = this._transaction;
  8437. }
  8438. if (((this.Adapter != null)
  8439. && (this.Adapter.UpdateCommand != null))) {
  8440. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8441. }
  8442. }
  8443. }
  8444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8446. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8447. get {
  8448. if ((this._commandCollection == null)) {
  8449. this.InitCommandCollection();
  8450. }
  8451. return this._commandCollection;
  8452. }
  8453. }
  8454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8456. public bool ClearBeforeFill {
  8457. get {
  8458. return this._clearBeforeFill;
  8459. }
  8460. set {
  8461. this._clearBeforeFill = value;
  8462. }
  8463. }
  8464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8466. private void InitAdapter() {
  8467. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8468. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8469. tableMapping.SourceTable = "Table";
  8470. tableMapping.DataSetTable = "ProductPhoto";
  8471. tableMapping.ColumnMappings.Add("ID", "ID");
  8472. tableMapping.ColumnMappings.Add("ProductID", "ProductID");
  8473. tableMapping.ColumnMappings.Add("PhotoPath", "PhotoPath");
  8474. this._adapter.TableMappings.Add(tableMapping);
  8475. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8476. this._adapter.DeleteCommand.Connection = this.Connection;
  8477. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ProductPhoto] WHERE (([ID] = @Original_ID) AND ([ProductID] = " +
  8478. "@Original_ProductID) AND ([PhotoPath] = @Original_PhotoPath))";
  8479. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8480. 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, "", "", ""));
  8481. 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, "", "", ""));
  8482. 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, "", "", ""));
  8483. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8484. this._adapter.InsertCommand.Connection = this.Connection;
  8485. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ProductPhoto] ([ProductID], [PhotoPath]) VALUES (@ProductID, @" +
  8486. "PhotoPath);\r\nSELECT ID, ProductID, PhotoPath FROM ProductPhoto WHERE (ID = SCOPE" +
  8487. "_IDENTITY())";
  8488. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8489. 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, "", "", ""));
  8490. 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, "", "", ""));
  8491. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8492. this._adapter.UpdateCommand.Connection = this.Connection;
  8493. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ProductPhoto] SET [ProductID] = @ProductID, [PhotoPath] = @PhotoPath WHERE (([ID] = @Original_ID) AND ([ProductID] = @Original_ProductID) AND ([PhotoPath] = @Original_PhotoPath));
  8494. SELECT ID, ProductID, PhotoPath FROM ProductPhoto WHERE (ID = @ID)";
  8495. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8496. 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, "", "", ""));
  8497. 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, "", "", ""));
  8498. 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, "", "", ""));
  8499. 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, "", "", ""));
  8500. 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, "", "", ""));
  8501. 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, "", "", ""));
  8502. }
  8503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8505. private void InitConnection() {
  8506. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8507. this._connection.ConnectionString = global::BeautySaloon.Properties.Settings.Default.beauty_saloonConnectionString;
  8508. }
  8509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8511. private void InitCommandCollection() {
  8512. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8513. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8514. this._commandCollection[0].Connection = this.Connection;
  8515. this._commandCollection[0].CommandText = "SELECT ID, ProductID, PhotoPath FROM dbo.ProductPhoto";
  8516. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8517. }
  8518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8520. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8521. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8522. public virtual int Fill(beauty_saloonDataSet.ProductPhotoDataTable dataTable) {
  8523. this.Adapter.SelectCommand = this.CommandCollection[0];
  8524. if ((this.ClearBeforeFill == true)) {
  8525. dataTable.Clear();
  8526. }
  8527. int returnValue = this.Adapter.Fill(dataTable);
  8528. return returnValue;
  8529. }
  8530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8532. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8533. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8534. public virtual beauty_saloonDataSet.ProductPhotoDataTable GetData() {
  8535. this.Adapter.SelectCommand = this.CommandCollection[0];
  8536. beauty_saloonDataSet.ProductPhotoDataTable dataTable = new beauty_saloonDataSet.ProductPhotoDataTable();
  8537. this.Adapter.Fill(dataTable);
  8538. return dataTable;
  8539. }
  8540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8542. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8543. public virtual int Update(beauty_saloonDataSet.ProductPhotoDataTable dataTable) {
  8544. return this.Adapter.Update(dataTable);
  8545. }
  8546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8548. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8549. public virtual int Update(beauty_saloonDataSet dataSet) {
  8550. return this.Adapter.Update(dataSet, "ProductPhoto");
  8551. }
  8552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8554. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8555. public virtual int Update(global::System.Data.DataRow dataRow) {
  8556. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8557. dataRow});
  8558. }
  8559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8561. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8562. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8563. return this.Adapter.Update(dataRows);
  8564. }
  8565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8567. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8568. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8569. public virtual int Delete(int Original_ID, int Original_ProductID, string Original_PhotoPath) {
  8570. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  8571. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ProductID));
  8572. if ((Original_PhotoPath == null)) {
  8573. throw new global::System.ArgumentNullException("Original_PhotoPath");
  8574. }
  8575. else {
  8576. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_PhotoPath));
  8577. }
  8578. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8579. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8580. != global::System.Data.ConnectionState.Open)) {
  8581. this.Adapter.DeleteCommand.Connection.Open();
  8582. }
  8583. try {
  8584. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8585. return returnValue;
  8586. }
  8587. finally {
  8588. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8589. this.Adapter.DeleteCommand.Connection.Close();
  8590. }
  8591. }
  8592. }
  8593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8595. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8596. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8597. public virtual int Insert(int ProductID, string PhotoPath) {
  8598. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ProductID));
  8599. if ((PhotoPath == null)) {
  8600. throw new global::System.ArgumentNullException("PhotoPath");
  8601. }
  8602. else {
  8603. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(PhotoPath));
  8604. }
  8605. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8606. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8607. != global::System.Data.ConnectionState.Open)) {
  8608. this.Adapter.InsertCommand.Connection.Open();
  8609. }
  8610. try {
  8611. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8612. return returnValue;
  8613. }
  8614. finally {
  8615. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8616. this.Adapter.InsertCommand.Connection.Close();
  8617. }
  8618. }
  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.Update, true)]
  8624. public virtual int Update(int ProductID, string PhotoPath, int Original_ID, int Original_ProductID, string Original_PhotoPath, int ID) {
  8625. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ProductID));
  8626. if ((PhotoPath == null)) {
  8627. throw new global::System.ArgumentNullException("PhotoPath");
  8628. }
  8629. else {
  8630. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(PhotoPath));
  8631. }
  8632. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  8633. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ProductID));
  8634. if ((Original_PhotoPath == null)) {
  8635. throw new global::System.ArgumentNullException("Original_PhotoPath");
  8636. }
  8637. else {
  8638. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_PhotoPath));
  8639. }
  8640. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  8641. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8642. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8643. != global::System.Data.ConnectionState.Open)) {
  8644. this.Adapter.UpdateCommand.Connection.Open();
  8645. }
  8646. try {
  8647. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8648. return returnValue;
  8649. }
  8650. finally {
  8651. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8652. this.Adapter.UpdateCommand.Connection.Close();
  8653. }
  8654. }
  8655. }
  8656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8657. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8658. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8659. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8660. public virtual int Update(int ProductID, string PhotoPath, int Original_ID, int Original_ProductID, string Original_PhotoPath) {
  8661. return this.Update(ProductID, PhotoPath, Original_ID, Original_ProductID, Original_PhotoPath, Original_ID);
  8662. }
  8663. }
  8664. /// <summary>
  8665. ///Represents the connection and commands used to retrieve and save data.
  8666. ///</summary>
  8667. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8668. [global::System.ComponentModel.ToolboxItem(true)]
  8669. [global::System.ComponentModel.DataObjectAttribute(true)]
  8670. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8671. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8672. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8673. public partial class ProductSaleTableAdapter : global::System.ComponentModel.Component {
  8674. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8675. private global::System.Data.SqlClient.SqlConnection _connection;
  8676. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8677. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8678. private bool _clearBeforeFill;
  8679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8681. public ProductSaleTableAdapter() {
  8682. this.ClearBeforeFill = true;
  8683. }
  8684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8686. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8687. get {
  8688. if ((this._adapter == null)) {
  8689. this.InitAdapter();
  8690. }
  8691. return this._adapter;
  8692. }
  8693. }
  8694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8696. internal global::System.Data.SqlClient.SqlConnection Connection {
  8697. get {
  8698. if ((this._connection == null)) {
  8699. this.InitConnection();
  8700. }
  8701. return this._connection;
  8702. }
  8703. set {
  8704. this._connection = value;
  8705. if ((this.Adapter.InsertCommand != null)) {
  8706. this.Adapter.InsertCommand.Connection = value;
  8707. }
  8708. if ((this.Adapter.DeleteCommand != null)) {
  8709. this.Adapter.DeleteCommand.Connection = value;
  8710. }
  8711. if ((this.Adapter.UpdateCommand != null)) {
  8712. this.Adapter.UpdateCommand.Connection = value;
  8713. }
  8714. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8715. if ((this.CommandCollection[i] != null)) {
  8716. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8717. }
  8718. }
  8719. }
  8720. }
  8721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8723. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8724. get {
  8725. return this._transaction;
  8726. }
  8727. set {
  8728. this._transaction = value;
  8729. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8730. this.CommandCollection[i].Transaction = this._transaction;
  8731. }
  8732. if (((this.Adapter != null)
  8733. && (this.Adapter.DeleteCommand != null))) {
  8734. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8735. }
  8736. if (((this.Adapter != null)
  8737. && (this.Adapter.InsertCommand != null))) {
  8738. this.Adapter.InsertCommand.Transaction = this._transaction;
  8739. }
  8740. if (((this.Adapter != null)
  8741. && (this.Adapter.UpdateCommand != null))) {
  8742. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8743. }
  8744. }
  8745. }
  8746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8748. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8749. get {
  8750. if ((this._commandCollection == null)) {
  8751. this.InitCommandCollection();
  8752. }
  8753. return this._commandCollection;
  8754. }
  8755. }
  8756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8758. public bool ClearBeforeFill {
  8759. get {
  8760. return this._clearBeforeFill;
  8761. }
  8762. set {
  8763. this._clearBeforeFill = value;
  8764. }
  8765. }
  8766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8768. private void InitAdapter() {
  8769. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8770. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8771. tableMapping.SourceTable = "Table";
  8772. tableMapping.DataSetTable = "ProductSale";
  8773. tableMapping.ColumnMappings.Add("ID", "ID");
  8774. tableMapping.ColumnMappings.Add("SaleDate", "SaleDate");
  8775. tableMapping.ColumnMappings.Add("ProductID", "ProductID");
  8776. tableMapping.ColumnMappings.Add("Quantity", "Quantity");
  8777. tableMapping.ColumnMappings.Add("ClientServiceID", "ClientServiceID");
  8778. this._adapter.TableMappings.Add(tableMapping);
  8779. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8780. this._adapter.DeleteCommand.Connection = this.Connection;
  8781. 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)))";
  8782. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8783. 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, "", "", ""));
  8784. 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, "", "", ""));
  8785. 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, "", "", ""));
  8786. 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, "", "", ""));
  8787. 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, "", "", ""));
  8788. 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, "", "", ""));
  8789. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8790. this._adapter.InsertCommand.Connection = this.Connection;
  8791. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ProductSale] ([SaleDate], [ProductID], [Quantity], [ClientServ" +
  8792. "iceID]) VALUES (@SaleDate, @ProductID, @Quantity, @ClientServiceID);\r\nSELECT ID," +
  8793. " SaleDate, ProductID, Quantity, ClientServiceID FROM ProductSale WHERE (ID = SCO" +
  8794. "PE_IDENTITY())";
  8795. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8796. 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, "", "", ""));
  8797. 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, "", "", ""));
  8798. 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, "", "", ""));
  8799. 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, "", "", ""));
  8800. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8801. this._adapter.UpdateCommand.Connection = this.Connection;
  8802. 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)));
  8803. SELECT ID, SaleDate, ProductID, Quantity, ClientServiceID FROM ProductSale WHERE (ID = @ID)";
  8804. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8805. 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, "", "", ""));
  8806. 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, "", "", ""));
  8807. 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, "", "", ""));
  8808. 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, "", "", ""));
  8809. 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, "", "", ""));
  8810. 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, "", "", ""));
  8811. 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, "", "", ""));
  8812. 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, "", "", ""));
  8813. 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, "", "", ""));
  8814. 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, "", "", ""));
  8815. 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, "", "", ""));
  8816. }
  8817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8818. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8819. private void InitConnection() {
  8820. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8821. this._connection.ConnectionString = global::BeautySaloon.Properties.Settings.Default.beauty_saloonConnectionString;
  8822. }
  8823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8825. private void InitCommandCollection() {
  8826. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8827. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8828. this._commandCollection[0].Connection = this.Connection;
  8829. this._commandCollection[0].CommandText = "SELECT ID, SaleDate, ProductID, Quantity, ClientServiceID FROM dbo.ProductSale";
  8830. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8831. }
  8832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8834. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8835. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8836. public virtual int Fill(beauty_saloonDataSet.ProductSaleDataTable dataTable) {
  8837. this.Adapter.SelectCommand = this.CommandCollection[0];
  8838. if ((this.ClearBeforeFill == true)) {
  8839. dataTable.Clear();
  8840. }
  8841. int returnValue = this.Adapter.Fill(dataTable);
  8842. return returnValue;
  8843. }
  8844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8846. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8847. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8848. public virtual beauty_saloonDataSet.ProductSaleDataTable GetData() {
  8849. this.Adapter.SelectCommand = this.CommandCollection[0];
  8850. beauty_saloonDataSet.ProductSaleDataTable dataTable = new beauty_saloonDataSet.ProductSaleDataTable();
  8851. this.Adapter.Fill(dataTable);
  8852. return dataTable;
  8853. }
  8854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8856. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8857. public virtual int Update(beauty_saloonDataSet.ProductSaleDataTable dataTable) {
  8858. return this.Adapter.Update(dataTable);
  8859. }
  8860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8862. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8863. public virtual int Update(beauty_saloonDataSet dataSet) {
  8864. return this.Adapter.Update(dataSet, "ProductSale");
  8865. }
  8866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8868. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8869. public virtual int Update(global::System.Data.DataRow dataRow) {
  8870. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8871. dataRow});
  8872. }
  8873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8875. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8876. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8877. return this.Adapter.Update(dataRows);
  8878. }
  8879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8881. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8882. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8883. public virtual int Delete(int Original_ID, System.DateTime Original_SaleDate, int Original_ProductID, int Original_Quantity, global::System.Nullable<int> Original_ClientServiceID) {
  8884. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  8885. this.Adapter.DeleteCommand.Parameters[1].Value = ((System.DateTime)(Original_SaleDate));
  8886. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_ProductID));
  8887. this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_Quantity));
  8888. if ((Original_ClientServiceID.HasValue == true)) {
  8889. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  8890. this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_ClientServiceID.Value));
  8891. }
  8892. else {
  8893. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  8894. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  8895. }
  8896. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8897. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8898. != global::System.Data.ConnectionState.Open)) {
  8899. this.Adapter.DeleteCommand.Connection.Open();
  8900. }
  8901. try {
  8902. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8903. return returnValue;
  8904. }
  8905. finally {
  8906. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8907. this.Adapter.DeleteCommand.Connection.Close();
  8908. }
  8909. }
  8910. }
  8911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8913. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8914. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8915. public virtual int Insert(System.DateTime SaleDate, int ProductID, int Quantity, global::System.Nullable<int> ClientServiceID) {
  8916. this.Adapter.InsertCommand.Parameters[0].Value = ((System.DateTime)(SaleDate));
  8917. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ProductID));
  8918. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Quantity));
  8919. if ((ClientServiceID.HasValue == true)) {
  8920. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(ClientServiceID.Value));
  8921. }
  8922. else {
  8923. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  8924. }
  8925. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8926. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8927. != global::System.Data.ConnectionState.Open)) {
  8928. this.Adapter.InsertCommand.Connection.Open();
  8929. }
  8930. try {
  8931. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8932. return returnValue;
  8933. }
  8934. finally {
  8935. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8936. this.Adapter.InsertCommand.Connection.Close();
  8937. }
  8938. }
  8939. }
  8940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8942. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8943. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8944. 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) {
  8945. this.Adapter.UpdateCommand.Parameters[0].Value = ((System.DateTime)(SaleDate));
  8946. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(ProductID));
  8947. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Quantity));
  8948. if ((ClientServiceID.HasValue == true)) {
  8949. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(ClientServiceID.Value));
  8950. }
  8951. else {
  8952. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8953. }
  8954. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_ID));
  8955. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(Original_SaleDate));
  8956. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ProductID));
  8957. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_Quantity));
  8958. if ((Original_ClientServiceID.HasValue == true)) {
  8959. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  8960. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_ClientServiceID.Value));
  8961. }
  8962. else {
  8963. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  8964. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  8965. }
  8966. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(ID));
  8967. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8968. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8969. != global::System.Data.ConnectionState.Open)) {
  8970. this.Adapter.UpdateCommand.Connection.Open();
  8971. }
  8972. try {
  8973. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8974. return returnValue;
  8975. }
  8976. finally {
  8977. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8978. this.Adapter.UpdateCommand.Connection.Close();
  8979. }
  8980. }
  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.Update, true)]
  8986. 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) {
  8987. return this.Update(SaleDate, ProductID, Quantity, ClientServiceID, Original_ID, Original_SaleDate, Original_ProductID, Original_Quantity, Original_ClientServiceID, Original_ID);
  8988. }
  8989. }
  8990. /// <summary>
  8991. ///Represents the connection and commands used to retrieve and save data.
  8992. ///</summary>
  8993. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8994. [global::System.ComponentModel.ToolboxItem(true)]
  8995. [global::System.ComponentModel.DataObjectAttribute(true)]
  8996. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8997. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8998. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8999. public partial class ServiceTableAdapter : global::System.ComponentModel.Component {
  9000. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9001. private global::System.Data.SqlClient.SqlConnection _connection;
  9002. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9003. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9004. private bool _clearBeforeFill;
  9005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9007. public ServiceTableAdapter() {
  9008. this.ClearBeforeFill = true;
  9009. }
  9010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9011. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9012. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9013. get {
  9014. if ((this._adapter == null)) {
  9015. this.InitAdapter();
  9016. }
  9017. return this._adapter;
  9018. }
  9019. }
  9020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9022. internal global::System.Data.SqlClient.SqlConnection Connection {
  9023. get {
  9024. if ((this._connection == null)) {
  9025. this.InitConnection();
  9026. }
  9027. return this._connection;
  9028. }
  9029. set {
  9030. this._connection = value;
  9031. if ((this.Adapter.InsertCommand != null)) {
  9032. this.Adapter.InsertCommand.Connection = value;
  9033. }
  9034. if ((this.Adapter.DeleteCommand != null)) {
  9035. this.Adapter.DeleteCommand.Connection = value;
  9036. }
  9037. if ((this.Adapter.UpdateCommand != null)) {
  9038. this.Adapter.UpdateCommand.Connection = value;
  9039. }
  9040. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9041. if ((this.CommandCollection[i] != null)) {
  9042. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9043. }
  9044. }
  9045. }
  9046. }
  9047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9048. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9049. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9050. get {
  9051. return this._transaction;
  9052. }
  9053. set {
  9054. this._transaction = value;
  9055. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9056. this.CommandCollection[i].Transaction = this._transaction;
  9057. }
  9058. if (((this.Adapter != null)
  9059. && (this.Adapter.DeleteCommand != null))) {
  9060. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9061. }
  9062. if (((this.Adapter != null)
  9063. && (this.Adapter.InsertCommand != null))) {
  9064. this.Adapter.InsertCommand.Transaction = this._transaction;
  9065. }
  9066. if (((this.Adapter != null)
  9067. && (this.Adapter.UpdateCommand != null))) {
  9068. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9069. }
  9070. }
  9071. }
  9072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9074. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9075. get {
  9076. if ((this._commandCollection == null)) {
  9077. this.InitCommandCollection();
  9078. }
  9079. return this._commandCollection;
  9080. }
  9081. }
  9082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9084. public bool ClearBeforeFill {
  9085. get {
  9086. return this._clearBeforeFill;
  9087. }
  9088. set {
  9089. this._clearBeforeFill = value;
  9090. }
  9091. }
  9092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9094. private void InitAdapter() {
  9095. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9096. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9097. tableMapping.SourceTable = "Table";
  9098. tableMapping.DataSetTable = "Service";
  9099. tableMapping.ColumnMappings.Add("ID", "ID");
  9100. tableMapping.ColumnMappings.Add("Title", "Title");
  9101. tableMapping.ColumnMappings.Add("Cost", "Cost");
  9102. tableMapping.ColumnMappings.Add("DurationInSeconds", "DurationInSeconds");
  9103. tableMapping.ColumnMappings.Add("Description", "Description");
  9104. tableMapping.ColumnMappings.Add("Discount", "Discount");
  9105. tableMapping.ColumnMappings.Add("MainImagePath", "MainImagePath");
  9106. this._adapter.TableMappings.Add(tableMapping);
  9107. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9108. this._adapter.DeleteCommand.Connection = this.Connection;
  9109. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Service] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([Cost] = @Original_Cost) AND ([DurationInSeconds] = @Original_DurationInSeconds) AND ((@IsNull_Discount = 1 AND [Discount] IS NULL) OR ([Discount] = @Original_Discount)) AND ((@IsNull_MainImagePath = 1 AND [MainImagePath] IS NULL) OR ([MainImagePath] = @Original_MainImagePath)))";
  9110. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9111. 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, "", "", ""));
  9112. 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, "", "", ""));
  9113. 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, "", "", ""));
  9114. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DurationInSeconds", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DurationInSeconds", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9115. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Discount", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9116. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Discount", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9117. 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, "", "", ""));
  9118. 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, "", "", ""));
  9119. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9120. this._adapter.InsertCommand.Connection = this.Connection;
  9121. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Service] ([Title], [Cost], [DurationInSeconds], [Description], [Discount], [MainImagePath]) VALUES (@Title, @Cost, @DurationInSeconds, @Description, @Discount, @MainImagePath);
  9122. SELECT ID, Title, Cost, DurationInSeconds, Description, Discount, MainImagePath FROM Service WHERE (ID = SCOPE_IDENTITY())";
  9123. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9124. 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, "", "", ""));
  9125. 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, "", "", ""));
  9126. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DurationInSeconds", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DurationInSeconds", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9127. 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, "", "", ""));
  9128. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Discount", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9129. 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, "", "", ""));
  9130. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9131. this._adapter.UpdateCommand.Connection = this.Connection;
  9132. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Service] SET [Title] = @Title, [Cost] = @Cost, [DurationInSeconds] = @DurationInSeconds, [Description] = @Description, [Discount] = @Discount, [MainImagePath] = @MainImagePath WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([Cost] = @Original_Cost) AND ([DurationInSeconds] = @Original_DurationInSeconds) AND ((@IsNull_Discount = 1 AND [Discount] IS NULL) OR ([Discount] = @Original_Discount)) AND ((@IsNull_MainImagePath = 1 AND [MainImagePath] IS NULL) OR ([MainImagePath] = @Original_MainImagePath)));
  9133. SELECT ID, Title, Cost, DurationInSeconds, Description, Discount, MainImagePath FROM Service WHERE (ID = @ID)";
  9134. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9135. 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, "", "", ""));
  9136. 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, "", "", ""));
  9137. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DurationInSeconds", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DurationInSeconds", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9138. 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, "", "", ""));
  9139. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Discount", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9140. 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, "", "", ""));
  9141. 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, "", "", ""));
  9142. 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, "", "", ""));
  9143. 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, "", "", ""));
  9144. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DurationInSeconds", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DurationInSeconds", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9145. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Discount", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9146. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Discount", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9147. 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, "", "", ""));
  9148. 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, "", "", ""));
  9149. 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, "", "", ""));
  9150. }
  9151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9153. private void InitConnection() {
  9154. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9155. this._connection.ConnectionString = global::BeautySaloon.Properties.Settings.Default.beauty_saloonConnectionString;
  9156. }
  9157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9159. private void InitCommandCollection() {
  9160. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9161. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9162. this._commandCollection[0].Connection = this.Connection;
  9163. this._commandCollection[0].CommandText = "SELECT ID, Title, Cost, DurationInSeconds, Description, Discount, MainImagePath F" +
  9164. "ROM dbo.Service";
  9165. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9166. }
  9167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9169. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9170. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9171. public virtual int Fill(beauty_saloonDataSet.ServiceDataTable dataTable) {
  9172. this.Adapter.SelectCommand = this.CommandCollection[0];
  9173. if ((this.ClearBeforeFill == true)) {
  9174. dataTable.Clear();
  9175. }
  9176. int returnValue = this.Adapter.Fill(dataTable);
  9177. return returnValue;
  9178. }
  9179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9181. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9182. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9183. public virtual beauty_saloonDataSet.ServiceDataTable GetData() {
  9184. this.Adapter.SelectCommand = this.CommandCollection[0];
  9185. beauty_saloonDataSet.ServiceDataTable dataTable = new beauty_saloonDataSet.ServiceDataTable();
  9186. this.Adapter.Fill(dataTable);
  9187. return dataTable;
  9188. }
  9189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9191. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9192. public virtual int Update(beauty_saloonDataSet.ServiceDataTable dataTable) {
  9193. return this.Adapter.Update(dataTable);
  9194. }
  9195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9197. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9198. public virtual int Update(beauty_saloonDataSet dataSet) {
  9199. return this.Adapter.Update(dataSet, "Service");
  9200. }
  9201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9203. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9204. public virtual int Update(global::System.Data.DataRow dataRow) {
  9205. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9206. dataRow});
  9207. }
  9208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9210. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9211. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9212. return this.Adapter.Update(dataRows);
  9213. }
  9214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9216. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9217. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9218. public virtual int Delete(int Original_ID, string Original_Title, decimal Original_Cost, int Original_DurationInSeconds, global::System.Nullable<double> Original_Discount, string Original_MainImagePath) {
  9219. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9220. if ((Original_Title == null)) {
  9221. throw new global::System.ArgumentNullException("Original_Title");
  9222. }
  9223. else {
  9224. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  9225. }
  9226. this.Adapter.DeleteCommand.Parameters[2].Value = ((decimal)(Original_Cost));
  9227. this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_DurationInSeconds));
  9228. if ((Original_Discount.HasValue == true)) {
  9229. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  9230. this.Adapter.DeleteCommand.Parameters[5].Value = ((double)(Original_Discount.Value));
  9231. }
  9232. else {
  9233. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  9234. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  9235. }
  9236. if ((Original_MainImagePath == null)) {
  9237. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
  9238. this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
  9239. }
  9240. else {
  9241. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
  9242. this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_MainImagePath));
  9243. }
  9244. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9245. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9246. != global::System.Data.ConnectionState.Open)) {
  9247. this.Adapter.DeleteCommand.Connection.Open();
  9248. }
  9249. try {
  9250. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9251. return returnValue;
  9252. }
  9253. finally {
  9254. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9255. this.Adapter.DeleteCommand.Connection.Close();
  9256. }
  9257. }
  9258. }
  9259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9261. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9262. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9263. public virtual int Insert(string Title, decimal Cost, int DurationInSeconds, string Description, global::System.Nullable<double> Discount, string MainImagePath) {
  9264. if ((Title == null)) {
  9265. throw new global::System.ArgumentNullException("Title");
  9266. }
  9267. else {
  9268. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  9269. }
  9270. this.Adapter.InsertCommand.Parameters[1].Value = ((decimal)(Cost));
  9271. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(DurationInSeconds));
  9272. if ((Description == null)) {
  9273. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  9274. }
  9275. else {
  9276. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Description));
  9277. }
  9278. if ((Discount.HasValue == true)) {
  9279. this.Adapter.InsertCommand.Parameters[4].Value = ((double)(Discount.Value));
  9280. }
  9281. else {
  9282. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  9283. }
  9284. if ((MainImagePath == null)) {
  9285. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  9286. }
  9287. else {
  9288. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(MainImagePath));
  9289. }
  9290. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9291. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9292. != global::System.Data.ConnectionState.Open)) {
  9293. this.Adapter.InsertCommand.Connection.Open();
  9294. }
  9295. try {
  9296. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9297. return returnValue;
  9298. }
  9299. finally {
  9300. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9301. this.Adapter.InsertCommand.Connection.Close();
  9302. }
  9303. }
  9304. }
  9305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9306. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9307. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9308. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9309. public virtual int Update(string Title, decimal Cost, int DurationInSeconds, string Description, global::System.Nullable<double> Discount, string MainImagePath, int Original_ID, string Original_Title, decimal Original_Cost, int Original_DurationInSeconds, global::System.Nullable<double> Original_Discount, string Original_MainImagePath, int ID) {
  9310. if ((Title == null)) {
  9311. throw new global::System.ArgumentNullException("Title");
  9312. }
  9313. else {
  9314. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  9315. }
  9316. this.Adapter.UpdateCommand.Parameters[1].Value = ((decimal)(Cost));
  9317. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(DurationInSeconds));
  9318. if ((Description == null)) {
  9319. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  9320. }
  9321. else {
  9322. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Description));
  9323. }
  9324. if ((Discount.HasValue == true)) {
  9325. this.Adapter.UpdateCommand.Parameters[4].Value = ((double)(Discount.Value));
  9326. }
  9327. else {
  9328. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  9329. }
  9330. if ((MainImagePath == null)) {
  9331. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  9332. }
  9333. else {
  9334. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(MainImagePath));
  9335. }
  9336. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ID));
  9337. if ((Original_Title == null)) {
  9338. throw new global::System.ArgumentNullException("Original_Title");
  9339. }
  9340. else {
  9341. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Title));
  9342. }
  9343. this.Adapter.UpdateCommand.Parameters[8].Value = ((decimal)(Original_Cost));
  9344. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_DurationInSeconds));
  9345. if ((Original_Discount.HasValue == true)) {
  9346. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  9347. this.Adapter.UpdateCommand.Parameters[11].Value = ((double)(Original_Discount.Value));
  9348. }
  9349. else {
  9350. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  9351. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  9352. }
  9353. if ((Original_MainImagePath == null)) {
  9354. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  9355. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  9356. }
  9357. else {
  9358. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  9359. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_MainImagePath));
  9360. }
  9361. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(ID));
  9362. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9363. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9364. != global::System.Data.ConnectionState.Open)) {
  9365. this.Adapter.UpdateCommand.Connection.Open();
  9366. }
  9367. try {
  9368. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9369. return returnValue;
  9370. }
  9371. finally {
  9372. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9373. this.Adapter.UpdateCommand.Connection.Close();
  9374. }
  9375. }
  9376. }
  9377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9378. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9379. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9380. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9381. public virtual int Update(string Title, decimal Cost, int DurationInSeconds, string Description, global::System.Nullable<double> Discount, string MainImagePath, int Original_ID, string Original_Title, decimal Original_Cost, int Original_DurationInSeconds, global::System.Nullable<double> Original_Discount, string Original_MainImagePath) {
  9382. return this.Update(Title, Cost, DurationInSeconds, Description, Discount, MainImagePath, Original_ID, Original_Title, Original_Cost, Original_DurationInSeconds, Original_Discount, Original_MainImagePath, Original_ID);
  9383. }
  9384. }
  9385. /// <summary>
  9386. ///Represents the connection and commands used to retrieve and save data.
  9387. ///</summary>
  9388. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9389. [global::System.ComponentModel.ToolboxItem(true)]
  9390. [global::System.ComponentModel.DataObjectAttribute(true)]
  9391. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9392. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9393. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9394. public partial class ServicePhotoTableAdapter : global::System.ComponentModel.Component {
  9395. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9396. private global::System.Data.SqlClient.SqlConnection _connection;
  9397. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9398. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9399. private bool _clearBeforeFill;
  9400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9402. public ServicePhotoTableAdapter() {
  9403. this.ClearBeforeFill = true;
  9404. }
  9405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9407. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9408. get {
  9409. if ((this._adapter == null)) {
  9410. this.InitAdapter();
  9411. }
  9412. return this._adapter;
  9413. }
  9414. }
  9415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9416. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9417. internal global::System.Data.SqlClient.SqlConnection Connection {
  9418. get {
  9419. if ((this._connection == null)) {
  9420. this.InitConnection();
  9421. }
  9422. return this._connection;
  9423. }
  9424. set {
  9425. this._connection = value;
  9426. if ((this.Adapter.InsertCommand != null)) {
  9427. this.Adapter.InsertCommand.Connection = value;
  9428. }
  9429. if ((this.Adapter.DeleteCommand != null)) {
  9430. this.Adapter.DeleteCommand.Connection = value;
  9431. }
  9432. if ((this.Adapter.UpdateCommand != null)) {
  9433. this.Adapter.UpdateCommand.Connection = value;
  9434. }
  9435. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9436. if ((this.CommandCollection[i] != null)) {
  9437. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9438. }
  9439. }
  9440. }
  9441. }
  9442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9444. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9445. get {
  9446. return this._transaction;
  9447. }
  9448. set {
  9449. this._transaction = value;
  9450. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9451. this.CommandCollection[i].Transaction = this._transaction;
  9452. }
  9453. if (((this.Adapter != null)
  9454. && (this.Adapter.DeleteCommand != null))) {
  9455. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9456. }
  9457. if (((this.Adapter != null)
  9458. && (this.Adapter.InsertCommand != null))) {
  9459. this.Adapter.InsertCommand.Transaction = this._transaction;
  9460. }
  9461. if (((this.Adapter != null)
  9462. && (this.Adapter.UpdateCommand != null))) {
  9463. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9464. }
  9465. }
  9466. }
  9467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9469. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9470. get {
  9471. if ((this._commandCollection == null)) {
  9472. this.InitCommandCollection();
  9473. }
  9474. return this._commandCollection;
  9475. }
  9476. }
  9477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9479. public bool ClearBeforeFill {
  9480. get {
  9481. return this._clearBeforeFill;
  9482. }
  9483. set {
  9484. this._clearBeforeFill = value;
  9485. }
  9486. }
  9487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9489. private void InitAdapter() {
  9490. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9491. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9492. tableMapping.SourceTable = "Table";
  9493. tableMapping.DataSetTable = "ServicePhoto";
  9494. tableMapping.ColumnMappings.Add("ID", "ID");
  9495. tableMapping.ColumnMappings.Add("ServiceID", "ServiceID");
  9496. tableMapping.ColumnMappings.Add("PhotoPath", "PhotoPath");
  9497. this._adapter.TableMappings.Add(tableMapping);
  9498. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9499. this._adapter.DeleteCommand.Connection = this.Connection;
  9500. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ServicePhoto] WHERE (([ID] = @Original_ID) AND ([ServiceID] = " +
  9501. "@Original_ServiceID) AND ([PhotoPath] = @Original_PhotoPath))";
  9502. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9503. 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, "", "", ""));
  9504. 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, "", "", ""));
  9505. 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, "", "", ""));
  9506. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9507. this._adapter.InsertCommand.Connection = this.Connection;
  9508. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ServicePhoto] ([ServiceID], [PhotoPath]) VALUES (@ServiceID, @" +
  9509. "PhotoPath);\r\nSELECT ID, ServiceID, PhotoPath FROM ServicePhoto WHERE (ID = SCOPE" +
  9510. "_IDENTITY())";
  9511. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9512. 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, "", "", ""));
  9513. 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, "", "", ""));
  9514. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9515. this._adapter.UpdateCommand.Connection = this.Connection;
  9516. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ServicePhoto] SET [ServiceID] = @ServiceID, [PhotoPath] = @PhotoPath WHERE (([ID] = @Original_ID) AND ([ServiceID] = @Original_ServiceID) AND ([PhotoPath] = @Original_PhotoPath));
  9517. SELECT ID, ServiceID, PhotoPath FROM ServicePhoto WHERE (ID = @ID)";
  9518. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9519. 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, "", "", ""));
  9520. 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, "", "", ""));
  9521. 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, "", "", ""));
  9522. 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, "", "", ""));
  9523. 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, "", "", ""));
  9524. 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, "", "", ""));
  9525. }
  9526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9528. private void InitConnection() {
  9529. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9530. this._connection.ConnectionString = global::BeautySaloon.Properties.Settings.Default.beauty_saloonConnectionString;
  9531. }
  9532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9533. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9534. private void InitCommandCollection() {
  9535. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9536. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9537. this._commandCollection[0].Connection = this.Connection;
  9538. this._commandCollection[0].CommandText = "SELECT ID, ServiceID, PhotoPath FROM dbo.ServicePhoto";
  9539. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9540. }
  9541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9543. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9544. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9545. public virtual int Fill(beauty_saloonDataSet.ServicePhotoDataTable dataTable) {
  9546. this.Adapter.SelectCommand = this.CommandCollection[0];
  9547. if ((this.ClearBeforeFill == true)) {
  9548. dataTable.Clear();
  9549. }
  9550. int returnValue = this.Adapter.Fill(dataTable);
  9551. return returnValue;
  9552. }
  9553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9555. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9556. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9557. public virtual beauty_saloonDataSet.ServicePhotoDataTable GetData() {
  9558. this.Adapter.SelectCommand = this.CommandCollection[0];
  9559. beauty_saloonDataSet.ServicePhotoDataTable dataTable = new beauty_saloonDataSet.ServicePhotoDataTable();
  9560. this.Adapter.Fill(dataTable);
  9561. return dataTable;
  9562. }
  9563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9565. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9566. public virtual int Update(beauty_saloonDataSet.ServicePhotoDataTable dataTable) {
  9567. return this.Adapter.Update(dataTable);
  9568. }
  9569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9571. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9572. public virtual int Update(beauty_saloonDataSet dataSet) {
  9573. return this.Adapter.Update(dataSet, "ServicePhoto");
  9574. }
  9575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9577. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9578. public virtual int Update(global::System.Data.DataRow dataRow) {
  9579. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9580. dataRow});
  9581. }
  9582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9584. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9585. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9586. return this.Adapter.Update(dataRows);
  9587. }
  9588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9590. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9591. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9592. public virtual int Delete(int Original_ID, int Original_ServiceID, string Original_PhotoPath) {
  9593. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9594. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ServiceID));
  9595. if ((Original_PhotoPath == null)) {
  9596. throw new global::System.ArgumentNullException("Original_PhotoPath");
  9597. }
  9598. else {
  9599. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_PhotoPath));
  9600. }
  9601. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9602. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9603. != global::System.Data.ConnectionState.Open)) {
  9604. this.Adapter.DeleteCommand.Connection.Open();
  9605. }
  9606. try {
  9607. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9608. return returnValue;
  9609. }
  9610. finally {
  9611. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9612. this.Adapter.DeleteCommand.Connection.Close();
  9613. }
  9614. }
  9615. }
  9616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9618. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9619. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9620. public virtual int Insert(int ServiceID, string PhotoPath) {
  9621. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ServiceID));
  9622. if ((PhotoPath == null)) {
  9623. throw new global::System.ArgumentNullException("PhotoPath");
  9624. }
  9625. else {
  9626. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(PhotoPath));
  9627. }
  9628. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9629. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9630. != global::System.Data.ConnectionState.Open)) {
  9631. this.Adapter.InsertCommand.Connection.Open();
  9632. }
  9633. try {
  9634. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9635. return returnValue;
  9636. }
  9637. finally {
  9638. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9639. this.Adapter.InsertCommand.Connection.Close();
  9640. }
  9641. }
  9642. }
  9643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9645. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9646. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9647. public virtual int Update(int ServiceID, string PhotoPath, int Original_ID, int Original_ServiceID, string Original_PhotoPath, int ID) {
  9648. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ServiceID));
  9649. if ((PhotoPath == null)) {
  9650. throw new global::System.ArgumentNullException("PhotoPath");
  9651. }
  9652. else {
  9653. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(PhotoPath));
  9654. }
  9655. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  9656. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ServiceID));
  9657. if ((Original_PhotoPath == null)) {
  9658. throw new global::System.ArgumentNullException("Original_PhotoPath");
  9659. }
  9660. else {
  9661. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_PhotoPath));
  9662. }
  9663. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  9664. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9665. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9666. != global::System.Data.ConnectionState.Open)) {
  9667. this.Adapter.UpdateCommand.Connection.Open();
  9668. }
  9669. try {
  9670. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9671. return returnValue;
  9672. }
  9673. finally {
  9674. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9675. this.Adapter.UpdateCommand.Connection.Close();
  9676. }
  9677. }
  9678. }
  9679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9681. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9682. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9683. public virtual int Update(int ServiceID, string PhotoPath, int Original_ID, int Original_ServiceID, string Original_PhotoPath) {
  9684. return this.Update(ServiceID, PhotoPath, Original_ID, Original_ServiceID, Original_PhotoPath, Original_ID);
  9685. }
  9686. }
  9687. /// <summary>
  9688. ///Represents the connection and commands used to retrieve and save data.
  9689. ///</summary>
  9690. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9691. [global::System.ComponentModel.ToolboxItem(true)]
  9692. [global::System.ComponentModel.DataObjectAttribute(true)]
  9693. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9694. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9695. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9696. public partial class TagTableAdapter : global::System.ComponentModel.Component {
  9697. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9698. private global::System.Data.SqlClient.SqlConnection _connection;
  9699. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9700. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9701. private bool _clearBeforeFill;
  9702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9703. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9704. public TagTableAdapter() {
  9705. this.ClearBeforeFill = true;
  9706. }
  9707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9709. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9710. get {
  9711. if ((this._adapter == null)) {
  9712. this.InitAdapter();
  9713. }
  9714. return this._adapter;
  9715. }
  9716. }
  9717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9719. internal global::System.Data.SqlClient.SqlConnection Connection {
  9720. get {
  9721. if ((this._connection == null)) {
  9722. this.InitConnection();
  9723. }
  9724. return this._connection;
  9725. }
  9726. set {
  9727. this._connection = value;
  9728. if ((this.Adapter.InsertCommand != null)) {
  9729. this.Adapter.InsertCommand.Connection = value;
  9730. }
  9731. if ((this.Adapter.DeleteCommand != null)) {
  9732. this.Adapter.DeleteCommand.Connection = value;
  9733. }
  9734. if ((this.Adapter.UpdateCommand != null)) {
  9735. this.Adapter.UpdateCommand.Connection = value;
  9736. }
  9737. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9738. if ((this.CommandCollection[i] != null)) {
  9739. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9740. }
  9741. }
  9742. }
  9743. }
  9744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9746. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9747. get {
  9748. return this._transaction;
  9749. }
  9750. set {
  9751. this._transaction = value;
  9752. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9753. this.CommandCollection[i].Transaction = this._transaction;
  9754. }
  9755. if (((this.Adapter != null)
  9756. && (this.Adapter.DeleteCommand != null))) {
  9757. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9758. }
  9759. if (((this.Adapter != null)
  9760. && (this.Adapter.InsertCommand != null))) {
  9761. this.Adapter.InsertCommand.Transaction = this._transaction;
  9762. }
  9763. if (((this.Adapter != null)
  9764. && (this.Adapter.UpdateCommand != null))) {
  9765. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9766. }
  9767. }
  9768. }
  9769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9771. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9772. get {
  9773. if ((this._commandCollection == null)) {
  9774. this.InitCommandCollection();
  9775. }
  9776. return this._commandCollection;
  9777. }
  9778. }
  9779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9781. public bool ClearBeforeFill {
  9782. get {
  9783. return this._clearBeforeFill;
  9784. }
  9785. set {
  9786. this._clearBeforeFill = value;
  9787. }
  9788. }
  9789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9791. private void InitAdapter() {
  9792. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9793. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9794. tableMapping.SourceTable = "Table";
  9795. tableMapping.DataSetTable = "Tag";
  9796. tableMapping.ColumnMappings.Add("ID", "ID");
  9797. tableMapping.ColumnMappings.Add("Title", "Title");
  9798. tableMapping.ColumnMappings.Add("Color", "Color");
  9799. this._adapter.TableMappings.Add(tableMapping);
  9800. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9801. this._adapter.DeleteCommand.Connection = this.Connection;
  9802. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Tag] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Tit" +
  9803. "le) AND ([Color] = @Original_Color))";
  9804. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9805. 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, "", "", ""));
  9806. 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, "", "", ""));
  9807. 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, "", "", ""));
  9808. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9809. this._adapter.InsertCommand.Connection = this.Connection;
  9810. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Tag] ([Title], [Color]) VALUES (@Title, @Color);\r\nSELECT ID, T" +
  9811. "itle, Color FROM Tag WHERE (ID = SCOPE_IDENTITY())";
  9812. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9813. 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, "", "", ""));
  9814. 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, "", "", ""));
  9815. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9816. this._adapter.UpdateCommand.Connection = this.Connection;
  9817. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Tag] SET [Title] = @Title, [Color] = @Color WHERE (([ID] = @Origina" +
  9818. "l_ID) AND ([Title] = @Original_Title) AND ([Color] = @Original_Color));\r\nSELECT " +
  9819. "ID, Title, Color FROM Tag WHERE (ID = @ID)";
  9820. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9821. 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, "", "", ""));
  9822. 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, "", "", ""));
  9823. 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, "", "", ""));
  9824. 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, "", "", ""));
  9825. 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, "", "", ""));
  9826. 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, "", "", ""));
  9827. }
  9828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9830. private void InitConnection() {
  9831. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9832. this._connection.ConnectionString = global::BeautySaloon.Properties.Settings.Default.beauty_saloonConnectionString;
  9833. }
  9834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9836. private void InitCommandCollection() {
  9837. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9838. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9839. this._commandCollection[0].Connection = this.Connection;
  9840. this._commandCollection[0].CommandText = "SELECT ID, Title, Color FROM dbo.Tag";
  9841. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9842. }
  9843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9845. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9846. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9847. public virtual int Fill(beauty_saloonDataSet.TagDataTable dataTable) {
  9848. this.Adapter.SelectCommand = this.CommandCollection[0];
  9849. if ((this.ClearBeforeFill == true)) {
  9850. dataTable.Clear();
  9851. }
  9852. int returnValue = this.Adapter.Fill(dataTable);
  9853. return returnValue;
  9854. }
  9855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9857. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9858. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9859. public virtual beauty_saloonDataSet.TagDataTable GetData() {
  9860. this.Adapter.SelectCommand = this.CommandCollection[0];
  9861. beauty_saloonDataSet.TagDataTable dataTable = new beauty_saloonDataSet.TagDataTable();
  9862. this.Adapter.Fill(dataTable);
  9863. return dataTable;
  9864. }
  9865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9867. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9868. public virtual int Update(beauty_saloonDataSet.TagDataTable dataTable) {
  9869. return this.Adapter.Update(dataTable);
  9870. }
  9871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9872. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9873. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9874. public virtual int Update(beauty_saloonDataSet dataSet) {
  9875. return this.Adapter.Update(dataSet, "Tag");
  9876. }
  9877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9879. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9880. public virtual int Update(global::System.Data.DataRow dataRow) {
  9881. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9882. dataRow});
  9883. }
  9884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9886. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9887. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9888. return this.Adapter.Update(dataRows);
  9889. }
  9890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9892. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9893. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9894. public virtual int Delete(int Original_ID, string Original_Title, string Original_Color) {
  9895. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9896. if ((Original_Title == null)) {
  9897. throw new global::System.ArgumentNullException("Original_Title");
  9898. }
  9899. else {
  9900. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  9901. }
  9902. if ((Original_Color == null)) {
  9903. throw new global::System.ArgumentNullException("Original_Color");
  9904. }
  9905. else {
  9906. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Color));
  9907. }
  9908. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9909. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9910. != global::System.Data.ConnectionState.Open)) {
  9911. this.Adapter.DeleteCommand.Connection.Open();
  9912. }
  9913. try {
  9914. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9915. return returnValue;
  9916. }
  9917. finally {
  9918. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9919. this.Adapter.DeleteCommand.Connection.Close();
  9920. }
  9921. }
  9922. }
  9923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9925. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9926. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9927. public virtual int Insert(string Title, string Color) {
  9928. if ((Title == null)) {
  9929. throw new global::System.ArgumentNullException("Title");
  9930. }
  9931. else {
  9932. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  9933. }
  9934. if ((Color == null)) {
  9935. throw new global::System.ArgumentNullException("Color");
  9936. }
  9937. else {
  9938. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Color));
  9939. }
  9940. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9941. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9942. != global::System.Data.ConnectionState.Open)) {
  9943. this.Adapter.InsertCommand.Connection.Open();
  9944. }
  9945. try {
  9946. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9947. return returnValue;
  9948. }
  9949. finally {
  9950. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9951. this.Adapter.InsertCommand.Connection.Close();
  9952. }
  9953. }
  9954. }
  9955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9956. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9957. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9958. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9959. public virtual int Update(string Title, string Color, int Original_ID, string Original_Title, string Original_Color, int ID) {
  9960. if ((Title == null)) {
  9961. throw new global::System.ArgumentNullException("Title");
  9962. }
  9963. else {
  9964. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  9965. }
  9966. if ((Color == null)) {
  9967. throw new global::System.ArgumentNullException("Color");
  9968. }
  9969. else {
  9970. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Color));
  9971. }
  9972. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  9973. if ((Original_Title == null)) {
  9974. throw new global::System.ArgumentNullException("Original_Title");
  9975. }
  9976. else {
  9977. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Title));
  9978. }
  9979. if ((Original_Color == null)) {
  9980. throw new global::System.ArgumentNullException("Original_Color");
  9981. }
  9982. else {
  9983. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Color));
  9984. }
  9985. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  9986. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9987. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9988. != global::System.Data.ConnectionState.Open)) {
  9989. this.Adapter.UpdateCommand.Connection.Open();
  9990. }
  9991. try {
  9992. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9993. return returnValue;
  9994. }
  9995. finally {
  9996. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9997. this.Adapter.UpdateCommand.Connection.Close();
  9998. }
  9999. }
  10000. }
  10001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10003. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10004. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10005. public virtual int Update(string Title, string Color, int Original_ID, string Original_Title, string Original_Color) {
  10006. return this.Update(Title, Color, Original_ID, Original_Title, Original_Color, Original_ID);
  10007. }
  10008. }
  10009. /// <summary>
  10010. ///Represents the connection and commands used to retrieve and save data.
  10011. ///</summary>
  10012. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10013. [global::System.ComponentModel.ToolboxItem(true)]
  10014. [global::System.ComponentModel.DataObjectAttribute(true)]
  10015. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  10016. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10017. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10018. public partial class TagOfClientTableAdapter : global::System.ComponentModel.Component {
  10019. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  10020. private global::System.Data.SqlClient.SqlConnection _connection;
  10021. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10022. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10023. private bool _clearBeforeFill;
  10024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10026. public TagOfClientTableAdapter() {
  10027. this.ClearBeforeFill = true;
  10028. }
  10029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10031. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10032. get {
  10033. if ((this._adapter == null)) {
  10034. this.InitAdapter();
  10035. }
  10036. return this._adapter;
  10037. }
  10038. }
  10039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10041. internal global::System.Data.SqlClient.SqlConnection Connection {
  10042. get {
  10043. if ((this._connection == null)) {
  10044. this.InitConnection();
  10045. }
  10046. return this._connection;
  10047. }
  10048. set {
  10049. this._connection = value;
  10050. if ((this.Adapter.InsertCommand != null)) {
  10051. this.Adapter.InsertCommand.Connection = value;
  10052. }
  10053. if ((this.Adapter.DeleteCommand != null)) {
  10054. this.Adapter.DeleteCommand.Connection = value;
  10055. }
  10056. if ((this.Adapter.UpdateCommand != null)) {
  10057. this.Adapter.UpdateCommand.Connection = value;
  10058. }
  10059. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10060. if ((this.CommandCollection[i] != null)) {
  10061. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10062. }
  10063. }
  10064. }
  10065. }
  10066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10068. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10069. get {
  10070. return this._transaction;
  10071. }
  10072. set {
  10073. this._transaction = value;
  10074. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10075. this.CommandCollection[i].Transaction = this._transaction;
  10076. }
  10077. if (((this.Adapter != null)
  10078. && (this.Adapter.DeleteCommand != null))) {
  10079. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10080. }
  10081. if (((this.Adapter != null)
  10082. && (this.Adapter.InsertCommand != null))) {
  10083. this.Adapter.InsertCommand.Transaction = this._transaction;
  10084. }
  10085. if (((this.Adapter != null)
  10086. && (this.Adapter.UpdateCommand != null))) {
  10087. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10088. }
  10089. }
  10090. }
  10091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10093. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10094. get {
  10095. if ((this._commandCollection == null)) {
  10096. this.InitCommandCollection();
  10097. }
  10098. return this._commandCollection;
  10099. }
  10100. }
  10101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10103. public bool ClearBeforeFill {
  10104. get {
  10105. return this._clearBeforeFill;
  10106. }
  10107. set {
  10108. this._clearBeforeFill = value;
  10109. }
  10110. }
  10111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10113. private void InitAdapter() {
  10114. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10115. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10116. tableMapping.SourceTable = "Table";
  10117. tableMapping.DataSetTable = "TagOfClient";
  10118. tableMapping.ColumnMappings.Add("ClientID", "ClientID");
  10119. tableMapping.ColumnMappings.Add("TagID", "TagID");
  10120. this._adapter.TableMappings.Add(tableMapping);
  10121. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  10122. this._adapter.DeleteCommand.Connection = this.Connection;
  10123. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[TagOfClient] WHERE (([ClientID] = @Original_ClientID) AND ([Ta" +
  10124. "gID] = @Original_TagID))";
  10125. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  10126. 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, "", "", ""));
  10127. 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, "", "", ""));
  10128. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  10129. this._adapter.InsertCommand.Connection = this.Connection;
  10130. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[TagOfClient] ([ClientID], [TagID]) VALUES (@ClientID, @TagID);" +
  10131. "\r\nSELECT ClientID, TagID FROM TagOfClient WHERE (ClientID = @ClientID) AND (TagI" +
  10132. "D = @TagID)";
  10133. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  10134. 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, "", "", ""));
  10135. 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, "", "", ""));
  10136. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  10137. this._adapter.UpdateCommand.Connection = this.Connection;
  10138. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[TagOfClient] SET [ClientID] = @ClientID, [TagID] = @TagID WHERE (([" +
  10139. "ClientID] = @Original_ClientID) AND ([TagID] = @Original_TagID));\r\nSELECT Client" +
  10140. "ID, TagID FROM TagOfClient WHERE (ClientID = @ClientID) AND (TagID = @TagID)";
  10141. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  10142. 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, "", "", ""));
  10143. 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, "", "", ""));
  10144. 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, "", "", ""));
  10145. 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, "", "", ""));
  10146. }
  10147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10149. private void InitConnection() {
  10150. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10151. this._connection.ConnectionString = global::BeautySaloon.Properties.Settings.Default.beauty_saloonConnectionString;
  10152. }
  10153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10155. private void InitCommandCollection() {
  10156. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10157. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10158. this._commandCollection[0].Connection = this.Connection;
  10159. this._commandCollection[0].CommandText = "SELECT ClientID, TagID FROM dbo.TagOfClient";
  10160. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10161. }
  10162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10164. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10165. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10166. public virtual int Fill(beauty_saloonDataSet.TagOfClientDataTable dataTable) {
  10167. this.Adapter.SelectCommand = this.CommandCollection[0];
  10168. if ((this.ClearBeforeFill == true)) {
  10169. dataTable.Clear();
  10170. }
  10171. int returnValue = this.Adapter.Fill(dataTable);
  10172. return returnValue;
  10173. }
  10174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10176. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10177. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10178. public virtual beauty_saloonDataSet.TagOfClientDataTable GetData() {
  10179. this.Adapter.SelectCommand = this.CommandCollection[0];
  10180. beauty_saloonDataSet.TagOfClientDataTable dataTable = new beauty_saloonDataSet.TagOfClientDataTable();
  10181. this.Adapter.Fill(dataTable);
  10182. return dataTable;
  10183. }
  10184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10186. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10187. public virtual int Update(beauty_saloonDataSet.TagOfClientDataTable dataTable) {
  10188. return this.Adapter.Update(dataTable);
  10189. }
  10190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10191. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10192. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10193. public virtual int Update(beauty_saloonDataSet dataSet) {
  10194. return this.Adapter.Update(dataSet, "TagOfClient");
  10195. }
  10196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10198. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10199. public virtual int Update(global::System.Data.DataRow dataRow) {
  10200. return this.Adapter.Update(new global::System.Data.DataRow[] {
  10201. dataRow});
  10202. }
  10203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10205. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10206. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  10207. return this.Adapter.Update(dataRows);
  10208. }
  10209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10211. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10212. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  10213. public virtual int Delete(int Original_ClientID, int Original_TagID) {
  10214. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ClientID));
  10215. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_TagID));
  10216. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  10217. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10218. != global::System.Data.ConnectionState.Open)) {
  10219. this.Adapter.DeleteCommand.Connection.Open();
  10220. }
  10221. try {
  10222. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  10223. return returnValue;
  10224. }
  10225. finally {
  10226. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10227. this.Adapter.DeleteCommand.Connection.Close();
  10228. }
  10229. }
  10230. }
  10231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10233. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10234. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10235. public virtual int Insert(int ClientID, int TagID) {
  10236. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ClientID));
  10237. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(TagID));
  10238. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10239. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10240. != global::System.Data.ConnectionState.Open)) {
  10241. this.Adapter.InsertCommand.Connection.Open();
  10242. }
  10243. try {
  10244. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10245. return returnValue;
  10246. }
  10247. finally {
  10248. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10249. this.Adapter.InsertCommand.Connection.Close();
  10250. }
  10251. }
  10252. }
  10253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10255. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10256. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10257. public virtual int Update(int ClientID, int TagID, int Original_ClientID, int Original_TagID) {
  10258. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ClientID));
  10259. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(TagID));
  10260. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ClientID));
  10261. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_TagID));
  10262. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10263. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10264. != global::System.Data.ConnectionState.Open)) {
  10265. this.Adapter.UpdateCommand.Connection.Open();
  10266. }
  10267. try {
  10268. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10269. return returnValue;
  10270. }
  10271. finally {
  10272. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10273. this.Adapter.UpdateCommand.Connection.Close();
  10274. }
  10275. }
  10276. }
  10277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10279. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10280. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10281. public virtual int Update(int Original_ClientID, int Original_TagID) {
  10282. return this.Update(Original_ClientID, Original_TagID, Original_ClientID, Original_TagID);
  10283. }
  10284. }
  10285. /// <summary>
  10286. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  10287. ///</summary>
  10288. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10289. [global::System.ComponentModel.ToolboxItem(true)]
  10290. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  10291. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10292. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  10293. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  10294. private UpdateOrderOption _updateOrder;
  10295. private AttachedProductTableAdapter _attachedProductTableAdapter;
  10296. private ClientTableAdapter _clientTableAdapter;
  10297. private ClientServiceTableAdapter _clientServiceTableAdapter;
  10298. private DocumentByServiceTableAdapter _documentByServiceTableAdapter;
  10299. private GenderTableAdapter _genderTableAdapter;
  10300. private ManufacturerTableAdapter _manufacturerTableAdapter;
  10301. private ProductTableAdapter _productTableAdapter;
  10302. private ProductPhotoTableAdapter _productPhotoTableAdapter;
  10303. private ProductSaleTableAdapter _productSaleTableAdapter;
  10304. private ServiceTableAdapter _serviceTableAdapter;
  10305. private ServicePhotoTableAdapter _servicePhotoTableAdapter;
  10306. private TagTableAdapter _tagTableAdapter;
  10307. private TagOfClientTableAdapter _tagOfClientTableAdapter;
  10308. private bool _backupDataSetBeforeUpdate;
  10309. private global::System.Data.IDbConnection _connection;
  10310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10312. public UpdateOrderOption UpdateOrder {
  10313. get {
  10314. return this._updateOrder;
  10315. }
  10316. set {
  10317. this._updateOrder = value;
  10318. }
  10319. }
  10320. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10321. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10322. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10323. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10324. "a", "System.Drawing.Design.UITypeEditor")]
  10325. public AttachedProductTableAdapter AttachedProductTableAdapter {
  10326. get {
  10327. return this._attachedProductTableAdapter;
  10328. }
  10329. set {
  10330. this._attachedProductTableAdapter = value;
  10331. }
  10332. }
  10333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10335. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10336. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10337. "a", "System.Drawing.Design.UITypeEditor")]
  10338. public ClientTableAdapter ClientTableAdapter {
  10339. get {
  10340. return this._clientTableAdapter;
  10341. }
  10342. set {
  10343. this._clientTableAdapter = value;
  10344. }
  10345. }
  10346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10348. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10349. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10350. "a", "System.Drawing.Design.UITypeEditor")]
  10351. public ClientServiceTableAdapter ClientServiceTableAdapter {
  10352. get {
  10353. return this._clientServiceTableAdapter;
  10354. }
  10355. set {
  10356. this._clientServiceTableAdapter = value;
  10357. }
  10358. }
  10359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10361. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10362. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10363. "a", "System.Drawing.Design.UITypeEditor")]
  10364. public DocumentByServiceTableAdapter DocumentByServiceTableAdapter {
  10365. get {
  10366. return this._documentByServiceTableAdapter;
  10367. }
  10368. set {
  10369. this._documentByServiceTableAdapter = value;
  10370. }
  10371. }
  10372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10374. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10375. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10376. "a", "System.Drawing.Design.UITypeEditor")]
  10377. public GenderTableAdapter GenderTableAdapter {
  10378. get {
  10379. return this._genderTableAdapter;
  10380. }
  10381. set {
  10382. this._genderTableAdapter = value;
  10383. }
  10384. }
  10385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10387. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10388. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10389. "a", "System.Drawing.Design.UITypeEditor")]
  10390. public ManufacturerTableAdapter ManufacturerTableAdapter {
  10391. get {
  10392. return this._manufacturerTableAdapter;
  10393. }
  10394. set {
  10395. this._manufacturerTableAdapter = value;
  10396. }
  10397. }
  10398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10400. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10401. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10402. "a", "System.Drawing.Design.UITypeEditor")]
  10403. public ProductTableAdapter ProductTableAdapter {
  10404. get {
  10405. return this._productTableAdapter;
  10406. }
  10407. set {
  10408. this._productTableAdapter = value;
  10409. }
  10410. }
  10411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10413. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10414. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10415. "a", "System.Drawing.Design.UITypeEditor")]
  10416. public ProductPhotoTableAdapter ProductPhotoTableAdapter {
  10417. get {
  10418. return this._productPhotoTableAdapter;
  10419. }
  10420. set {
  10421. this._productPhotoTableAdapter = value;
  10422. }
  10423. }
  10424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10426. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10427. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10428. "a", "System.Drawing.Design.UITypeEditor")]
  10429. public ProductSaleTableAdapter ProductSaleTableAdapter {
  10430. get {
  10431. return this._productSaleTableAdapter;
  10432. }
  10433. set {
  10434. this._productSaleTableAdapter = value;
  10435. }
  10436. }
  10437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10439. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10440. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10441. "a", "System.Drawing.Design.UITypeEditor")]
  10442. public ServiceTableAdapter ServiceTableAdapter {
  10443. get {
  10444. return this._serviceTableAdapter;
  10445. }
  10446. set {
  10447. this._serviceTableAdapter = value;
  10448. }
  10449. }
  10450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10452. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10453. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10454. "a", "System.Drawing.Design.UITypeEditor")]
  10455. public ServicePhotoTableAdapter ServicePhotoTableAdapter {
  10456. get {
  10457. return this._servicePhotoTableAdapter;
  10458. }
  10459. set {
  10460. this._servicePhotoTableAdapter = value;
  10461. }
  10462. }
  10463. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10464. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10465. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10466. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10467. "a", "System.Drawing.Design.UITypeEditor")]
  10468. public TagTableAdapter TagTableAdapter {
  10469. get {
  10470. return this._tagTableAdapter;
  10471. }
  10472. set {
  10473. this._tagTableAdapter = value;
  10474. }
  10475. }
  10476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10477. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10478. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10479. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10480. "a", "System.Drawing.Design.UITypeEditor")]
  10481. public TagOfClientTableAdapter TagOfClientTableAdapter {
  10482. get {
  10483. return this._tagOfClientTableAdapter;
  10484. }
  10485. set {
  10486. this._tagOfClientTableAdapter = value;
  10487. }
  10488. }
  10489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10491. public bool BackupDataSetBeforeUpdate {
  10492. get {
  10493. return this._backupDataSetBeforeUpdate;
  10494. }
  10495. set {
  10496. this._backupDataSetBeforeUpdate = value;
  10497. }
  10498. }
  10499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10500. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10501. [global::System.ComponentModel.Browsable(false)]
  10502. public global::System.Data.IDbConnection Connection {
  10503. get {
  10504. if ((this._connection != null)) {
  10505. return this._connection;
  10506. }
  10507. if (((this._attachedProductTableAdapter != null)
  10508. && (this._attachedProductTableAdapter.Connection != null))) {
  10509. return this._attachedProductTableAdapter.Connection;
  10510. }
  10511. if (((this._clientTableAdapter != null)
  10512. && (this._clientTableAdapter.Connection != null))) {
  10513. return this._clientTableAdapter.Connection;
  10514. }
  10515. if (((this._clientServiceTableAdapter != null)
  10516. && (this._clientServiceTableAdapter.Connection != null))) {
  10517. return this._clientServiceTableAdapter.Connection;
  10518. }
  10519. if (((this._documentByServiceTableAdapter != null)
  10520. && (this._documentByServiceTableAdapter.Connection != null))) {
  10521. return this._documentByServiceTableAdapter.Connection;
  10522. }
  10523. if (((this._genderTableAdapter != null)
  10524. && (this._genderTableAdapter.Connection != null))) {
  10525. return this._genderTableAdapter.Connection;
  10526. }
  10527. if (((this._manufacturerTableAdapter != null)
  10528. && (this._manufacturerTableAdapter.Connection != null))) {
  10529. return this._manufacturerTableAdapter.Connection;
  10530. }
  10531. if (((this._productTableAdapter != null)
  10532. && (this._productTableAdapter.Connection != null))) {
  10533. return this._productTableAdapter.Connection;
  10534. }
  10535. if (((this._productPhotoTableAdapter != null)
  10536. && (this._productPhotoTableAdapter.Connection != null))) {
  10537. return this._productPhotoTableAdapter.Connection;
  10538. }
  10539. if (((this._productSaleTableAdapter != null)
  10540. && (this._productSaleTableAdapter.Connection != null))) {
  10541. return this._productSaleTableAdapter.Connection;
  10542. }
  10543. if (((this._serviceTableAdapter != null)
  10544. && (this._serviceTableAdapter.Connection != null))) {
  10545. return this._serviceTableAdapter.Connection;
  10546. }
  10547. if (((this._servicePhotoTableAdapter != null)
  10548. && (this._servicePhotoTableAdapter.Connection != null))) {
  10549. return this._servicePhotoTableAdapter.Connection;
  10550. }
  10551. if (((this._tagTableAdapter != null)
  10552. && (this._tagTableAdapter.Connection != null))) {
  10553. return this._tagTableAdapter.Connection;
  10554. }
  10555. if (((this._tagOfClientTableAdapter != null)
  10556. && (this._tagOfClientTableAdapter.Connection != null))) {
  10557. return this._tagOfClientTableAdapter.Connection;
  10558. }
  10559. return null;
  10560. }
  10561. set {
  10562. this._connection = value;
  10563. }
  10564. }
  10565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10567. [global::System.ComponentModel.Browsable(false)]
  10568. public int TableAdapterInstanceCount {
  10569. get {
  10570. int count = 0;
  10571. if ((this._attachedProductTableAdapter != null)) {
  10572. count = (count + 1);
  10573. }
  10574. if ((this._clientTableAdapter != null)) {
  10575. count = (count + 1);
  10576. }
  10577. if ((this._clientServiceTableAdapter != null)) {
  10578. count = (count + 1);
  10579. }
  10580. if ((this._documentByServiceTableAdapter != null)) {
  10581. count = (count + 1);
  10582. }
  10583. if ((this._genderTableAdapter != null)) {
  10584. count = (count + 1);
  10585. }
  10586. if ((this._manufacturerTableAdapter != null)) {
  10587. count = (count + 1);
  10588. }
  10589. if ((this._productTableAdapter != null)) {
  10590. count = (count + 1);
  10591. }
  10592. if ((this._productPhotoTableAdapter != null)) {
  10593. count = (count + 1);
  10594. }
  10595. if ((this._productSaleTableAdapter != null)) {
  10596. count = (count + 1);
  10597. }
  10598. if ((this._serviceTableAdapter != null)) {
  10599. count = (count + 1);
  10600. }
  10601. if ((this._servicePhotoTableAdapter != null)) {
  10602. count = (count + 1);
  10603. }
  10604. if ((this._tagTableAdapter != null)) {
  10605. count = (count + 1);
  10606. }
  10607. if ((this._tagOfClientTableAdapter != null)) {
  10608. count = (count + 1);
  10609. }
  10610. return count;
  10611. }
  10612. }
  10613. /// <summary>
  10614. ///Update rows in top-down order.
  10615. ///</summary>
  10616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10618. private int UpdateUpdatedRows(beauty_saloonDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  10619. int result = 0;
  10620. if ((this._genderTableAdapter != null)) {
  10621. global::System.Data.DataRow[] updatedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10622. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10623. if (((updatedRows != null)
  10624. && (0 < updatedRows.Length))) {
  10625. result = (result + this._genderTableAdapter.Update(updatedRows));
  10626. allChangedRows.AddRange(updatedRows);
  10627. }
  10628. }
  10629. if ((this._clientTableAdapter != null)) {
  10630. global::System.Data.DataRow[] updatedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10631. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10632. if (((updatedRows != null)
  10633. && (0 < updatedRows.Length))) {
  10634. result = (result + this._clientTableAdapter.Update(updatedRows));
  10635. allChangedRows.AddRange(updatedRows);
  10636. }
  10637. }
  10638. if ((this._manufacturerTableAdapter != null)) {
  10639. global::System.Data.DataRow[] updatedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10640. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10641. if (((updatedRows != null)
  10642. && (0 < updatedRows.Length))) {
  10643. result = (result + this._manufacturerTableAdapter.Update(updatedRows));
  10644. allChangedRows.AddRange(updatedRows);
  10645. }
  10646. }
  10647. if ((this._serviceTableAdapter != null)) {
  10648. global::System.Data.DataRow[] updatedRows = dataSet.Service.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10649. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10650. if (((updatedRows != null)
  10651. && (0 < updatedRows.Length))) {
  10652. result = (result + this._serviceTableAdapter.Update(updatedRows));
  10653. allChangedRows.AddRange(updatedRows);
  10654. }
  10655. }
  10656. if ((this._clientServiceTableAdapter != null)) {
  10657. global::System.Data.DataRow[] updatedRows = dataSet.ClientService.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10658. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10659. if (((updatedRows != null)
  10660. && (0 < updatedRows.Length))) {
  10661. result = (result + this._clientServiceTableAdapter.Update(updatedRows));
  10662. allChangedRows.AddRange(updatedRows);
  10663. }
  10664. }
  10665. if ((this._productTableAdapter != null)) {
  10666. global::System.Data.DataRow[] updatedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10667. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10668. if (((updatedRows != null)
  10669. && (0 < updatedRows.Length))) {
  10670. result = (result + this._productTableAdapter.Update(updatedRows));
  10671. allChangedRows.AddRange(updatedRows);
  10672. }
  10673. }
  10674. if ((this._tagTableAdapter != null)) {
  10675. global::System.Data.DataRow[] updatedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10676. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10677. if (((updatedRows != null)
  10678. && (0 < updatedRows.Length))) {
  10679. result = (result + this._tagTableAdapter.Update(updatedRows));
  10680. allChangedRows.AddRange(updatedRows);
  10681. }
  10682. }
  10683. if ((this._attachedProductTableAdapter != null)) {
  10684. global::System.Data.DataRow[] updatedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10685. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10686. if (((updatedRows != null)
  10687. && (0 < updatedRows.Length))) {
  10688. result = (result + this._attachedProductTableAdapter.Update(updatedRows));
  10689. allChangedRows.AddRange(updatedRows);
  10690. }
  10691. }
  10692. if ((this._documentByServiceTableAdapter != null)) {
  10693. global::System.Data.DataRow[] updatedRows = dataSet.DocumentByService.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10694. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10695. if (((updatedRows != null)
  10696. && (0 < updatedRows.Length))) {
  10697. result = (result + this._documentByServiceTableAdapter.Update(updatedRows));
  10698. allChangedRows.AddRange(updatedRows);
  10699. }
  10700. }
  10701. if ((this._productPhotoTableAdapter != null)) {
  10702. global::System.Data.DataRow[] updatedRows = dataSet.ProductPhoto.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10703. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10704. if (((updatedRows != null)
  10705. && (0 < updatedRows.Length))) {
  10706. result = (result + this._productPhotoTableAdapter.Update(updatedRows));
  10707. allChangedRows.AddRange(updatedRows);
  10708. }
  10709. }
  10710. if ((this._productSaleTableAdapter != null)) {
  10711. global::System.Data.DataRow[] updatedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10712. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10713. if (((updatedRows != null)
  10714. && (0 < updatedRows.Length))) {
  10715. result = (result + this._productSaleTableAdapter.Update(updatedRows));
  10716. allChangedRows.AddRange(updatedRows);
  10717. }
  10718. }
  10719. if ((this._servicePhotoTableAdapter != null)) {
  10720. global::System.Data.DataRow[] updatedRows = dataSet.ServicePhoto.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10721. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10722. if (((updatedRows != null)
  10723. && (0 < updatedRows.Length))) {
  10724. result = (result + this._servicePhotoTableAdapter.Update(updatedRows));
  10725. allChangedRows.AddRange(updatedRows);
  10726. }
  10727. }
  10728. if ((this._tagOfClientTableAdapter != null)) {
  10729. global::System.Data.DataRow[] updatedRows = dataSet.TagOfClient.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10730. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10731. if (((updatedRows != null)
  10732. && (0 < updatedRows.Length))) {
  10733. result = (result + this._tagOfClientTableAdapter.Update(updatedRows));
  10734. allChangedRows.AddRange(updatedRows);
  10735. }
  10736. }
  10737. return result;
  10738. }
  10739. /// <summary>
  10740. ///Insert rows in top-down order.
  10741. ///</summary>
  10742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10744. private int UpdateInsertedRows(beauty_saloonDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  10745. int result = 0;
  10746. if ((this._genderTableAdapter != null)) {
  10747. global::System.Data.DataRow[] addedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.Added);
  10748. if (((addedRows != null)
  10749. && (0 < addedRows.Length))) {
  10750. result = (result + this._genderTableAdapter.Update(addedRows));
  10751. allAddedRows.AddRange(addedRows);
  10752. }
  10753. }
  10754. if ((this._clientTableAdapter != null)) {
  10755. global::System.Data.DataRow[] addedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.Added);
  10756. if (((addedRows != null)
  10757. && (0 < addedRows.Length))) {
  10758. result = (result + this._clientTableAdapter.Update(addedRows));
  10759. allAddedRows.AddRange(addedRows);
  10760. }
  10761. }
  10762. if ((this._manufacturerTableAdapter != null)) {
  10763. global::System.Data.DataRow[] addedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.Added);
  10764. if (((addedRows != null)
  10765. && (0 < addedRows.Length))) {
  10766. result = (result + this._manufacturerTableAdapter.Update(addedRows));
  10767. allAddedRows.AddRange(addedRows);
  10768. }
  10769. }
  10770. if ((this._serviceTableAdapter != null)) {
  10771. global::System.Data.DataRow[] addedRows = dataSet.Service.Select(null, null, global::System.Data.DataViewRowState.Added);
  10772. if (((addedRows != null)
  10773. && (0 < addedRows.Length))) {
  10774. result = (result + this._serviceTableAdapter.Update(addedRows));
  10775. allAddedRows.AddRange(addedRows);
  10776. }
  10777. }
  10778. if ((this._clientServiceTableAdapter != null)) {
  10779. global::System.Data.DataRow[] addedRows = dataSet.ClientService.Select(null, null, global::System.Data.DataViewRowState.Added);
  10780. if (((addedRows != null)
  10781. && (0 < addedRows.Length))) {
  10782. result = (result + this._clientServiceTableAdapter.Update(addedRows));
  10783. allAddedRows.AddRange(addedRows);
  10784. }
  10785. }
  10786. if ((this._productTableAdapter != null)) {
  10787. global::System.Data.DataRow[] addedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Added);
  10788. if (((addedRows != null)
  10789. && (0 < addedRows.Length))) {
  10790. result = (result + this._productTableAdapter.Update(addedRows));
  10791. allAddedRows.AddRange(addedRows);
  10792. }
  10793. }
  10794. if ((this._tagTableAdapter != null)) {
  10795. global::System.Data.DataRow[] addedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.Added);
  10796. if (((addedRows != null)
  10797. && (0 < addedRows.Length))) {
  10798. result = (result + this._tagTableAdapter.Update(addedRows));
  10799. allAddedRows.AddRange(addedRows);
  10800. }
  10801. }
  10802. if ((this._attachedProductTableAdapter != null)) {
  10803. global::System.Data.DataRow[] addedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.Added);
  10804. if (((addedRows != null)
  10805. && (0 < addedRows.Length))) {
  10806. result = (result + this._attachedProductTableAdapter.Update(addedRows));
  10807. allAddedRows.AddRange(addedRows);
  10808. }
  10809. }
  10810. if ((this._documentByServiceTableAdapter != null)) {
  10811. global::System.Data.DataRow[] addedRows = dataSet.DocumentByService.Select(null, null, global::System.Data.DataViewRowState.Added);
  10812. if (((addedRows != null)
  10813. && (0 < addedRows.Length))) {
  10814. result = (result + this._documentByServiceTableAdapter.Update(addedRows));
  10815. allAddedRows.AddRange(addedRows);
  10816. }
  10817. }
  10818. if ((this._productPhotoTableAdapter != null)) {
  10819. global::System.Data.DataRow[] addedRows = dataSet.ProductPhoto.Select(null, null, global::System.Data.DataViewRowState.Added);
  10820. if (((addedRows != null)
  10821. && (0 < addedRows.Length))) {
  10822. result = (result + this._productPhotoTableAdapter.Update(addedRows));
  10823. allAddedRows.AddRange(addedRows);
  10824. }
  10825. }
  10826. if ((this._productSaleTableAdapter != null)) {
  10827. global::System.Data.DataRow[] addedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.Added);
  10828. if (((addedRows != null)
  10829. && (0 < addedRows.Length))) {
  10830. result = (result + this._productSaleTableAdapter.Update(addedRows));
  10831. allAddedRows.AddRange(addedRows);
  10832. }
  10833. }
  10834. if ((this._servicePhotoTableAdapter != null)) {
  10835. global::System.Data.DataRow[] addedRows = dataSet.ServicePhoto.Select(null, null, global::System.Data.DataViewRowState.Added);
  10836. if (((addedRows != null)
  10837. && (0 < addedRows.Length))) {
  10838. result = (result + this._servicePhotoTableAdapter.Update(addedRows));
  10839. allAddedRows.AddRange(addedRows);
  10840. }
  10841. }
  10842. if ((this._tagOfClientTableAdapter != null)) {
  10843. global::System.Data.DataRow[] addedRows = dataSet.TagOfClient.Select(null, null, global::System.Data.DataViewRowState.Added);
  10844. if (((addedRows != null)
  10845. && (0 < addedRows.Length))) {
  10846. result = (result + this._tagOfClientTableAdapter.Update(addedRows));
  10847. allAddedRows.AddRange(addedRows);
  10848. }
  10849. }
  10850. return result;
  10851. }
  10852. /// <summary>
  10853. ///Delete rows in bottom-up order.
  10854. ///</summary>
  10855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10857. private int UpdateDeletedRows(beauty_saloonDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  10858. int result = 0;
  10859. if ((this._tagOfClientTableAdapter != null)) {
  10860. global::System.Data.DataRow[] deletedRows = dataSet.TagOfClient.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10861. if (((deletedRows != null)
  10862. && (0 < deletedRows.Length))) {
  10863. result = (result + this._tagOfClientTableAdapter.Update(deletedRows));
  10864. allChangedRows.AddRange(deletedRows);
  10865. }
  10866. }
  10867. if ((this._servicePhotoTableAdapter != null)) {
  10868. global::System.Data.DataRow[] deletedRows = dataSet.ServicePhoto.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10869. if (((deletedRows != null)
  10870. && (0 < deletedRows.Length))) {
  10871. result = (result + this._servicePhotoTableAdapter.Update(deletedRows));
  10872. allChangedRows.AddRange(deletedRows);
  10873. }
  10874. }
  10875. if ((this._productSaleTableAdapter != null)) {
  10876. global::System.Data.DataRow[] deletedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10877. if (((deletedRows != null)
  10878. && (0 < deletedRows.Length))) {
  10879. result = (result + this._productSaleTableAdapter.Update(deletedRows));
  10880. allChangedRows.AddRange(deletedRows);
  10881. }
  10882. }
  10883. if ((this._productPhotoTableAdapter != null)) {
  10884. global::System.Data.DataRow[] deletedRows = dataSet.ProductPhoto.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10885. if (((deletedRows != null)
  10886. && (0 < deletedRows.Length))) {
  10887. result = (result + this._productPhotoTableAdapter.Update(deletedRows));
  10888. allChangedRows.AddRange(deletedRows);
  10889. }
  10890. }
  10891. if ((this._documentByServiceTableAdapter != null)) {
  10892. global::System.Data.DataRow[] deletedRows = dataSet.DocumentByService.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10893. if (((deletedRows != null)
  10894. && (0 < deletedRows.Length))) {
  10895. result = (result + this._documentByServiceTableAdapter.Update(deletedRows));
  10896. allChangedRows.AddRange(deletedRows);
  10897. }
  10898. }
  10899. if ((this._attachedProductTableAdapter != null)) {
  10900. global::System.Data.DataRow[] deletedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10901. if (((deletedRows != null)
  10902. && (0 < deletedRows.Length))) {
  10903. result = (result + this._attachedProductTableAdapter.Update(deletedRows));
  10904. allChangedRows.AddRange(deletedRows);
  10905. }
  10906. }
  10907. if ((this._tagTableAdapter != null)) {
  10908. global::System.Data.DataRow[] deletedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10909. if (((deletedRows != null)
  10910. && (0 < deletedRows.Length))) {
  10911. result = (result + this._tagTableAdapter.Update(deletedRows));
  10912. allChangedRows.AddRange(deletedRows);
  10913. }
  10914. }
  10915. if ((this._productTableAdapter != null)) {
  10916. global::System.Data.DataRow[] deletedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10917. if (((deletedRows != null)
  10918. && (0 < deletedRows.Length))) {
  10919. result = (result + this._productTableAdapter.Update(deletedRows));
  10920. allChangedRows.AddRange(deletedRows);
  10921. }
  10922. }
  10923. if ((this._clientServiceTableAdapter != null)) {
  10924. global::System.Data.DataRow[] deletedRows = dataSet.ClientService.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10925. if (((deletedRows != null)
  10926. && (0 < deletedRows.Length))) {
  10927. result = (result + this._clientServiceTableAdapter.Update(deletedRows));
  10928. allChangedRows.AddRange(deletedRows);
  10929. }
  10930. }
  10931. if ((this._serviceTableAdapter != null)) {
  10932. global::System.Data.DataRow[] deletedRows = dataSet.Service.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10933. if (((deletedRows != null)
  10934. && (0 < deletedRows.Length))) {
  10935. result = (result + this._serviceTableAdapter.Update(deletedRows));
  10936. allChangedRows.AddRange(deletedRows);
  10937. }
  10938. }
  10939. if ((this._manufacturerTableAdapter != null)) {
  10940. global::System.Data.DataRow[] deletedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10941. if (((deletedRows != null)
  10942. && (0 < deletedRows.Length))) {
  10943. result = (result + this._manufacturerTableAdapter.Update(deletedRows));
  10944. allChangedRows.AddRange(deletedRows);
  10945. }
  10946. }
  10947. if ((this._clientTableAdapter != null)) {
  10948. global::System.Data.DataRow[] deletedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10949. if (((deletedRows != null)
  10950. && (0 < deletedRows.Length))) {
  10951. result = (result + this._clientTableAdapter.Update(deletedRows));
  10952. allChangedRows.AddRange(deletedRows);
  10953. }
  10954. }
  10955. if ((this._genderTableAdapter != null)) {
  10956. global::System.Data.DataRow[] deletedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10957. if (((deletedRows != null)
  10958. && (0 < deletedRows.Length))) {
  10959. result = (result + this._genderTableAdapter.Update(deletedRows));
  10960. allChangedRows.AddRange(deletedRows);
  10961. }
  10962. }
  10963. return result;
  10964. }
  10965. /// <summary>
  10966. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  10967. ///</summary>
  10968. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10969. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10970. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  10971. if (((updatedRows == null)
  10972. || (updatedRows.Length < 1))) {
  10973. return updatedRows;
  10974. }
  10975. if (((allAddedRows == null)
  10976. || (allAddedRows.Count < 1))) {
  10977. return updatedRows;
  10978. }
  10979. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  10980. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  10981. global::System.Data.DataRow row = updatedRows[i];
  10982. if ((allAddedRows.Contains(row) == false)) {
  10983. realUpdatedRows.Add(row);
  10984. }
  10985. }
  10986. return realUpdatedRows.ToArray();
  10987. }
  10988. /// <summary>
  10989. ///Update all changes to the dataset.
  10990. ///</summary>
  10991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10993. public virtual int UpdateAll(beauty_saloonDataSet dataSet) {
  10994. if ((dataSet == null)) {
  10995. throw new global::System.ArgumentNullException("dataSet");
  10996. }
  10997. if ((dataSet.HasChanges() == false)) {
  10998. return 0;
  10999. }
  11000. if (((this._attachedProductTableAdapter != null)
  11001. && (this.MatchTableAdapterConnection(this._attachedProductTableAdapter.Connection) == false))) {
  11002. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11003. "r, должны использовать одинаковую строку подключения.");
  11004. }
  11005. if (((this._clientTableAdapter != null)
  11006. && (this.MatchTableAdapterConnection(this._clientTableAdapter.Connection) == false))) {
  11007. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11008. "r, должны использовать одинаковую строку подключения.");
  11009. }
  11010. if (((this._clientServiceTableAdapter != null)
  11011. && (this.MatchTableAdapterConnection(this._clientServiceTableAdapter.Connection) == false))) {
  11012. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11013. "r, должны использовать одинаковую строку подключения.");
  11014. }
  11015. if (((this._documentByServiceTableAdapter != null)
  11016. && (this.MatchTableAdapterConnection(this._documentByServiceTableAdapter.Connection) == false))) {
  11017. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11018. "r, должны использовать одинаковую строку подключения.");
  11019. }
  11020. if (((this._genderTableAdapter != null)
  11021. && (this.MatchTableAdapterConnection(this._genderTableAdapter.Connection) == false))) {
  11022. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11023. "r, должны использовать одинаковую строку подключения.");
  11024. }
  11025. if (((this._manufacturerTableAdapter != null)
  11026. && (this.MatchTableAdapterConnection(this._manufacturerTableAdapter.Connection) == false))) {
  11027. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11028. "r, должны использовать одинаковую строку подключения.");
  11029. }
  11030. if (((this._productTableAdapter != null)
  11031. && (this.MatchTableAdapterConnection(this._productTableAdapter.Connection) == false))) {
  11032. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11033. "r, должны использовать одинаковую строку подключения.");
  11034. }
  11035. if (((this._productPhotoTableAdapter != null)
  11036. && (this.MatchTableAdapterConnection(this._productPhotoTableAdapter.Connection) == false))) {
  11037. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11038. "r, должны использовать одинаковую строку подключения.");
  11039. }
  11040. if (((this._productSaleTableAdapter != null)
  11041. && (this.MatchTableAdapterConnection(this._productSaleTableAdapter.Connection) == false))) {
  11042. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11043. "r, должны использовать одинаковую строку подключения.");
  11044. }
  11045. if (((this._serviceTableAdapter != null)
  11046. && (this.MatchTableAdapterConnection(this._serviceTableAdapter.Connection) == false))) {
  11047. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11048. "r, должны использовать одинаковую строку подключения.");
  11049. }
  11050. if (((this._servicePhotoTableAdapter != null)
  11051. && (this.MatchTableAdapterConnection(this._servicePhotoTableAdapter.Connection) == false))) {
  11052. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11053. "r, должны использовать одинаковую строку подключения.");
  11054. }
  11055. if (((this._tagTableAdapter != null)
  11056. && (this.MatchTableAdapterConnection(this._tagTableAdapter.Connection) == false))) {
  11057. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11058. "r, должны использовать одинаковую строку подключения.");
  11059. }
  11060. if (((this._tagOfClientTableAdapter != null)
  11061. && (this.MatchTableAdapterConnection(this._tagOfClientTableAdapter.Connection) == false))) {
  11062. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11063. "r, должны использовать одинаковую строку подключения.");
  11064. }
  11065. global::System.Data.IDbConnection workConnection = this.Connection;
  11066. if ((workConnection == null)) {
  11067. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  11068. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  11069. }
  11070. bool workConnOpened = false;
  11071. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  11072. == global::System.Data.ConnectionState.Broken)) {
  11073. workConnection.Close();
  11074. }
  11075. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  11076. workConnection.Open();
  11077. workConnOpened = true;
  11078. }
  11079. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  11080. if ((workTransaction == null)) {
  11081. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  11082. "и или текущее состояние не позволяет начать транзакцию.");
  11083. }
  11084. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  11085. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  11086. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  11087. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  11088. int result = 0;
  11089. global::System.Data.DataSet backupDataSet = null;
  11090. if (this.BackupDataSetBeforeUpdate) {
  11091. backupDataSet = new global::System.Data.DataSet();
  11092. backupDataSet.Merge(dataSet);
  11093. }
  11094. try {
  11095. // ---- Prepare for update -----------
  11096. //
  11097. if ((this._attachedProductTableAdapter != null)) {
  11098. revertConnections.Add(this._attachedProductTableAdapter, this._attachedProductTableAdapter.Connection);
  11099. this._attachedProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11100. this._attachedProductTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11101. if (this._attachedProductTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11102. this._attachedProductTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11103. adaptersWithAcceptChangesDuringUpdate.Add(this._attachedProductTableAdapter.Adapter);
  11104. }
  11105. }
  11106. if ((this._clientTableAdapter != null)) {
  11107. revertConnections.Add(this._clientTableAdapter, this._clientTableAdapter.Connection);
  11108. this._clientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11109. this._clientTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11110. if (this._clientTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11111. this._clientTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11112. adaptersWithAcceptChangesDuringUpdate.Add(this._clientTableAdapter.Adapter);
  11113. }
  11114. }
  11115. if ((this._clientServiceTableAdapter != null)) {
  11116. revertConnections.Add(this._clientServiceTableAdapter, this._clientServiceTableAdapter.Connection);
  11117. this._clientServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11118. this._clientServiceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11119. if (this._clientServiceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11120. this._clientServiceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11121. adaptersWithAcceptChangesDuringUpdate.Add(this._clientServiceTableAdapter.Adapter);
  11122. }
  11123. }
  11124. if ((this._documentByServiceTableAdapter != null)) {
  11125. revertConnections.Add(this._documentByServiceTableAdapter, this._documentByServiceTableAdapter.Connection);
  11126. this._documentByServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11127. this._documentByServiceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11128. if (this._documentByServiceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11129. this._documentByServiceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11130. adaptersWithAcceptChangesDuringUpdate.Add(this._documentByServiceTableAdapter.Adapter);
  11131. }
  11132. }
  11133. if ((this._genderTableAdapter != null)) {
  11134. revertConnections.Add(this._genderTableAdapter, this._genderTableAdapter.Connection);
  11135. this._genderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11136. this._genderTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11137. if (this._genderTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11138. this._genderTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11139. adaptersWithAcceptChangesDuringUpdate.Add(this._genderTableAdapter.Adapter);
  11140. }
  11141. }
  11142. if ((this._manufacturerTableAdapter != null)) {
  11143. revertConnections.Add(this._manufacturerTableAdapter, this._manufacturerTableAdapter.Connection);
  11144. this._manufacturerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11145. this._manufacturerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11146. if (this._manufacturerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11147. this._manufacturerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11148. adaptersWithAcceptChangesDuringUpdate.Add(this._manufacturerTableAdapter.Adapter);
  11149. }
  11150. }
  11151. if ((this._productTableAdapter != null)) {
  11152. revertConnections.Add(this._productTableAdapter, this._productTableAdapter.Connection);
  11153. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11154. this._productTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11155. if (this._productTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11156. this._productTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11157. adaptersWithAcceptChangesDuringUpdate.Add(this._productTableAdapter.Adapter);
  11158. }
  11159. }
  11160. if ((this._productPhotoTableAdapter != null)) {
  11161. revertConnections.Add(this._productPhotoTableAdapter, this._productPhotoTableAdapter.Connection);
  11162. this._productPhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11163. this._productPhotoTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11164. if (this._productPhotoTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11165. this._productPhotoTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11166. adaptersWithAcceptChangesDuringUpdate.Add(this._productPhotoTableAdapter.Adapter);
  11167. }
  11168. }
  11169. if ((this._productSaleTableAdapter != null)) {
  11170. revertConnections.Add(this._productSaleTableAdapter, this._productSaleTableAdapter.Connection);
  11171. this._productSaleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11172. this._productSaleTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11173. if (this._productSaleTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11174. this._productSaleTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11175. adaptersWithAcceptChangesDuringUpdate.Add(this._productSaleTableAdapter.Adapter);
  11176. }
  11177. }
  11178. if ((this._serviceTableAdapter != null)) {
  11179. revertConnections.Add(this._serviceTableAdapter, this._serviceTableAdapter.Connection);
  11180. this._serviceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11181. this._serviceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11182. if (this._serviceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11183. this._serviceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11184. adaptersWithAcceptChangesDuringUpdate.Add(this._serviceTableAdapter.Adapter);
  11185. }
  11186. }
  11187. if ((this._servicePhotoTableAdapter != null)) {
  11188. revertConnections.Add(this._servicePhotoTableAdapter, this._servicePhotoTableAdapter.Connection);
  11189. this._servicePhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11190. this._servicePhotoTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11191. if (this._servicePhotoTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11192. this._servicePhotoTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11193. adaptersWithAcceptChangesDuringUpdate.Add(this._servicePhotoTableAdapter.Adapter);
  11194. }
  11195. }
  11196. if ((this._tagTableAdapter != null)) {
  11197. revertConnections.Add(this._tagTableAdapter, this._tagTableAdapter.Connection);
  11198. this._tagTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11199. this._tagTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11200. if (this._tagTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11201. this._tagTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11202. adaptersWithAcceptChangesDuringUpdate.Add(this._tagTableAdapter.Adapter);
  11203. }
  11204. }
  11205. if ((this._tagOfClientTableAdapter != null)) {
  11206. revertConnections.Add(this._tagOfClientTableAdapter, this._tagOfClientTableAdapter.Connection);
  11207. this._tagOfClientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11208. this._tagOfClientTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11209. if (this._tagOfClientTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11210. this._tagOfClientTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11211. adaptersWithAcceptChangesDuringUpdate.Add(this._tagOfClientTableAdapter.Adapter);
  11212. }
  11213. }
  11214. //
  11215. //---- Perform updates -----------
  11216. //
  11217. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  11218. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  11219. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  11220. }
  11221. else {
  11222. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  11223. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  11224. }
  11225. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  11226. //
  11227. //---- Commit updates -----------
  11228. //
  11229. workTransaction.Commit();
  11230. if ((0 < allAddedRows.Count)) {
  11231. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  11232. allAddedRows.CopyTo(rows);
  11233. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  11234. global::System.Data.DataRow row = rows[i];
  11235. row.AcceptChanges();
  11236. }
  11237. }
  11238. if ((0 < allChangedRows.Count)) {
  11239. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  11240. allChangedRows.CopyTo(rows);
  11241. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  11242. global::System.Data.DataRow row = rows[i];
  11243. row.AcceptChanges();
  11244. }
  11245. }
  11246. }
  11247. catch (global::System.Exception ex) {
  11248. workTransaction.Rollback();
  11249. // ---- Restore the dataset -----------
  11250. if (this.BackupDataSetBeforeUpdate) {
  11251. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  11252. dataSet.Clear();
  11253. dataSet.Merge(backupDataSet);
  11254. }
  11255. else {
  11256. if ((0 < allAddedRows.Count)) {
  11257. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  11258. allAddedRows.CopyTo(rows);
  11259. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  11260. global::System.Data.DataRow row = rows[i];
  11261. row.AcceptChanges();
  11262. row.SetAdded();
  11263. }
  11264. }
  11265. }
  11266. throw ex;
  11267. }
  11268. finally {
  11269. if (workConnOpened) {
  11270. workConnection.Close();
  11271. }
  11272. if ((this._attachedProductTableAdapter != null)) {
  11273. this._attachedProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._attachedProductTableAdapter]));
  11274. this._attachedProductTableAdapter.Transaction = null;
  11275. }
  11276. if ((this._clientTableAdapter != null)) {
  11277. this._clientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._clientTableAdapter]));
  11278. this._clientTableAdapter.Transaction = null;
  11279. }
  11280. if ((this._clientServiceTableAdapter != null)) {
  11281. this._clientServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._clientServiceTableAdapter]));
  11282. this._clientServiceTableAdapter.Transaction = null;
  11283. }
  11284. if ((this._documentByServiceTableAdapter != null)) {
  11285. this._documentByServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._documentByServiceTableAdapter]));
  11286. this._documentByServiceTableAdapter.Transaction = null;
  11287. }
  11288. if ((this._genderTableAdapter != null)) {
  11289. this._genderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._genderTableAdapter]));
  11290. this._genderTableAdapter.Transaction = null;
  11291. }
  11292. if ((this._manufacturerTableAdapter != null)) {
  11293. this._manufacturerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._manufacturerTableAdapter]));
  11294. this._manufacturerTableAdapter.Transaction = null;
  11295. }
  11296. if ((this._productTableAdapter != null)) {
  11297. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productTableAdapter]));
  11298. this._productTableAdapter.Transaction = null;
  11299. }
  11300. if ((this._productPhotoTableAdapter != null)) {
  11301. this._productPhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productPhotoTableAdapter]));
  11302. this._productPhotoTableAdapter.Transaction = null;
  11303. }
  11304. if ((this._productSaleTableAdapter != null)) {
  11305. this._productSaleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productSaleTableAdapter]));
  11306. this._productSaleTableAdapter.Transaction = null;
  11307. }
  11308. if ((this._serviceTableAdapter != null)) {
  11309. this._serviceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._serviceTableAdapter]));
  11310. this._serviceTableAdapter.Transaction = null;
  11311. }
  11312. if ((this._servicePhotoTableAdapter != null)) {
  11313. this._servicePhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._servicePhotoTableAdapter]));
  11314. this._servicePhotoTableAdapter.Transaction = null;
  11315. }
  11316. if ((this._tagTableAdapter != null)) {
  11317. this._tagTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tagTableAdapter]));
  11318. this._tagTableAdapter.Transaction = null;
  11319. }
  11320. if ((this._tagOfClientTableAdapter != null)) {
  11321. this._tagOfClientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tagOfClientTableAdapter]));
  11322. this._tagOfClientTableAdapter.Transaction = null;
  11323. }
  11324. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  11325. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  11326. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  11327. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  11328. global::System.Data.Common.DataAdapter adapter = adapters[i];
  11329. adapter.AcceptChangesDuringUpdate = true;
  11330. }
  11331. }
  11332. }
  11333. return result;
  11334. }
  11335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11337. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  11338. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  11339. }
  11340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11342. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  11343. if ((this._connection != null)) {
  11344. return true;
  11345. }
  11346. if (((this.Connection == null)
  11347. || (inputConnection == null))) {
  11348. return true;
  11349. }
  11350. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  11351. return true;
  11352. }
  11353. return false;
  11354. }
  11355. /// <summary>
  11356. ///Update Order Option
  11357. ///</summary>
  11358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11359. public enum UpdateOrderOption {
  11360. InsertUpdateDelete = 0,
  11361. UpdateInsertDelete = 1,
  11362. }
  11363. /// <summary>
  11364. ///Used to sort self-referenced table's rows
  11365. ///</summary>
  11366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11367. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  11368. private global::System.Data.DataRelation _relation;
  11369. private int _childFirst;
  11370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11372. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  11373. this._relation = relation;
  11374. if (childFirst) {
  11375. this._childFirst = -1;
  11376. }
  11377. else {
  11378. this._childFirst = 1;
  11379. }
  11380. }
  11381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11383. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  11384. global::System.Diagnostics.Debug.Assert((row != null));
  11385. global::System.Data.DataRow root = row;
  11386. distance = 0;
  11387. 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>();
  11388. traversedRows[row] = row;
  11389. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  11390. for (
  11391. ; ((parent != null)
  11392. && (traversedRows.ContainsKey(parent) == false));
  11393. ) {
  11394. distance = (distance + 1);
  11395. root = parent;
  11396. traversedRows[parent] = parent;
  11397. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  11398. }
  11399. if ((distance == 0)) {
  11400. traversedRows.Clear();
  11401. traversedRows[row] = row;
  11402. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  11403. for (
  11404. ; ((parent != null)
  11405. && (traversedRows.ContainsKey(parent) == false));
  11406. ) {
  11407. distance = (distance + 1);
  11408. root = parent;
  11409. traversedRows[parent] = parent;
  11410. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  11411. }
  11412. }
  11413. return root;
  11414. }
  11415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11416. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11417. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  11418. if (object.ReferenceEquals(row1, row2)) {
  11419. return 0;
  11420. }
  11421. if ((row1 == null)) {
  11422. return -1;
  11423. }
  11424. if ((row2 == null)) {
  11425. return 1;
  11426. }
  11427. int distance1 = 0;
  11428. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  11429. int distance2 = 0;
  11430. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  11431. if (object.ReferenceEquals(root1, root2)) {
  11432. return (this._childFirst * distance1.CompareTo(distance2));
  11433. }
  11434. else {
  11435. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  11436. && (root2.Table != null)));
  11437. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  11438. return -1;
  11439. }
  11440. else {
  11441. return 1;
  11442. }
  11443. }
  11444. }
  11445. }
  11446. }
  11447. }
  11448. #pragma warning restore 1591