_1Brovi11DataSet.Designer.cs 751 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace Brovi11 {
  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("_1Brovi11DataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class _1Brovi11DataSet : 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 _1Brovi11DataSet() {
  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 _1Brovi11DataSet(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. _1Brovi11DataSet cln = ((_1Brovi11DataSet)(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 = "_1Brovi11DataSet";
  472. this.Prefix = "";
  473. this.Namespace = "http://tempuri.org/_1Brovi11DataSet.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. _1Brovi11DataSet ds = new _1Brovi11DataSet();
  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. _1Brovi11DataSet ds = new _1Brovi11DataSet();
  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. _1Brovi11DataSet ds = new _1Brovi11DataSet();
  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. _1Brovi11DataSet ds = new _1Brovi11DataSet();
  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. _1Brovi11DataSet ds = new _1Brovi11DataSet();
  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. _1Brovi11DataSet ds = new _1Brovi11DataSet();
  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. _1Brovi11DataSet ds = new _1Brovi11DataSet();
  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, byte[] 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(byte[]), 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.columnIsActive.AllowDBNull = false;
  2564. }
  2565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2567. public ProductRow NewProductRow() {
  2568. return ((ProductRow)(this.NewRow()));
  2569. }
  2570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2572. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2573. return new ProductRow(builder);
  2574. }
  2575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2577. protected override global::System.Type GetRowType() {
  2578. return typeof(ProductRow);
  2579. }
  2580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2582. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2583. base.OnRowChanged(e);
  2584. if ((this.ProductRowChanged != null)) {
  2585. this.ProductRowChanged(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2586. }
  2587. }
  2588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2590. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2591. base.OnRowChanging(e);
  2592. if ((this.ProductRowChanging != null)) {
  2593. this.ProductRowChanging(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2594. }
  2595. }
  2596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2598. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2599. base.OnRowDeleted(e);
  2600. if ((this.ProductRowDeleted != null)) {
  2601. this.ProductRowDeleted(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2602. }
  2603. }
  2604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2606. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2607. base.OnRowDeleting(e);
  2608. if ((this.ProductRowDeleting != null)) {
  2609. this.ProductRowDeleting(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2610. }
  2611. }
  2612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2614. public void RemoveProductRow(ProductRow row) {
  2615. this.Rows.Remove(row);
  2616. }
  2617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2619. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2620. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2621. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2622. _1Brovi11DataSet ds = new _1Brovi11DataSet();
  2623. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2624. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2625. any1.MinOccurs = new decimal(0);
  2626. any1.MaxOccurs = decimal.MaxValue;
  2627. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2628. sequence.Items.Add(any1);
  2629. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2630. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2631. any2.MinOccurs = new decimal(1);
  2632. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2633. sequence.Items.Add(any2);
  2634. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2635. attribute1.Name = "namespace";
  2636. attribute1.FixedValue = ds.Namespace;
  2637. type.Attributes.Add(attribute1);
  2638. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2639. attribute2.Name = "tableTypeName";
  2640. attribute2.FixedValue = "ProductDataTable";
  2641. type.Attributes.Add(attribute2);
  2642. type.Particle = sequence;
  2643. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2644. if (xs.Contains(dsSchema.TargetNamespace)) {
  2645. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2646. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2647. try {
  2648. global::System.Xml.Schema.XmlSchema schema = null;
  2649. dsSchema.Write(s1);
  2650. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2651. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2652. s2.SetLength(0);
  2653. schema.Write(s2);
  2654. if ((s1.Length == s2.Length)) {
  2655. s1.Position = 0;
  2656. s2.Position = 0;
  2657. for (; ((s1.Position != s1.Length)
  2658. && (s1.ReadByte() == s2.ReadByte())); ) {
  2659. ;
  2660. }
  2661. if ((s1.Position == s1.Length)) {
  2662. return type;
  2663. }
  2664. }
  2665. }
  2666. }
  2667. finally {
  2668. if ((s1 != null)) {
  2669. s1.Close();
  2670. }
  2671. if ((s2 != null)) {
  2672. s2.Close();
  2673. }
  2674. }
  2675. }
  2676. xs.Add(dsSchema);
  2677. return type;
  2678. }
  2679. }
  2680. /// <summary>
  2681. ///Represents the strongly named DataTable class.
  2682. ///</summary>
  2683. [global::System.Serializable()]
  2684. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2685. public partial class ProductPhotoDataTable : global::System.Data.TypedTableBase<ProductPhotoRow> {
  2686. private global::System.Data.DataColumn columnID;
  2687. private global::System.Data.DataColumn columnProductID;
  2688. private global::System.Data.DataColumn columnPhotoPath;
  2689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2690. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2691. public ProductPhotoDataTable() {
  2692. this.TableName = "ProductPhoto";
  2693. this.BeginInit();
  2694. this.InitClass();
  2695. this.EndInit();
  2696. }
  2697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2699. internal ProductPhotoDataTable(global::System.Data.DataTable table) {
  2700. this.TableName = table.TableName;
  2701. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2702. this.CaseSensitive = table.CaseSensitive;
  2703. }
  2704. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2705. this.Locale = table.Locale;
  2706. }
  2707. if ((table.Namespace != table.DataSet.Namespace)) {
  2708. this.Namespace = table.Namespace;
  2709. }
  2710. this.Prefix = table.Prefix;
  2711. this.MinimumCapacity = table.MinimumCapacity;
  2712. }
  2713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2715. protected ProductPhotoDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2716. base(info, context) {
  2717. this.InitVars();
  2718. }
  2719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2721. public global::System.Data.DataColumn IDColumn {
  2722. get {
  2723. return this.columnID;
  2724. }
  2725. }
  2726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2728. public global::System.Data.DataColumn ProductIDColumn {
  2729. get {
  2730. return this.columnProductID;
  2731. }
  2732. }
  2733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2735. public global::System.Data.DataColumn PhotoPathColumn {
  2736. get {
  2737. return this.columnPhotoPath;
  2738. }
  2739. }
  2740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2742. [global::System.ComponentModel.Browsable(false)]
  2743. public int Count {
  2744. get {
  2745. return this.Rows.Count;
  2746. }
  2747. }
  2748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2750. public ProductPhotoRow this[int index] {
  2751. get {
  2752. return ((ProductPhotoRow)(this.Rows[index]));
  2753. }
  2754. }
  2755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2756. public event ProductPhotoRowChangeEventHandler ProductPhotoRowChanging;
  2757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2758. public event ProductPhotoRowChangeEventHandler ProductPhotoRowChanged;
  2759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2760. public event ProductPhotoRowChangeEventHandler ProductPhotoRowDeleting;
  2761. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2762. public event ProductPhotoRowChangeEventHandler ProductPhotoRowDeleted;
  2763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2765. public void AddProductPhotoRow(ProductPhotoRow row) {
  2766. this.Rows.Add(row);
  2767. }
  2768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2770. public ProductPhotoRow AddProductPhotoRow(ProductRow parentProductRowByFK_ProductPhoto_Product, string PhotoPath) {
  2771. ProductPhotoRow rowProductPhotoRow = ((ProductPhotoRow)(this.NewRow()));
  2772. object[] columnValuesArray = new object[] {
  2773. null,
  2774. null,
  2775. PhotoPath};
  2776. if ((parentProductRowByFK_ProductPhoto_Product != null)) {
  2777. columnValuesArray[1] = parentProductRowByFK_ProductPhoto_Product[0];
  2778. }
  2779. rowProductPhotoRow.ItemArray = columnValuesArray;
  2780. this.Rows.Add(rowProductPhotoRow);
  2781. return rowProductPhotoRow;
  2782. }
  2783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2785. public ProductPhotoRow FindByID(int ID) {
  2786. return ((ProductPhotoRow)(this.Rows.Find(new object[] {
  2787. ID})));
  2788. }
  2789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2791. public override global::System.Data.DataTable Clone() {
  2792. ProductPhotoDataTable cln = ((ProductPhotoDataTable)(base.Clone()));
  2793. cln.InitVars();
  2794. return cln;
  2795. }
  2796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2798. protected override global::System.Data.DataTable CreateInstance() {
  2799. return new ProductPhotoDataTable();
  2800. }
  2801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2803. internal void InitVars() {
  2804. this.columnID = base.Columns["ID"];
  2805. this.columnProductID = base.Columns["ProductID"];
  2806. this.columnPhotoPath = base.Columns["PhotoPath"];
  2807. }
  2808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2810. private void InitClass() {
  2811. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2812. base.Columns.Add(this.columnID);
  2813. this.columnProductID = new global::System.Data.DataColumn("ProductID", typeof(int), null, global::System.Data.MappingType.Element);
  2814. base.Columns.Add(this.columnProductID);
  2815. this.columnPhotoPath = new global::System.Data.DataColumn("PhotoPath", typeof(string), null, global::System.Data.MappingType.Element);
  2816. base.Columns.Add(this.columnPhotoPath);
  2817. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2818. this.columnID}, true));
  2819. this.columnID.AutoIncrement = true;
  2820. this.columnID.AutoIncrementSeed = -1;
  2821. this.columnID.AutoIncrementStep = -1;
  2822. this.columnID.AllowDBNull = false;
  2823. this.columnID.ReadOnly = true;
  2824. this.columnID.Unique = true;
  2825. this.columnProductID.AllowDBNull = false;
  2826. this.columnPhotoPath.AllowDBNull = false;
  2827. this.columnPhotoPath.MaxLength = 1000;
  2828. }
  2829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2831. public ProductPhotoRow NewProductPhotoRow() {
  2832. return ((ProductPhotoRow)(this.NewRow()));
  2833. }
  2834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2836. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2837. return new ProductPhotoRow(builder);
  2838. }
  2839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2841. protected override global::System.Type GetRowType() {
  2842. return typeof(ProductPhotoRow);
  2843. }
  2844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2846. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2847. base.OnRowChanged(e);
  2848. if ((this.ProductPhotoRowChanged != null)) {
  2849. this.ProductPhotoRowChanged(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  2850. }
  2851. }
  2852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2854. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2855. base.OnRowChanging(e);
  2856. if ((this.ProductPhotoRowChanging != null)) {
  2857. this.ProductPhotoRowChanging(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  2858. }
  2859. }
  2860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2862. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2863. base.OnRowDeleted(e);
  2864. if ((this.ProductPhotoRowDeleted != null)) {
  2865. this.ProductPhotoRowDeleted(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  2866. }
  2867. }
  2868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2870. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2871. base.OnRowDeleting(e);
  2872. if ((this.ProductPhotoRowDeleting != null)) {
  2873. this.ProductPhotoRowDeleting(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  2874. }
  2875. }
  2876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2878. public void RemoveProductPhotoRow(ProductPhotoRow row) {
  2879. this.Rows.Remove(row);
  2880. }
  2881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2883. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2884. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2885. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2886. _1Brovi11DataSet ds = new _1Brovi11DataSet();
  2887. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2888. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2889. any1.MinOccurs = new decimal(0);
  2890. any1.MaxOccurs = decimal.MaxValue;
  2891. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2892. sequence.Items.Add(any1);
  2893. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2894. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2895. any2.MinOccurs = new decimal(1);
  2896. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2897. sequence.Items.Add(any2);
  2898. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2899. attribute1.Name = "namespace";
  2900. attribute1.FixedValue = ds.Namespace;
  2901. type.Attributes.Add(attribute1);
  2902. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2903. attribute2.Name = "tableTypeName";
  2904. attribute2.FixedValue = "ProductPhotoDataTable";
  2905. type.Attributes.Add(attribute2);
  2906. type.Particle = sequence;
  2907. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2908. if (xs.Contains(dsSchema.TargetNamespace)) {
  2909. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2910. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2911. try {
  2912. global::System.Xml.Schema.XmlSchema schema = null;
  2913. dsSchema.Write(s1);
  2914. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2915. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2916. s2.SetLength(0);
  2917. schema.Write(s2);
  2918. if ((s1.Length == s2.Length)) {
  2919. s1.Position = 0;
  2920. s2.Position = 0;
  2921. for (; ((s1.Position != s1.Length)
  2922. && (s1.ReadByte() == s2.ReadByte())); ) {
  2923. ;
  2924. }
  2925. if ((s1.Position == s1.Length)) {
  2926. return type;
  2927. }
  2928. }
  2929. }
  2930. }
  2931. finally {
  2932. if ((s1 != null)) {
  2933. s1.Close();
  2934. }
  2935. if ((s2 != null)) {
  2936. s2.Close();
  2937. }
  2938. }
  2939. }
  2940. xs.Add(dsSchema);
  2941. return type;
  2942. }
  2943. }
  2944. /// <summary>
  2945. ///Represents the strongly named DataTable class.
  2946. ///</summary>
  2947. [global::System.Serializable()]
  2948. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2949. public partial class ProductSaleDataTable : global::System.Data.TypedTableBase<ProductSaleRow> {
  2950. private global::System.Data.DataColumn columnID;
  2951. private global::System.Data.DataColumn columnSaleDate;
  2952. private global::System.Data.DataColumn columnProductID;
  2953. private global::System.Data.DataColumn columnQuantity;
  2954. private global::System.Data.DataColumn columnClientServiceID;
  2955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2956. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2957. public ProductSaleDataTable() {
  2958. this.TableName = "ProductSale";
  2959. this.BeginInit();
  2960. this.InitClass();
  2961. this.EndInit();
  2962. }
  2963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2965. internal ProductSaleDataTable(global::System.Data.DataTable table) {
  2966. this.TableName = table.TableName;
  2967. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2968. this.CaseSensitive = table.CaseSensitive;
  2969. }
  2970. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2971. this.Locale = table.Locale;
  2972. }
  2973. if ((table.Namespace != table.DataSet.Namespace)) {
  2974. this.Namespace = table.Namespace;
  2975. }
  2976. this.Prefix = table.Prefix;
  2977. this.MinimumCapacity = table.MinimumCapacity;
  2978. }
  2979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2981. protected ProductSaleDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2982. base(info, context) {
  2983. this.InitVars();
  2984. }
  2985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2987. public global::System.Data.DataColumn IDColumn {
  2988. get {
  2989. return this.columnID;
  2990. }
  2991. }
  2992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2994. public global::System.Data.DataColumn SaleDateColumn {
  2995. get {
  2996. return this.columnSaleDate;
  2997. }
  2998. }
  2999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3001. public global::System.Data.DataColumn ProductIDColumn {
  3002. get {
  3003. return this.columnProductID;
  3004. }
  3005. }
  3006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3008. public global::System.Data.DataColumn QuantityColumn {
  3009. get {
  3010. return this.columnQuantity;
  3011. }
  3012. }
  3013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3015. public global::System.Data.DataColumn ClientServiceIDColumn {
  3016. get {
  3017. return this.columnClientServiceID;
  3018. }
  3019. }
  3020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3022. [global::System.ComponentModel.Browsable(false)]
  3023. public int Count {
  3024. get {
  3025. return this.Rows.Count;
  3026. }
  3027. }
  3028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3030. public ProductSaleRow this[int index] {
  3031. get {
  3032. return ((ProductSaleRow)(this.Rows[index]));
  3033. }
  3034. }
  3035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3036. public event ProductSaleRowChangeEventHandler ProductSaleRowChanging;
  3037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3038. public event ProductSaleRowChangeEventHandler ProductSaleRowChanged;
  3039. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3040. public event ProductSaleRowChangeEventHandler ProductSaleRowDeleting;
  3041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3042. public event ProductSaleRowChangeEventHandler ProductSaleRowDeleted;
  3043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3045. public void AddProductSaleRow(ProductSaleRow row) {
  3046. this.Rows.Add(row);
  3047. }
  3048. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3049. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3050. public ProductSaleRow AddProductSaleRow(System.DateTime SaleDate, ProductRow parentProductRowByFK_ProductSale_Product, int Quantity, ClientServiceRow parentClientServiceRowByFK_ProductSale_ClientService) {
  3051. ProductSaleRow rowProductSaleRow = ((ProductSaleRow)(this.NewRow()));
  3052. object[] columnValuesArray = new object[] {
  3053. null,
  3054. SaleDate,
  3055. null,
  3056. Quantity,
  3057. null};
  3058. if ((parentProductRowByFK_ProductSale_Product != null)) {
  3059. columnValuesArray[2] = parentProductRowByFK_ProductSale_Product[0];
  3060. }
  3061. if ((parentClientServiceRowByFK_ProductSale_ClientService != null)) {
  3062. columnValuesArray[4] = parentClientServiceRowByFK_ProductSale_ClientService[0];
  3063. }
  3064. rowProductSaleRow.ItemArray = columnValuesArray;
  3065. this.Rows.Add(rowProductSaleRow);
  3066. return rowProductSaleRow;
  3067. }
  3068. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3069. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3070. public ProductSaleRow FindByID(int ID) {
  3071. return ((ProductSaleRow)(this.Rows.Find(new object[] {
  3072. ID})));
  3073. }
  3074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3076. public override global::System.Data.DataTable Clone() {
  3077. ProductSaleDataTable cln = ((ProductSaleDataTable)(base.Clone()));
  3078. cln.InitVars();
  3079. return cln;
  3080. }
  3081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3083. protected override global::System.Data.DataTable CreateInstance() {
  3084. return new ProductSaleDataTable();
  3085. }
  3086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3088. internal void InitVars() {
  3089. this.columnID = base.Columns["ID"];
  3090. this.columnSaleDate = base.Columns["SaleDate"];
  3091. this.columnProductID = base.Columns["ProductID"];
  3092. this.columnQuantity = base.Columns["Quantity"];
  3093. this.columnClientServiceID = base.Columns["ClientServiceID"];
  3094. }
  3095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3097. private void InitClass() {
  3098. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3099. base.Columns.Add(this.columnID);
  3100. this.columnSaleDate = new global::System.Data.DataColumn("SaleDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  3101. base.Columns.Add(this.columnSaleDate);
  3102. this.columnProductID = new global::System.Data.DataColumn("ProductID", typeof(int), null, global::System.Data.MappingType.Element);
  3103. base.Columns.Add(this.columnProductID);
  3104. this.columnQuantity = new global::System.Data.DataColumn("Quantity", typeof(int), null, global::System.Data.MappingType.Element);
  3105. base.Columns.Add(this.columnQuantity);
  3106. this.columnClientServiceID = new global::System.Data.DataColumn("ClientServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  3107. base.Columns.Add(this.columnClientServiceID);
  3108. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3109. this.columnID}, true));
  3110. this.columnID.AutoIncrement = true;
  3111. this.columnID.AutoIncrementSeed = -1;
  3112. this.columnID.AutoIncrementStep = -1;
  3113. this.columnID.AllowDBNull = false;
  3114. this.columnID.ReadOnly = true;
  3115. this.columnID.Unique = true;
  3116. this.columnSaleDate.AllowDBNull = false;
  3117. this.columnProductID.AllowDBNull = false;
  3118. this.columnQuantity.AllowDBNull = false;
  3119. }
  3120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3122. public ProductSaleRow NewProductSaleRow() {
  3123. return ((ProductSaleRow)(this.NewRow()));
  3124. }
  3125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3126. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3127. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3128. return new ProductSaleRow(builder);
  3129. }
  3130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3132. protected override global::System.Type GetRowType() {
  3133. return typeof(ProductSaleRow);
  3134. }
  3135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3137. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3138. base.OnRowChanged(e);
  3139. if ((this.ProductSaleRowChanged != null)) {
  3140. this.ProductSaleRowChanged(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3141. }
  3142. }
  3143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3145. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3146. base.OnRowChanging(e);
  3147. if ((this.ProductSaleRowChanging != null)) {
  3148. this.ProductSaleRowChanging(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3149. }
  3150. }
  3151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3153. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3154. base.OnRowDeleted(e);
  3155. if ((this.ProductSaleRowDeleted != null)) {
  3156. this.ProductSaleRowDeleted(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3157. }
  3158. }
  3159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3161. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3162. base.OnRowDeleting(e);
  3163. if ((this.ProductSaleRowDeleting != null)) {
  3164. this.ProductSaleRowDeleting(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3165. }
  3166. }
  3167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3169. public void RemoveProductSaleRow(ProductSaleRow row) {
  3170. this.Rows.Remove(row);
  3171. }
  3172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3174. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3175. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3176. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3177. _1Brovi11DataSet ds = new _1Brovi11DataSet();
  3178. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3179. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3180. any1.MinOccurs = new decimal(0);
  3181. any1.MaxOccurs = decimal.MaxValue;
  3182. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3183. sequence.Items.Add(any1);
  3184. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3185. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3186. any2.MinOccurs = new decimal(1);
  3187. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3188. sequence.Items.Add(any2);
  3189. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3190. attribute1.Name = "namespace";
  3191. attribute1.FixedValue = ds.Namespace;
  3192. type.Attributes.Add(attribute1);
  3193. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3194. attribute2.Name = "tableTypeName";
  3195. attribute2.FixedValue = "ProductSaleDataTable";
  3196. type.Attributes.Add(attribute2);
  3197. type.Particle = sequence;
  3198. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3199. if (xs.Contains(dsSchema.TargetNamespace)) {
  3200. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3201. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3202. try {
  3203. global::System.Xml.Schema.XmlSchema schema = null;
  3204. dsSchema.Write(s1);
  3205. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3206. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3207. s2.SetLength(0);
  3208. schema.Write(s2);
  3209. if ((s1.Length == s2.Length)) {
  3210. s1.Position = 0;
  3211. s2.Position = 0;
  3212. for (; ((s1.Position != s1.Length)
  3213. && (s1.ReadByte() == s2.ReadByte())); ) {
  3214. ;
  3215. }
  3216. if ((s1.Position == s1.Length)) {
  3217. return type;
  3218. }
  3219. }
  3220. }
  3221. }
  3222. finally {
  3223. if ((s1 != null)) {
  3224. s1.Close();
  3225. }
  3226. if ((s2 != null)) {
  3227. s2.Close();
  3228. }
  3229. }
  3230. }
  3231. xs.Add(dsSchema);
  3232. return type;
  3233. }
  3234. }
  3235. /// <summary>
  3236. ///Represents the strongly named DataTable class.
  3237. ///</summary>
  3238. [global::System.Serializable()]
  3239. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3240. public partial class ServiceDataTable : global::System.Data.TypedTableBase<ServiceRow> {
  3241. private global::System.Data.DataColumn columnID;
  3242. private global::System.Data.DataColumn columnTitle;
  3243. private global::System.Data.DataColumn columnCost;
  3244. private global::System.Data.DataColumn columnDurationInSeconds;
  3245. private global::System.Data.DataColumn columnDescription;
  3246. private global::System.Data.DataColumn columnDiscount;
  3247. private global::System.Data.DataColumn columnMainImagePath;
  3248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3250. public ServiceDataTable() {
  3251. this.TableName = "Service";
  3252. this.BeginInit();
  3253. this.InitClass();
  3254. this.EndInit();
  3255. }
  3256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3258. internal ServiceDataTable(global::System.Data.DataTable table) {
  3259. this.TableName = table.TableName;
  3260. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3261. this.CaseSensitive = table.CaseSensitive;
  3262. }
  3263. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3264. this.Locale = table.Locale;
  3265. }
  3266. if ((table.Namespace != table.DataSet.Namespace)) {
  3267. this.Namespace = table.Namespace;
  3268. }
  3269. this.Prefix = table.Prefix;
  3270. this.MinimumCapacity = table.MinimumCapacity;
  3271. }
  3272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3274. protected ServiceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3275. base(info, context) {
  3276. this.InitVars();
  3277. }
  3278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3280. public global::System.Data.DataColumn IDColumn {
  3281. get {
  3282. return this.columnID;
  3283. }
  3284. }
  3285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3287. public global::System.Data.DataColumn TitleColumn {
  3288. get {
  3289. return this.columnTitle;
  3290. }
  3291. }
  3292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3294. public global::System.Data.DataColumn CostColumn {
  3295. get {
  3296. return this.columnCost;
  3297. }
  3298. }
  3299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3301. public global::System.Data.DataColumn DurationInSecondsColumn {
  3302. get {
  3303. return this.columnDurationInSeconds;
  3304. }
  3305. }
  3306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3308. public global::System.Data.DataColumn DescriptionColumn {
  3309. get {
  3310. return this.columnDescription;
  3311. }
  3312. }
  3313. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3314. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3315. public global::System.Data.DataColumn DiscountColumn {
  3316. get {
  3317. return this.columnDiscount;
  3318. }
  3319. }
  3320. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3321. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3322. public global::System.Data.DataColumn MainImagePathColumn {
  3323. get {
  3324. return this.columnMainImagePath;
  3325. }
  3326. }
  3327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3328. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3329. [global::System.ComponentModel.Browsable(false)]
  3330. public int Count {
  3331. get {
  3332. return this.Rows.Count;
  3333. }
  3334. }
  3335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3337. public ServiceRow this[int index] {
  3338. get {
  3339. return ((ServiceRow)(this.Rows[index]));
  3340. }
  3341. }
  3342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3343. public event ServiceRowChangeEventHandler ServiceRowChanging;
  3344. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3345. public event ServiceRowChangeEventHandler ServiceRowChanged;
  3346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3347. public event ServiceRowChangeEventHandler ServiceRowDeleting;
  3348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3349. public event ServiceRowChangeEventHandler ServiceRowDeleted;
  3350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3352. public void AddServiceRow(ServiceRow row) {
  3353. this.Rows.Add(row);
  3354. }
  3355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3357. public ServiceRow AddServiceRow(string Title, decimal Cost, int DurationInSeconds, string Description, double Discount, string MainImagePath) {
  3358. ServiceRow rowServiceRow = ((ServiceRow)(this.NewRow()));
  3359. object[] columnValuesArray = new object[] {
  3360. null,
  3361. Title,
  3362. Cost,
  3363. DurationInSeconds,
  3364. Description,
  3365. Discount,
  3366. MainImagePath};
  3367. rowServiceRow.ItemArray = columnValuesArray;
  3368. this.Rows.Add(rowServiceRow);
  3369. return rowServiceRow;
  3370. }
  3371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3372. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3373. public ServiceRow FindByID(int ID) {
  3374. return ((ServiceRow)(this.Rows.Find(new object[] {
  3375. ID})));
  3376. }
  3377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3378. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3379. public override global::System.Data.DataTable Clone() {
  3380. ServiceDataTable cln = ((ServiceDataTable)(base.Clone()));
  3381. cln.InitVars();
  3382. return cln;
  3383. }
  3384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3386. protected override global::System.Data.DataTable CreateInstance() {
  3387. return new ServiceDataTable();
  3388. }
  3389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3391. internal void InitVars() {
  3392. this.columnID = base.Columns["ID"];
  3393. this.columnTitle = base.Columns["Title"];
  3394. this.columnCost = base.Columns["Cost"];
  3395. this.columnDurationInSeconds = base.Columns["DurationInSeconds"];
  3396. this.columnDescription = base.Columns["Description"];
  3397. this.columnDiscount = base.Columns["Discount"];
  3398. this.columnMainImagePath = base.Columns["MainImagePath"];
  3399. }
  3400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3402. private void InitClass() {
  3403. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3404. base.Columns.Add(this.columnID);
  3405. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  3406. base.Columns.Add(this.columnTitle);
  3407. this.columnCost = new global::System.Data.DataColumn("Cost", typeof(decimal), null, global::System.Data.MappingType.Element);
  3408. base.Columns.Add(this.columnCost);
  3409. this.columnDurationInSeconds = new global::System.Data.DataColumn("DurationInSeconds", typeof(int), null, global::System.Data.MappingType.Element);
  3410. base.Columns.Add(this.columnDurationInSeconds);
  3411. this.columnDescription = new global::System.Data.DataColumn("Description", typeof(string), null, global::System.Data.MappingType.Element);
  3412. base.Columns.Add(this.columnDescription);
  3413. this.columnDiscount = new global::System.Data.DataColumn("Discount", typeof(double), null, global::System.Data.MappingType.Element);
  3414. base.Columns.Add(this.columnDiscount);
  3415. this.columnMainImagePath = new global::System.Data.DataColumn("MainImagePath", typeof(string), null, global::System.Data.MappingType.Element);
  3416. base.Columns.Add(this.columnMainImagePath);
  3417. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3418. this.columnID}, true));
  3419. this.columnID.AutoIncrement = true;
  3420. this.columnID.AutoIncrementSeed = -1;
  3421. this.columnID.AutoIncrementStep = -1;
  3422. this.columnID.AllowDBNull = false;
  3423. this.columnID.ReadOnly = true;
  3424. this.columnID.Unique = true;
  3425. this.columnTitle.AllowDBNull = false;
  3426. this.columnTitle.MaxLength = 100;
  3427. this.columnCost.AllowDBNull = false;
  3428. this.columnDurationInSeconds.AllowDBNull = false;
  3429. this.columnDescription.MaxLength = 2147483647;
  3430. this.columnMainImagePath.MaxLength = 1000;
  3431. }
  3432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3433. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3434. public ServiceRow NewServiceRow() {
  3435. return ((ServiceRow)(this.NewRow()));
  3436. }
  3437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3439. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3440. return new ServiceRow(builder);
  3441. }
  3442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3444. protected override global::System.Type GetRowType() {
  3445. return typeof(ServiceRow);
  3446. }
  3447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3448. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3449. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3450. base.OnRowChanged(e);
  3451. if ((this.ServiceRowChanged != null)) {
  3452. this.ServiceRowChanged(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3453. }
  3454. }
  3455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3456. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3457. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3458. base.OnRowChanging(e);
  3459. if ((this.ServiceRowChanging != null)) {
  3460. this.ServiceRowChanging(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3461. }
  3462. }
  3463. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3464. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3465. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3466. base.OnRowDeleted(e);
  3467. if ((this.ServiceRowDeleted != null)) {
  3468. this.ServiceRowDeleted(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3469. }
  3470. }
  3471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3473. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3474. base.OnRowDeleting(e);
  3475. if ((this.ServiceRowDeleting != null)) {
  3476. this.ServiceRowDeleting(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3477. }
  3478. }
  3479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3480. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3481. public void RemoveServiceRow(ServiceRow row) {
  3482. this.Rows.Remove(row);
  3483. }
  3484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3486. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3487. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3488. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3489. _1Brovi11DataSet ds = new _1Brovi11DataSet();
  3490. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3491. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3492. any1.MinOccurs = new decimal(0);
  3493. any1.MaxOccurs = decimal.MaxValue;
  3494. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3495. sequence.Items.Add(any1);
  3496. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3497. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3498. any2.MinOccurs = new decimal(1);
  3499. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3500. sequence.Items.Add(any2);
  3501. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3502. attribute1.Name = "namespace";
  3503. attribute1.FixedValue = ds.Namespace;
  3504. type.Attributes.Add(attribute1);
  3505. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3506. attribute2.Name = "tableTypeName";
  3507. attribute2.FixedValue = "ServiceDataTable";
  3508. type.Attributes.Add(attribute2);
  3509. type.Particle = sequence;
  3510. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3511. if (xs.Contains(dsSchema.TargetNamespace)) {
  3512. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3513. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3514. try {
  3515. global::System.Xml.Schema.XmlSchema schema = null;
  3516. dsSchema.Write(s1);
  3517. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3518. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3519. s2.SetLength(0);
  3520. schema.Write(s2);
  3521. if ((s1.Length == s2.Length)) {
  3522. s1.Position = 0;
  3523. s2.Position = 0;
  3524. for (; ((s1.Position != s1.Length)
  3525. && (s1.ReadByte() == s2.ReadByte())); ) {
  3526. ;
  3527. }
  3528. if ((s1.Position == s1.Length)) {
  3529. return type;
  3530. }
  3531. }
  3532. }
  3533. }
  3534. finally {
  3535. if ((s1 != null)) {
  3536. s1.Close();
  3537. }
  3538. if ((s2 != null)) {
  3539. s2.Close();
  3540. }
  3541. }
  3542. }
  3543. xs.Add(dsSchema);
  3544. return type;
  3545. }
  3546. }
  3547. /// <summary>
  3548. ///Represents the strongly named DataTable class.
  3549. ///</summary>
  3550. [global::System.Serializable()]
  3551. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3552. public partial class ServicePhotoDataTable : global::System.Data.TypedTableBase<ServicePhotoRow> {
  3553. private global::System.Data.DataColumn columnID;
  3554. private global::System.Data.DataColumn columnServiceID;
  3555. private global::System.Data.DataColumn columnPhotoPath;
  3556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3558. public ServicePhotoDataTable() {
  3559. this.TableName = "ServicePhoto";
  3560. this.BeginInit();
  3561. this.InitClass();
  3562. this.EndInit();
  3563. }
  3564. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3566. internal ServicePhotoDataTable(global::System.Data.DataTable table) {
  3567. this.TableName = table.TableName;
  3568. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3569. this.CaseSensitive = table.CaseSensitive;
  3570. }
  3571. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3572. this.Locale = table.Locale;
  3573. }
  3574. if ((table.Namespace != table.DataSet.Namespace)) {
  3575. this.Namespace = table.Namespace;
  3576. }
  3577. this.Prefix = table.Prefix;
  3578. this.MinimumCapacity = table.MinimumCapacity;
  3579. }
  3580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3582. protected ServicePhotoDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3583. base(info, context) {
  3584. this.InitVars();
  3585. }
  3586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3588. public global::System.Data.DataColumn IDColumn {
  3589. get {
  3590. return this.columnID;
  3591. }
  3592. }
  3593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3595. public global::System.Data.DataColumn ServiceIDColumn {
  3596. get {
  3597. return this.columnServiceID;
  3598. }
  3599. }
  3600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3602. public global::System.Data.DataColumn PhotoPathColumn {
  3603. get {
  3604. return this.columnPhotoPath;
  3605. }
  3606. }
  3607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3609. [global::System.ComponentModel.Browsable(false)]
  3610. public int Count {
  3611. get {
  3612. return this.Rows.Count;
  3613. }
  3614. }
  3615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3617. public ServicePhotoRow this[int index] {
  3618. get {
  3619. return ((ServicePhotoRow)(this.Rows[index]));
  3620. }
  3621. }
  3622. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3623. public event ServicePhotoRowChangeEventHandler ServicePhotoRowChanging;
  3624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3625. public event ServicePhotoRowChangeEventHandler ServicePhotoRowChanged;
  3626. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3627. public event ServicePhotoRowChangeEventHandler ServicePhotoRowDeleting;
  3628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3629. public event ServicePhotoRowChangeEventHandler ServicePhotoRowDeleted;
  3630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3632. public void AddServicePhotoRow(ServicePhotoRow row) {
  3633. this.Rows.Add(row);
  3634. }
  3635. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3636. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3637. public ServicePhotoRow AddServicePhotoRow(ServiceRow parentServiceRowByFK_ServicePhoto_Service, string PhotoPath) {
  3638. ServicePhotoRow rowServicePhotoRow = ((ServicePhotoRow)(this.NewRow()));
  3639. object[] columnValuesArray = new object[] {
  3640. null,
  3641. null,
  3642. PhotoPath};
  3643. if ((parentServiceRowByFK_ServicePhoto_Service != null)) {
  3644. columnValuesArray[1] = parentServiceRowByFK_ServicePhoto_Service[0];
  3645. }
  3646. rowServicePhotoRow.ItemArray = columnValuesArray;
  3647. this.Rows.Add(rowServicePhotoRow);
  3648. return rowServicePhotoRow;
  3649. }
  3650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3652. public ServicePhotoRow FindByID(int ID) {
  3653. return ((ServicePhotoRow)(this.Rows.Find(new object[] {
  3654. ID})));
  3655. }
  3656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3657. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3658. public override global::System.Data.DataTable Clone() {
  3659. ServicePhotoDataTable cln = ((ServicePhotoDataTable)(base.Clone()));
  3660. cln.InitVars();
  3661. return cln;
  3662. }
  3663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3665. protected override global::System.Data.DataTable CreateInstance() {
  3666. return new ServicePhotoDataTable();
  3667. }
  3668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3670. internal void InitVars() {
  3671. this.columnID = base.Columns["ID"];
  3672. this.columnServiceID = base.Columns["ServiceID"];
  3673. this.columnPhotoPath = base.Columns["PhotoPath"];
  3674. }
  3675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3676. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3677. private void InitClass() {
  3678. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3679. base.Columns.Add(this.columnID);
  3680. this.columnServiceID = new global::System.Data.DataColumn("ServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  3681. base.Columns.Add(this.columnServiceID);
  3682. this.columnPhotoPath = new global::System.Data.DataColumn("PhotoPath", typeof(string), null, global::System.Data.MappingType.Element);
  3683. base.Columns.Add(this.columnPhotoPath);
  3684. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3685. this.columnID}, true));
  3686. this.columnID.AutoIncrement = true;
  3687. this.columnID.AutoIncrementSeed = -1;
  3688. this.columnID.AutoIncrementStep = -1;
  3689. this.columnID.AllowDBNull = false;
  3690. this.columnID.ReadOnly = true;
  3691. this.columnID.Unique = true;
  3692. this.columnServiceID.AllowDBNull = false;
  3693. this.columnPhotoPath.AllowDBNull = false;
  3694. this.columnPhotoPath.MaxLength = 1000;
  3695. }
  3696. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3698. public ServicePhotoRow NewServicePhotoRow() {
  3699. return ((ServicePhotoRow)(this.NewRow()));
  3700. }
  3701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3703. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3704. return new ServicePhotoRow(builder);
  3705. }
  3706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3708. protected override global::System.Type GetRowType() {
  3709. return typeof(ServicePhotoRow);
  3710. }
  3711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3712. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3713. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3714. base.OnRowChanged(e);
  3715. if ((this.ServicePhotoRowChanged != null)) {
  3716. this.ServicePhotoRowChanged(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  3717. }
  3718. }
  3719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3721. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3722. base.OnRowChanging(e);
  3723. if ((this.ServicePhotoRowChanging != null)) {
  3724. this.ServicePhotoRowChanging(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  3725. }
  3726. }
  3727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3729. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3730. base.OnRowDeleted(e);
  3731. if ((this.ServicePhotoRowDeleted != null)) {
  3732. this.ServicePhotoRowDeleted(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  3733. }
  3734. }
  3735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3737. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3738. base.OnRowDeleting(e);
  3739. if ((this.ServicePhotoRowDeleting != null)) {
  3740. this.ServicePhotoRowDeleting(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  3741. }
  3742. }
  3743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3745. public void RemoveServicePhotoRow(ServicePhotoRow row) {
  3746. this.Rows.Remove(row);
  3747. }
  3748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3750. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3751. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3752. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3753. _1Brovi11DataSet ds = new _1Brovi11DataSet();
  3754. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3755. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3756. any1.MinOccurs = new decimal(0);
  3757. any1.MaxOccurs = decimal.MaxValue;
  3758. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3759. sequence.Items.Add(any1);
  3760. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3761. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3762. any2.MinOccurs = new decimal(1);
  3763. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3764. sequence.Items.Add(any2);
  3765. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3766. attribute1.Name = "namespace";
  3767. attribute1.FixedValue = ds.Namespace;
  3768. type.Attributes.Add(attribute1);
  3769. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3770. attribute2.Name = "tableTypeName";
  3771. attribute2.FixedValue = "ServicePhotoDataTable";
  3772. type.Attributes.Add(attribute2);
  3773. type.Particle = sequence;
  3774. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3775. if (xs.Contains(dsSchema.TargetNamespace)) {
  3776. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3777. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3778. try {
  3779. global::System.Xml.Schema.XmlSchema schema = null;
  3780. dsSchema.Write(s1);
  3781. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3782. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3783. s2.SetLength(0);
  3784. schema.Write(s2);
  3785. if ((s1.Length == s2.Length)) {
  3786. s1.Position = 0;
  3787. s2.Position = 0;
  3788. for (; ((s1.Position != s1.Length)
  3789. && (s1.ReadByte() == s2.ReadByte())); ) {
  3790. ;
  3791. }
  3792. if ((s1.Position == s1.Length)) {
  3793. return type;
  3794. }
  3795. }
  3796. }
  3797. }
  3798. finally {
  3799. if ((s1 != null)) {
  3800. s1.Close();
  3801. }
  3802. if ((s2 != null)) {
  3803. s2.Close();
  3804. }
  3805. }
  3806. }
  3807. xs.Add(dsSchema);
  3808. return type;
  3809. }
  3810. }
  3811. /// <summary>
  3812. ///Represents the strongly named DataTable class.
  3813. ///</summary>
  3814. [global::System.Serializable()]
  3815. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3816. public partial class TagDataTable : global::System.Data.TypedTableBase<TagRow> {
  3817. private global::System.Data.DataColumn columnID;
  3818. private global::System.Data.DataColumn columnTitle;
  3819. private global::System.Data.DataColumn columnColor;
  3820. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3821. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3822. public TagDataTable() {
  3823. this.TableName = "Tag";
  3824. this.BeginInit();
  3825. this.InitClass();
  3826. this.EndInit();
  3827. }
  3828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3830. internal TagDataTable(global::System.Data.DataTable table) {
  3831. this.TableName = table.TableName;
  3832. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3833. this.CaseSensitive = table.CaseSensitive;
  3834. }
  3835. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3836. this.Locale = table.Locale;
  3837. }
  3838. if ((table.Namespace != table.DataSet.Namespace)) {
  3839. this.Namespace = table.Namespace;
  3840. }
  3841. this.Prefix = table.Prefix;
  3842. this.MinimumCapacity = table.MinimumCapacity;
  3843. }
  3844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3846. protected TagDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3847. base(info, context) {
  3848. this.InitVars();
  3849. }
  3850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3852. public global::System.Data.DataColumn IDColumn {
  3853. get {
  3854. return this.columnID;
  3855. }
  3856. }
  3857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3859. public global::System.Data.DataColumn TitleColumn {
  3860. get {
  3861. return this.columnTitle;
  3862. }
  3863. }
  3864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3866. public global::System.Data.DataColumn ColorColumn {
  3867. get {
  3868. return this.columnColor;
  3869. }
  3870. }
  3871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3872. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3873. [global::System.ComponentModel.Browsable(false)]
  3874. public int Count {
  3875. get {
  3876. return this.Rows.Count;
  3877. }
  3878. }
  3879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3881. public TagRow this[int index] {
  3882. get {
  3883. return ((TagRow)(this.Rows[index]));
  3884. }
  3885. }
  3886. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3887. public event TagRowChangeEventHandler TagRowChanging;
  3888. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3889. public event TagRowChangeEventHandler TagRowChanged;
  3890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3891. public event TagRowChangeEventHandler TagRowDeleting;
  3892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3893. public event TagRowChangeEventHandler TagRowDeleted;
  3894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3896. public void AddTagRow(TagRow row) {
  3897. this.Rows.Add(row);
  3898. }
  3899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3901. public TagRow AddTagRow(string Title, string Color) {
  3902. TagRow rowTagRow = ((TagRow)(this.NewRow()));
  3903. object[] columnValuesArray = new object[] {
  3904. null,
  3905. Title,
  3906. Color};
  3907. rowTagRow.ItemArray = columnValuesArray;
  3908. this.Rows.Add(rowTagRow);
  3909. return rowTagRow;
  3910. }
  3911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3913. public TagRow FindByID(int ID) {
  3914. return ((TagRow)(this.Rows.Find(new object[] {
  3915. ID})));
  3916. }
  3917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3919. public override global::System.Data.DataTable Clone() {
  3920. TagDataTable cln = ((TagDataTable)(base.Clone()));
  3921. cln.InitVars();
  3922. return cln;
  3923. }
  3924. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3925. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3926. protected override global::System.Data.DataTable CreateInstance() {
  3927. return new TagDataTable();
  3928. }
  3929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3931. internal void InitVars() {
  3932. this.columnID = base.Columns["ID"];
  3933. this.columnTitle = base.Columns["Title"];
  3934. this.columnColor = base.Columns["Color"];
  3935. }
  3936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3938. private void InitClass() {
  3939. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3940. base.Columns.Add(this.columnID);
  3941. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  3942. base.Columns.Add(this.columnTitle);
  3943. this.columnColor = new global::System.Data.DataColumn("Color", typeof(string), null, global::System.Data.MappingType.Element);
  3944. base.Columns.Add(this.columnColor);
  3945. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3946. this.columnID}, true));
  3947. this.columnID.AutoIncrement = true;
  3948. this.columnID.AutoIncrementSeed = -1;
  3949. this.columnID.AutoIncrementStep = -1;
  3950. this.columnID.AllowDBNull = false;
  3951. this.columnID.ReadOnly = true;
  3952. this.columnID.Unique = true;
  3953. this.columnTitle.AllowDBNull = false;
  3954. this.columnTitle.MaxLength = 30;
  3955. this.columnColor.AllowDBNull = false;
  3956. this.columnColor.MaxLength = 6;
  3957. }
  3958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3959. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3960. public TagRow NewTagRow() {
  3961. return ((TagRow)(this.NewRow()));
  3962. }
  3963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3965. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3966. return new TagRow(builder);
  3967. }
  3968. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3969. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3970. protected override global::System.Type GetRowType() {
  3971. return typeof(TagRow);
  3972. }
  3973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3975. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3976. base.OnRowChanged(e);
  3977. if ((this.TagRowChanged != null)) {
  3978. this.TagRowChanged(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  3979. }
  3980. }
  3981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3982. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3983. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3984. base.OnRowChanging(e);
  3985. if ((this.TagRowChanging != null)) {
  3986. this.TagRowChanging(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  3987. }
  3988. }
  3989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3991. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3992. base.OnRowDeleted(e);
  3993. if ((this.TagRowDeleted != null)) {
  3994. this.TagRowDeleted(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  3995. }
  3996. }
  3997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3998. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3999. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4000. base.OnRowDeleting(e);
  4001. if ((this.TagRowDeleting != null)) {
  4002. this.TagRowDeleting(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  4003. }
  4004. }
  4005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4007. public void RemoveTagRow(TagRow row) {
  4008. this.Rows.Remove(row);
  4009. }
  4010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4011. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4012. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4013. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4014. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4015. _1Brovi11DataSet ds = new _1Brovi11DataSet();
  4016. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4017. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4018. any1.MinOccurs = new decimal(0);
  4019. any1.MaxOccurs = decimal.MaxValue;
  4020. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4021. sequence.Items.Add(any1);
  4022. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4023. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4024. any2.MinOccurs = new decimal(1);
  4025. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4026. sequence.Items.Add(any2);
  4027. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4028. attribute1.Name = "namespace";
  4029. attribute1.FixedValue = ds.Namespace;
  4030. type.Attributes.Add(attribute1);
  4031. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4032. attribute2.Name = "tableTypeName";
  4033. attribute2.FixedValue = "TagDataTable";
  4034. type.Attributes.Add(attribute2);
  4035. type.Particle = sequence;
  4036. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4037. if (xs.Contains(dsSchema.TargetNamespace)) {
  4038. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4039. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4040. try {
  4041. global::System.Xml.Schema.XmlSchema schema = null;
  4042. dsSchema.Write(s1);
  4043. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4044. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4045. s2.SetLength(0);
  4046. schema.Write(s2);
  4047. if ((s1.Length == s2.Length)) {
  4048. s1.Position = 0;
  4049. s2.Position = 0;
  4050. for (; ((s1.Position != s1.Length)
  4051. && (s1.ReadByte() == s2.ReadByte())); ) {
  4052. ;
  4053. }
  4054. if ((s1.Position == s1.Length)) {
  4055. return type;
  4056. }
  4057. }
  4058. }
  4059. }
  4060. finally {
  4061. if ((s1 != null)) {
  4062. s1.Close();
  4063. }
  4064. if ((s2 != null)) {
  4065. s2.Close();
  4066. }
  4067. }
  4068. }
  4069. xs.Add(dsSchema);
  4070. return type;
  4071. }
  4072. }
  4073. /// <summary>
  4074. ///Represents the strongly named DataTable class.
  4075. ///</summary>
  4076. [global::System.Serializable()]
  4077. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  4078. public partial class TagOfClientDataTable : global::System.Data.TypedTableBase<TagOfClientRow> {
  4079. private global::System.Data.DataColumn columnClientID;
  4080. private global::System.Data.DataColumn columnTagID;
  4081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4083. public TagOfClientDataTable() {
  4084. this.TableName = "TagOfClient";
  4085. this.BeginInit();
  4086. this.InitClass();
  4087. this.EndInit();
  4088. }
  4089. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4090. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4091. internal TagOfClientDataTable(global::System.Data.DataTable table) {
  4092. this.TableName = table.TableName;
  4093. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  4094. this.CaseSensitive = table.CaseSensitive;
  4095. }
  4096. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  4097. this.Locale = table.Locale;
  4098. }
  4099. if ((table.Namespace != table.DataSet.Namespace)) {
  4100. this.Namespace = table.Namespace;
  4101. }
  4102. this.Prefix = table.Prefix;
  4103. this.MinimumCapacity = table.MinimumCapacity;
  4104. }
  4105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4106. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4107. protected TagOfClientDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  4108. base(info, context) {
  4109. this.InitVars();
  4110. }
  4111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4113. public global::System.Data.DataColumn ClientIDColumn {
  4114. get {
  4115. return this.columnClientID;
  4116. }
  4117. }
  4118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4120. public global::System.Data.DataColumn TagIDColumn {
  4121. get {
  4122. return this.columnTagID;
  4123. }
  4124. }
  4125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4126. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4127. [global::System.ComponentModel.Browsable(false)]
  4128. public int Count {
  4129. get {
  4130. return this.Rows.Count;
  4131. }
  4132. }
  4133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4135. public TagOfClientRow this[int index] {
  4136. get {
  4137. return ((TagOfClientRow)(this.Rows[index]));
  4138. }
  4139. }
  4140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4141. public event TagOfClientRowChangeEventHandler TagOfClientRowChanging;
  4142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4143. public event TagOfClientRowChangeEventHandler TagOfClientRowChanged;
  4144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4145. public event TagOfClientRowChangeEventHandler TagOfClientRowDeleting;
  4146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4147. public event TagOfClientRowChangeEventHandler TagOfClientRowDeleted;
  4148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4150. public void AddTagOfClientRow(TagOfClientRow row) {
  4151. this.Rows.Add(row);
  4152. }
  4153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4155. public TagOfClientRow AddTagOfClientRow(ClientRow parentClientRowByFK_TagOfClient_Client, TagRow parentTagRowByFK_TagOfClient_Tag) {
  4156. TagOfClientRow rowTagOfClientRow = ((TagOfClientRow)(this.NewRow()));
  4157. object[] columnValuesArray = new object[] {
  4158. null,
  4159. null};
  4160. if ((parentClientRowByFK_TagOfClient_Client != null)) {
  4161. columnValuesArray[0] = parentClientRowByFK_TagOfClient_Client[0];
  4162. }
  4163. if ((parentTagRowByFK_TagOfClient_Tag != null)) {
  4164. columnValuesArray[1] = parentTagRowByFK_TagOfClient_Tag[0];
  4165. }
  4166. rowTagOfClientRow.ItemArray = columnValuesArray;
  4167. this.Rows.Add(rowTagOfClientRow);
  4168. return rowTagOfClientRow;
  4169. }
  4170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4171. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4172. public TagOfClientRow FindByClientIDTagID(int ClientID, int TagID) {
  4173. return ((TagOfClientRow)(this.Rows.Find(new object[] {
  4174. ClientID,
  4175. TagID})));
  4176. }
  4177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4179. public override global::System.Data.DataTable Clone() {
  4180. TagOfClientDataTable cln = ((TagOfClientDataTable)(base.Clone()));
  4181. cln.InitVars();
  4182. return cln;
  4183. }
  4184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4186. protected override global::System.Data.DataTable CreateInstance() {
  4187. return new TagOfClientDataTable();
  4188. }
  4189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4191. internal void InitVars() {
  4192. this.columnClientID = base.Columns["ClientID"];
  4193. this.columnTagID = base.Columns["TagID"];
  4194. }
  4195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4197. private void InitClass() {
  4198. this.columnClientID = new global::System.Data.DataColumn("ClientID", typeof(int), null, global::System.Data.MappingType.Element);
  4199. base.Columns.Add(this.columnClientID);
  4200. this.columnTagID = new global::System.Data.DataColumn("TagID", typeof(int), null, global::System.Data.MappingType.Element);
  4201. base.Columns.Add(this.columnTagID);
  4202. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  4203. this.columnClientID,
  4204. this.columnTagID}, true));
  4205. this.columnClientID.AllowDBNull = false;
  4206. this.columnTagID.AllowDBNull = false;
  4207. }
  4208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4210. public TagOfClientRow NewTagOfClientRow() {
  4211. return ((TagOfClientRow)(this.NewRow()));
  4212. }
  4213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4215. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4216. return new TagOfClientRow(builder);
  4217. }
  4218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4220. protected override global::System.Type GetRowType() {
  4221. return typeof(TagOfClientRow);
  4222. }
  4223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4225. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4226. base.OnRowChanged(e);
  4227. if ((this.TagOfClientRowChanged != null)) {
  4228. this.TagOfClientRowChanged(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  4229. }
  4230. }
  4231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4233. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4234. base.OnRowChanging(e);
  4235. if ((this.TagOfClientRowChanging != null)) {
  4236. this.TagOfClientRowChanging(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  4237. }
  4238. }
  4239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4241. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4242. base.OnRowDeleted(e);
  4243. if ((this.TagOfClientRowDeleted != null)) {
  4244. this.TagOfClientRowDeleted(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  4245. }
  4246. }
  4247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4249. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4250. base.OnRowDeleting(e);
  4251. if ((this.TagOfClientRowDeleting != null)) {
  4252. this.TagOfClientRowDeleting(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  4253. }
  4254. }
  4255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4257. public void RemoveTagOfClientRow(TagOfClientRow row) {
  4258. this.Rows.Remove(row);
  4259. }
  4260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4262. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4263. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4264. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4265. _1Brovi11DataSet ds = new _1Brovi11DataSet();
  4266. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4267. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4268. any1.MinOccurs = new decimal(0);
  4269. any1.MaxOccurs = decimal.MaxValue;
  4270. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4271. sequence.Items.Add(any1);
  4272. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4273. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4274. any2.MinOccurs = new decimal(1);
  4275. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4276. sequence.Items.Add(any2);
  4277. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4278. attribute1.Name = "namespace";
  4279. attribute1.FixedValue = ds.Namespace;
  4280. type.Attributes.Add(attribute1);
  4281. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4282. attribute2.Name = "tableTypeName";
  4283. attribute2.FixedValue = "TagOfClientDataTable";
  4284. type.Attributes.Add(attribute2);
  4285. type.Particle = sequence;
  4286. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4287. if (xs.Contains(dsSchema.TargetNamespace)) {
  4288. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4289. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4290. try {
  4291. global::System.Xml.Schema.XmlSchema schema = null;
  4292. dsSchema.Write(s1);
  4293. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4294. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4295. s2.SetLength(0);
  4296. schema.Write(s2);
  4297. if ((s1.Length == s2.Length)) {
  4298. s1.Position = 0;
  4299. s2.Position = 0;
  4300. for (; ((s1.Position != s1.Length)
  4301. && (s1.ReadByte() == s2.ReadByte())); ) {
  4302. ;
  4303. }
  4304. if ((s1.Position == s1.Length)) {
  4305. return type;
  4306. }
  4307. }
  4308. }
  4309. }
  4310. finally {
  4311. if ((s1 != null)) {
  4312. s1.Close();
  4313. }
  4314. if ((s2 != null)) {
  4315. s2.Close();
  4316. }
  4317. }
  4318. }
  4319. xs.Add(dsSchema);
  4320. return type;
  4321. }
  4322. }
  4323. /// <summary>
  4324. ///Represents strongly named DataRow class.
  4325. ///</summary>
  4326. public partial class AttachedProductRow : global::System.Data.DataRow {
  4327. private AttachedProductDataTable tableAttachedProduct;
  4328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4330. internal AttachedProductRow(global::System.Data.DataRowBuilder rb) :
  4331. base(rb) {
  4332. this.tableAttachedProduct = ((AttachedProductDataTable)(this.Table));
  4333. }
  4334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4336. public int MainProductID {
  4337. get {
  4338. return ((int)(this[this.tableAttachedProduct.MainProductIDColumn]));
  4339. }
  4340. set {
  4341. this[this.tableAttachedProduct.MainProductIDColumn] = value;
  4342. }
  4343. }
  4344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4346. public int AttachedProductID {
  4347. get {
  4348. return ((int)(this[this.tableAttachedProduct.AttachedProductIDColumn]));
  4349. }
  4350. set {
  4351. this[this.tableAttachedProduct.AttachedProductIDColumn] = value;
  4352. }
  4353. }
  4354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4355. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4356. public ProductRow ProductRowByFK_AttachedProduct_Product {
  4357. get {
  4358. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_AttachedProduct_Product"])));
  4359. }
  4360. set {
  4361. this.SetParentRow(value, this.Table.ParentRelations["FK_AttachedProduct_Product"]);
  4362. }
  4363. }
  4364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4366. public ProductRow ProductRowByFK_AttachedProduct_Product1 {
  4367. get {
  4368. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_AttachedProduct_Product1"])));
  4369. }
  4370. set {
  4371. this.SetParentRow(value, this.Table.ParentRelations["FK_AttachedProduct_Product1"]);
  4372. }
  4373. }
  4374. }
  4375. /// <summary>
  4376. ///Represents strongly named DataRow class.
  4377. ///</summary>
  4378. public partial class ClientRow : global::System.Data.DataRow {
  4379. private ClientDataTable tableClient;
  4380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4382. internal ClientRow(global::System.Data.DataRowBuilder rb) :
  4383. base(rb) {
  4384. this.tableClient = ((ClientDataTable)(this.Table));
  4385. }
  4386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4388. public int ID {
  4389. get {
  4390. return ((int)(this[this.tableClient.IDColumn]));
  4391. }
  4392. set {
  4393. this[this.tableClient.IDColumn] = value;
  4394. }
  4395. }
  4396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4398. public string FirstName {
  4399. get {
  4400. return ((string)(this[this.tableClient.FirstNameColumn]));
  4401. }
  4402. set {
  4403. this[this.tableClient.FirstNameColumn] = value;
  4404. }
  4405. }
  4406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4408. public string LastName {
  4409. get {
  4410. return ((string)(this[this.tableClient.LastNameColumn]));
  4411. }
  4412. set {
  4413. this[this.tableClient.LastNameColumn] = value;
  4414. }
  4415. }
  4416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4418. public string Patronymic {
  4419. get {
  4420. try {
  4421. return ((string)(this[this.tableClient.PatronymicColumn]));
  4422. }
  4423. catch (global::System.InvalidCastException e) {
  4424. throw new global::System.Data.StrongTypingException("Значение для столбца \'Patronymic\' в таблице \'Client\' равно DBNull.", e);
  4425. }
  4426. }
  4427. set {
  4428. this[this.tableClient.PatronymicColumn] = value;
  4429. }
  4430. }
  4431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4433. public System.DateTime Birthday {
  4434. get {
  4435. try {
  4436. return ((global::System.DateTime)(this[this.tableClient.BirthdayColumn]));
  4437. }
  4438. catch (global::System.InvalidCastException e) {
  4439. throw new global::System.Data.StrongTypingException("Значение для столбца \'Birthday\' в таблице \'Client\' равно DBNull.", e);
  4440. }
  4441. }
  4442. set {
  4443. this[this.tableClient.BirthdayColumn] = value;
  4444. }
  4445. }
  4446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4448. public System.DateTime RegistrationDate {
  4449. get {
  4450. return ((global::System.DateTime)(this[this.tableClient.RegistrationDateColumn]));
  4451. }
  4452. set {
  4453. this[this.tableClient.RegistrationDateColumn] = value;
  4454. }
  4455. }
  4456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4458. public string Email {
  4459. get {
  4460. try {
  4461. return ((string)(this[this.tableClient.EmailColumn]));
  4462. }
  4463. catch (global::System.InvalidCastException e) {
  4464. throw new global::System.Data.StrongTypingException("Значение для столбца \'Email\' в таблице \'Client\' равно DBNull.", e);
  4465. }
  4466. }
  4467. set {
  4468. this[this.tableClient.EmailColumn] = value;
  4469. }
  4470. }
  4471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4473. public string Phone {
  4474. get {
  4475. return ((string)(this[this.tableClient.PhoneColumn]));
  4476. }
  4477. set {
  4478. this[this.tableClient.PhoneColumn] = value;
  4479. }
  4480. }
  4481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4483. public string GenderCode {
  4484. get {
  4485. return ((string)(this[this.tableClient.GenderCodeColumn]));
  4486. }
  4487. set {
  4488. this[this.tableClient.GenderCodeColumn] = value;
  4489. }
  4490. }
  4491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4493. public string PhotoPath {
  4494. get {
  4495. try {
  4496. return ((string)(this[this.tableClient.PhotoPathColumn]));
  4497. }
  4498. catch (global::System.InvalidCastException e) {
  4499. throw new global::System.Data.StrongTypingException("Значение для столбца \'PhotoPath\' в таблице \'Client\' равно DBNull.", e);
  4500. }
  4501. }
  4502. set {
  4503. this[this.tableClient.PhotoPathColumn] = value;
  4504. }
  4505. }
  4506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4508. public GenderRow GenderRow {
  4509. get {
  4510. return ((GenderRow)(this.GetParentRow(this.Table.ParentRelations["FK_Client_Gender"])));
  4511. }
  4512. set {
  4513. this.SetParentRow(value, this.Table.ParentRelations["FK_Client_Gender"]);
  4514. }
  4515. }
  4516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4518. public bool IsPatronymicNull() {
  4519. return this.IsNull(this.tableClient.PatronymicColumn);
  4520. }
  4521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4523. public void SetPatronymicNull() {
  4524. this[this.tableClient.PatronymicColumn] = global::System.Convert.DBNull;
  4525. }
  4526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4528. public bool IsBirthdayNull() {
  4529. return this.IsNull(this.tableClient.BirthdayColumn);
  4530. }
  4531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4533. public void SetBirthdayNull() {
  4534. this[this.tableClient.BirthdayColumn] = global::System.Convert.DBNull;
  4535. }
  4536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4538. public bool IsEmailNull() {
  4539. return this.IsNull(this.tableClient.EmailColumn);
  4540. }
  4541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4543. public void SetEmailNull() {
  4544. this[this.tableClient.EmailColumn] = global::System.Convert.DBNull;
  4545. }
  4546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4548. public bool IsPhotoPathNull() {
  4549. return this.IsNull(this.tableClient.PhotoPathColumn);
  4550. }
  4551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4553. public void SetPhotoPathNull() {
  4554. this[this.tableClient.PhotoPathColumn] = global::System.Convert.DBNull;
  4555. }
  4556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4558. public ClientServiceRow[] GetClientServiceRows() {
  4559. if ((this.Table.ChildRelations["FK_ClientService_Client"] == null)) {
  4560. return new ClientServiceRow[0];
  4561. }
  4562. else {
  4563. return ((ClientServiceRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ClientService_Client"])));
  4564. }
  4565. }
  4566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4568. public TagOfClientRow[] GetTagOfClientRows() {
  4569. if ((this.Table.ChildRelations["FK_TagOfClient_Client"] == null)) {
  4570. return new TagOfClientRow[0];
  4571. }
  4572. else {
  4573. return ((TagOfClientRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TagOfClient_Client"])));
  4574. }
  4575. }
  4576. }
  4577. /// <summary>
  4578. ///Represents strongly named DataRow class.
  4579. ///</summary>
  4580. public partial class ClientServiceRow : global::System.Data.DataRow {
  4581. private ClientServiceDataTable tableClientService;
  4582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4584. internal ClientServiceRow(global::System.Data.DataRowBuilder rb) :
  4585. base(rb) {
  4586. this.tableClientService = ((ClientServiceDataTable)(this.Table));
  4587. }
  4588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4590. public int ID {
  4591. get {
  4592. return ((int)(this[this.tableClientService.IDColumn]));
  4593. }
  4594. set {
  4595. this[this.tableClientService.IDColumn] = value;
  4596. }
  4597. }
  4598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4600. public int ClientID {
  4601. get {
  4602. return ((int)(this[this.tableClientService.ClientIDColumn]));
  4603. }
  4604. set {
  4605. this[this.tableClientService.ClientIDColumn] = value;
  4606. }
  4607. }
  4608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4610. public int ServiceID {
  4611. get {
  4612. return ((int)(this[this.tableClientService.ServiceIDColumn]));
  4613. }
  4614. set {
  4615. this[this.tableClientService.ServiceIDColumn] = value;
  4616. }
  4617. }
  4618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4620. public System.DateTime StartTime {
  4621. get {
  4622. return ((global::System.DateTime)(this[this.tableClientService.StartTimeColumn]));
  4623. }
  4624. set {
  4625. this[this.tableClientService.StartTimeColumn] = value;
  4626. }
  4627. }
  4628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4630. public string Comment {
  4631. get {
  4632. try {
  4633. return ((string)(this[this.tableClientService.CommentColumn]));
  4634. }
  4635. catch (global::System.InvalidCastException e) {
  4636. throw new global::System.Data.StrongTypingException("Значение для столбца \'Comment\' в таблице \'ClientService\' равно DBNull.", e);
  4637. }
  4638. }
  4639. set {
  4640. this[this.tableClientService.CommentColumn] = value;
  4641. }
  4642. }
  4643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4645. public ClientRow ClientRow {
  4646. get {
  4647. return ((ClientRow)(this.GetParentRow(this.Table.ParentRelations["FK_ClientService_Client"])));
  4648. }
  4649. set {
  4650. this.SetParentRow(value, this.Table.ParentRelations["FK_ClientService_Client"]);
  4651. }
  4652. }
  4653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4655. public ServiceRow ServiceRow {
  4656. get {
  4657. return ((ServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_ClientService_Service"])));
  4658. }
  4659. set {
  4660. this.SetParentRow(value, this.Table.ParentRelations["FK_ClientService_Service"]);
  4661. }
  4662. }
  4663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4665. public bool IsCommentNull() {
  4666. return this.IsNull(this.tableClientService.CommentColumn);
  4667. }
  4668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4670. public void SetCommentNull() {
  4671. this[this.tableClientService.CommentColumn] = global::System.Convert.DBNull;
  4672. }
  4673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4675. public DocumentByServiceRow[] GetDocumentByServiceRows() {
  4676. if ((this.Table.ChildRelations["FK_DocumentByService_ClientService"] == null)) {
  4677. return new DocumentByServiceRow[0];
  4678. }
  4679. else {
  4680. return ((DocumentByServiceRow[])(base.GetChildRows(this.Table.ChildRelations["FK_DocumentByService_ClientService"])));
  4681. }
  4682. }
  4683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4685. public ProductSaleRow[] GetProductSaleRows() {
  4686. if ((this.Table.ChildRelations["FK_ProductSale_ClientService"] == null)) {
  4687. return new ProductSaleRow[0];
  4688. }
  4689. else {
  4690. return ((ProductSaleRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductSale_ClientService"])));
  4691. }
  4692. }
  4693. }
  4694. /// <summary>
  4695. ///Represents strongly named DataRow class.
  4696. ///</summary>
  4697. public partial class DocumentByServiceRow : global::System.Data.DataRow {
  4698. private DocumentByServiceDataTable tableDocumentByService;
  4699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4701. internal DocumentByServiceRow(global::System.Data.DataRowBuilder rb) :
  4702. base(rb) {
  4703. this.tableDocumentByService = ((DocumentByServiceDataTable)(this.Table));
  4704. }
  4705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4707. public int ID {
  4708. get {
  4709. return ((int)(this[this.tableDocumentByService.IDColumn]));
  4710. }
  4711. set {
  4712. this[this.tableDocumentByService.IDColumn] = value;
  4713. }
  4714. }
  4715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4717. public int ClientServiceID {
  4718. get {
  4719. return ((int)(this[this.tableDocumentByService.ClientServiceIDColumn]));
  4720. }
  4721. set {
  4722. this[this.tableDocumentByService.ClientServiceIDColumn] = value;
  4723. }
  4724. }
  4725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4727. public string DocumentPath {
  4728. get {
  4729. return ((string)(this[this.tableDocumentByService.DocumentPathColumn]));
  4730. }
  4731. set {
  4732. this[this.tableDocumentByService.DocumentPathColumn] = value;
  4733. }
  4734. }
  4735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4737. public ClientServiceRow ClientServiceRow {
  4738. get {
  4739. return ((ClientServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_DocumentByService_ClientService"])));
  4740. }
  4741. set {
  4742. this.SetParentRow(value, this.Table.ParentRelations["FK_DocumentByService_ClientService"]);
  4743. }
  4744. }
  4745. }
  4746. /// <summary>
  4747. ///Represents strongly named DataRow class.
  4748. ///</summary>
  4749. public partial class GenderRow : global::System.Data.DataRow {
  4750. private GenderDataTable tableGender;
  4751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4753. internal GenderRow(global::System.Data.DataRowBuilder rb) :
  4754. base(rb) {
  4755. this.tableGender = ((GenderDataTable)(this.Table));
  4756. }
  4757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4759. public string Code {
  4760. get {
  4761. return ((string)(this[this.tableGender.CodeColumn]));
  4762. }
  4763. set {
  4764. this[this.tableGender.CodeColumn] = value;
  4765. }
  4766. }
  4767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4769. public string Name {
  4770. get {
  4771. try {
  4772. return ((string)(this[this.tableGender.NameColumn]));
  4773. }
  4774. catch (global::System.InvalidCastException e) {
  4775. throw new global::System.Data.StrongTypingException("Значение для столбца \'Name\' в таблице \'Gender\' равно DBNull.", e);
  4776. }
  4777. }
  4778. set {
  4779. this[this.tableGender.NameColumn] = value;
  4780. }
  4781. }
  4782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4784. public bool IsNameNull() {
  4785. return this.IsNull(this.tableGender.NameColumn);
  4786. }
  4787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4788. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4789. public void SetNameNull() {
  4790. this[this.tableGender.NameColumn] = global::System.Convert.DBNull;
  4791. }
  4792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4794. public ClientRow[] GetClientRows() {
  4795. if ((this.Table.ChildRelations["FK_Client_Gender"] == null)) {
  4796. return new ClientRow[0];
  4797. }
  4798. else {
  4799. return ((ClientRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Client_Gender"])));
  4800. }
  4801. }
  4802. }
  4803. /// <summary>
  4804. ///Represents strongly named DataRow class.
  4805. ///</summary>
  4806. public partial class ManufacturerRow : global::System.Data.DataRow {
  4807. private ManufacturerDataTable tableManufacturer;
  4808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4810. internal ManufacturerRow(global::System.Data.DataRowBuilder rb) :
  4811. base(rb) {
  4812. this.tableManufacturer = ((ManufacturerDataTable)(this.Table));
  4813. }
  4814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4816. public int ID {
  4817. get {
  4818. return ((int)(this[this.tableManufacturer.IDColumn]));
  4819. }
  4820. set {
  4821. this[this.tableManufacturer.IDColumn] = value;
  4822. }
  4823. }
  4824. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4825. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4826. public string Name {
  4827. get {
  4828. return ((string)(this[this.tableManufacturer.NameColumn]));
  4829. }
  4830. set {
  4831. this[this.tableManufacturer.NameColumn] = value;
  4832. }
  4833. }
  4834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4836. public System.DateTime StartDate {
  4837. get {
  4838. try {
  4839. return ((global::System.DateTime)(this[this.tableManufacturer.StartDateColumn]));
  4840. }
  4841. catch (global::System.InvalidCastException e) {
  4842. throw new global::System.Data.StrongTypingException("Значение для столбца \'StartDate\' в таблице \'Manufacturer\' равно DBNull.", e);
  4843. }
  4844. }
  4845. set {
  4846. this[this.tableManufacturer.StartDateColumn] = value;
  4847. }
  4848. }
  4849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4851. public bool IsStartDateNull() {
  4852. return this.IsNull(this.tableManufacturer.StartDateColumn);
  4853. }
  4854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4856. public void SetStartDateNull() {
  4857. this[this.tableManufacturer.StartDateColumn] = global::System.Convert.DBNull;
  4858. }
  4859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4861. public ProductRow[] GetProductRows() {
  4862. if ((this.Table.ChildRelations["FK_Product_Manufacturer"] == null)) {
  4863. return new ProductRow[0];
  4864. }
  4865. else {
  4866. return ((ProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Product_Manufacturer"])));
  4867. }
  4868. }
  4869. }
  4870. /// <summary>
  4871. ///Represents strongly named DataRow class.
  4872. ///</summary>
  4873. public partial class ProductRow : global::System.Data.DataRow {
  4874. private ProductDataTable tableProduct;
  4875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4877. internal ProductRow(global::System.Data.DataRowBuilder rb) :
  4878. base(rb) {
  4879. this.tableProduct = ((ProductDataTable)(this.Table));
  4880. }
  4881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4883. public int ID {
  4884. get {
  4885. return ((int)(this[this.tableProduct.IDColumn]));
  4886. }
  4887. set {
  4888. this[this.tableProduct.IDColumn] = value;
  4889. }
  4890. }
  4891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4893. public string Title {
  4894. get {
  4895. return ((string)(this[this.tableProduct.TitleColumn]));
  4896. }
  4897. set {
  4898. this[this.tableProduct.TitleColumn] = value;
  4899. }
  4900. }
  4901. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4902. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4903. public decimal Cost {
  4904. get {
  4905. return ((decimal)(this[this.tableProduct.CostColumn]));
  4906. }
  4907. set {
  4908. this[this.tableProduct.CostColumn] = value;
  4909. }
  4910. }
  4911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4913. public string Description {
  4914. get {
  4915. try {
  4916. return ((string)(this[this.tableProduct.DescriptionColumn]));
  4917. }
  4918. catch (global::System.InvalidCastException e) {
  4919. throw new global::System.Data.StrongTypingException("Значение для столбца \'Description\' в таблице \'Product\' равно DBNull.", e);
  4920. }
  4921. }
  4922. set {
  4923. this[this.tableProduct.DescriptionColumn] = value;
  4924. }
  4925. }
  4926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4928. public byte[] MainImagePath {
  4929. get {
  4930. try {
  4931. return ((byte[])(this[this.tableProduct.MainImagePathColumn]));
  4932. }
  4933. catch (global::System.InvalidCastException e) {
  4934. throw new global::System.Data.StrongTypingException("Значение для столбца \'MainImagePath\' в таблице \'Product\' равно DBNull.", e);
  4935. }
  4936. }
  4937. set {
  4938. this[this.tableProduct.MainImagePathColumn] = value;
  4939. }
  4940. }
  4941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4942. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4943. public bool IsActive {
  4944. get {
  4945. return ((bool)(this[this.tableProduct.IsActiveColumn]));
  4946. }
  4947. set {
  4948. this[this.tableProduct.IsActiveColumn] = value;
  4949. }
  4950. }
  4951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4952. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4953. public int ManufacturerID {
  4954. get {
  4955. try {
  4956. return ((int)(this[this.tableProduct.ManufacturerIDColumn]));
  4957. }
  4958. catch (global::System.InvalidCastException e) {
  4959. throw new global::System.Data.StrongTypingException("Значение для столбца \'ManufacturerID\' в таблице \'Product\' равно DBNull.", e);
  4960. }
  4961. }
  4962. set {
  4963. this[this.tableProduct.ManufacturerIDColumn] = value;
  4964. }
  4965. }
  4966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4968. public ManufacturerRow ManufacturerRow {
  4969. get {
  4970. return ((ManufacturerRow)(this.GetParentRow(this.Table.ParentRelations["FK_Product_Manufacturer"])));
  4971. }
  4972. set {
  4973. this.SetParentRow(value, this.Table.ParentRelations["FK_Product_Manufacturer"]);
  4974. }
  4975. }
  4976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4978. public bool IsDescriptionNull() {
  4979. return this.IsNull(this.tableProduct.DescriptionColumn);
  4980. }
  4981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4982. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4983. public void SetDescriptionNull() {
  4984. this[this.tableProduct.DescriptionColumn] = global::System.Convert.DBNull;
  4985. }
  4986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4987. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4988. public bool IsMainImagePathNull() {
  4989. return this.IsNull(this.tableProduct.MainImagePathColumn);
  4990. }
  4991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4993. public void SetMainImagePathNull() {
  4994. this[this.tableProduct.MainImagePathColumn] = global::System.Convert.DBNull;
  4995. }
  4996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4998. public bool IsManufacturerIDNull() {
  4999. return this.IsNull(this.tableProduct.ManufacturerIDColumn);
  5000. }
  5001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5003. public void SetManufacturerIDNull() {
  5004. this[this.tableProduct.ManufacturerIDColumn] = global::System.Convert.DBNull;
  5005. }
  5006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5008. public AttachedProductRow[] GetAttachedProductRowsByFK_AttachedProduct_Product() {
  5009. if ((this.Table.ChildRelations["FK_AttachedProduct_Product"] == null)) {
  5010. return new AttachedProductRow[0];
  5011. }
  5012. else {
  5013. return ((AttachedProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AttachedProduct_Product"])));
  5014. }
  5015. }
  5016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5018. public AttachedProductRow[] GetAttachedProductRowsByFK_AttachedProduct_Product1() {
  5019. if ((this.Table.ChildRelations["FK_AttachedProduct_Product1"] == null)) {
  5020. return new AttachedProductRow[0];
  5021. }
  5022. else {
  5023. return ((AttachedProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AttachedProduct_Product1"])));
  5024. }
  5025. }
  5026. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5027. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5028. public ProductPhotoRow[] GetProductPhotoRows() {
  5029. if ((this.Table.ChildRelations["FK_ProductPhoto_Product"] == null)) {
  5030. return new ProductPhotoRow[0];
  5031. }
  5032. else {
  5033. return ((ProductPhotoRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductPhoto_Product"])));
  5034. }
  5035. }
  5036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5038. public ProductSaleRow[] GetProductSaleRows() {
  5039. if ((this.Table.ChildRelations["FK_ProductSale_Product"] == null)) {
  5040. return new ProductSaleRow[0];
  5041. }
  5042. else {
  5043. return ((ProductSaleRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductSale_Product"])));
  5044. }
  5045. }
  5046. }
  5047. /// <summary>
  5048. ///Represents strongly named DataRow class.
  5049. ///</summary>
  5050. public partial class ProductPhotoRow : global::System.Data.DataRow {
  5051. private ProductPhotoDataTable tableProductPhoto;
  5052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5054. internal ProductPhotoRow(global::System.Data.DataRowBuilder rb) :
  5055. base(rb) {
  5056. this.tableProductPhoto = ((ProductPhotoDataTable)(this.Table));
  5057. }
  5058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5060. public int ID {
  5061. get {
  5062. return ((int)(this[this.tableProductPhoto.IDColumn]));
  5063. }
  5064. set {
  5065. this[this.tableProductPhoto.IDColumn] = value;
  5066. }
  5067. }
  5068. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5069. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5070. public int ProductID {
  5071. get {
  5072. return ((int)(this[this.tableProductPhoto.ProductIDColumn]));
  5073. }
  5074. set {
  5075. this[this.tableProductPhoto.ProductIDColumn] = value;
  5076. }
  5077. }
  5078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5080. public string PhotoPath {
  5081. get {
  5082. return ((string)(this[this.tableProductPhoto.PhotoPathColumn]));
  5083. }
  5084. set {
  5085. this[this.tableProductPhoto.PhotoPathColumn] = value;
  5086. }
  5087. }
  5088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5090. public ProductRow ProductRow {
  5091. get {
  5092. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductPhoto_Product"])));
  5093. }
  5094. set {
  5095. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductPhoto_Product"]);
  5096. }
  5097. }
  5098. }
  5099. /// <summary>
  5100. ///Represents strongly named DataRow class.
  5101. ///</summary>
  5102. public partial class ProductSaleRow : global::System.Data.DataRow {
  5103. private ProductSaleDataTable tableProductSale;
  5104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5106. internal ProductSaleRow(global::System.Data.DataRowBuilder rb) :
  5107. base(rb) {
  5108. this.tableProductSale = ((ProductSaleDataTable)(this.Table));
  5109. }
  5110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5112. public int ID {
  5113. get {
  5114. return ((int)(this[this.tableProductSale.IDColumn]));
  5115. }
  5116. set {
  5117. this[this.tableProductSale.IDColumn] = value;
  5118. }
  5119. }
  5120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5122. public System.DateTime SaleDate {
  5123. get {
  5124. return ((global::System.DateTime)(this[this.tableProductSale.SaleDateColumn]));
  5125. }
  5126. set {
  5127. this[this.tableProductSale.SaleDateColumn] = value;
  5128. }
  5129. }
  5130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5132. public int ProductID {
  5133. get {
  5134. return ((int)(this[this.tableProductSale.ProductIDColumn]));
  5135. }
  5136. set {
  5137. this[this.tableProductSale.ProductIDColumn] = value;
  5138. }
  5139. }
  5140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5142. public int Quantity {
  5143. get {
  5144. return ((int)(this[this.tableProductSale.QuantityColumn]));
  5145. }
  5146. set {
  5147. this[this.tableProductSale.QuantityColumn] = value;
  5148. }
  5149. }
  5150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5152. public int ClientServiceID {
  5153. get {
  5154. try {
  5155. return ((int)(this[this.tableProductSale.ClientServiceIDColumn]));
  5156. }
  5157. catch (global::System.InvalidCastException e) {
  5158. throw new global::System.Data.StrongTypingException("Значение для столбца \'ClientServiceID\' в таблице \'ProductSale\' равно DBNull.", e);
  5159. }
  5160. }
  5161. set {
  5162. this[this.tableProductSale.ClientServiceIDColumn] = value;
  5163. }
  5164. }
  5165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5167. public ClientServiceRow ClientServiceRow {
  5168. get {
  5169. return ((ClientServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductSale_ClientService"])));
  5170. }
  5171. set {
  5172. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductSale_ClientService"]);
  5173. }
  5174. }
  5175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5177. public ProductRow ProductRow {
  5178. get {
  5179. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductSale_Product"])));
  5180. }
  5181. set {
  5182. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductSale_Product"]);
  5183. }
  5184. }
  5185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5187. public bool IsClientServiceIDNull() {
  5188. return this.IsNull(this.tableProductSale.ClientServiceIDColumn);
  5189. }
  5190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5191. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5192. public void SetClientServiceIDNull() {
  5193. this[this.tableProductSale.ClientServiceIDColumn] = global::System.Convert.DBNull;
  5194. }
  5195. }
  5196. /// <summary>
  5197. ///Represents strongly named DataRow class.
  5198. ///</summary>
  5199. public partial class ServiceRow : global::System.Data.DataRow {
  5200. private ServiceDataTable tableService;
  5201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5203. internal ServiceRow(global::System.Data.DataRowBuilder rb) :
  5204. base(rb) {
  5205. this.tableService = ((ServiceDataTable)(this.Table));
  5206. }
  5207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5209. public int ID {
  5210. get {
  5211. return ((int)(this[this.tableService.IDColumn]));
  5212. }
  5213. set {
  5214. this[this.tableService.IDColumn] = value;
  5215. }
  5216. }
  5217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5219. public string Title {
  5220. get {
  5221. return ((string)(this[this.tableService.TitleColumn]));
  5222. }
  5223. set {
  5224. this[this.tableService.TitleColumn] = value;
  5225. }
  5226. }
  5227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5229. public decimal Cost {
  5230. get {
  5231. return ((decimal)(this[this.tableService.CostColumn]));
  5232. }
  5233. set {
  5234. this[this.tableService.CostColumn] = value;
  5235. }
  5236. }
  5237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5239. public int DurationInSeconds {
  5240. get {
  5241. return ((int)(this[this.tableService.DurationInSecondsColumn]));
  5242. }
  5243. set {
  5244. this[this.tableService.DurationInSecondsColumn] = value;
  5245. }
  5246. }
  5247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5249. public string Description {
  5250. get {
  5251. try {
  5252. return ((string)(this[this.tableService.DescriptionColumn]));
  5253. }
  5254. catch (global::System.InvalidCastException e) {
  5255. throw new global::System.Data.StrongTypingException("Значение для столбца \'Description\' в таблице \'Service\' равно DBNull.", e);
  5256. }
  5257. }
  5258. set {
  5259. this[this.tableService.DescriptionColumn] = value;
  5260. }
  5261. }
  5262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5264. public double Discount {
  5265. get {
  5266. try {
  5267. return ((double)(this[this.tableService.DiscountColumn]));
  5268. }
  5269. catch (global::System.InvalidCastException e) {
  5270. throw new global::System.Data.StrongTypingException("Значение для столбца \'Discount\' в таблице \'Service\' равно DBNull.", e);
  5271. }
  5272. }
  5273. set {
  5274. this[this.tableService.DiscountColumn] = value;
  5275. }
  5276. }
  5277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5279. public string MainImagePath {
  5280. get {
  5281. try {
  5282. return ((string)(this[this.tableService.MainImagePathColumn]));
  5283. }
  5284. catch (global::System.InvalidCastException e) {
  5285. throw new global::System.Data.StrongTypingException("Значение для столбца \'MainImagePath\' в таблице \'Service\' равно DBNull.", e);
  5286. }
  5287. }
  5288. set {
  5289. this[this.tableService.MainImagePathColumn] = value;
  5290. }
  5291. }
  5292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5294. public bool IsDescriptionNull() {
  5295. return this.IsNull(this.tableService.DescriptionColumn);
  5296. }
  5297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5299. public void SetDescriptionNull() {
  5300. this[this.tableService.DescriptionColumn] = global::System.Convert.DBNull;
  5301. }
  5302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5304. public bool IsDiscountNull() {
  5305. return this.IsNull(this.tableService.DiscountColumn);
  5306. }
  5307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5309. public void SetDiscountNull() {
  5310. this[this.tableService.DiscountColumn] = global::System.Convert.DBNull;
  5311. }
  5312. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5313. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5314. public bool IsMainImagePathNull() {
  5315. return this.IsNull(this.tableService.MainImagePathColumn);
  5316. }
  5317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5319. public void SetMainImagePathNull() {
  5320. this[this.tableService.MainImagePathColumn] = global::System.Convert.DBNull;
  5321. }
  5322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5324. public ClientServiceRow[] GetClientServiceRows() {
  5325. if ((this.Table.ChildRelations["FK_ClientService_Service"] == null)) {
  5326. return new ClientServiceRow[0];
  5327. }
  5328. else {
  5329. return ((ClientServiceRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ClientService_Service"])));
  5330. }
  5331. }
  5332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5334. public ServicePhotoRow[] GetServicePhotoRows() {
  5335. if ((this.Table.ChildRelations["FK_ServicePhoto_Service"] == null)) {
  5336. return new ServicePhotoRow[0];
  5337. }
  5338. else {
  5339. return ((ServicePhotoRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ServicePhoto_Service"])));
  5340. }
  5341. }
  5342. }
  5343. /// <summary>
  5344. ///Represents strongly named DataRow class.
  5345. ///</summary>
  5346. public partial class ServicePhotoRow : global::System.Data.DataRow {
  5347. private ServicePhotoDataTable tableServicePhoto;
  5348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5349. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5350. internal ServicePhotoRow(global::System.Data.DataRowBuilder rb) :
  5351. base(rb) {
  5352. this.tableServicePhoto = ((ServicePhotoDataTable)(this.Table));
  5353. }
  5354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5355. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5356. public int ID {
  5357. get {
  5358. return ((int)(this[this.tableServicePhoto.IDColumn]));
  5359. }
  5360. set {
  5361. this[this.tableServicePhoto.IDColumn] = value;
  5362. }
  5363. }
  5364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5366. public int ServiceID {
  5367. get {
  5368. return ((int)(this[this.tableServicePhoto.ServiceIDColumn]));
  5369. }
  5370. set {
  5371. this[this.tableServicePhoto.ServiceIDColumn] = value;
  5372. }
  5373. }
  5374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5376. public string PhotoPath {
  5377. get {
  5378. return ((string)(this[this.tableServicePhoto.PhotoPathColumn]));
  5379. }
  5380. set {
  5381. this[this.tableServicePhoto.PhotoPathColumn] = value;
  5382. }
  5383. }
  5384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5386. public ServiceRow ServiceRow {
  5387. get {
  5388. return ((ServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_ServicePhoto_Service"])));
  5389. }
  5390. set {
  5391. this.SetParentRow(value, this.Table.ParentRelations["FK_ServicePhoto_Service"]);
  5392. }
  5393. }
  5394. }
  5395. /// <summary>
  5396. ///Represents strongly named DataRow class.
  5397. ///</summary>
  5398. public partial class TagRow : global::System.Data.DataRow {
  5399. private TagDataTable tableTag;
  5400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5402. internal TagRow(global::System.Data.DataRowBuilder rb) :
  5403. base(rb) {
  5404. this.tableTag = ((TagDataTable)(this.Table));
  5405. }
  5406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5408. public int ID {
  5409. get {
  5410. return ((int)(this[this.tableTag.IDColumn]));
  5411. }
  5412. set {
  5413. this[this.tableTag.IDColumn] = value;
  5414. }
  5415. }
  5416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5418. public string Title {
  5419. get {
  5420. return ((string)(this[this.tableTag.TitleColumn]));
  5421. }
  5422. set {
  5423. this[this.tableTag.TitleColumn] = value;
  5424. }
  5425. }
  5426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5428. public string Color {
  5429. get {
  5430. return ((string)(this[this.tableTag.ColorColumn]));
  5431. }
  5432. set {
  5433. this[this.tableTag.ColorColumn] = value;
  5434. }
  5435. }
  5436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5438. public TagOfClientRow[] GetTagOfClientRows() {
  5439. if ((this.Table.ChildRelations["FK_TagOfClient_Tag"] == null)) {
  5440. return new TagOfClientRow[0];
  5441. }
  5442. else {
  5443. return ((TagOfClientRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TagOfClient_Tag"])));
  5444. }
  5445. }
  5446. }
  5447. /// <summary>
  5448. ///Represents strongly named DataRow class.
  5449. ///</summary>
  5450. public partial class TagOfClientRow : global::System.Data.DataRow {
  5451. private TagOfClientDataTable tableTagOfClient;
  5452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5454. internal TagOfClientRow(global::System.Data.DataRowBuilder rb) :
  5455. base(rb) {
  5456. this.tableTagOfClient = ((TagOfClientDataTable)(this.Table));
  5457. }
  5458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5459. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5460. public int ClientID {
  5461. get {
  5462. return ((int)(this[this.tableTagOfClient.ClientIDColumn]));
  5463. }
  5464. set {
  5465. this[this.tableTagOfClient.ClientIDColumn] = value;
  5466. }
  5467. }
  5468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5470. public int TagID {
  5471. get {
  5472. return ((int)(this[this.tableTagOfClient.TagIDColumn]));
  5473. }
  5474. set {
  5475. this[this.tableTagOfClient.TagIDColumn] = value;
  5476. }
  5477. }
  5478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5479. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5480. public ClientRow ClientRow {
  5481. get {
  5482. return ((ClientRow)(this.GetParentRow(this.Table.ParentRelations["FK_TagOfClient_Client"])));
  5483. }
  5484. set {
  5485. this.SetParentRow(value, this.Table.ParentRelations["FK_TagOfClient_Client"]);
  5486. }
  5487. }
  5488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5490. public TagRow TagRow {
  5491. get {
  5492. return ((TagRow)(this.GetParentRow(this.Table.ParentRelations["FK_TagOfClient_Tag"])));
  5493. }
  5494. set {
  5495. this.SetParentRow(value, this.Table.ParentRelations["FK_TagOfClient_Tag"]);
  5496. }
  5497. }
  5498. }
  5499. /// <summary>
  5500. ///Row event argument class
  5501. ///</summary>
  5502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5503. public class AttachedProductRowChangeEvent : global::System.EventArgs {
  5504. private AttachedProductRow eventRow;
  5505. private global::System.Data.DataRowAction eventAction;
  5506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5508. public AttachedProductRowChangeEvent(AttachedProductRow row, global::System.Data.DataRowAction action) {
  5509. this.eventRow = row;
  5510. this.eventAction = action;
  5511. }
  5512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5514. public AttachedProductRow Row {
  5515. get {
  5516. return this.eventRow;
  5517. }
  5518. }
  5519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5521. public global::System.Data.DataRowAction Action {
  5522. get {
  5523. return this.eventAction;
  5524. }
  5525. }
  5526. }
  5527. /// <summary>
  5528. ///Row event argument class
  5529. ///</summary>
  5530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5531. public class ClientRowChangeEvent : global::System.EventArgs {
  5532. private ClientRow eventRow;
  5533. private global::System.Data.DataRowAction eventAction;
  5534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5536. public ClientRowChangeEvent(ClientRow row, global::System.Data.DataRowAction action) {
  5537. this.eventRow = row;
  5538. this.eventAction = action;
  5539. }
  5540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5542. public ClientRow Row {
  5543. get {
  5544. return this.eventRow;
  5545. }
  5546. }
  5547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5549. public global::System.Data.DataRowAction Action {
  5550. get {
  5551. return this.eventAction;
  5552. }
  5553. }
  5554. }
  5555. /// <summary>
  5556. ///Row event argument class
  5557. ///</summary>
  5558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5559. public class ClientServiceRowChangeEvent : global::System.EventArgs {
  5560. private ClientServiceRow eventRow;
  5561. private global::System.Data.DataRowAction eventAction;
  5562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5564. public ClientServiceRowChangeEvent(ClientServiceRow row, global::System.Data.DataRowAction action) {
  5565. this.eventRow = row;
  5566. this.eventAction = action;
  5567. }
  5568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5570. public ClientServiceRow Row {
  5571. get {
  5572. return this.eventRow;
  5573. }
  5574. }
  5575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5577. public global::System.Data.DataRowAction Action {
  5578. get {
  5579. return this.eventAction;
  5580. }
  5581. }
  5582. }
  5583. /// <summary>
  5584. ///Row event argument class
  5585. ///</summary>
  5586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5587. public class DocumentByServiceRowChangeEvent : global::System.EventArgs {
  5588. private DocumentByServiceRow eventRow;
  5589. private global::System.Data.DataRowAction eventAction;
  5590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5592. public DocumentByServiceRowChangeEvent(DocumentByServiceRow row, global::System.Data.DataRowAction action) {
  5593. this.eventRow = row;
  5594. this.eventAction = action;
  5595. }
  5596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5598. public DocumentByServiceRow Row {
  5599. get {
  5600. return this.eventRow;
  5601. }
  5602. }
  5603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5605. public global::System.Data.DataRowAction Action {
  5606. get {
  5607. return this.eventAction;
  5608. }
  5609. }
  5610. }
  5611. /// <summary>
  5612. ///Row event argument class
  5613. ///</summary>
  5614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5615. public class GenderRowChangeEvent : global::System.EventArgs {
  5616. private GenderRow eventRow;
  5617. private global::System.Data.DataRowAction eventAction;
  5618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5620. public GenderRowChangeEvent(GenderRow row, global::System.Data.DataRowAction action) {
  5621. this.eventRow = row;
  5622. this.eventAction = action;
  5623. }
  5624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5626. public GenderRow Row {
  5627. get {
  5628. return this.eventRow;
  5629. }
  5630. }
  5631. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5633. public global::System.Data.DataRowAction Action {
  5634. get {
  5635. return this.eventAction;
  5636. }
  5637. }
  5638. }
  5639. /// <summary>
  5640. ///Row event argument class
  5641. ///</summary>
  5642. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5643. public class ManufacturerRowChangeEvent : global::System.EventArgs {
  5644. private ManufacturerRow eventRow;
  5645. private global::System.Data.DataRowAction eventAction;
  5646. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5648. public ManufacturerRowChangeEvent(ManufacturerRow row, global::System.Data.DataRowAction action) {
  5649. this.eventRow = row;
  5650. this.eventAction = action;
  5651. }
  5652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5654. public ManufacturerRow Row {
  5655. get {
  5656. return this.eventRow;
  5657. }
  5658. }
  5659. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5660. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5661. public global::System.Data.DataRowAction Action {
  5662. get {
  5663. return this.eventAction;
  5664. }
  5665. }
  5666. }
  5667. /// <summary>
  5668. ///Row event argument class
  5669. ///</summary>
  5670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5671. public class ProductRowChangeEvent : global::System.EventArgs {
  5672. private ProductRow eventRow;
  5673. private global::System.Data.DataRowAction eventAction;
  5674. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5676. public ProductRowChangeEvent(ProductRow row, global::System.Data.DataRowAction action) {
  5677. this.eventRow = row;
  5678. this.eventAction = action;
  5679. }
  5680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5682. public ProductRow Row {
  5683. get {
  5684. return this.eventRow;
  5685. }
  5686. }
  5687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5689. public global::System.Data.DataRowAction Action {
  5690. get {
  5691. return this.eventAction;
  5692. }
  5693. }
  5694. }
  5695. /// <summary>
  5696. ///Row event argument class
  5697. ///</summary>
  5698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5699. public class ProductPhotoRowChangeEvent : global::System.EventArgs {
  5700. private ProductPhotoRow eventRow;
  5701. private global::System.Data.DataRowAction eventAction;
  5702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5703. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5704. public ProductPhotoRowChangeEvent(ProductPhotoRow row, global::System.Data.DataRowAction action) {
  5705. this.eventRow = row;
  5706. this.eventAction = action;
  5707. }
  5708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5710. public ProductPhotoRow Row {
  5711. get {
  5712. return this.eventRow;
  5713. }
  5714. }
  5715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5717. public global::System.Data.DataRowAction Action {
  5718. get {
  5719. return this.eventAction;
  5720. }
  5721. }
  5722. }
  5723. /// <summary>
  5724. ///Row event argument class
  5725. ///</summary>
  5726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5727. public class ProductSaleRowChangeEvent : global::System.EventArgs {
  5728. private ProductSaleRow eventRow;
  5729. private global::System.Data.DataRowAction eventAction;
  5730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5732. public ProductSaleRowChangeEvent(ProductSaleRow row, global::System.Data.DataRowAction action) {
  5733. this.eventRow = row;
  5734. this.eventAction = action;
  5735. }
  5736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5738. public ProductSaleRow Row {
  5739. get {
  5740. return this.eventRow;
  5741. }
  5742. }
  5743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5745. public global::System.Data.DataRowAction Action {
  5746. get {
  5747. return this.eventAction;
  5748. }
  5749. }
  5750. }
  5751. /// <summary>
  5752. ///Row event argument class
  5753. ///</summary>
  5754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5755. public class ServiceRowChangeEvent : global::System.EventArgs {
  5756. private ServiceRow eventRow;
  5757. private global::System.Data.DataRowAction eventAction;
  5758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5760. public ServiceRowChangeEvent(ServiceRow row, global::System.Data.DataRowAction action) {
  5761. this.eventRow = row;
  5762. this.eventAction = action;
  5763. }
  5764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5766. public ServiceRow Row {
  5767. get {
  5768. return this.eventRow;
  5769. }
  5770. }
  5771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5773. public global::System.Data.DataRowAction Action {
  5774. get {
  5775. return this.eventAction;
  5776. }
  5777. }
  5778. }
  5779. /// <summary>
  5780. ///Row event argument class
  5781. ///</summary>
  5782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5783. public class ServicePhotoRowChangeEvent : global::System.EventArgs {
  5784. private ServicePhotoRow eventRow;
  5785. private global::System.Data.DataRowAction eventAction;
  5786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5788. public ServicePhotoRowChangeEvent(ServicePhotoRow row, global::System.Data.DataRowAction action) {
  5789. this.eventRow = row;
  5790. this.eventAction = action;
  5791. }
  5792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5794. public ServicePhotoRow Row {
  5795. get {
  5796. return this.eventRow;
  5797. }
  5798. }
  5799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5801. public global::System.Data.DataRowAction Action {
  5802. get {
  5803. return this.eventAction;
  5804. }
  5805. }
  5806. }
  5807. /// <summary>
  5808. ///Row event argument class
  5809. ///</summary>
  5810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5811. public class TagRowChangeEvent : global::System.EventArgs {
  5812. private TagRow eventRow;
  5813. private global::System.Data.DataRowAction eventAction;
  5814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5816. public TagRowChangeEvent(TagRow row, global::System.Data.DataRowAction action) {
  5817. this.eventRow = row;
  5818. this.eventAction = action;
  5819. }
  5820. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5821. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5822. public TagRow Row {
  5823. get {
  5824. return this.eventRow;
  5825. }
  5826. }
  5827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5829. public global::System.Data.DataRowAction Action {
  5830. get {
  5831. return this.eventAction;
  5832. }
  5833. }
  5834. }
  5835. /// <summary>
  5836. ///Row event argument class
  5837. ///</summary>
  5838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5839. public class TagOfClientRowChangeEvent : global::System.EventArgs {
  5840. private TagOfClientRow eventRow;
  5841. private global::System.Data.DataRowAction eventAction;
  5842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5844. public TagOfClientRowChangeEvent(TagOfClientRow row, global::System.Data.DataRowAction action) {
  5845. this.eventRow = row;
  5846. this.eventAction = action;
  5847. }
  5848. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5849. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5850. public TagOfClientRow Row {
  5851. get {
  5852. return this.eventRow;
  5853. }
  5854. }
  5855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5857. public global::System.Data.DataRowAction Action {
  5858. get {
  5859. return this.eventAction;
  5860. }
  5861. }
  5862. }
  5863. }
  5864. }
  5865. namespace Brovi11._1Brovi11DataSetTableAdapters {
  5866. /// <summary>
  5867. ///Represents the connection and commands used to retrieve and save data.
  5868. ///</summary>
  5869. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5870. [global::System.ComponentModel.ToolboxItem(true)]
  5871. [global::System.ComponentModel.DataObjectAttribute(true)]
  5872. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5873. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5874. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5875. public partial class AttachedProductTableAdapter : global::System.ComponentModel.Component {
  5876. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5877. private global::System.Data.SqlClient.SqlConnection _connection;
  5878. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5879. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5880. private bool _clearBeforeFill;
  5881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5883. public AttachedProductTableAdapter() {
  5884. this.ClearBeforeFill = true;
  5885. }
  5886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5888. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5889. get {
  5890. if ((this._adapter == null)) {
  5891. this.InitAdapter();
  5892. }
  5893. return this._adapter;
  5894. }
  5895. }
  5896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5898. internal global::System.Data.SqlClient.SqlConnection Connection {
  5899. get {
  5900. if ((this._connection == null)) {
  5901. this.InitConnection();
  5902. }
  5903. return this._connection;
  5904. }
  5905. set {
  5906. this._connection = value;
  5907. if ((this.Adapter.InsertCommand != null)) {
  5908. this.Adapter.InsertCommand.Connection = value;
  5909. }
  5910. if ((this.Adapter.DeleteCommand != null)) {
  5911. this.Adapter.DeleteCommand.Connection = value;
  5912. }
  5913. if ((this.Adapter.UpdateCommand != null)) {
  5914. this.Adapter.UpdateCommand.Connection = value;
  5915. }
  5916. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5917. if ((this.CommandCollection[i] != null)) {
  5918. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5919. }
  5920. }
  5921. }
  5922. }
  5923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5925. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5926. get {
  5927. return this._transaction;
  5928. }
  5929. set {
  5930. this._transaction = value;
  5931. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5932. this.CommandCollection[i].Transaction = this._transaction;
  5933. }
  5934. if (((this.Adapter != null)
  5935. && (this.Adapter.DeleteCommand != null))) {
  5936. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5937. }
  5938. if (((this.Adapter != null)
  5939. && (this.Adapter.InsertCommand != null))) {
  5940. this.Adapter.InsertCommand.Transaction = this._transaction;
  5941. }
  5942. if (((this.Adapter != null)
  5943. && (this.Adapter.UpdateCommand != null))) {
  5944. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5945. }
  5946. }
  5947. }
  5948. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5949. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5950. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5951. get {
  5952. if ((this._commandCollection == null)) {
  5953. this.InitCommandCollection();
  5954. }
  5955. return this._commandCollection;
  5956. }
  5957. }
  5958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5959. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5960. public bool ClearBeforeFill {
  5961. get {
  5962. return this._clearBeforeFill;
  5963. }
  5964. set {
  5965. this._clearBeforeFill = value;
  5966. }
  5967. }
  5968. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5969. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5970. private void InitAdapter() {
  5971. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5972. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5973. tableMapping.SourceTable = "Table";
  5974. tableMapping.DataSetTable = "AttachedProduct";
  5975. tableMapping.ColumnMappings.Add("MainProductID", "MainProductID");
  5976. tableMapping.ColumnMappings.Add("AttachedProductID", "AttachedProductID");
  5977. this._adapter.TableMappings.Add(tableMapping);
  5978. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5979. this._adapter.DeleteCommand.Connection = this.Connection;
  5980. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[AttachedProduct] WHERE (([MainProductID] = @Original_MainProdu" +
  5981. "ctID) AND ([AttachedProductID] = @Original_AttachedProductID))";
  5982. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5983. 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, "", "", ""));
  5984. 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, "", "", ""));
  5985. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5986. this._adapter.InsertCommand.Connection = this.Connection;
  5987. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[AttachedProduct] ([MainProductID], [AttachedProductID]) VALUES (@MainProductID, @AttachedProductID);
  5988. SELECT MainProductID, AttachedProductID FROM AttachedProduct WHERE (AttachedProductID = @AttachedProductID) AND (MainProductID = @MainProductID)";
  5989. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5990. 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, "", "", ""));
  5991. 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, "", "", ""));
  5992. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5993. this._adapter.UpdateCommand.Connection = this.Connection;
  5994. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AttachedProduct] SET [MainProductID] = @MainProductID, [AttachedProductID] = @AttachedProductID WHERE (([MainProductID] = @Original_MainProductID) AND ([AttachedProductID] = @Original_AttachedProductID));
  5995. SELECT MainProductID, AttachedProductID FROM AttachedProduct WHERE (AttachedProductID = @AttachedProductID) AND (MainProductID = @MainProductID)";
  5996. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5997. 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, "", "", ""));
  5998. 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, "", "", ""));
  5999. 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, "", "", ""));
  6000. 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, "", "", ""));
  6001. }
  6002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6004. private void InitConnection() {
  6005. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6006. this._connection.ConnectionString = global::Brovi11.Properties.Settings.Default._1Brovi11ConnectionString;
  6007. }
  6008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6010. private void InitCommandCollection() {
  6011. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6012. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6013. this._commandCollection[0].Connection = this.Connection;
  6014. this._commandCollection[0].CommandText = "SELECT MainProductID, AttachedProductID FROM dbo.AttachedProduct";
  6015. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6016. }
  6017. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6019. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6020. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6021. public virtual int Fill(_1Brovi11DataSet.AttachedProductDataTable dataTable) {
  6022. this.Adapter.SelectCommand = this.CommandCollection[0];
  6023. if ((this.ClearBeforeFill == true)) {
  6024. dataTable.Clear();
  6025. }
  6026. int returnValue = this.Adapter.Fill(dataTable);
  6027. return returnValue;
  6028. }
  6029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6031. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6032. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6033. public virtual _1Brovi11DataSet.AttachedProductDataTable GetData() {
  6034. this.Adapter.SelectCommand = this.CommandCollection[0];
  6035. _1Brovi11DataSet.AttachedProductDataTable dataTable = new _1Brovi11DataSet.AttachedProductDataTable();
  6036. this.Adapter.Fill(dataTable);
  6037. return dataTable;
  6038. }
  6039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6041. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6042. public virtual int Update(_1Brovi11DataSet.AttachedProductDataTable dataTable) {
  6043. return this.Adapter.Update(dataTable);
  6044. }
  6045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6047. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6048. public virtual int Update(_1Brovi11DataSet dataSet) {
  6049. return this.Adapter.Update(dataSet, "AttachedProduct");
  6050. }
  6051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6053. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6054. public virtual int Update(global::System.Data.DataRow dataRow) {
  6055. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6056. dataRow});
  6057. }
  6058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6060. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6061. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6062. return this.Adapter.Update(dataRows);
  6063. }
  6064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6066. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6067. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6068. public virtual int Delete(int Original_MainProductID, int Original_AttachedProductID) {
  6069. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_MainProductID));
  6070. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_AttachedProductID));
  6071. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6072. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6073. != global::System.Data.ConnectionState.Open)) {
  6074. this.Adapter.DeleteCommand.Connection.Open();
  6075. }
  6076. try {
  6077. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6078. return returnValue;
  6079. }
  6080. finally {
  6081. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6082. this.Adapter.DeleteCommand.Connection.Close();
  6083. }
  6084. }
  6085. }
  6086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6088. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6089. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6090. public virtual int Insert(int MainProductID, int AttachedProductID) {
  6091. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(MainProductID));
  6092. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(AttachedProductID));
  6093. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6094. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6095. != global::System.Data.ConnectionState.Open)) {
  6096. this.Adapter.InsertCommand.Connection.Open();
  6097. }
  6098. try {
  6099. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6100. return returnValue;
  6101. }
  6102. finally {
  6103. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6104. this.Adapter.InsertCommand.Connection.Close();
  6105. }
  6106. }
  6107. }
  6108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6110. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6111. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6112. public virtual int Update(int MainProductID, int AttachedProductID, int Original_MainProductID, int Original_AttachedProductID) {
  6113. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(MainProductID));
  6114. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(AttachedProductID));
  6115. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_MainProductID));
  6116. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_AttachedProductID));
  6117. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6118. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6119. != global::System.Data.ConnectionState.Open)) {
  6120. this.Adapter.UpdateCommand.Connection.Open();
  6121. }
  6122. try {
  6123. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6124. return returnValue;
  6125. }
  6126. finally {
  6127. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6128. this.Adapter.UpdateCommand.Connection.Close();
  6129. }
  6130. }
  6131. }
  6132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6133. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6134. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6135. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6136. public virtual int Update(int Original_MainProductID, int Original_AttachedProductID) {
  6137. return this.Update(Original_MainProductID, Original_AttachedProductID, Original_MainProductID, Original_AttachedProductID);
  6138. }
  6139. }
  6140. /// <summary>
  6141. ///Represents the connection and commands used to retrieve and save data.
  6142. ///</summary>
  6143. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6144. [global::System.ComponentModel.ToolboxItem(true)]
  6145. [global::System.ComponentModel.DataObjectAttribute(true)]
  6146. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6147. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6148. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6149. public partial class ClientTableAdapter : global::System.ComponentModel.Component {
  6150. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6151. private global::System.Data.SqlClient.SqlConnection _connection;
  6152. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6153. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6154. private bool _clearBeforeFill;
  6155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6157. public ClientTableAdapter() {
  6158. this.ClearBeforeFill = true;
  6159. }
  6160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6162. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6163. get {
  6164. if ((this._adapter == null)) {
  6165. this.InitAdapter();
  6166. }
  6167. return this._adapter;
  6168. }
  6169. }
  6170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6171. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6172. internal global::System.Data.SqlClient.SqlConnection Connection {
  6173. get {
  6174. if ((this._connection == null)) {
  6175. this.InitConnection();
  6176. }
  6177. return this._connection;
  6178. }
  6179. set {
  6180. this._connection = value;
  6181. if ((this.Adapter.InsertCommand != null)) {
  6182. this.Adapter.InsertCommand.Connection = value;
  6183. }
  6184. if ((this.Adapter.DeleteCommand != null)) {
  6185. this.Adapter.DeleteCommand.Connection = value;
  6186. }
  6187. if ((this.Adapter.UpdateCommand != null)) {
  6188. this.Adapter.UpdateCommand.Connection = value;
  6189. }
  6190. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6191. if ((this.CommandCollection[i] != null)) {
  6192. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6193. }
  6194. }
  6195. }
  6196. }
  6197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6199. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6200. get {
  6201. return this._transaction;
  6202. }
  6203. set {
  6204. this._transaction = value;
  6205. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6206. this.CommandCollection[i].Transaction = this._transaction;
  6207. }
  6208. if (((this.Adapter != null)
  6209. && (this.Adapter.DeleteCommand != null))) {
  6210. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6211. }
  6212. if (((this.Adapter != null)
  6213. && (this.Adapter.InsertCommand != null))) {
  6214. this.Adapter.InsertCommand.Transaction = this._transaction;
  6215. }
  6216. if (((this.Adapter != null)
  6217. && (this.Adapter.UpdateCommand != null))) {
  6218. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6219. }
  6220. }
  6221. }
  6222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6224. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6225. get {
  6226. if ((this._commandCollection == null)) {
  6227. this.InitCommandCollection();
  6228. }
  6229. return this._commandCollection;
  6230. }
  6231. }
  6232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6234. public bool ClearBeforeFill {
  6235. get {
  6236. return this._clearBeforeFill;
  6237. }
  6238. set {
  6239. this._clearBeforeFill = value;
  6240. }
  6241. }
  6242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6244. private void InitAdapter() {
  6245. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6246. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6247. tableMapping.SourceTable = "Table";
  6248. tableMapping.DataSetTable = "Client";
  6249. tableMapping.ColumnMappings.Add("ID", "ID");
  6250. tableMapping.ColumnMappings.Add("FirstName", "FirstName");
  6251. tableMapping.ColumnMappings.Add("LastName", "LastName");
  6252. tableMapping.ColumnMappings.Add("Patronymic", "Patronymic");
  6253. tableMapping.ColumnMappings.Add("Birthday", "Birthday");
  6254. tableMapping.ColumnMappings.Add("RegistrationDate", "RegistrationDate");
  6255. tableMapping.ColumnMappings.Add("Email", "Email");
  6256. tableMapping.ColumnMappings.Add("Phone", "Phone");
  6257. tableMapping.ColumnMappings.Add("GenderCode", "GenderCode");
  6258. tableMapping.ColumnMappings.Add("PhotoPath", "PhotoPath");
  6259. this._adapter.TableMappings.Add(tableMapping);
  6260. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6261. this._adapter.DeleteCommand.Connection = this.Connection;
  6262. 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)))";
  6263. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6264. 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, "", "", ""));
  6265. 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, "", "", ""));
  6266. 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, "", "", ""));
  6267. 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, "", "", ""));
  6268. 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, "", "", ""));
  6269. 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, "", "", ""));
  6270. 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, "", "", ""));
  6271. 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, "", "", ""));
  6272. 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, "", "", ""));
  6273. 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, "", "", ""));
  6274. 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, "", "", ""));
  6275. 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, "", "", ""));
  6276. 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, "", "", ""));
  6277. 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, "", "", ""));
  6278. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6279. this._adapter.InsertCommand.Connection = this.Connection;
  6280. 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);
  6281. SELECT ID, FirstName, LastName, Patronymic, Birthday, RegistrationDate, Email, Phone, GenderCode, PhotoPath FROM Client WHERE (ID = SCOPE_IDENTITY())";
  6282. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6283. 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, "", "", ""));
  6284. 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, "", "", ""));
  6285. 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, "", "", ""));
  6286. 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, "", "", ""));
  6287. 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, "", "", ""));
  6288. 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, "", "", ""));
  6289. 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, "", "", ""));
  6290. 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, "", "", ""));
  6291. 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, "", "", ""));
  6292. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6293. this._adapter.UpdateCommand.Connection = this.Connection;
  6294. 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)));
  6295. SELECT ID, FirstName, LastName, Patronymic, Birthday, RegistrationDate, Email, Phone, GenderCode, PhotoPath FROM Client WHERE (ID = @ID)";
  6296. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6297. 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, "", "", ""));
  6298. 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, "", "", ""));
  6299. 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, "", "", ""));
  6300. 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, "", "", ""));
  6301. 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, "", "", ""));
  6302. 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, "", "", ""));
  6303. 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, "", "", ""));
  6304. 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, "", "", ""));
  6305. 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, "", "", ""));
  6306. 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, "", "", ""));
  6307. 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, "", "", ""));
  6308. 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, "", "", ""));
  6309. 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, "", "", ""));
  6310. 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, "", "", ""));
  6311. 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, "", "", ""));
  6312. 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, "", "", ""));
  6313. 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, "", "", ""));
  6314. 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, "", "", ""));
  6315. 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, "", "", ""));
  6316. 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, "", "", ""));
  6317. 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, "", "", ""));
  6318. 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, "", "", ""));
  6319. 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, "", "", ""));
  6320. 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, "", "", ""));
  6321. }
  6322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6324. private void InitConnection() {
  6325. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6326. this._connection.ConnectionString = global::Brovi11.Properties.Settings.Default._1Brovi11ConnectionString;
  6327. }
  6328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6330. private void InitCommandCollection() {
  6331. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6332. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6333. this._commandCollection[0].Connection = this.Connection;
  6334. this._commandCollection[0].CommandText = "SELECT ID, FirstName, LastName, Patronymic, Birthday, RegistrationDate, Email, Ph" +
  6335. "one, GenderCode, PhotoPath FROM dbo.Client";
  6336. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6337. }
  6338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6340. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6341. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6342. public virtual int Fill(_1Brovi11DataSet.ClientDataTable dataTable) {
  6343. this.Adapter.SelectCommand = this.CommandCollection[0];
  6344. if ((this.ClearBeforeFill == true)) {
  6345. dataTable.Clear();
  6346. }
  6347. int returnValue = this.Adapter.Fill(dataTable);
  6348. return returnValue;
  6349. }
  6350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6352. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6353. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6354. public virtual _1Brovi11DataSet.ClientDataTable GetData() {
  6355. this.Adapter.SelectCommand = this.CommandCollection[0];
  6356. _1Brovi11DataSet.ClientDataTable dataTable = new _1Brovi11DataSet.ClientDataTable();
  6357. this.Adapter.Fill(dataTable);
  6358. return dataTable;
  6359. }
  6360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6362. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6363. public virtual int Update(_1Brovi11DataSet.ClientDataTable dataTable) {
  6364. return this.Adapter.Update(dataTable);
  6365. }
  6366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6367. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6368. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6369. public virtual int Update(_1Brovi11DataSet dataSet) {
  6370. return this.Adapter.Update(dataSet, "Client");
  6371. }
  6372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6374. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6375. public virtual int Update(global::System.Data.DataRow dataRow) {
  6376. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6377. dataRow});
  6378. }
  6379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6381. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6382. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6383. return this.Adapter.Update(dataRows);
  6384. }
  6385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6387. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6388. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6389. 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) {
  6390. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  6391. if ((Original_FirstName == null)) {
  6392. throw new global::System.ArgumentNullException("Original_FirstName");
  6393. }
  6394. else {
  6395. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_FirstName));
  6396. }
  6397. if ((Original_LastName == null)) {
  6398. throw new global::System.ArgumentNullException("Original_LastName");
  6399. }
  6400. else {
  6401. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_LastName));
  6402. }
  6403. if ((Original_Patronymic == null)) {
  6404. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  6405. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  6406. }
  6407. else {
  6408. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  6409. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Patronymic));
  6410. }
  6411. if ((Original_Birthday.HasValue == true)) {
  6412. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  6413. this.Adapter.DeleteCommand.Parameters[6].Value = ((System.DateTime)(Original_Birthday.Value));
  6414. }
  6415. else {
  6416. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  6417. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  6418. }
  6419. this.Adapter.DeleteCommand.Parameters[7].Value = ((System.DateTime)(Original_RegistrationDate));
  6420. if ((Original_Email == null)) {
  6421. this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(1));
  6422. this.Adapter.DeleteCommand.Parameters[9].Value = global::System.DBNull.Value;
  6423. }
  6424. else {
  6425. this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(0));
  6426. this.Adapter.DeleteCommand.Parameters[9].Value = ((string)(Original_Email));
  6427. }
  6428. if ((Original_Phone == null)) {
  6429. throw new global::System.ArgumentNullException("Original_Phone");
  6430. }
  6431. else {
  6432. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Phone));
  6433. }
  6434. if ((Original_GenderCode == null)) {
  6435. throw new global::System.ArgumentNullException("Original_GenderCode");
  6436. }
  6437. else {
  6438. this.Adapter.DeleteCommand.Parameters[11].Value = ((string)(Original_GenderCode));
  6439. }
  6440. if ((Original_PhotoPath == null)) {
  6441. this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(1));
  6442. this.Adapter.DeleteCommand.Parameters[13].Value = global::System.DBNull.Value;
  6443. }
  6444. else {
  6445. this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(0));
  6446. this.Adapter.DeleteCommand.Parameters[13].Value = ((string)(Original_PhotoPath));
  6447. }
  6448. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6449. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6450. != global::System.Data.ConnectionState.Open)) {
  6451. this.Adapter.DeleteCommand.Connection.Open();
  6452. }
  6453. try {
  6454. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6455. return returnValue;
  6456. }
  6457. finally {
  6458. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6459. this.Adapter.DeleteCommand.Connection.Close();
  6460. }
  6461. }
  6462. }
  6463. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6464. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6465. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6466. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6467. 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) {
  6468. if ((FirstName == null)) {
  6469. throw new global::System.ArgumentNullException("FirstName");
  6470. }
  6471. else {
  6472. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(FirstName));
  6473. }
  6474. if ((LastName == null)) {
  6475. throw new global::System.ArgumentNullException("LastName");
  6476. }
  6477. else {
  6478. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(LastName));
  6479. }
  6480. if ((Patronymic == null)) {
  6481. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6482. }
  6483. else {
  6484. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Patronymic));
  6485. }
  6486. if ((Birthday.HasValue == true)) {
  6487. this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(Birthday.Value));
  6488. }
  6489. else {
  6490. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  6491. }
  6492. this.Adapter.InsertCommand.Parameters[4].Value = ((System.DateTime)(RegistrationDate));
  6493. if ((Email == null)) {
  6494. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  6495. }
  6496. else {
  6497. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Email));
  6498. }
  6499. if ((Phone == null)) {
  6500. throw new global::System.ArgumentNullException("Phone");
  6501. }
  6502. else {
  6503. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Phone));
  6504. }
  6505. if ((GenderCode == null)) {
  6506. throw new global::System.ArgumentNullException("GenderCode");
  6507. }
  6508. else {
  6509. this.Adapter.InsertCommand.Parameters[7].Value = ((string)(GenderCode));
  6510. }
  6511. if ((PhotoPath == null)) {
  6512. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  6513. }
  6514. else {
  6515. this.Adapter.InsertCommand.Parameters[8].Value = ((string)(PhotoPath));
  6516. }
  6517. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6518. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6519. != global::System.Data.ConnectionState.Open)) {
  6520. this.Adapter.InsertCommand.Connection.Open();
  6521. }
  6522. try {
  6523. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6524. return returnValue;
  6525. }
  6526. finally {
  6527. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6528. this.Adapter.InsertCommand.Connection.Close();
  6529. }
  6530. }
  6531. }
  6532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6533. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6534. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6535. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6536. public virtual int Update(
  6537. string FirstName,
  6538. string LastName,
  6539. string Patronymic,
  6540. global::System.Nullable<global::System.DateTime> Birthday,
  6541. System.DateTime RegistrationDate,
  6542. string Email,
  6543. string Phone,
  6544. string GenderCode,
  6545. string PhotoPath,
  6546. int Original_ID,
  6547. string Original_FirstName,
  6548. string Original_LastName,
  6549. string Original_Patronymic,
  6550. global::System.Nullable<global::System.DateTime> Original_Birthday,
  6551. System.DateTime Original_RegistrationDate,
  6552. string Original_Email,
  6553. string Original_Phone,
  6554. string Original_GenderCode,
  6555. string Original_PhotoPath,
  6556. int ID) {
  6557. if ((FirstName == null)) {
  6558. throw new global::System.ArgumentNullException("FirstName");
  6559. }
  6560. else {
  6561. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(FirstName));
  6562. }
  6563. if ((LastName == null)) {
  6564. throw new global::System.ArgumentNullException("LastName");
  6565. }
  6566. else {
  6567. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(LastName));
  6568. }
  6569. if ((Patronymic == null)) {
  6570. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  6571. }
  6572. else {
  6573. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Patronymic));
  6574. }
  6575. if ((Birthday.HasValue == true)) {
  6576. this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(Birthday.Value));
  6577. }
  6578. else {
  6579. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6580. }
  6581. this.Adapter.UpdateCommand.Parameters[4].Value = ((System.DateTime)(RegistrationDate));
  6582. if ((Email == null)) {
  6583. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  6584. }
  6585. else {
  6586. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Email));
  6587. }
  6588. if ((Phone == null)) {
  6589. throw new global::System.ArgumentNullException("Phone");
  6590. }
  6591. else {
  6592. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Phone));
  6593. }
  6594. if ((GenderCode == null)) {
  6595. throw new global::System.ArgumentNullException("GenderCode");
  6596. }
  6597. else {
  6598. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(GenderCode));
  6599. }
  6600. if ((PhotoPath == null)) {
  6601. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  6602. }
  6603. else {
  6604. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(PhotoPath));
  6605. }
  6606. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_ID));
  6607. if ((Original_FirstName == null)) {
  6608. throw new global::System.ArgumentNullException("Original_FirstName");
  6609. }
  6610. else {
  6611. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_FirstName));
  6612. }
  6613. if ((Original_LastName == null)) {
  6614. throw new global::System.ArgumentNullException("Original_LastName");
  6615. }
  6616. else {
  6617. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_LastName));
  6618. }
  6619. if ((Original_Patronymic == null)) {
  6620. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  6621. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  6622. }
  6623. else {
  6624. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  6625. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_Patronymic));
  6626. }
  6627. if ((Original_Birthday.HasValue == true)) {
  6628. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  6629. this.Adapter.UpdateCommand.Parameters[15].Value = ((System.DateTime)(Original_Birthday.Value));
  6630. }
  6631. else {
  6632. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  6633. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  6634. }
  6635. this.Adapter.UpdateCommand.Parameters[16].Value = ((System.DateTime)(Original_RegistrationDate));
  6636. if ((Original_Email == null)) {
  6637. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
  6638. this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
  6639. }
  6640. else {
  6641. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
  6642. this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_Email));
  6643. }
  6644. if ((Original_Phone == null)) {
  6645. throw new global::System.ArgumentNullException("Original_Phone");
  6646. }
  6647. else {
  6648. this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_Phone));
  6649. }
  6650. if ((Original_GenderCode == null)) {
  6651. throw new global::System.ArgumentNullException("Original_GenderCode");
  6652. }
  6653. else {
  6654. this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(Original_GenderCode));
  6655. }
  6656. if ((Original_PhotoPath == null)) {
  6657. this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(1));
  6658. this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value;
  6659. }
  6660. else {
  6661. this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(0));
  6662. this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(Original_PhotoPath));
  6663. }
  6664. this.Adapter.UpdateCommand.Parameters[23].Value = ((int)(ID));
  6665. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6666. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6667. != global::System.Data.ConnectionState.Open)) {
  6668. this.Adapter.UpdateCommand.Connection.Open();
  6669. }
  6670. try {
  6671. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6672. return returnValue;
  6673. }
  6674. finally {
  6675. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6676. this.Adapter.UpdateCommand.Connection.Close();
  6677. }
  6678. }
  6679. }
  6680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6682. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6683. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6684. public virtual int Update(
  6685. string FirstName,
  6686. string LastName,
  6687. string Patronymic,
  6688. global::System.Nullable<global::System.DateTime> Birthday,
  6689. System.DateTime RegistrationDate,
  6690. string Email,
  6691. string Phone,
  6692. string GenderCode,
  6693. string PhotoPath,
  6694. int Original_ID,
  6695. string Original_FirstName,
  6696. string Original_LastName,
  6697. string Original_Patronymic,
  6698. global::System.Nullable<global::System.DateTime> Original_Birthday,
  6699. System.DateTime Original_RegistrationDate,
  6700. string Original_Email,
  6701. string Original_Phone,
  6702. string Original_GenderCode,
  6703. string Original_PhotoPath) {
  6704. 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);
  6705. }
  6706. }
  6707. /// <summary>
  6708. ///Represents the connection and commands used to retrieve and save data.
  6709. ///</summary>
  6710. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6711. [global::System.ComponentModel.ToolboxItem(true)]
  6712. [global::System.ComponentModel.DataObjectAttribute(true)]
  6713. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6714. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6715. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6716. public partial class ClientServiceTableAdapter : global::System.ComponentModel.Component {
  6717. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6718. private global::System.Data.SqlClient.SqlConnection _connection;
  6719. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6720. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6721. private bool _clearBeforeFill;
  6722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6724. public ClientServiceTableAdapter() {
  6725. this.ClearBeforeFill = true;
  6726. }
  6727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6729. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6730. get {
  6731. if ((this._adapter == null)) {
  6732. this.InitAdapter();
  6733. }
  6734. return this._adapter;
  6735. }
  6736. }
  6737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6739. internal global::System.Data.SqlClient.SqlConnection Connection {
  6740. get {
  6741. if ((this._connection == null)) {
  6742. this.InitConnection();
  6743. }
  6744. return this._connection;
  6745. }
  6746. set {
  6747. this._connection = value;
  6748. if ((this.Adapter.InsertCommand != null)) {
  6749. this.Adapter.InsertCommand.Connection = value;
  6750. }
  6751. if ((this.Adapter.DeleteCommand != null)) {
  6752. this.Adapter.DeleteCommand.Connection = value;
  6753. }
  6754. if ((this.Adapter.UpdateCommand != null)) {
  6755. this.Adapter.UpdateCommand.Connection = value;
  6756. }
  6757. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6758. if ((this.CommandCollection[i] != null)) {
  6759. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6760. }
  6761. }
  6762. }
  6763. }
  6764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6766. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6767. get {
  6768. return this._transaction;
  6769. }
  6770. set {
  6771. this._transaction = value;
  6772. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6773. this.CommandCollection[i].Transaction = this._transaction;
  6774. }
  6775. if (((this.Adapter != null)
  6776. && (this.Adapter.DeleteCommand != null))) {
  6777. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6778. }
  6779. if (((this.Adapter != null)
  6780. && (this.Adapter.InsertCommand != null))) {
  6781. this.Adapter.InsertCommand.Transaction = this._transaction;
  6782. }
  6783. if (((this.Adapter != null)
  6784. && (this.Adapter.UpdateCommand != null))) {
  6785. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6786. }
  6787. }
  6788. }
  6789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6791. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6792. get {
  6793. if ((this._commandCollection == null)) {
  6794. this.InitCommandCollection();
  6795. }
  6796. return this._commandCollection;
  6797. }
  6798. }
  6799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6801. public bool ClearBeforeFill {
  6802. get {
  6803. return this._clearBeforeFill;
  6804. }
  6805. set {
  6806. this._clearBeforeFill = value;
  6807. }
  6808. }
  6809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6811. private void InitAdapter() {
  6812. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6813. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6814. tableMapping.SourceTable = "Table";
  6815. tableMapping.DataSetTable = "ClientService";
  6816. tableMapping.ColumnMappings.Add("ID", "ID");
  6817. tableMapping.ColumnMappings.Add("ClientID", "ClientID");
  6818. tableMapping.ColumnMappings.Add("ServiceID", "ServiceID");
  6819. tableMapping.ColumnMappings.Add("StartTime", "StartTime");
  6820. tableMapping.ColumnMappings.Add("Comment", "Comment");
  6821. this._adapter.TableMappings.Add(tableMapping);
  6822. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6823. this._adapter.DeleteCommand.Connection = this.Connection;
  6824. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ClientService] WHERE (([ID] = @Original_ID) AND ([ClientID] = " +
  6825. "@Original_ClientID) AND ([ServiceID] = @Original_ServiceID) AND ([StartTime] = @" +
  6826. "Original_StartTime))";
  6827. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6828. 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, "", "", ""));
  6829. 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, "", "", ""));
  6830. 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, "", "", ""));
  6831. 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, "", "", ""));
  6832. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6833. this._adapter.InsertCommand.Connection = this.Connection;
  6834. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ClientService] ([ClientID], [ServiceID], [StartTime], [Comment" +
  6835. "]) VALUES (@ClientID, @ServiceID, @StartTime, @Comment);\r\nSELECT ID, ClientID, S" +
  6836. "erviceID, StartTime, Comment FROM ClientService WHERE (ID = SCOPE_IDENTITY())";
  6837. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6838. 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, "", "", ""));
  6839. 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, "", "", ""));
  6840. 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, "", "", ""));
  6841. 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, "", "", ""));
  6842. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6843. this._adapter.UpdateCommand.Connection = this.Connection;
  6844. 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));
  6845. SELECT ID, ClientID, ServiceID, StartTime, Comment FROM ClientService WHERE (ID = @ID)";
  6846. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6847. 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, "", "", ""));
  6848. 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, "", "", ""));
  6849. 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, "", "", ""));
  6850. 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, "", "", ""));
  6851. 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, "", "", ""));
  6852. 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, "", "", ""));
  6853. 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, "", "", ""));
  6854. 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, "", "", ""));
  6855. 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, "", "", ""));
  6856. }
  6857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6859. private void InitConnection() {
  6860. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6861. this._connection.ConnectionString = global::Brovi11.Properties.Settings.Default._1Brovi11ConnectionString;
  6862. }
  6863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6865. private void InitCommandCollection() {
  6866. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6867. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6868. this._commandCollection[0].Connection = this.Connection;
  6869. this._commandCollection[0].CommandText = "SELECT ID, ClientID, ServiceID, StartTime, Comment FROM dbo.ClientService";
  6870. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6871. }
  6872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6874. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6875. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6876. public virtual int Fill(_1Brovi11DataSet.ClientServiceDataTable dataTable) {
  6877. this.Adapter.SelectCommand = this.CommandCollection[0];
  6878. if ((this.ClearBeforeFill == true)) {
  6879. dataTable.Clear();
  6880. }
  6881. int returnValue = this.Adapter.Fill(dataTable);
  6882. return returnValue;
  6883. }
  6884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6886. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6887. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6888. public virtual _1Brovi11DataSet.ClientServiceDataTable GetData() {
  6889. this.Adapter.SelectCommand = this.CommandCollection[0];
  6890. _1Brovi11DataSet.ClientServiceDataTable dataTable = new _1Brovi11DataSet.ClientServiceDataTable();
  6891. this.Adapter.Fill(dataTable);
  6892. return dataTable;
  6893. }
  6894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6896. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6897. public virtual int Update(_1Brovi11DataSet.ClientServiceDataTable dataTable) {
  6898. return this.Adapter.Update(dataTable);
  6899. }
  6900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6902. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6903. public virtual int Update(_1Brovi11DataSet dataSet) {
  6904. return this.Adapter.Update(dataSet, "ClientService");
  6905. }
  6906. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6907. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6908. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6909. public virtual int Update(global::System.Data.DataRow dataRow) {
  6910. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6911. dataRow});
  6912. }
  6913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6915. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6916. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6917. return this.Adapter.Update(dataRows);
  6918. }
  6919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6921. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6922. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6923. public virtual int Delete(int Original_ID, int Original_ClientID, int Original_ServiceID, System.DateTime Original_StartTime) {
  6924. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  6925. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ClientID));
  6926. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_ServiceID));
  6927. this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_StartTime));
  6928. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6929. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6930. != global::System.Data.ConnectionState.Open)) {
  6931. this.Adapter.DeleteCommand.Connection.Open();
  6932. }
  6933. try {
  6934. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6935. return returnValue;
  6936. }
  6937. finally {
  6938. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6939. this.Adapter.DeleteCommand.Connection.Close();
  6940. }
  6941. }
  6942. }
  6943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6945. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6946. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6947. public virtual int Insert(int ClientID, int ServiceID, System.DateTime StartTime, string Comment) {
  6948. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ClientID));
  6949. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ServiceID));
  6950. this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(StartTime));
  6951. if ((Comment == null)) {
  6952. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  6953. }
  6954. else {
  6955. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Comment));
  6956. }
  6957. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6958. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6959. != global::System.Data.ConnectionState.Open)) {
  6960. this.Adapter.InsertCommand.Connection.Open();
  6961. }
  6962. try {
  6963. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6964. return returnValue;
  6965. }
  6966. finally {
  6967. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6968. this.Adapter.InsertCommand.Connection.Close();
  6969. }
  6970. }
  6971. }
  6972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6974. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6975. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6976. 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) {
  6977. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ClientID));
  6978. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(ServiceID));
  6979. this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(StartTime));
  6980. if ((Comment == null)) {
  6981. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6982. }
  6983. else {
  6984. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Comment));
  6985. }
  6986. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_ID));
  6987. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_ClientID));
  6988. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ServiceID));
  6989. this.Adapter.UpdateCommand.Parameters[7].Value = ((System.DateTime)(Original_StartTime));
  6990. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(ID));
  6991. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6992. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6993. != global::System.Data.ConnectionState.Open)) {
  6994. this.Adapter.UpdateCommand.Connection.Open();
  6995. }
  6996. try {
  6997. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6998. return returnValue;
  6999. }
  7000. finally {
  7001. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7002. this.Adapter.UpdateCommand.Connection.Close();
  7003. }
  7004. }
  7005. }
  7006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7008. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7009. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7010. 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) {
  7011. return this.Update(ClientID, ServiceID, StartTime, Comment, Original_ID, Original_ClientID, Original_ServiceID, Original_StartTime, Original_ID);
  7012. }
  7013. }
  7014. /// <summary>
  7015. ///Represents the connection and commands used to retrieve and save data.
  7016. ///</summary>
  7017. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7018. [global::System.ComponentModel.ToolboxItem(true)]
  7019. [global::System.ComponentModel.DataObjectAttribute(true)]
  7020. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7021. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7022. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7023. public partial class DocumentByServiceTableAdapter : global::System.ComponentModel.Component {
  7024. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7025. private global::System.Data.SqlClient.SqlConnection _connection;
  7026. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7027. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7028. private bool _clearBeforeFill;
  7029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7031. public DocumentByServiceTableAdapter() {
  7032. this.ClearBeforeFill = true;
  7033. }
  7034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7036. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7037. get {
  7038. if ((this._adapter == null)) {
  7039. this.InitAdapter();
  7040. }
  7041. return this._adapter;
  7042. }
  7043. }
  7044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7046. internal global::System.Data.SqlClient.SqlConnection Connection {
  7047. get {
  7048. if ((this._connection == null)) {
  7049. this.InitConnection();
  7050. }
  7051. return this._connection;
  7052. }
  7053. set {
  7054. this._connection = value;
  7055. if ((this.Adapter.InsertCommand != null)) {
  7056. this.Adapter.InsertCommand.Connection = value;
  7057. }
  7058. if ((this.Adapter.DeleteCommand != null)) {
  7059. this.Adapter.DeleteCommand.Connection = value;
  7060. }
  7061. if ((this.Adapter.UpdateCommand != null)) {
  7062. this.Adapter.UpdateCommand.Connection = value;
  7063. }
  7064. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7065. if ((this.CommandCollection[i] != null)) {
  7066. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7067. }
  7068. }
  7069. }
  7070. }
  7071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7073. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7074. get {
  7075. return this._transaction;
  7076. }
  7077. set {
  7078. this._transaction = value;
  7079. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7080. this.CommandCollection[i].Transaction = this._transaction;
  7081. }
  7082. if (((this.Adapter != null)
  7083. && (this.Adapter.DeleteCommand != null))) {
  7084. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7085. }
  7086. if (((this.Adapter != null)
  7087. && (this.Adapter.InsertCommand != null))) {
  7088. this.Adapter.InsertCommand.Transaction = this._transaction;
  7089. }
  7090. if (((this.Adapter != null)
  7091. && (this.Adapter.UpdateCommand != null))) {
  7092. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7093. }
  7094. }
  7095. }
  7096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7098. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7099. get {
  7100. if ((this._commandCollection == null)) {
  7101. this.InitCommandCollection();
  7102. }
  7103. return this._commandCollection;
  7104. }
  7105. }
  7106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7108. public bool ClearBeforeFill {
  7109. get {
  7110. return this._clearBeforeFill;
  7111. }
  7112. set {
  7113. this._clearBeforeFill = value;
  7114. }
  7115. }
  7116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7118. private void InitAdapter() {
  7119. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7120. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7121. tableMapping.SourceTable = "Table";
  7122. tableMapping.DataSetTable = "DocumentByService";
  7123. tableMapping.ColumnMappings.Add("ID", "ID");
  7124. tableMapping.ColumnMappings.Add("ClientServiceID", "ClientServiceID");
  7125. tableMapping.ColumnMappings.Add("DocumentPath", "DocumentPath");
  7126. this._adapter.TableMappings.Add(tableMapping);
  7127. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7128. this._adapter.DeleteCommand.Connection = this.Connection;
  7129. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[DocumentByService] WHERE (([ID] = @Original_ID) AND ([ClientSe" +
  7130. "rviceID] = @Original_ClientServiceID) AND ([DocumentPath] = @Original_DocumentPa" +
  7131. "th))";
  7132. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7133. 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, "", "", ""));
  7134. 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, "", "", ""));
  7135. 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, "", "", ""));
  7136. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7137. this._adapter.InsertCommand.Connection = this.Connection;
  7138. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[DocumentByService] ([ClientServiceID], [DocumentPath]) VALUES " +
  7139. "(@ClientServiceID, @DocumentPath);\r\nSELECT ID, ClientServiceID, DocumentPath FRO" +
  7140. "M DocumentByService WHERE (ID = SCOPE_IDENTITY())";
  7141. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7142. 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, "", "", ""));
  7143. 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, "", "", ""));
  7144. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7145. this._adapter.UpdateCommand.Connection = this.Connection;
  7146. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[DocumentByService] SET [ClientServiceID] = @ClientServiceID, [DocumentPath] = @DocumentPath WHERE (([ID] = @Original_ID) AND ([ClientServiceID] = @Original_ClientServiceID) AND ([DocumentPath] = @Original_DocumentPath));
  7147. SELECT ID, ClientServiceID, DocumentPath FROM DocumentByService WHERE (ID = @ID)";
  7148. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7149. 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, "", "", ""));
  7150. 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, "", "", ""));
  7151. 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, "", "", ""));
  7152. 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, "", "", ""));
  7153. 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, "", "", ""));
  7154. 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, "", "", ""));
  7155. }
  7156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7158. private void InitConnection() {
  7159. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7160. this._connection.ConnectionString = global::Brovi11.Properties.Settings.Default._1Brovi11ConnectionString;
  7161. }
  7162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7164. private void InitCommandCollection() {
  7165. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7166. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7167. this._commandCollection[0].Connection = this.Connection;
  7168. this._commandCollection[0].CommandText = "SELECT ID, ClientServiceID, DocumentPath FROM dbo.DocumentByService";
  7169. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7170. }
  7171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7173. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7174. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7175. public virtual int Fill(_1Brovi11DataSet.DocumentByServiceDataTable dataTable) {
  7176. this.Adapter.SelectCommand = this.CommandCollection[0];
  7177. if ((this.ClearBeforeFill == true)) {
  7178. dataTable.Clear();
  7179. }
  7180. int returnValue = this.Adapter.Fill(dataTable);
  7181. return returnValue;
  7182. }
  7183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7185. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7186. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7187. public virtual _1Brovi11DataSet.DocumentByServiceDataTable GetData() {
  7188. this.Adapter.SelectCommand = this.CommandCollection[0];
  7189. _1Brovi11DataSet.DocumentByServiceDataTable dataTable = new _1Brovi11DataSet.DocumentByServiceDataTable();
  7190. this.Adapter.Fill(dataTable);
  7191. return dataTable;
  7192. }
  7193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7195. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7196. public virtual int Update(_1Brovi11DataSet.DocumentByServiceDataTable dataTable) {
  7197. return this.Adapter.Update(dataTable);
  7198. }
  7199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7200. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7201. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7202. public virtual int Update(_1Brovi11DataSet dataSet) {
  7203. return this.Adapter.Update(dataSet, "DocumentByService");
  7204. }
  7205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7207. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7208. public virtual int Update(global::System.Data.DataRow dataRow) {
  7209. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7210. dataRow});
  7211. }
  7212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7213. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7214. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7215. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7216. return this.Adapter.Update(dataRows);
  7217. }
  7218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7220. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7221. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7222. public virtual int Delete(int Original_ID, int Original_ClientServiceID, string Original_DocumentPath) {
  7223. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  7224. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ClientServiceID));
  7225. if ((Original_DocumentPath == null)) {
  7226. throw new global::System.ArgumentNullException("Original_DocumentPath");
  7227. }
  7228. else {
  7229. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_DocumentPath));
  7230. }
  7231. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7232. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7233. != global::System.Data.ConnectionState.Open)) {
  7234. this.Adapter.DeleteCommand.Connection.Open();
  7235. }
  7236. try {
  7237. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7238. return returnValue;
  7239. }
  7240. finally {
  7241. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7242. this.Adapter.DeleteCommand.Connection.Close();
  7243. }
  7244. }
  7245. }
  7246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7248. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7249. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7250. public virtual int Insert(int ClientServiceID, string DocumentPath) {
  7251. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ClientServiceID));
  7252. if ((DocumentPath == null)) {
  7253. throw new global::System.ArgumentNullException("DocumentPath");
  7254. }
  7255. else {
  7256. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DocumentPath));
  7257. }
  7258. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7259. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7260. != global::System.Data.ConnectionState.Open)) {
  7261. this.Adapter.InsertCommand.Connection.Open();
  7262. }
  7263. try {
  7264. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7265. return returnValue;
  7266. }
  7267. finally {
  7268. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7269. this.Adapter.InsertCommand.Connection.Close();
  7270. }
  7271. }
  7272. }
  7273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7275. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7276. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7277. public virtual int Update(int ClientServiceID, string DocumentPath, int Original_ID, int Original_ClientServiceID, string Original_DocumentPath, int ID) {
  7278. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ClientServiceID));
  7279. if ((DocumentPath == null)) {
  7280. throw new global::System.ArgumentNullException("DocumentPath");
  7281. }
  7282. else {
  7283. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DocumentPath));
  7284. }
  7285. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  7286. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ClientServiceID));
  7287. if ((Original_DocumentPath == null)) {
  7288. throw new global::System.ArgumentNullException("Original_DocumentPath");
  7289. }
  7290. else {
  7291. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_DocumentPath));
  7292. }
  7293. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  7294. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7295. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7296. != global::System.Data.ConnectionState.Open)) {
  7297. this.Adapter.UpdateCommand.Connection.Open();
  7298. }
  7299. try {
  7300. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7301. return returnValue;
  7302. }
  7303. finally {
  7304. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7305. this.Adapter.UpdateCommand.Connection.Close();
  7306. }
  7307. }
  7308. }
  7309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7311. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7312. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7313. public virtual int Update(int ClientServiceID, string DocumentPath, int Original_ID, int Original_ClientServiceID, string Original_DocumentPath) {
  7314. return this.Update(ClientServiceID, DocumentPath, Original_ID, Original_ClientServiceID, Original_DocumentPath, Original_ID);
  7315. }
  7316. }
  7317. /// <summary>
  7318. ///Represents the connection and commands used to retrieve and save data.
  7319. ///</summary>
  7320. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7321. [global::System.ComponentModel.ToolboxItem(true)]
  7322. [global::System.ComponentModel.DataObjectAttribute(true)]
  7323. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7324. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7325. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7326. public partial class GenderTableAdapter : global::System.ComponentModel.Component {
  7327. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7328. private global::System.Data.SqlClient.SqlConnection _connection;
  7329. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7330. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7331. private bool _clearBeforeFill;
  7332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7334. public GenderTableAdapter() {
  7335. this.ClearBeforeFill = true;
  7336. }
  7337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7339. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7340. get {
  7341. if ((this._adapter == null)) {
  7342. this.InitAdapter();
  7343. }
  7344. return this._adapter;
  7345. }
  7346. }
  7347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7349. internal global::System.Data.SqlClient.SqlConnection Connection {
  7350. get {
  7351. if ((this._connection == null)) {
  7352. this.InitConnection();
  7353. }
  7354. return this._connection;
  7355. }
  7356. set {
  7357. this._connection = value;
  7358. if ((this.Adapter.InsertCommand != null)) {
  7359. this.Adapter.InsertCommand.Connection = value;
  7360. }
  7361. if ((this.Adapter.DeleteCommand != null)) {
  7362. this.Adapter.DeleteCommand.Connection = value;
  7363. }
  7364. if ((this.Adapter.UpdateCommand != null)) {
  7365. this.Adapter.UpdateCommand.Connection = value;
  7366. }
  7367. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7368. if ((this.CommandCollection[i] != null)) {
  7369. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7370. }
  7371. }
  7372. }
  7373. }
  7374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7376. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7377. get {
  7378. return this._transaction;
  7379. }
  7380. set {
  7381. this._transaction = value;
  7382. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7383. this.CommandCollection[i].Transaction = this._transaction;
  7384. }
  7385. if (((this.Adapter != null)
  7386. && (this.Adapter.DeleteCommand != null))) {
  7387. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7388. }
  7389. if (((this.Adapter != null)
  7390. && (this.Adapter.InsertCommand != null))) {
  7391. this.Adapter.InsertCommand.Transaction = this._transaction;
  7392. }
  7393. if (((this.Adapter != null)
  7394. && (this.Adapter.UpdateCommand != null))) {
  7395. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7396. }
  7397. }
  7398. }
  7399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7401. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7402. get {
  7403. if ((this._commandCollection == null)) {
  7404. this.InitCommandCollection();
  7405. }
  7406. return this._commandCollection;
  7407. }
  7408. }
  7409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7411. public bool ClearBeforeFill {
  7412. get {
  7413. return this._clearBeforeFill;
  7414. }
  7415. set {
  7416. this._clearBeforeFill = value;
  7417. }
  7418. }
  7419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7421. private void InitAdapter() {
  7422. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7423. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7424. tableMapping.SourceTable = "Table";
  7425. tableMapping.DataSetTable = "Gender";
  7426. tableMapping.ColumnMappings.Add("Code", "Code");
  7427. tableMapping.ColumnMappings.Add("Name", "Name");
  7428. this._adapter.TableMappings.Add(tableMapping);
  7429. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7430. this._adapter.DeleteCommand.Connection = this.Connection;
  7431. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Gender] WHERE (([Code] = @Original_Code) AND ((@IsNull_Name = " +
  7432. "1 AND [Name] IS NULL) OR ([Name] = @Original_Name)))";
  7433. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7434. 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, "", "", ""));
  7435. 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, "", "", ""));
  7436. 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, "", "", ""));
  7437. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7438. this._adapter.InsertCommand.Connection = this.Connection;
  7439. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Gender] ([Code], [Name]) VALUES (@Code, @Name);\r\nSELECT Code, " +
  7440. "Name FROM Gender WHERE (Code = @Code)";
  7441. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7442. 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, "", "", ""));
  7443. 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, "", "", ""));
  7444. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7445. this._adapter.UpdateCommand.Connection = this.Connection;
  7446. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Gender] SET [Code] = @Code, [Name] = @Name WHERE (([Code] = @Origin" +
  7447. "al_Code) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)" +
  7448. "));\r\nSELECT Code, Name FROM Gender WHERE (Code = @Code)";
  7449. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7450. 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, "", "", ""));
  7451. 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, "", "", ""));
  7452. 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, "", "", ""));
  7453. 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, "", "", ""));
  7454. 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, "", "", ""));
  7455. }
  7456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7458. private void InitConnection() {
  7459. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7460. this._connection.ConnectionString = global::Brovi11.Properties.Settings.Default._1Brovi11ConnectionString;
  7461. }
  7462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7464. private void InitCommandCollection() {
  7465. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7466. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7467. this._commandCollection[0].Connection = this.Connection;
  7468. this._commandCollection[0].CommandText = "SELECT Code, Name FROM dbo.Gender";
  7469. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7470. }
  7471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7473. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7474. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7475. public virtual int Fill(_1Brovi11DataSet.GenderDataTable dataTable) {
  7476. this.Adapter.SelectCommand = this.CommandCollection[0];
  7477. if ((this.ClearBeforeFill == true)) {
  7478. dataTable.Clear();
  7479. }
  7480. int returnValue = this.Adapter.Fill(dataTable);
  7481. return returnValue;
  7482. }
  7483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7485. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7486. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7487. public virtual _1Brovi11DataSet.GenderDataTable GetData() {
  7488. this.Adapter.SelectCommand = this.CommandCollection[0];
  7489. _1Brovi11DataSet.GenderDataTable dataTable = new _1Brovi11DataSet.GenderDataTable();
  7490. this.Adapter.Fill(dataTable);
  7491. return dataTable;
  7492. }
  7493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7495. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7496. public virtual int Update(_1Brovi11DataSet.GenderDataTable dataTable) {
  7497. return this.Adapter.Update(dataTable);
  7498. }
  7499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7500. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7501. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7502. public virtual int Update(_1Brovi11DataSet dataSet) {
  7503. return this.Adapter.Update(dataSet, "Gender");
  7504. }
  7505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7507. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7508. public virtual int Update(global::System.Data.DataRow dataRow) {
  7509. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7510. dataRow});
  7511. }
  7512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7514. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7515. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7516. return this.Adapter.Update(dataRows);
  7517. }
  7518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7520. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7521. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7522. public virtual int Delete(string Original_Code, string Original_Name) {
  7523. if ((Original_Code == null)) {
  7524. throw new global::System.ArgumentNullException("Original_Code");
  7525. }
  7526. else {
  7527. this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_Code));
  7528. }
  7529. if ((Original_Name == null)) {
  7530. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7531. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7532. }
  7533. else {
  7534. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7535. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Name));
  7536. }
  7537. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7538. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7539. != global::System.Data.ConnectionState.Open)) {
  7540. this.Adapter.DeleteCommand.Connection.Open();
  7541. }
  7542. try {
  7543. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7544. return returnValue;
  7545. }
  7546. finally {
  7547. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7548. this.Adapter.DeleteCommand.Connection.Close();
  7549. }
  7550. }
  7551. }
  7552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7554. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7555. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7556. public virtual int Insert(string Code, string Name) {
  7557. if ((Code == null)) {
  7558. throw new global::System.ArgumentNullException("Code");
  7559. }
  7560. else {
  7561. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Code));
  7562. }
  7563. if ((Name == null)) {
  7564. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7565. }
  7566. else {
  7567. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Name));
  7568. }
  7569. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7570. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7571. != global::System.Data.ConnectionState.Open)) {
  7572. this.Adapter.InsertCommand.Connection.Open();
  7573. }
  7574. try {
  7575. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7576. return returnValue;
  7577. }
  7578. finally {
  7579. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7580. this.Adapter.InsertCommand.Connection.Close();
  7581. }
  7582. }
  7583. }
  7584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7586. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7587. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7588. public virtual int Update(string Code, string Name, string Original_Code, string Original_Name) {
  7589. if ((Code == null)) {
  7590. throw new global::System.ArgumentNullException("Code");
  7591. }
  7592. else {
  7593. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Code));
  7594. }
  7595. if ((Name == null)) {
  7596. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7597. }
  7598. else {
  7599. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Name));
  7600. }
  7601. if ((Original_Code == null)) {
  7602. throw new global::System.ArgumentNullException("Original_Code");
  7603. }
  7604. else {
  7605. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_Code));
  7606. }
  7607. if ((Original_Name == null)) {
  7608. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  7609. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  7610. }
  7611. else {
  7612. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  7613. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Name));
  7614. }
  7615. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7616. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7617. != global::System.Data.ConnectionState.Open)) {
  7618. this.Adapter.UpdateCommand.Connection.Open();
  7619. }
  7620. try {
  7621. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7622. return returnValue;
  7623. }
  7624. finally {
  7625. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7626. this.Adapter.UpdateCommand.Connection.Close();
  7627. }
  7628. }
  7629. }
  7630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7632. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7633. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7634. public virtual int Update(string Name, string Original_Code, string Original_Name) {
  7635. return this.Update(Original_Code, Name, Original_Code, Original_Name);
  7636. }
  7637. }
  7638. /// <summary>
  7639. ///Represents the connection and commands used to retrieve and save data.
  7640. ///</summary>
  7641. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7642. [global::System.ComponentModel.ToolboxItem(true)]
  7643. [global::System.ComponentModel.DataObjectAttribute(true)]
  7644. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7645. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7646. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7647. public partial class ManufacturerTableAdapter : global::System.ComponentModel.Component {
  7648. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7649. private global::System.Data.SqlClient.SqlConnection _connection;
  7650. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7651. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7652. private bool _clearBeforeFill;
  7653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7655. public ManufacturerTableAdapter() {
  7656. this.ClearBeforeFill = true;
  7657. }
  7658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7660. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7661. get {
  7662. if ((this._adapter == null)) {
  7663. this.InitAdapter();
  7664. }
  7665. return this._adapter;
  7666. }
  7667. }
  7668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7670. internal global::System.Data.SqlClient.SqlConnection Connection {
  7671. get {
  7672. if ((this._connection == null)) {
  7673. this.InitConnection();
  7674. }
  7675. return this._connection;
  7676. }
  7677. set {
  7678. this._connection = value;
  7679. if ((this.Adapter.InsertCommand != null)) {
  7680. this.Adapter.InsertCommand.Connection = value;
  7681. }
  7682. if ((this.Adapter.DeleteCommand != null)) {
  7683. this.Adapter.DeleteCommand.Connection = value;
  7684. }
  7685. if ((this.Adapter.UpdateCommand != null)) {
  7686. this.Adapter.UpdateCommand.Connection = value;
  7687. }
  7688. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7689. if ((this.CommandCollection[i] != null)) {
  7690. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7691. }
  7692. }
  7693. }
  7694. }
  7695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7697. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7698. get {
  7699. return this._transaction;
  7700. }
  7701. set {
  7702. this._transaction = value;
  7703. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7704. this.CommandCollection[i].Transaction = this._transaction;
  7705. }
  7706. if (((this.Adapter != null)
  7707. && (this.Adapter.DeleteCommand != null))) {
  7708. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7709. }
  7710. if (((this.Adapter != null)
  7711. && (this.Adapter.InsertCommand != null))) {
  7712. this.Adapter.InsertCommand.Transaction = this._transaction;
  7713. }
  7714. if (((this.Adapter != null)
  7715. && (this.Adapter.UpdateCommand != null))) {
  7716. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7717. }
  7718. }
  7719. }
  7720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7722. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7723. get {
  7724. if ((this._commandCollection == null)) {
  7725. this.InitCommandCollection();
  7726. }
  7727. return this._commandCollection;
  7728. }
  7729. }
  7730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7732. public bool ClearBeforeFill {
  7733. get {
  7734. return this._clearBeforeFill;
  7735. }
  7736. set {
  7737. this._clearBeforeFill = value;
  7738. }
  7739. }
  7740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7742. private void InitAdapter() {
  7743. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7744. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7745. tableMapping.SourceTable = "Table";
  7746. tableMapping.DataSetTable = "Manufacturer";
  7747. tableMapping.ColumnMappings.Add("ID", "ID");
  7748. tableMapping.ColumnMappings.Add("Name", "Name");
  7749. tableMapping.ColumnMappings.Add("StartDate", "StartDate");
  7750. this._adapter.TableMappings.Add(tableMapping);
  7751. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7752. this._adapter.DeleteCommand.Connection = this.Connection;
  7753. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Manufacturer] WHERE (([ID] = @Original_ID) AND ([Name] = @Orig" +
  7754. "inal_Name) AND ((@IsNull_StartDate = 1 AND [StartDate] IS NULL) OR ([StartDate] " +
  7755. "= @Original_StartDate)))";
  7756. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7757. 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, "", "", ""));
  7758. 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, "", "", ""));
  7759. 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, "", "", ""));
  7760. 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, "", "", ""));
  7761. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7762. this._adapter.InsertCommand.Connection = this.Connection;
  7763. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Manufacturer] ([Name], [StartDate]) VALUES (@Name, @StartDate)" +
  7764. ";\r\nSELECT ID, Name, StartDate FROM Manufacturer WHERE (ID = SCOPE_IDENTITY())";
  7765. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7766. 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, "", "", ""));
  7767. 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, "", "", ""));
  7768. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7769. this._adapter.UpdateCommand.Connection = this.Connection;
  7770. 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)));
  7771. SELECT ID, Name, StartDate FROM Manufacturer WHERE (ID = @ID)";
  7772. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7773. 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, "", "", ""));
  7774. 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, "", "", ""));
  7775. 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, "", "", ""));
  7776. 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, "", "", ""));
  7777. 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, "", "", ""));
  7778. 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, "", "", ""));
  7779. 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, "", "", ""));
  7780. }
  7781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7783. private void InitConnection() {
  7784. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7785. this._connection.ConnectionString = global::Brovi11.Properties.Settings.Default._1Brovi11ConnectionString;
  7786. }
  7787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7788. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7789. private void InitCommandCollection() {
  7790. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7791. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7792. this._commandCollection[0].Connection = this.Connection;
  7793. this._commandCollection[0].CommandText = "SELECT ID, Name, StartDate FROM dbo.Manufacturer";
  7794. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7795. }
  7796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7798. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7799. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7800. public virtual int Fill(_1Brovi11DataSet.ManufacturerDataTable dataTable) {
  7801. this.Adapter.SelectCommand = this.CommandCollection[0];
  7802. if ((this.ClearBeforeFill == true)) {
  7803. dataTable.Clear();
  7804. }
  7805. int returnValue = this.Adapter.Fill(dataTable);
  7806. return returnValue;
  7807. }
  7808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7810. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7811. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7812. public virtual _1Brovi11DataSet.ManufacturerDataTable GetData() {
  7813. this.Adapter.SelectCommand = this.CommandCollection[0];
  7814. _1Brovi11DataSet.ManufacturerDataTable dataTable = new _1Brovi11DataSet.ManufacturerDataTable();
  7815. this.Adapter.Fill(dataTable);
  7816. return dataTable;
  7817. }
  7818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7820. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7821. public virtual int Update(_1Brovi11DataSet.ManufacturerDataTable dataTable) {
  7822. return this.Adapter.Update(dataTable);
  7823. }
  7824. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7825. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7826. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7827. public virtual int Update(_1Brovi11DataSet dataSet) {
  7828. return this.Adapter.Update(dataSet, "Manufacturer");
  7829. }
  7830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7831. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7832. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7833. public virtual int Update(global::System.Data.DataRow dataRow) {
  7834. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7835. dataRow});
  7836. }
  7837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7839. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7840. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7841. return this.Adapter.Update(dataRows);
  7842. }
  7843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7845. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7846. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7847. public virtual int Delete(int Original_ID, string Original_Name, global::System.Nullable<global::System.DateTime> Original_StartDate) {
  7848. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  7849. if ((Original_Name == null)) {
  7850. throw new global::System.ArgumentNullException("Original_Name");
  7851. }
  7852. else {
  7853. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Name));
  7854. }
  7855. if ((Original_StartDate.HasValue == true)) {
  7856. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  7857. this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_StartDate.Value));
  7858. }
  7859. else {
  7860. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  7861. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  7862. }
  7863. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7864. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7865. != global::System.Data.ConnectionState.Open)) {
  7866. this.Adapter.DeleteCommand.Connection.Open();
  7867. }
  7868. try {
  7869. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7870. return returnValue;
  7871. }
  7872. finally {
  7873. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7874. this.Adapter.DeleteCommand.Connection.Close();
  7875. }
  7876. }
  7877. }
  7878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7880. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7881. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7882. public virtual int Insert(string Name, global::System.Nullable<global::System.DateTime> StartDate) {
  7883. if ((Name == null)) {
  7884. throw new global::System.ArgumentNullException("Name");
  7885. }
  7886. else {
  7887. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Name));
  7888. }
  7889. if ((StartDate.HasValue == true)) {
  7890. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(StartDate.Value));
  7891. }
  7892. else {
  7893. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7894. }
  7895. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7896. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7897. != global::System.Data.ConnectionState.Open)) {
  7898. this.Adapter.InsertCommand.Connection.Open();
  7899. }
  7900. try {
  7901. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7902. return returnValue;
  7903. }
  7904. finally {
  7905. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7906. this.Adapter.InsertCommand.Connection.Close();
  7907. }
  7908. }
  7909. }
  7910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7911. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7912. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7913. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7914. 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) {
  7915. if ((Name == null)) {
  7916. throw new global::System.ArgumentNullException("Name");
  7917. }
  7918. else {
  7919. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Name));
  7920. }
  7921. if ((StartDate.HasValue == true)) {
  7922. this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(StartDate.Value));
  7923. }
  7924. else {
  7925. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7926. }
  7927. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  7928. if ((Original_Name == null)) {
  7929. throw new global::System.ArgumentNullException("Original_Name");
  7930. }
  7931. else {
  7932. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Name));
  7933. }
  7934. if ((Original_StartDate.HasValue == true)) {
  7935. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  7936. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(Original_StartDate.Value));
  7937. }
  7938. else {
  7939. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  7940. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  7941. }
  7942. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(ID));
  7943. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7944. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7945. != global::System.Data.ConnectionState.Open)) {
  7946. this.Adapter.UpdateCommand.Connection.Open();
  7947. }
  7948. try {
  7949. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7950. return returnValue;
  7951. }
  7952. finally {
  7953. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7954. this.Adapter.UpdateCommand.Connection.Close();
  7955. }
  7956. }
  7957. }
  7958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7959. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7960. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7961. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7962. 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) {
  7963. return this.Update(Name, StartDate, Original_ID, Original_Name, Original_StartDate, Original_ID);
  7964. }
  7965. }
  7966. /// <summary>
  7967. ///Represents the connection and commands used to retrieve and save data.
  7968. ///</summary>
  7969. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7970. [global::System.ComponentModel.ToolboxItem(true)]
  7971. [global::System.ComponentModel.DataObjectAttribute(true)]
  7972. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7973. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7974. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7975. public partial class ProductTableAdapter : global::System.ComponentModel.Component {
  7976. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7977. private global::System.Data.SqlClient.SqlConnection _connection;
  7978. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7979. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7980. private bool _clearBeforeFill;
  7981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7982. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7983. public ProductTableAdapter() {
  7984. this.ClearBeforeFill = true;
  7985. }
  7986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7987. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7988. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7989. get {
  7990. if ((this._adapter == null)) {
  7991. this.InitAdapter();
  7992. }
  7993. return this._adapter;
  7994. }
  7995. }
  7996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7998. internal global::System.Data.SqlClient.SqlConnection Connection {
  7999. get {
  8000. if ((this._connection == null)) {
  8001. this.InitConnection();
  8002. }
  8003. return this._connection;
  8004. }
  8005. set {
  8006. this._connection = value;
  8007. if ((this.Adapter.InsertCommand != null)) {
  8008. this.Adapter.InsertCommand.Connection = value;
  8009. }
  8010. if ((this.Adapter.DeleteCommand != null)) {
  8011. this.Adapter.DeleteCommand.Connection = value;
  8012. }
  8013. if ((this.Adapter.UpdateCommand != null)) {
  8014. this.Adapter.UpdateCommand.Connection = value;
  8015. }
  8016. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8017. if ((this.CommandCollection[i] != null)) {
  8018. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8019. }
  8020. }
  8021. }
  8022. }
  8023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8025. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8026. get {
  8027. return this._transaction;
  8028. }
  8029. set {
  8030. this._transaction = value;
  8031. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8032. this.CommandCollection[i].Transaction = this._transaction;
  8033. }
  8034. if (((this.Adapter != null)
  8035. && (this.Adapter.DeleteCommand != null))) {
  8036. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8037. }
  8038. if (((this.Adapter != null)
  8039. && (this.Adapter.InsertCommand != null))) {
  8040. this.Adapter.InsertCommand.Transaction = this._transaction;
  8041. }
  8042. if (((this.Adapter != null)
  8043. && (this.Adapter.UpdateCommand != null))) {
  8044. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8045. }
  8046. }
  8047. }
  8048. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8049. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8050. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8051. get {
  8052. if ((this._commandCollection == null)) {
  8053. this.InitCommandCollection();
  8054. }
  8055. return this._commandCollection;
  8056. }
  8057. }
  8058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8060. public bool ClearBeforeFill {
  8061. get {
  8062. return this._clearBeforeFill;
  8063. }
  8064. set {
  8065. this._clearBeforeFill = value;
  8066. }
  8067. }
  8068. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8069. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8070. private void InitAdapter() {
  8071. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8072. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8073. tableMapping.SourceTable = "Table";
  8074. tableMapping.DataSetTable = "Product";
  8075. tableMapping.ColumnMappings.Add("ID", "ID");
  8076. tableMapping.ColumnMappings.Add("Title", "Title");
  8077. tableMapping.ColumnMappings.Add("Cost", "Cost");
  8078. tableMapping.ColumnMappings.Add("Description", "Description");
  8079. tableMapping.ColumnMappings.Add("MainImagePath", "MainImagePath");
  8080. tableMapping.ColumnMappings.Add("IsActive", "IsActive");
  8081. tableMapping.ColumnMappings.Add("ManufacturerID", "ManufacturerID");
  8082. this._adapter.TableMappings.Add(tableMapping);
  8083. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8084. this._adapter.DeleteCommand.Connection = this.Connection;
  8085. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Product] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([Cost] = @Original_Cost) AND ([IsActive] = @Original_IsActive) AND ((@IsNull_ManufacturerID = 1 AND [ManufacturerID] IS NULL) OR ([ManufacturerID] = @Original_ManufacturerID)))";
  8086. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8087. 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, "", "", ""));
  8088. 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, "", "", ""));
  8089. 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, "", "", ""));
  8090. 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, "", "", ""));
  8091. 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, "", "", ""));
  8092. 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, "", "", ""));
  8093. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8094. this._adapter.InsertCommand.Connection = this.Connection;
  8095. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Product] ([Title], [Cost], [Description], [MainImagePath], [IsActive], [ManufacturerID]) VALUES (@Title, @Cost, @Description, @MainImagePath, @IsActive, @ManufacturerID);
  8096. SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM Product WHERE (ID = SCOPE_IDENTITY())";
  8097. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8098. 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, "", "", ""));
  8099. 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, "", "", ""));
  8100. 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, "", "", ""));
  8101. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MainImagePath", global::System.Data.SqlDbType.VarBinary, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainImagePath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8102. 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, "", "", ""));
  8103. 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, "", "", ""));
  8104. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8105. this._adapter.UpdateCommand.Connection = this.Connection;
  8106. 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 ([IsActive] = @Original_IsActive) AND ((@IsNull_ManufacturerID = 1 AND [ManufacturerID] IS NULL) OR ([ManufacturerID] = @Original_ManufacturerID)));
  8107. SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM Product WHERE (ID = @ID)";
  8108. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8109. 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, "", "", ""));
  8110. 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, "", "", ""));
  8111. 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, "", "", ""));
  8112. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MainImagePath", global::System.Data.SqlDbType.VarBinary, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainImagePath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8113. 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, "", "", ""));
  8114. 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, "", "", ""));
  8115. 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, "", "", ""));
  8116. 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, "", "", ""));
  8117. 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, "", "", ""));
  8118. 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, "", "", ""));
  8119. 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, "", "", ""));
  8120. 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, "", "", ""));
  8121. 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, "", "", ""));
  8122. }
  8123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8125. private void InitConnection() {
  8126. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8127. this._connection.ConnectionString = global::Brovi11.Properties.Settings.Default._1Brovi11ConnectionString;
  8128. }
  8129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8131. private void InitCommandCollection() {
  8132. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8133. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8134. this._commandCollection[0].Connection = this.Connection;
  8135. this._commandCollection[0].CommandText = "SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM" +
  8136. " dbo.Product";
  8137. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8138. }
  8139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8141. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8142. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8143. public virtual int Fill(_1Brovi11DataSet.ProductDataTable dataTable) {
  8144. this.Adapter.SelectCommand = this.CommandCollection[0];
  8145. if ((this.ClearBeforeFill == true)) {
  8146. dataTable.Clear();
  8147. }
  8148. int returnValue = this.Adapter.Fill(dataTable);
  8149. return returnValue;
  8150. }
  8151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8153. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8154. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8155. public virtual _1Brovi11DataSet.ProductDataTable GetData() {
  8156. this.Adapter.SelectCommand = this.CommandCollection[0];
  8157. _1Brovi11DataSet.ProductDataTable dataTable = new _1Brovi11DataSet.ProductDataTable();
  8158. this.Adapter.Fill(dataTable);
  8159. return dataTable;
  8160. }
  8161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8162. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8163. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8164. public virtual int Update(_1Brovi11DataSet.ProductDataTable dataTable) {
  8165. return this.Adapter.Update(dataTable);
  8166. }
  8167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8169. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8170. public virtual int Update(_1Brovi11DataSet dataSet) {
  8171. return this.Adapter.Update(dataSet, "Product");
  8172. }
  8173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8175. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8176. public virtual int Update(global::System.Data.DataRow dataRow) {
  8177. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8178. dataRow});
  8179. }
  8180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8182. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8183. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8184. return this.Adapter.Update(dataRows);
  8185. }
  8186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8188. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8189. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8190. public virtual int Delete(int Original_ID, string Original_Title, decimal Original_Cost, bool Original_IsActive, global::System.Nullable<int> Original_ManufacturerID) {
  8191. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  8192. if ((Original_Title == null)) {
  8193. throw new global::System.ArgumentNullException("Original_Title");
  8194. }
  8195. else {
  8196. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  8197. }
  8198. this.Adapter.DeleteCommand.Parameters[2].Value = ((decimal)(Original_Cost));
  8199. this.Adapter.DeleteCommand.Parameters[3].Value = ((bool)(Original_IsActive));
  8200. if ((Original_ManufacturerID.HasValue == true)) {
  8201. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  8202. this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_ManufacturerID.Value));
  8203. }
  8204. else {
  8205. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  8206. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  8207. }
  8208. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8209. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8210. != global::System.Data.ConnectionState.Open)) {
  8211. this.Adapter.DeleteCommand.Connection.Open();
  8212. }
  8213. try {
  8214. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8215. return returnValue;
  8216. }
  8217. finally {
  8218. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8219. this.Adapter.DeleteCommand.Connection.Close();
  8220. }
  8221. }
  8222. }
  8223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8225. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8226. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8227. public virtual int Insert(string Title, decimal Cost, string Description, byte[] MainImagePath, bool IsActive, global::System.Nullable<int> ManufacturerID) {
  8228. if ((Title == null)) {
  8229. throw new global::System.ArgumentNullException("Title");
  8230. }
  8231. else {
  8232. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  8233. }
  8234. this.Adapter.InsertCommand.Parameters[1].Value = ((decimal)(Cost));
  8235. if ((Description == null)) {
  8236. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  8237. }
  8238. else {
  8239. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Description));
  8240. }
  8241. if ((MainImagePath == null)) {
  8242. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  8243. }
  8244. else {
  8245. this.Adapter.InsertCommand.Parameters[3].Value = ((byte[])(MainImagePath));
  8246. }
  8247. this.Adapter.InsertCommand.Parameters[4].Value = ((bool)(IsActive));
  8248. if ((ManufacturerID.HasValue == true)) {
  8249. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(ManufacturerID.Value));
  8250. }
  8251. else {
  8252. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  8253. }
  8254. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8255. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8256. != global::System.Data.ConnectionState.Open)) {
  8257. this.Adapter.InsertCommand.Connection.Open();
  8258. }
  8259. try {
  8260. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8261. return returnValue;
  8262. }
  8263. finally {
  8264. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8265. this.Adapter.InsertCommand.Connection.Close();
  8266. }
  8267. }
  8268. }
  8269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8270. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8271. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8272. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8273. public virtual int Update(string Title, decimal Cost, string Description, byte[] MainImagePath, bool IsActive, global::System.Nullable<int> ManufacturerID, int Original_ID, string Original_Title, decimal Original_Cost, bool Original_IsActive, global::System.Nullable<int> Original_ManufacturerID, int ID) {
  8274. if ((Title == null)) {
  8275. throw new global::System.ArgumentNullException("Title");
  8276. }
  8277. else {
  8278. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  8279. }
  8280. this.Adapter.UpdateCommand.Parameters[1].Value = ((decimal)(Cost));
  8281. if ((Description == null)) {
  8282. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  8283. }
  8284. else {
  8285. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Description));
  8286. }
  8287. if ((MainImagePath == null)) {
  8288. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8289. }
  8290. else {
  8291. this.Adapter.UpdateCommand.Parameters[3].Value = ((byte[])(MainImagePath));
  8292. }
  8293. this.Adapter.UpdateCommand.Parameters[4].Value = ((bool)(IsActive));
  8294. if ((ManufacturerID.HasValue == true)) {
  8295. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ManufacturerID.Value));
  8296. }
  8297. else {
  8298. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  8299. }
  8300. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ID));
  8301. if ((Original_Title == null)) {
  8302. throw new global::System.ArgumentNullException("Original_Title");
  8303. }
  8304. else {
  8305. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Title));
  8306. }
  8307. this.Adapter.UpdateCommand.Parameters[8].Value = ((decimal)(Original_Cost));
  8308. this.Adapter.UpdateCommand.Parameters[9].Value = ((bool)(Original_IsActive));
  8309. if ((Original_ManufacturerID.HasValue == true)) {
  8310. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  8311. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_ManufacturerID.Value));
  8312. }
  8313. else {
  8314. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  8315. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  8316. }
  8317. this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(ID));
  8318. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8319. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8320. != global::System.Data.ConnectionState.Open)) {
  8321. this.Adapter.UpdateCommand.Connection.Open();
  8322. }
  8323. try {
  8324. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8325. return returnValue;
  8326. }
  8327. finally {
  8328. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8329. this.Adapter.UpdateCommand.Connection.Close();
  8330. }
  8331. }
  8332. }
  8333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8335. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8336. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8337. public virtual int Update(string Title, decimal Cost, string Description, byte[] MainImagePath, bool IsActive, global::System.Nullable<int> ManufacturerID, int Original_ID, string Original_Title, decimal Original_Cost, bool Original_IsActive, global::System.Nullable<int> Original_ManufacturerID) {
  8338. return this.Update(Title, Cost, Description, MainImagePath, IsActive, ManufacturerID, Original_ID, Original_Title, Original_Cost, Original_IsActive, Original_ManufacturerID, Original_ID);
  8339. }
  8340. }
  8341. /// <summary>
  8342. ///Represents the connection and commands used to retrieve and save data.
  8343. ///</summary>
  8344. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8345. [global::System.ComponentModel.ToolboxItem(true)]
  8346. [global::System.ComponentModel.DataObjectAttribute(true)]
  8347. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8348. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8349. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8350. public partial class ProductPhotoTableAdapter : global::System.ComponentModel.Component {
  8351. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8352. private global::System.Data.SqlClient.SqlConnection _connection;
  8353. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8354. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8355. private bool _clearBeforeFill;
  8356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8358. public ProductPhotoTableAdapter() {
  8359. this.ClearBeforeFill = true;
  8360. }
  8361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8363. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8364. get {
  8365. if ((this._adapter == null)) {
  8366. this.InitAdapter();
  8367. }
  8368. return this._adapter;
  8369. }
  8370. }
  8371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8372. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8373. internal global::System.Data.SqlClient.SqlConnection Connection {
  8374. get {
  8375. if ((this._connection == null)) {
  8376. this.InitConnection();
  8377. }
  8378. return this._connection;
  8379. }
  8380. set {
  8381. this._connection = value;
  8382. if ((this.Adapter.InsertCommand != null)) {
  8383. this.Adapter.InsertCommand.Connection = value;
  8384. }
  8385. if ((this.Adapter.DeleteCommand != null)) {
  8386. this.Adapter.DeleteCommand.Connection = value;
  8387. }
  8388. if ((this.Adapter.UpdateCommand != null)) {
  8389. this.Adapter.UpdateCommand.Connection = value;
  8390. }
  8391. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8392. if ((this.CommandCollection[i] != null)) {
  8393. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8394. }
  8395. }
  8396. }
  8397. }
  8398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8400. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8401. get {
  8402. return this._transaction;
  8403. }
  8404. set {
  8405. this._transaction = value;
  8406. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8407. this.CommandCollection[i].Transaction = this._transaction;
  8408. }
  8409. if (((this.Adapter != null)
  8410. && (this.Adapter.DeleteCommand != null))) {
  8411. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8412. }
  8413. if (((this.Adapter != null)
  8414. && (this.Adapter.InsertCommand != null))) {
  8415. this.Adapter.InsertCommand.Transaction = this._transaction;
  8416. }
  8417. if (((this.Adapter != null)
  8418. && (this.Adapter.UpdateCommand != null))) {
  8419. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8420. }
  8421. }
  8422. }
  8423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8425. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8426. get {
  8427. if ((this._commandCollection == null)) {
  8428. this.InitCommandCollection();
  8429. }
  8430. return this._commandCollection;
  8431. }
  8432. }
  8433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8434. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8435. public bool ClearBeforeFill {
  8436. get {
  8437. return this._clearBeforeFill;
  8438. }
  8439. set {
  8440. this._clearBeforeFill = value;
  8441. }
  8442. }
  8443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8444. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8445. private void InitAdapter() {
  8446. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8447. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8448. tableMapping.SourceTable = "Table";
  8449. tableMapping.DataSetTable = "ProductPhoto";
  8450. tableMapping.ColumnMappings.Add("ID", "ID");
  8451. tableMapping.ColumnMappings.Add("ProductID", "ProductID");
  8452. tableMapping.ColumnMappings.Add("PhotoPath", "PhotoPath");
  8453. this._adapter.TableMappings.Add(tableMapping);
  8454. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8455. this._adapter.DeleteCommand.Connection = this.Connection;
  8456. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ProductPhoto] WHERE (([ID] = @Original_ID) AND ([ProductID] = " +
  8457. "@Original_ProductID) AND ([PhotoPath] = @Original_PhotoPath))";
  8458. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8459. 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, "", "", ""));
  8460. 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, "", "", ""));
  8461. 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, "", "", ""));
  8462. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8463. this._adapter.InsertCommand.Connection = this.Connection;
  8464. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ProductPhoto] ([ProductID], [PhotoPath]) VALUES (@ProductID, @" +
  8465. "PhotoPath);\r\nSELECT ID, ProductID, PhotoPath FROM ProductPhoto WHERE (ID = SCOPE" +
  8466. "_IDENTITY())";
  8467. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8468. 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, "", "", ""));
  8469. 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, "", "", ""));
  8470. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8471. this._adapter.UpdateCommand.Connection = this.Connection;
  8472. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ProductPhoto] SET [ProductID] = @ProductID, [PhotoPath] = @PhotoPath WHERE (([ID] = @Original_ID) AND ([ProductID] = @Original_ProductID) AND ([PhotoPath] = @Original_PhotoPath));
  8473. SELECT ID, ProductID, PhotoPath FROM ProductPhoto WHERE (ID = @ID)";
  8474. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8475. 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, "", "", ""));
  8476. 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, "", "", ""));
  8477. 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, "", "", ""));
  8478. 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, "", "", ""));
  8479. 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, "", "", ""));
  8480. 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, "", "", ""));
  8481. }
  8482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8484. private void InitConnection() {
  8485. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8486. this._connection.ConnectionString = global::Brovi11.Properties.Settings.Default._1Brovi11ConnectionString;
  8487. }
  8488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8490. private void InitCommandCollection() {
  8491. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8492. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8493. this._commandCollection[0].Connection = this.Connection;
  8494. this._commandCollection[0].CommandText = "SELECT ID, ProductID, PhotoPath FROM dbo.ProductPhoto";
  8495. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8496. }
  8497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8499. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8500. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8501. public virtual int Fill(_1Brovi11DataSet.ProductPhotoDataTable dataTable) {
  8502. this.Adapter.SelectCommand = this.CommandCollection[0];
  8503. if ((this.ClearBeforeFill == true)) {
  8504. dataTable.Clear();
  8505. }
  8506. int returnValue = this.Adapter.Fill(dataTable);
  8507. return returnValue;
  8508. }
  8509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8511. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8512. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8513. public virtual _1Brovi11DataSet.ProductPhotoDataTable GetData() {
  8514. this.Adapter.SelectCommand = this.CommandCollection[0];
  8515. _1Brovi11DataSet.ProductPhotoDataTable dataTable = new _1Brovi11DataSet.ProductPhotoDataTable();
  8516. this.Adapter.Fill(dataTable);
  8517. return dataTable;
  8518. }
  8519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8521. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8522. public virtual int Update(_1Brovi11DataSet.ProductPhotoDataTable dataTable) {
  8523. return this.Adapter.Update(dataTable);
  8524. }
  8525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8526. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8527. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8528. public virtual int Update(_1Brovi11DataSet dataSet) {
  8529. return this.Adapter.Update(dataSet, "ProductPhoto");
  8530. }
  8531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8533. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8534. public virtual int Update(global::System.Data.DataRow dataRow) {
  8535. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8536. dataRow});
  8537. }
  8538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8539. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8540. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8541. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8542. return this.Adapter.Update(dataRows);
  8543. }
  8544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8545. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8546. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8547. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8548. public virtual int Delete(int Original_ID, int Original_ProductID, string Original_PhotoPath) {
  8549. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  8550. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ProductID));
  8551. if ((Original_PhotoPath == null)) {
  8552. throw new global::System.ArgumentNullException("Original_PhotoPath");
  8553. }
  8554. else {
  8555. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_PhotoPath));
  8556. }
  8557. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8558. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8559. != global::System.Data.ConnectionState.Open)) {
  8560. this.Adapter.DeleteCommand.Connection.Open();
  8561. }
  8562. try {
  8563. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8564. return returnValue;
  8565. }
  8566. finally {
  8567. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8568. this.Adapter.DeleteCommand.Connection.Close();
  8569. }
  8570. }
  8571. }
  8572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8574. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8575. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8576. public virtual int Insert(int ProductID, string PhotoPath) {
  8577. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ProductID));
  8578. if ((PhotoPath == null)) {
  8579. throw new global::System.ArgumentNullException("PhotoPath");
  8580. }
  8581. else {
  8582. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(PhotoPath));
  8583. }
  8584. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8585. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8586. != global::System.Data.ConnectionState.Open)) {
  8587. this.Adapter.InsertCommand.Connection.Open();
  8588. }
  8589. try {
  8590. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8591. return returnValue;
  8592. }
  8593. finally {
  8594. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8595. this.Adapter.InsertCommand.Connection.Close();
  8596. }
  8597. }
  8598. }
  8599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8600. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8601. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8602. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8603. public virtual int Update(int ProductID, string PhotoPath, int Original_ID, int Original_ProductID, string Original_PhotoPath, int ID) {
  8604. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ProductID));
  8605. if ((PhotoPath == null)) {
  8606. throw new global::System.ArgumentNullException("PhotoPath");
  8607. }
  8608. else {
  8609. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(PhotoPath));
  8610. }
  8611. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  8612. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ProductID));
  8613. if ((Original_PhotoPath == null)) {
  8614. throw new global::System.ArgumentNullException("Original_PhotoPath");
  8615. }
  8616. else {
  8617. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_PhotoPath));
  8618. }
  8619. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  8620. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8621. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8622. != global::System.Data.ConnectionState.Open)) {
  8623. this.Adapter.UpdateCommand.Connection.Open();
  8624. }
  8625. try {
  8626. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8627. return returnValue;
  8628. }
  8629. finally {
  8630. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8631. this.Adapter.UpdateCommand.Connection.Close();
  8632. }
  8633. }
  8634. }
  8635. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8636. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8637. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8638. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8639. public virtual int Update(int ProductID, string PhotoPath, int Original_ID, int Original_ProductID, string Original_PhotoPath) {
  8640. return this.Update(ProductID, PhotoPath, Original_ID, Original_ProductID, Original_PhotoPath, Original_ID);
  8641. }
  8642. }
  8643. /// <summary>
  8644. ///Represents the connection and commands used to retrieve and save data.
  8645. ///</summary>
  8646. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8647. [global::System.ComponentModel.ToolboxItem(true)]
  8648. [global::System.ComponentModel.DataObjectAttribute(true)]
  8649. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8650. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8651. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8652. public partial class ProductSaleTableAdapter : global::System.ComponentModel.Component {
  8653. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8654. private global::System.Data.SqlClient.SqlConnection _connection;
  8655. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8656. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8657. private bool _clearBeforeFill;
  8658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8660. public ProductSaleTableAdapter() {
  8661. this.ClearBeforeFill = true;
  8662. }
  8663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8665. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8666. get {
  8667. if ((this._adapter == null)) {
  8668. this.InitAdapter();
  8669. }
  8670. return this._adapter;
  8671. }
  8672. }
  8673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8675. internal global::System.Data.SqlClient.SqlConnection Connection {
  8676. get {
  8677. if ((this._connection == null)) {
  8678. this.InitConnection();
  8679. }
  8680. return this._connection;
  8681. }
  8682. set {
  8683. this._connection = value;
  8684. if ((this.Adapter.InsertCommand != null)) {
  8685. this.Adapter.InsertCommand.Connection = value;
  8686. }
  8687. if ((this.Adapter.DeleteCommand != null)) {
  8688. this.Adapter.DeleteCommand.Connection = value;
  8689. }
  8690. if ((this.Adapter.UpdateCommand != null)) {
  8691. this.Adapter.UpdateCommand.Connection = value;
  8692. }
  8693. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8694. if ((this.CommandCollection[i] != null)) {
  8695. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8696. }
  8697. }
  8698. }
  8699. }
  8700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8702. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8703. get {
  8704. return this._transaction;
  8705. }
  8706. set {
  8707. this._transaction = value;
  8708. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8709. this.CommandCollection[i].Transaction = this._transaction;
  8710. }
  8711. if (((this.Adapter != null)
  8712. && (this.Adapter.DeleteCommand != null))) {
  8713. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8714. }
  8715. if (((this.Adapter != null)
  8716. && (this.Adapter.InsertCommand != null))) {
  8717. this.Adapter.InsertCommand.Transaction = this._transaction;
  8718. }
  8719. if (((this.Adapter != null)
  8720. && (this.Adapter.UpdateCommand != null))) {
  8721. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8722. }
  8723. }
  8724. }
  8725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8727. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8728. get {
  8729. if ((this._commandCollection == null)) {
  8730. this.InitCommandCollection();
  8731. }
  8732. return this._commandCollection;
  8733. }
  8734. }
  8735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8737. public bool ClearBeforeFill {
  8738. get {
  8739. return this._clearBeforeFill;
  8740. }
  8741. set {
  8742. this._clearBeforeFill = value;
  8743. }
  8744. }
  8745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8747. private void InitAdapter() {
  8748. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8749. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8750. tableMapping.SourceTable = "Table";
  8751. tableMapping.DataSetTable = "ProductSale";
  8752. tableMapping.ColumnMappings.Add("ID", "ID");
  8753. tableMapping.ColumnMappings.Add("SaleDate", "SaleDate");
  8754. tableMapping.ColumnMappings.Add("ProductID", "ProductID");
  8755. tableMapping.ColumnMappings.Add("Quantity", "Quantity");
  8756. tableMapping.ColumnMappings.Add("ClientServiceID", "ClientServiceID");
  8757. this._adapter.TableMappings.Add(tableMapping);
  8758. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8759. this._adapter.DeleteCommand.Connection = this.Connection;
  8760. 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)))";
  8761. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8762. 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, "", "", ""));
  8763. 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, "", "", ""));
  8764. 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, "", "", ""));
  8765. 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, "", "", ""));
  8766. 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, "", "", ""));
  8767. 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, "", "", ""));
  8768. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8769. this._adapter.InsertCommand.Connection = this.Connection;
  8770. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ProductSale] ([SaleDate], [ProductID], [Quantity], [ClientServ" +
  8771. "iceID]) VALUES (@SaleDate, @ProductID, @Quantity, @ClientServiceID);\r\nSELECT ID," +
  8772. " SaleDate, ProductID, Quantity, ClientServiceID FROM ProductSale WHERE (ID = SCO" +
  8773. "PE_IDENTITY())";
  8774. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8775. 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, "", "", ""));
  8776. 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, "", "", ""));
  8777. 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, "", "", ""));
  8778. 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, "", "", ""));
  8779. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8780. this._adapter.UpdateCommand.Connection = this.Connection;
  8781. 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)));
  8782. SELECT ID, SaleDate, ProductID, Quantity, ClientServiceID FROM ProductSale WHERE (ID = @ID)";
  8783. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8784. 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, "", "", ""));
  8785. 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, "", "", ""));
  8786. 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, "", "", ""));
  8787. 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, "", "", ""));
  8788. 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, "", "", ""));
  8789. 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, "", "", ""));
  8790. 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, "", "", ""));
  8791. 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, "", "", ""));
  8792. 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, "", "", ""));
  8793. 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, "", "", ""));
  8794. 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, "", "", ""));
  8795. }
  8796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8798. private void InitConnection() {
  8799. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8800. this._connection.ConnectionString = global::Brovi11.Properties.Settings.Default._1Brovi11ConnectionString;
  8801. }
  8802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8804. private void InitCommandCollection() {
  8805. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8806. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8807. this._commandCollection[0].Connection = this.Connection;
  8808. this._commandCollection[0].CommandText = "SELECT ID, SaleDate, ProductID, Quantity, ClientServiceID FROM dbo.ProductSale";
  8809. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8810. }
  8811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8813. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8814. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8815. public virtual int Fill(_1Brovi11DataSet.ProductSaleDataTable dataTable) {
  8816. this.Adapter.SelectCommand = this.CommandCollection[0];
  8817. if ((this.ClearBeforeFill == true)) {
  8818. dataTable.Clear();
  8819. }
  8820. int returnValue = this.Adapter.Fill(dataTable);
  8821. return returnValue;
  8822. }
  8823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8825. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8826. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8827. public virtual _1Brovi11DataSet.ProductSaleDataTable GetData() {
  8828. this.Adapter.SelectCommand = this.CommandCollection[0];
  8829. _1Brovi11DataSet.ProductSaleDataTable dataTable = new _1Brovi11DataSet.ProductSaleDataTable();
  8830. this.Adapter.Fill(dataTable);
  8831. return dataTable;
  8832. }
  8833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8835. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8836. public virtual int Update(_1Brovi11DataSet.ProductSaleDataTable dataTable) {
  8837. return this.Adapter.Update(dataTable);
  8838. }
  8839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8841. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8842. public virtual int Update(_1Brovi11DataSet dataSet) {
  8843. return this.Adapter.Update(dataSet, "ProductSale");
  8844. }
  8845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8847. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8848. public virtual int Update(global::System.Data.DataRow dataRow) {
  8849. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8850. dataRow});
  8851. }
  8852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8854. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8855. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8856. return this.Adapter.Update(dataRows);
  8857. }
  8858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8860. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8861. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8862. public virtual int Delete(int Original_ID, System.DateTime Original_SaleDate, int Original_ProductID, int Original_Quantity, global::System.Nullable<int> Original_ClientServiceID) {
  8863. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  8864. this.Adapter.DeleteCommand.Parameters[1].Value = ((System.DateTime)(Original_SaleDate));
  8865. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_ProductID));
  8866. this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_Quantity));
  8867. if ((Original_ClientServiceID.HasValue == true)) {
  8868. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  8869. this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_ClientServiceID.Value));
  8870. }
  8871. else {
  8872. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  8873. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  8874. }
  8875. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8876. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8877. != global::System.Data.ConnectionState.Open)) {
  8878. this.Adapter.DeleteCommand.Connection.Open();
  8879. }
  8880. try {
  8881. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8882. return returnValue;
  8883. }
  8884. finally {
  8885. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8886. this.Adapter.DeleteCommand.Connection.Close();
  8887. }
  8888. }
  8889. }
  8890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8892. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8893. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8894. public virtual int Insert(System.DateTime SaleDate, int ProductID, int Quantity, global::System.Nullable<int> ClientServiceID) {
  8895. this.Adapter.InsertCommand.Parameters[0].Value = ((System.DateTime)(SaleDate));
  8896. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ProductID));
  8897. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Quantity));
  8898. if ((ClientServiceID.HasValue == true)) {
  8899. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(ClientServiceID.Value));
  8900. }
  8901. else {
  8902. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  8903. }
  8904. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8905. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8906. != global::System.Data.ConnectionState.Open)) {
  8907. this.Adapter.InsertCommand.Connection.Open();
  8908. }
  8909. try {
  8910. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8911. return returnValue;
  8912. }
  8913. finally {
  8914. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8915. this.Adapter.InsertCommand.Connection.Close();
  8916. }
  8917. }
  8918. }
  8919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8921. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8922. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8923. 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) {
  8924. this.Adapter.UpdateCommand.Parameters[0].Value = ((System.DateTime)(SaleDate));
  8925. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(ProductID));
  8926. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Quantity));
  8927. if ((ClientServiceID.HasValue == true)) {
  8928. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(ClientServiceID.Value));
  8929. }
  8930. else {
  8931. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8932. }
  8933. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_ID));
  8934. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(Original_SaleDate));
  8935. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ProductID));
  8936. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_Quantity));
  8937. if ((Original_ClientServiceID.HasValue == true)) {
  8938. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  8939. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_ClientServiceID.Value));
  8940. }
  8941. else {
  8942. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  8943. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  8944. }
  8945. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(ID));
  8946. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8947. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8948. != global::System.Data.ConnectionState.Open)) {
  8949. this.Adapter.UpdateCommand.Connection.Open();
  8950. }
  8951. try {
  8952. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8953. return returnValue;
  8954. }
  8955. finally {
  8956. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8957. this.Adapter.UpdateCommand.Connection.Close();
  8958. }
  8959. }
  8960. }
  8961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8963. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8964. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8965. 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) {
  8966. return this.Update(SaleDate, ProductID, Quantity, ClientServiceID, Original_ID, Original_SaleDate, Original_ProductID, Original_Quantity, Original_ClientServiceID, Original_ID);
  8967. }
  8968. }
  8969. /// <summary>
  8970. ///Represents the connection and commands used to retrieve and save data.
  8971. ///</summary>
  8972. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8973. [global::System.ComponentModel.ToolboxItem(true)]
  8974. [global::System.ComponentModel.DataObjectAttribute(true)]
  8975. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8976. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8977. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8978. public partial class ServiceTableAdapter : global::System.ComponentModel.Component {
  8979. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8980. private global::System.Data.SqlClient.SqlConnection _connection;
  8981. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8982. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8983. private bool _clearBeforeFill;
  8984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8986. public ServiceTableAdapter() {
  8987. this.ClearBeforeFill = true;
  8988. }
  8989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8991. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8992. get {
  8993. if ((this._adapter == null)) {
  8994. this.InitAdapter();
  8995. }
  8996. return this._adapter;
  8997. }
  8998. }
  8999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9001. internal global::System.Data.SqlClient.SqlConnection Connection {
  9002. get {
  9003. if ((this._connection == null)) {
  9004. this.InitConnection();
  9005. }
  9006. return this._connection;
  9007. }
  9008. set {
  9009. this._connection = value;
  9010. if ((this.Adapter.InsertCommand != null)) {
  9011. this.Adapter.InsertCommand.Connection = value;
  9012. }
  9013. if ((this.Adapter.DeleteCommand != null)) {
  9014. this.Adapter.DeleteCommand.Connection = value;
  9015. }
  9016. if ((this.Adapter.UpdateCommand != null)) {
  9017. this.Adapter.UpdateCommand.Connection = value;
  9018. }
  9019. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9020. if ((this.CommandCollection[i] != null)) {
  9021. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9022. }
  9023. }
  9024. }
  9025. }
  9026. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9027. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9028. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9029. get {
  9030. return this._transaction;
  9031. }
  9032. set {
  9033. this._transaction = value;
  9034. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9035. this.CommandCollection[i].Transaction = this._transaction;
  9036. }
  9037. if (((this.Adapter != null)
  9038. && (this.Adapter.DeleteCommand != null))) {
  9039. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9040. }
  9041. if (((this.Adapter != null)
  9042. && (this.Adapter.InsertCommand != null))) {
  9043. this.Adapter.InsertCommand.Transaction = this._transaction;
  9044. }
  9045. if (((this.Adapter != null)
  9046. && (this.Adapter.UpdateCommand != null))) {
  9047. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9048. }
  9049. }
  9050. }
  9051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9053. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9054. get {
  9055. if ((this._commandCollection == null)) {
  9056. this.InitCommandCollection();
  9057. }
  9058. return this._commandCollection;
  9059. }
  9060. }
  9061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9063. public bool ClearBeforeFill {
  9064. get {
  9065. return this._clearBeforeFill;
  9066. }
  9067. set {
  9068. this._clearBeforeFill = value;
  9069. }
  9070. }
  9071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9073. private void InitAdapter() {
  9074. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9075. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9076. tableMapping.SourceTable = "Table";
  9077. tableMapping.DataSetTable = "Service";
  9078. tableMapping.ColumnMappings.Add("ID", "ID");
  9079. tableMapping.ColumnMappings.Add("Title", "Title");
  9080. tableMapping.ColumnMappings.Add("Cost", "Cost");
  9081. tableMapping.ColumnMappings.Add("DurationInSeconds", "DurationInSeconds");
  9082. tableMapping.ColumnMappings.Add("Description", "Description");
  9083. tableMapping.ColumnMappings.Add("Discount", "Discount");
  9084. tableMapping.ColumnMappings.Add("MainImagePath", "MainImagePath");
  9085. this._adapter.TableMappings.Add(tableMapping);
  9086. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9087. this._adapter.DeleteCommand.Connection = this.Connection;
  9088. 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)))";
  9089. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9090. 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, "", "", ""));
  9091. 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, "", "", ""));
  9092. 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, "", "", ""));
  9093. 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, "", "", ""));
  9094. 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, "", "", ""));
  9095. 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, "", "", ""));
  9096. 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, "", "", ""));
  9097. 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, "", "", ""));
  9098. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9099. this._adapter.InsertCommand.Connection = this.Connection;
  9100. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Service] ([Title], [Cost], [DurationInSeconds], [Description], [Discount], [MainImagePath]) VALUES (@Title, @Cost, @DurationInSeconds, @Description, @Discount, @MainImagePath);
  9101. SELECT ID, Title, Cost, DurationInSeconds, Description, Discount, MainImagePath FROM Service WHERE (ID = SCOPE_IDENTITY())";
  9102. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9103. 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, "", "", ""));
  9104. 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, "", "", ""));
  9105. 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, "", "", ""));
  9106. 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, "", "", ""));
  9107. 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, "", "", ""));
  9108. 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, "", "", ""));
  9109. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9110. this._adapter.UpdateCommand.Connection = this.Connection;
  9111. 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)));
  9112. SELECT ID, Title, Cost, DurationInSeconds, Description, Discount, MainImagePath FROM Service WHERE (ID = @ID)";
  9113. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9114. 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, "", "", ""));
  9115. 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, "", "", ""));
  9116. 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, "", "", ""));
  9117. 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, "", "", ""));
  9118. 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, "", "", ""));
  9119. 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, "", "", ""));
  9120. 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, "", "", ""));
  9121. 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, "", "", ""));
  9122. 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, "", "", ""));
  9123. 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, "", "", ""));
  9124. 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, "", "", ""));
  9125. 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, "", "", ""));
  9126. 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, "", "", ""));
  9127. 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, "", "", ""));
  9128. 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, "", "", ""));
  9129. }
  9130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9132. private void InitConnection() {
  9133. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9134. this._connection.ConnectionString = global::Brovi11.Properties.Settings.Default._1Brovi11ConnectionString;
  9135. }
  9136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9138. private void InitCommandCollection() {
  9139. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9140. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9141. this._commandCollection[0].Connection = this.Connection;
  9142. this._commandCollection[0].CommandText = "SELECT ID, Title, Cost, DurationInSeconds, Description, Discount, MainImagePath F" +
  9143. "ROM dbo.Service";
  9144. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9145. }
  9146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9147. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9148. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9149. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9150. public virtual int Fill(_1Brovi11DataSet.ServiceDataTable dataTable) {
  9151. this.Adapter.SelectCommand = this.CommandCollection[0];
  9152. if ((this.ClearBeforeFill == true)) {
  9153. dataTable.Clear();
  9154. }
  9155. int returnValue = this.Adapter.Fill(dataTable);
  9156. return returnValue;
  9157. }
  9158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9160. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9161. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9162. public virtual _1Brovi11DataSet.ServiceDataTable GetData() {
  9163. this.Adapter.SelectCommand = this.CommandCollection[0];
  9164. _1Brovi11DataSet.ServiceDataTable dataTable = new _1Brovi11DataSet.ServiceDataTable();
  9165. this.Adapter.Fill(dataTable);
  9166. return dataTable;
  9167. }
  9168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9170. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9171. public virtual int Update(_1Brovi11DataSet.ServiceDataTable dataTable) {
  9172. return this.Adapter.Update(dataTable);
  9173. }
  9174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9176. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9177. public virtual int Update(_1Brovi11DataSet dataSet) {
  9178. return this.Adapter.Update(dataSet, "Service");
  9179. }
  9180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9182. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9183. public virtual int Update(global::System.Data.DataRow dataRow) {
  9184. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9185. dataRow});
  9186. }
  9187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9189. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9190. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9191. return this.Adapter.Update(dataRows);
  9192. }
  9193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9195. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9196. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9197. 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) {
  9198. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9199. if ((Original_Title == null)) {
  9200. throw new global::System.ArgumentNullException("Original_Title");
  9201. }
  9202. else {
  9203. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  9204. }
  9205. this.Adapter.DeleteCommand.Parameters[2].Value = ((decimal)(Original_Cost));
  9206. this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_DurationInSeconds));
  9207. if ((Original_Discount.HasValue == true)) {
  9208. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  9209. this.Adapter.DeleteCommand.Parameters[5].Value = ((double)(Original_Discount.Value));
  9210. }
  9211. else {
  9212. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  9213. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  9214. }
  9215. if ((Original_MainImagePath == null)) {
  9216. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
  9217. this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
  9218. }
  9219. else {
  9220. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
  9221. this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_MainImagePath));
  9222. }
  9223. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9224. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9225. != global::System.Data.ConnectionState.Open)) {
  9226. this.Adapter.DeleteCommand.Connection.Open();
  9227. }
  9228. try {
  9229. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9230. return returnValue;
  9231. }
  9232. finally {
  9233. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9234. this.Adapter.DeleteCommand.Connection.Close();
  9235. }
  9236. }
  9237. }
  9238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9240. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9241. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9242. public virtual int Insert(string Title, decimal Cost, int DurationInSeconds, string Description, global::System.Nullable<double> Discount, string MainImagePath) {
  9243. if ((Title == null)) {
  9244. throw new global::System.ArgumentNullException("Title");
  9245. }
  9246. else {
  9247. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  9248. }
  9249. this.Adapter.InsertCommand.Parameters[1].Value = ((decimal)(Cost));
  9250. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(DurationInSeconds));
  9251. if ((Description == null)) {
  9252. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  9253. }
  9254. else {
  9255. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Description));
  9256. }
  9257. if ((Discount.HasValue == true)) {
  9258. this.Adapter.InsertCommand.Parameters[4].Value = ((double)(Discount.Value));
  9259. }
  9260. else {
  9261. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  9262. }
  9263. if ((MainImagePath == null)) {
  9264. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  9265. }
  9266. else {
  9267. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(MainImagePath));
  9268. }
  9269. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9270. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9271. != global::System.Data.ConnectionState.Open)) {
  9272. this.Adapter.InsertCommand.Connection.Open();
  9273. }
  9274. try {
  9275. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9276. return returnValue;
  9277. }
  9278. finally {
  9279. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9280. this.Adapter.InsertCommand.Connection.Close();
  9281. }
  9282. }
  9283. }
  9284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9286. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9287. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9288. 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) {
  9289. if ((Title == null)) {
  9290. throw new global::System.ArgumentNullException("Title");
  9291. }
  9292. else {
  9293. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  9294. }
  9295. this.Adapter.UpdateCommand.Parameters[1].Value = ((decimal)(Cost));
  9296. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(DurationInSeconds));
  9297. if ((Description == null)) {
  9298. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  9299. }
  9300. else {
  9301. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Description));
  9302. }
  9303. if ((Discount.HasValue == true)) {
  9304. this.Adapter.UpdateCommand.Parameters[4].Value = ((double)(Discount.Value));
  9305. }
  9306. else {
  9307. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  9308. }
  9309. if ((MainImagePath == null)) {
  9310. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  9311. }
  9312. else {
  9313. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(MainImagePath));
  9314. }
  9315. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ID));
  9316. if ((Original_Title == null)) {
  9317. throw new global::System.ArgumentNullException("Original_Title");
  9318. }
  9319. else {
  9320. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Title));
  9321. }
  9322. this.Adapter.UpdateCommand.Parameters[8].Value = ((decimal)(Original_Cost));
  9323. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_DurationInSeconds));
  9324. if ((Original_Discount.HasValue == true)) {
  9325. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  9326. this.Adapter.UpdateCommand.Parameters[11].Value = ((double)(Original_Discount.Value));
  9327. }
  9328. else {
  9329. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  9330. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  9331. }
  9332. if ((Original_MainImagePath == null)) {
  9333. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  9334. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  9335. }
  9336. else {
  9337. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  9338. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_MainImagePath));
  9339. }
  9340. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(ID));
  9341. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9342. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9343. != global::System.Data.ConnectionState.Open)) {
  9344. this.Adapter.UpdateCommand.Connection.Open();
  9345. }
  9346. try {
  9347. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9348. return returnValue;
  9349. }
  9350. finally {
  9351. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9352. this.Adapter.UpdateCommand.Connection.Close();
  9353. }
  9354. }
  9355. }
  9356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9358. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9359. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9360. 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) {
  9361. return this.Update(Title, Cost, DurationInSeconds, Description, Discount, MainImagePath, Original_ID, Original_Title, Original_Cost, Original_DurationInSeconds, Original_Discount, Original_MainImagePath, Original_ID);
  9362. }
  9363. }
  9364. /// <summary>
  9365. ///Represents the connection and commands used to retrieve and save data.
  9366. ///</summary>
  9367. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9368. [global::System.ComponentModel.ToolboxItem(true)]
  9369. [global::System.ComponentModel.DataObjectAttribute(true)]
  9370. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9371. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9372. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9373. public partial class ServicePhotoTableAdapter : global::System.ComponentModel.Component {
  9374. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9375. private global::System.Data.SqlClient.SqlConnection _connection;
  9376. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9377. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9378. private bool _clearBeforeFill;
  9379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9381. public ServicePhotoTableAdapter() {
  9382. this.ClearBeforeFill = true;
  9383. }
  9384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9386. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9387. get {
  9388. if ((this._adapter == null)) {
  9389. this.InitAdapter();
  9390. }
  9391. return this._adapter;
  9392. }
  9393. }
  9394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9396. internal global::System.Data.SqlClient.SqlConnection Connection {
  9397. get {
  9398. if ((this._connection == null)) {
  9399. this.InitConnection();
  9400. }
  9401. return this._connection;
  9402. }
  9403. set {
  9404. this._connection = value;
  9405. if ((this.Adapter.InsertCommand != null)) {
  9406. this.Adapter.InsertCommand.Connection = value;
  9407. }
  9408. if ((this.Adapter.DeleteCommand != null)) {
  9409. this.Adapter.DeleteCommand.Connection = value;
  9410. }
  9411. if ((this.Adapter.UpdateCommand != null)) {
  9412. this.Adapter.UpdateCommand.Connection = value;
  9413. }
  9414. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9415. if ((this.CommandCollection[i] != null)) {
  9416. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9417. }
  9418. }
  9419. }
  9420. }
  9421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9423. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9424. get {
  9425. return this._transaction;
  9426. }
  9427. set {
  9428. this._transaction = value;
  9429. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9430. this.CommandCollection[i].Transaction = this._transaction;
  9431. }
  9432. if (((this.Adapter != null)
  9433. && (this.Adapter.DeleteCommand != null))) {
  9434. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9435. }
  9436. if (((this.Adapter != null)
  9437. && (this.Adapter.InsertCommand != null))) {
  9438. this.Adapter.InsertCommand.Transaction = this._transaction;
  9439. }
  9440. if (((this.Adapter != null)
  9441. && (this.Adapter.UpdateCommand != null))) {
  9442. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9443. }
  9444. }
  9445. }
  9446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9448. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9449. get {
  9450. if ((this._commandCollection == null)) {
  9451. this.InitCommandCollection();
  9452. }
  9453. return this._commandCollection;
  9454. }
  9455. }
  9456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9458. public bool ClearBeforeFill {
  9459. get {
  9460. return this._clearBeforeFill;
  9461. }
  9462. set {
  9463. this._clearBeforeFill = value;
  9464. }
  9465. }
  9466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9468. private void InitAdapter() {
  9469. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9470. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9471. tableMapping.SourceTable = "Table";
  9472. tableMapping.DataSetTable = "ServicePhoto";
  9473. tableMapping.ColumnMappings.Add("ID", "ID");
  9474. tableMapping.ColumnMappings.Add("ServiceID", "ServiceID");
  9475. tableMapping.ColumnMappings.Add("PhotoPath", "PhotoPath");
  9476. this._adapter.TableMappings.Add(tableMapping);
  9477. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9478. this._adapter.DeleteCommand.Connection = this.Connection;
  9479. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ServicePhoto] WHERE (([ID] = @Original_ID) AND ([ServiceID] = " +
  9480. "@Original_ServiceID) AND ([PhotoPath] = @Original_PhotoPath))";
  9481. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9482. 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, "", "", ""));
  9483. 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, "", "", ""));
  9484. 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, "", "", ""));
  9485. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9486. this._adapter.InsertCommand.Connection = this.Connection;
  9487. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ServicePhoto] ([ServiceID], [PhotoPath]) VALUES (@ServiceID, @" +
  9488. "PhotoPath);\r\nSELECT ID, ServiceID, PhotoPath FROM ServicePhoto WHERE (ID = SCOPE" +
  9489. "_IDENTITY())";
  9490. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9491. 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, "", "", ""));
  9492. 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, "", "", ""));
  9493. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9494. this._adapter.UpdateCommand.Connection = this.Connection;
  9495. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ServicePhoto] SET [ServiceID] = @ServiceID, [PhotoPath] = @PhotoPath WHERE (([ID] = @Original_ID) AND ([ServiceID] = @Original_ServiceID) AND ([PhotoPath] = @Original_PhotoPath));
  9496. SELECT ID, ServiceID, PhotoPath FROM ServicePhoto WHERE (ID = @ID)";
  9497. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9498. 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, "", "", ""));
  9499. 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, "", "", ""));
  9500. 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, "", "", ""));
  9501. 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, "", "", ""));
  9502. 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, "", "", ""));
  9503. 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, "", "", ""));
  9504. }
  9505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9507. private void InitConnection() {
  9508. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9509. this._connection.ConnectionString = global::Brovi11.Properties.Settings.Default._1Brovi11ConnectionString;
  9510. }
  9511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9513. private void InitCommandCollection() {
  9514. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9515. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9516. this._commandCollection[0].Connection = this.Connection;
  9517. this._commandCollection[0].CommandText = "SELECT ID, ServiceID, PhotoPath FROM dbo.ServicePhoto";
  9518. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9519. }
  9520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9522. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9523. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9524. public virtual int Fill(_1Brovi11DataSet.ServicePhotoDataTable dataTable) {
  9525. this.Adapter.SelectCommand = this.CommandCollection[0];
  9526. if ((this.ClearBeforeFill == true)) {
  9527. dataTable.Clear();
  9528. }
  9529. int returnValue = this.Adapter.Fill(dataTable);
  9530. return returnValue;
  9531. }
  9532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9533. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9534. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9535. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9536. public virtual _1Brovi11DataSet.ServicePhotoDataTable GetData() {
  9537. this.Adapter.SelectCommand = this.CommandCollection[0];
  9538. _1Brovi11DataSet.ServicePhotoDataTable dataTable = new _1Brovi11DataSet.ServicePhotoDataTable();
  9539. this.Adapter.Fill(dataTable);
  9540. return dataTable;
  9541. }
  9542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9544. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9545. public virtual int Update(_1Brovi11DataSet.ServicePhotoDataTable dataTable) {
  9546. return this.Adapter.Update(dataTable);
  9547. }
  9548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9549. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9550. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9551. public virtual int Update(_1Brovi11DataSet dataSet) {
  9552. return this.Adapter.Update(dataSet, "ServicePhoto");
  9553. }
  9554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9556. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9557. public virtual int Update(global::System.Data.DataRow dataRow) {
  9558. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9559. dataRow});
  9560. }
  9561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9563. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9564. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9565. return this.Adapter.Update(dataRows);
  9566. }
  9567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9569. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9570. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9571. public virtual int Delete(int Original_ID, int Original_ServiceID, string Original_PhotoPath) {
  9572. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9573. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ServiceID));
  9574. if ((Original_PhotoPath == null)) {
  9575. throw new global::System.ArgumentNullException("Original_PhotoPath");
  9576. }
  9577. else {
  9578. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_PhotoPath));
  9579. }
  9580. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9581. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9582. != global::System.Data.ConnectionState.Open)) {
  9583. this.Adapter.DeleteCommand.Connection.Open();
  9584. }
  9585. try {
  9586. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9587. return returnValue;
  9588. }
  9589. finally {
  9590. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9591. this.Adapter.DeleteCommand.Connection.Close();
  9592. }
  9593. }
  9594. }
  9595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9597. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9598. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9599. public virtual int Insert(int ServiceID, string PhotoPath) {
  9600. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ServiceID));
  9601. if ((PhotoPath == null)) {
  9602. throw new global::System.ArgumentNullException("PhotoPath");
  9603. }
  9604. else {
  9605. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(PhotoPath));
  9606. }
  9607. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9608. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9609. != global::System.Data.ConnectionState.Open)) {
  9610. this.Adapter.InsertCommand.Connection.Open();
  9611. }
  9612. try {
  9613. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9614. return returnValue;
  9615. }
  9616. finally {
  9617. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9618. this.Adapter.InsertCommand.Connection.Close();
  9619. }
  9620. }
  9621. }
  9622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9624. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9625. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9626. public virtual int Update(int ServiceID, string PhotoPath, int Original_ID, int Original_ServiceID, string Original_PhotoPath, int ID) {
  9627. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ServiceID));
  9628. if ((PhotoPath == null)) {
  9629. throw new global::System.ArgumentNullException("PhotoPath");
  9630. }
  9631. else {
  9632. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(PhotoPath));
  9633. }
  9634. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  9635. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ServiceID));
  9636. if ((Original_PhotoPath == null)) {
  9637. throw new global::System.ArgumentNullException("Original_PhotoPath");
  9638. }
  9639. else {
  9640. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_PhotoPath));
  9641. }
  9642. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  9643. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9644. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9645. != global::System.Data.ConnectionState.Open)) {
  9646. this.Adapter.UpdateCommand.Connection.Open();
  9647. }
  9648. try {
  9649. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9650. return returnValue;
  9651. }
  9652. finally {
  9653. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9654. this.Adapter.UpdateCommand.Connection.Close();
  9655. }
  9656. }
  9657. }
  9658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9660. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9661. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9662. public virtual int Update(int ServiceID, string PhotoPath, int Original_ID, int Original_ServiceID, string Original_PhotoPath) {
  9663. return this.Update(ServiceID, PhotoPath, Original_ID, Original_ServiceID, Original_PhotoPath, Original_ID);
  9664. }
  9665. }
  9666. /// <summary>
  9667. ///Represents the connection and commands used to retrieve and save data.
  9668. ///</summary>
  9669. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9670. [global::System.ComponentModel.ToolboxItem(true)]
  9671. [global::System.ComponentModel.DataObjectAttribute(true)]
  9672. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9673. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9674. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9675. public partial class TagTableAdapter : global::System.ComponentModel.Component {
  9676. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9677. private global::System.Data.SqlClient.SqlConnection _connection;
  9678. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9679. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9680. private bool _clearBeforeFill;
  9681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9683. public TagTableAdapter() {
  9684. this.ClearBeforeFill = true;
  9685. }
  9686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9688. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9689. get {
  9690. if ((this._adapter == null)) {
  9691. this.InitAdapter();
  9692. }
  9693. return this._adapter;
  9694. }
  9695. }
  9696. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9698. internal global::System.Data.SqlClient.SqlConnection Connection {
  9699. get {
  9700. if ((this._connection == null)) {
  9701. this.InitConnection();
  9702. }
  9703. return this._connection;
  9704. }
  9705. set {
  9706. this._connection = value;
  9707. if ((this.Adapter.InsertCommand != null)) {
  9708. this.Adapter.InsertCommand.Connection = value;
  9709. }
  9710. if ((this.Adapter.DeleteCommand != null)) {
  9711. this.Adapter.DeleteCommand.Connection = value;
  9712. }
  9713. if ((this.Adapter.UpdateCommand != null)) {
  9714. this.Adapter.UpdateCommand.Connection = value;
  9715. }
  9716. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9717. if ((this.CommandCollection[i] != null)) {
  9718. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9719. }
  9720. }
  9721. }
  9722. }
  9723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9725. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9726. get {
  9727. return this._transaction;
  9728. }
  9729. set {
  9730. this._transaction = value;
  9731. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9732. this.CommandCollection[i].Transaction = this._transaction;
  9733. }
  9734. if (((this.Adapter != null)
  9735. && (this.Adapter.DeleteCommand != null))) {
  9736. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9737. }
  9738. if (((this.Adapter != null)
  9739. && (this.Adapter.InsertCommand != null))) {
  9740. this.Adapter.InsertCommand.Transaction = this._transaction;
  9741. }
  9742. if (((this.Adapter != null)
  9743. && (this.Adapter.UpdateCommand != null))) {
  9744. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9745. }
  9746. }
  9747. }
  9748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9750. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9751. get {
  9752. if ((this._commandCollection == null)) {
  9753. this.InitCommandCollection();
  9754. }
  9755. return this._commandCollection;
  9756. }
  9757. }
  9758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9760. public bool ClearBeforeFill {
  9761. get {
  9762. return this._clearBeforeFill;
  9763. }
  9764. set {
  9765. this._clearBeforeFill = value;
  9766. }
  9767. }
  9768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9770. private void InitAdapter() {
  9771. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9772. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9773. tableMapping.SourceTable = "Table";
  9774. tableMapping.DataSetTable = "Tag";
  9775. tableMapping.ColumnMappings.Add("ID", "ID");
  9776. tableMapping.ColumnMappings.Add("Title", "Title");
  9777. tableMapping.ColumnMappings.Add("Color", "Color");
  9778. this._adapter.TableMappings.Add(tableMapping);
  9779. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9780. this._adapter.DeleteCommand.Connection = this.Connection;
  9781. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Tag] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Tit" +
  9782. "le) AND ([Color] = @Original_Color))";
  9783. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9784. 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, "", "", ""));
  9785. 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, "", "", ""));
  9786. 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, "", "", ""));
  9787. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9788. this._adapter.InsertCommand.Connection = this.Connection;
  9789. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Tag] ([Title], [Color]) VALUES (@Title, @Color);\r\nSELECT ID, T" +
  9790. "itle, Color FROM Tag WHERE (ID = SCOPE_IDENTITY())";
  9791. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9792. 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, "", "", ""));
  9793. 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, "", "", ""));
  9794. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9795. this._adapter.UpdateCommand.Connection = this.Connection;
  9796. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Tag] SET [Title] = @Title, [Color] = @Color WHERE (([ID] = @Origina" +
  9797. "l_ID) AND ([Title] = @Original_Title) AND ([Color] = @Original_Color));\r\nSELECT " +
  9798. "ID, Title, Color FROM Tag WHERE (ID = @ID)";
  9799. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9800. 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, "", "", ""));
  9801. 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, "", "", ""));
  9802. 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, "", "", ""));
  9803. 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, "", "", ""));
  9804. 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, "", "", ""));
  9805. 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, "", "", ""));
  9806. }
  9807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9809. private void InitConnection() {
  9810. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9811. this._connection.ConnectionString = global::Brovi11.Properties.Settings.Default._1Brovi11ConnectionString;
  9812. }
  9813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9814. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9815. private void InitCommandCollection() {
  9816. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9817. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9818. this._commandCollection[0].Connection = this.Connection;
  9819. this._commandCollection[0].CommandText = "SELECT ID, Title, Color FROM dbo.Tag";
  9820. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9821. }
  9822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9824. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9825. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9826. public virtual int Fill(_1Brovi11DataSet.TagDataTable dataTable) {
  9827. this.Adapter.SelectCommand = this.CommandCollection[0];
  9828. if ((this.ClearBeforeFill == true)) {
  9829. dataTable.Clear();
  9830. }
  9831. int returnValue = this.Adapter.Fill(dataTable);
  9832. return returnValue;
  9833. }
  9834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9836. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9837. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9838. public virtual _1Brovi11DataSet.TagDataTable GetData() {
  9839. this.Adapter.SelectCommand = this.CommandCollection[0];
  9840. _1Brovi11DataSet.TagDataTable dataTable = new _1Brovi11DataSet.TagDataTable();
  9841. this.Adapter.Fill(dataTable);
  9842. return dataTable;
  9843. }
  9844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9846. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9847. public virtual int Update(_1Brovi11DataSet.TagDataTable dataTable) {
  9848. return this.Adapter.Update(dataTable);
  9849. }
  9850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9852. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9853. public virtual int Update(_1Brovi11DataSet dataSet) {
  9854. return this.Adapter.Update(dataSet, "Tag");
  9855. }
  9856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9858. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9859. public virtual int Update(global::System.Data.DataRow dataRow) {
  9860. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9861. dataRow});
  9862. }
  9863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9865. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9866. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9867. return this.Adapter.Update(dataRows);
  9868. }
  9869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9871. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9872. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9873. public virtual int Delete(int Original_ID, string Original_Title, string Original_Color) {
  9874. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9875. if ((Original_Title == null)) {
  9876. throw new global::System.ArgumentNullException("Original_Title");
  9877. }
  9878. else {
  9879. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  9880. }
  9881. if ((Original_Color == null)) {
  9882. throw new global::System.ArgumentNullException("Original_Color");
  9883. }
  9884. else {
  9885. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Color));
  9886. }
  9887. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9888. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9889. != global::System.Data.ConnectionState.Open)) {
  9890. this.Adapter.DeleteCommand.Connection.Open();
  9891. }
  9892. try {
  9893. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9894. return returnValue;
  9895. }
  9896. finally {
  9897. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9898. this.Adapter.DeleteCommand.Connection.Close();
  9899. }
  9900. }
  9901. }
  9902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9904. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9905. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9906. public virtual int Insert(string Title, string Color) {
  9907. if ((Title == null)) {
  9908. throw new global::System.ArgumentNullException("Title");
  9909. }
  9910. else {
  9911. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  9912. }
  9913. if ((Color == null)) {
  9914. throw new global::System.ArgumentNullException("Color");
  9915. }
  9916. else {
  9917. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Color));
  9918. }
  9919. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9920. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9921. != global::System.Data.ConnectionState.Open)) {
  9922. this.Adapter.InsertCommand.Connection.Open();
  9923. }
  9924. try {
  9925. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9926. return returnValue;
  9927. }
  9928. finally {
  9929. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9930. this.Adapter.InsertCommand.Connection.Close();
  9931. }
  9932. }
  9933. }
  9934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9935. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9936. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9937. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9938. public virtual int Update(string Title, string Color, int Original_ID, string Original_Title, string Original_Color, int ID) {
  9939. if ((Title == null)) {
  9940. throw new global::System.ArgumentNullException("Title");
  9941. }
  9942. else {
  9943. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  9944. }
  9945. if ((Color == null)) {
  9946. throw new global::System.ArgumentNullException("Color");
  9947. }
  9948. else {
  9949. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Color));
  9950. }
  9951. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  9952. if ((Original_Title == null)) {
  9953. throw new global::System.ArgumentNullException("Original_Title");
  9954. }
  9955. else {
  9956. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Title));
  9957. }
  9958. if ((Original_Color == null)) {
  9959. throw new global::System.ArgumentNullException("Original_Color");
  9960. }
  9961. else {
  9962. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Color));
  9963. }
  9964. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  9965. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9966. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9967. != global::System.Data.ConnectionState.Open)) {
  9968. this.Adapter.UpdateCommand.Connection.Open();
  9969. }
  9970. try {
  9971. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9972. return returnValue;
  9973. }
  9974. finally {
  9975. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9976. this.Adapter.UpdateCommand.Connection.Close();
  9977. }
  9978. }
  9979. }
  9980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9981. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9982. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9983. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9984. public virtual int Update(string Title, string Color, int Original_ID, string Original_Title, string Original_Color) {
  9985. return this.Update(Title, Color, Original_ID, Original_Title, Original_Color, Original_ID);
  9986. }
  9987. }
  9988. /// <summary>
  9989. ///Represents the connection and commands used to retrieve and save data.
  9990. ///</summary>
  9991. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9992. [global::System.ComponentModel.ToolboxItem(true)]
  9993. [global::System.ComponentModel.DataObjectAttribute(true)]
  9994. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9995. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9996. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9997. public partial class TagOfClientTableAdapter : global::System.ComponentModel.Component {
  9998. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9999. private global::System.Data.SqlClient.SqlConnection _connection;
  10000. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10001. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10002. private bool _clearBeforeFill;
  10003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10005. public TagOfClientTableAdapter() {
  10006. this.ClearBeforeFill = true;
  10007. }
  10008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10010. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10011. get {
  10012. if ((this._adapter == null)) {
  10013. this.InitAdapter();
  10014. }
  10015. return this._adapter;
  10016. }
  10017. }
  10018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10020. internal global::System.Data.SqlClient.SqlConnection Connection {
  10021. get {
  10022. if ((this._connection == null)) {
  10023. this.InitConnection();
  10024. }
  10025. return this._connection;
  10026. }
  10027. set {
  10028. this._connection = value;
  10029. if ((this.Adapter.InsertCommand != null)) {
  10030. this.Adapter.InsertCommand.Connection = value;
  10031. }
  10032. if ((this.Adapter.DeleteCommand != null)) {
  10033. this.Adapter.DeleteCommand.Connection = value;
  10034. }
  10035. if ((this.Adapter.UpdateCommand != null)) {
  10036. this.Adapter.UpdateCommand.Connection = value;
  10037. }
  10038. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10039. if ((this.CommandCollection[i] != null)) {
  10040. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10041. }
  10042. }
  10043. }
  10044. }
  10045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10047. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10048. get {
  10049. return this._transaction;
  10050. }
  10051. set {
  10052. this._transaction = value;
  10053. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10054. this.CommandCollection[i].Transaction = this._transaction;
  10055. }
  10056. if (((this.Adapter != null)
  10057. && (this.Adapter.DeleteCommand != null))) {
  10058. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10059. }
  10060. if (((this.Adapter != null)
  10061. && (this.Adapter.InsertCommand != null))) {
  10062. this.Adapter.InsertCommand.Transaction = this._transaction;
  10063. }
  10064. if (((this.Adapter != null)
  10065. && (this.Adapter.UpdateCommand != null))) {
  10066. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10067. }
  10068. }
  10069. }
  10070. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10071. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10072. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10073. get {
  10074. if ((this._commandCollection == null)) {
  10075. this.InitCommandCollection();
  10076. }
  10077. return this._commandCollection;
  10078. }
  10079. }
  10080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10082. public bool ClearBeforeFill {
  10083. get {
  10084. return this._clearBeforeFill;
  10085. }
  10086. set {
  10087. this._clearBeforeFill = value;
  10088. }
  10089. }
  10090. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10091. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10092. private void InitAdapter() {
  10093. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10094. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10095. tableMapping.SourceTable = "Table";
  10096. tableMapping.DataSetTable = "TagOfClient";
  10097. tableMapping.ColumnMappings.Add("ClientID", "ClientID");
  10098. tableMapping.ColumnMappings.Add("TagID", "TagID");
  10099. this._adapter.TableMappings.Add(tableMapping);
  10100. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  10101. this._adapter.DeleteCommand.Connection = this.Connection;
  10102. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[TagOfClient] WHERE (([ClientID] = @Original_ClientID) AND ([Ta" +
  10103. "gID] = @Original_TagID))";
  10104. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  10105. 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, "", "", ""));
  10106. 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, "", "", ""));
  10107. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  10108. this._adapter.InsertCommand.Connection = this.Connection;
  10109. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[TagOfClient] ([ClientID], [TagID]) VALUES (@ClientID, @TagID);" +
  10110. "\r\nSELECT ClientID, TagID FROM TagOfClient WHERE (ClientID = @ClientID) AND (TagI" +
  10111. "D = @TagID)";
  10112. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  10113. 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, "", "", ""));
  10114. 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, "", "", ""));
  10115. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  10116. this._adapter.UpdateCommand.Connection = this.Connection;
  10117. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[TagOfClient] SET [ClientID] = @ClientID, [TagID] = @TagID WHERE (([" +
  10118. "ClientID] = @Original_ClientID) AND ([TagID] = @Original_TagID));\r\nSELECT Client" +
  10119. "ID, TagID FROM TagOfClient WHERE (ClientID = @ClientID) AND (TagID = @TagID)";
  10120. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  10121. 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, "", "", ""));
  10122. 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, "", "", ""));
  10123. 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, "", "", ""));
  10124. 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, "", "", ""));
  10125. }
  10126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10128. private void InitConnection() {
  10129. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10130. this._connection.ConnectionString = global::Brovi11.Properties.Settings.Default._1Brovi11ConnectionString;
  10131. }
  10132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10133. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10134. private void InitCommandCollection() {
  10135. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10136. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10137. this._commandCollection[0].Connection = this.Connection;
  10138. this._commandCollection[0].CommandText = "SELECT ClientID, TagID FROM dbo.TagOfClient";
  10139. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10140. }
  10141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10143. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10144. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10145. public virtual int Fill(_1Brovi11DataSet.TagOfClientDataTable dataTable) {
  10146. this.Adapter.SelectCommand = this.CommandCollection[0];
  10147. if ((this.ClearBeforeFill == true)) {
  10148. dataTable.Clear();
  10149. }
  10150. int returnValue = this.Adapter.Fill(dataTable);
  10151. return returnValue;
  10152. }
  10153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10155. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10156. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10157. public virtual _1Brovi11DataSet.TagOfClientDataTable GetData() {
  10158. this.Adapter.SelectCommand = this.CommandCollection[0];
  10159. _1Brovi11DataSet.TagOfClientDataTable dataTable = new _1Brovi11DataSet.TagOfClientDataTable();
  10160. this.Adapter.Fill(dataTable);
  10161. return dataTable;
  10162. }
  10163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10165. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10166. public virtual int Update(_1Brovi11DataSet.TagOfClientDataTable dataTable) {
  10167. return this.Adapter.Update(dataTable);
  10168. }
  10169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10171. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10172. public virtual int Update(_1Brovi11DataSet dataSet) {
  10173. return this.Adapter.Update(dataSet, "TagOfClient");
  10174. }
  10175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10177. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10178. public virtual int Update(global::System.Data.DataRow dataRow) {
  10179. return this.Adapter.Update(new global::System.Data.DataRow[] {
  10180. dataRow});
  10181. }
  10182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10184. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10185. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  10186. return this.Adapter.Update(dataRows);
  10187. }
  10188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10190. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10191. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  10192. public virtual int Delete(int Original_ClientID, int Original_TagID) {
  10193. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ClientID));
  10194. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_TagID));
  10195. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  10196. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10197. != global::System.Data.ConnectionState.Open)) {
  10198. this.Adapter.DeleteCommand.Connection.Open();
  10199. }
  10200. try {
  10201. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  10202. return returnValue;
  10203. }
  10204. finally {
  10205. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10206. this.Adapter.DeleteCommand.Connection.Close();
  10207. }
  10208. }
  10209. }
  10210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10212. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10213. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10214. public virtual int Insert(int ClientID, int TagID) {
  10215. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ClientID));
  10216. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(TagID));
  10217. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10218. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10219. != global::System.Data.ConnectionState.Open)) {
  10220. this.Adapter.InsertCommand.Connection.Open();
  10221. }
  10222. try {
  10223. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10224. return returnValue;
  10225. }
  10226. finally {
  10227. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10228. this.Adapter.InsertCommand.Connection.Close();
  10229. }
  10230. }
  10231. }
  10232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10234. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10235. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10236. public virtual int Update(int ClientID, int TagID, int Original_ClientID, int Original_TagID) {
  10237. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ClientID));
  10238. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(TagID));
  10239. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ClientID));
  10240. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_TagID));
  10241. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10242. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10243. != global::System.Data.ConnectionState.Open)) {
  10244. this.Adapter.UpdateCommand.Connection.Open();
  10245. }
  10246. try {
  10247. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10248. return returnValue;
  10249. }
  10250. finally {
  10251. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10252. this.Adapter.UpdateCommand.Connection.Close();
  10253. }
  10254. }
  10255. }
  10256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10258. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10259. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10260. public virtual int Update(int Original_ClientID, int Original_TagID) {
  10261. return this.Update(Original_ClientID, Original_TagID, Original_ClientID, Original_TagID);
  10262. }
  10263. }
  10264. /// <summary>
  10265. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  10266. ///</summary>
  10267. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10268. [global::System.ComponentModel.ToolboxItem(true)]
  10269. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  10270. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10271. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  10272. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  10273. private UpdateOrderOption _updateOrder;
  10274. private AttachedProductTableAdapter _attachedProductTableAdapter;
  10275. private ClientTableAdapter _clientTableAdapter;
  10276. private ClientServiceTableAdapter _clientServiceTableAdapter;
  10277. private DocumentByServiceTableAdapter _documentByServiceTableAdapter;
  10278. private GenderTableAdapter _genderTableAdapter;
  10279. private ManufacturerTableAdapter _manufacturerTableAdapter;
  10280. private ProductTableAdapter _productTableAdapter;
  10281. private ProductPhotoTableAdapter _productPhotoTableAdapter;
  10282. private ProductSaleTableAdapter _productSaleTableAdapter;
  10283. private ServiceTableAdapter _serviceTableAdapter;
  10284. private ServicePhotoTableAdapter _servicePhotoTableAdapter;
  10285. private TagTableAdapter _tagTableAdapter;
  10286. private TagOfClientTableAdapter _tagOfClientTableAdapter;
  10287. private bool _backupDataSetBeforeUpdate;
  10288. private global::System.Data.IDbConnection _connection;
  10289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10291. public UpdateOrderOption UpdateOrder {
  10292. get {
  10293. return this._updateOrder;
  10294. }
  10295. set {
  10296. this._updateOrder = value;
  10297. }
  10298. }
  10299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10301. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10302. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10303. "a", "System.Drawing.Design.UITypeEditor")]
  10304. public AttachedProductTableAdapter AttachedProductTableAdapter {
  10305. get {
  10306. return this._attachedProductTableAdapter;
  10307. }
  10308. set {
  10309. this._attachedProductTableAdapter = value;
  10310. }
  10311. }
  10312. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10313. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10314. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10315. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10316. "a", "System.Drawing.Design.UITypeEditor")]
  10317. public ClientTableAdapter ClientTableAdapter {
  10318. get {
  10319. return this._clientTableAdapter;
  10320. }
  10321. set {
  10322. this._clientTableAdapter = value;
  10323. }
  10324. }
  10325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10327. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10328. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10329. "a", "System.Drawing.Design.UITypeEditor")]
  10330. public ClientServiceTableAdapter ClientServiceTableAdapter {
  10331. get {
  10332. return this._clientServiceTableAdapter;
  10333. }
  10334. set {
  10335. this._clientServiceTableAdapter = value;
  10336. }
  10337. }
  10338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10340. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10341. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10342. "a", "System.Drawing.Design.UITypeEditor")]
  10343. public DocumentByServiceTableAdapter DocumentByServiceTableAdapter {
  10344. get {
  10345. return this._documentByServiceTableAdapter;
  10346. }
  10347. set {
  10348. this._documentByServiceTableAdapter = value;
  10349. }
  10350. }
  10351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10352. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10353. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10354. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10355. "a", "System.Drawing.Design.UITypeEditor")]
  10356. public GenderTableAdapter GenderTableAdapter {
  10357. get {
  10358. return this._genderTableAdapter;
  10359. }
  10360. set {
  10361. this._genderTableAdapter = value;
  10362. }
  10363. }
  10364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10366. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10367. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10368. "a", "System.Drawing.Design.UITypeEditor")]
  10369. public ManufacturerTableAdapter ManufacturerTableAdapter {
  10370. get {
  10371. return this._manufacturerTableAdapter;
  10372. }
  10373. set {
  10374. this._manufacturerTableAdapter = value;
  10375. }
  10376. }
  10377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10378. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10379. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10380. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10381. "a", "System.Drawing.Design.UITypeEditor")]
  10382. public ProductTableAdapter ProductTableAdapter {
  10383. get {
  10384. return this._productTableAdapter;
  10385. }
  10386. set {
  10387. this._productTableAdapter = value;
  10388. }
  10389. }
  10390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10392. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10393. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10394. "a", "System.Drawing.Design.UITypeEditor")]
  10395. public ProductPhotoTableAdapter ProductPhotoTableAdapter {
  10396. get {
  10397. return this._productPhotoTableAdapter;
  10398. }
  10399. set {
  10400. this._productPhotoTableAdapter = value;
  10401. }
  10402. }
  10403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10405. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10406. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10407. "a", "System.Drawing.Design.UITypeEditor")]
  10408. public ProductSaleTableAdapter ProductSaleTableAdapter {
  10409. get {
  10410. return this._productSaleTableAdapter;
  10411. }
  10412. set {
  10413. this._productSaleTableAdapter = value;
  10414. }
  10415. }
  10416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10418. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10419. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10420. "a", "System.Drawing.Design.UITypeEditor")]
  10421. public ServiceTableAdapter ServiceTableAdapter {
  10422. get {
  10423. return this._serviceTableAdapter;
  10424. }
  10425. set {
  10426. this._serviceTableAdapter = value;
  10427. }
  10428. }
  10429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10431. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10432. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10433. "a", "System.Drawing.Design.UITypeEditor")]
  10434. public ServicePhotoTableAdapter ServicePhotoTableAdapter {
  10435. get {
  10436. return this._servicePhotoTableAdapter;
  10437. }
  10438. set {
  10439. this._servicePhotoTableAdapter = value;
  10440. }
  10441. }
  10442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10444. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10445. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10446. "a", "System.Drawing.Design.UITypeEditor")]
  10447. public TagTableAdapter TagTableAdapter {
  10448. get {
  10449. return this._tagTableAdapter;
  10450. }
  10451. set {
  10452. this._tagTableAdapter = value;
  10453. }
  10454. }
  10455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10456. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10457. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10458. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10459. "a", "System.Drawing.Design.UITypeEditor")]
  10460. public TagOfClientTableAdapter TagOfClientTableAdapter {
  10461. get {
  10462. return this._tagOfClientTableAdapter;
  10463. }
  10464. set {
  10465. this._tagOfClientTableAdapter = value;
  10466. }
  10467. }
  10468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10470. public bool BackupDataSetBeforeUpdate {
  10471. get {
  10472. return this._backupDataSetBeforeUpdate;
  10473. }
  10474. set {
  10475. this._backupDataSetBeforeUpdate = value;
  10476. }
  10477. }
  10478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10479. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10480. [global::System.ComponentModel.Browsable(false)]
  10481. public global::System.Data.IDbConnection Connection {
  10482. get {
  10483. if ((this._connection != null)) {
  10484. return this._connection;
  10485. }
  10486. if (((this._attachedProductTableAdapter != null)
  10487. && (this._attachedProductTableAdapter.Connection != null))) {
  10488. return this._attachedProductTableAdapter.Connection;
  10489. }
  10490. if (((this._clientTableAdapter != null)
  10491. && (this._clientTableAdapter.Connection != null))) {
  10492. return this._clientTableAdapter.Connection;
  10493. }
  10494. if (((this._clientServiceTableAdapter != null)
  10495. && (this._clientServiceTableAdapter.Connection != null))) {
  10496. return this._clientServiceTableAdapter.Connection;
  10497. }
  10498. if (((this._documentByServiceTableAdapter != null)
  10499. && (this._documentByServiceTableAdapter.Connection != null))) {
  10500. return this._documentByServiceTableAdapter.Connection;
  10501. }
  10502. if (((this._genderTableAdapter != null)
  10503. && (this._genderTableAdapter.Connection != null))) {
  10504. return this._genderTableAdapter.Connection;
  10505. }
  10506. if (((this._manufacturerTableAdapter != null)
  10507. && (this._manufacturerTableAdapter.Connection != null))) {
  10508. return this._manufacturerTableAdapter.Connection;
  10509. }
  10510. if (((this._productTableAdapter != null)
  10511. && (this._productTableAdapter.Connection != null))) {
  10512. return this._productTableAdapter.Connection;
  10513. }
  10514. if (((this._productPhotoTableAdapter != null)
  10515. && (this._productPhotoTableAdapter.Connection != null))) {
  10516. return this._productPhotoTableAdapter.Connection;
  10517. }
  10518. if (((this._productSaleTableAdapter != null)
  10519. && (this._productSaleTableAdapter.Connection != null))) {
  10520. return this._productSaleTableAdapter.Connection;
  10521. }
  10522. if (((this._serviceTableAdapter != null)
  10523. && (this._serviceTableAdapter.Connection != null))) {
  10524. return this._serviceTableAdapter.Connection;
  10525. }
  10526. if (((this._servicePhotoTableAdapter != null)
  10527. && (this._servicePhotoTableAdapter.Connection != null))) {
  10528. return this._servicePhotoTableAdapter.Connection;
  10529. }
  10530. if (((this._tagTableAdapter != null)
  10531. && (this._tagTableAdapter.Connection != null))) {
  10532. return this._tagTableAdapter.Connection;
  10533. }
  10534. if (((this._tagOfClientTableAdapter != null)
  10535. && (this._tagOfClientTableAdapter.Connection != null))) {
  10536. return this._tagOfClientTableAdapter.Connection;
  10537. }
  10538. return null;
  10539. }
  10540. set {
  10541. this._connection = value;
  10542. }
  10543. }
  10544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10545. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10546. [global::System.ComponentModel.Browsable(false)]
  10547. public int TableAdapterInstanceCount {
  10548. get {
  10549. int count = 0;
  10550. if ((this._attachedProductTableAdapter != null)) {
  10551. count = (count + 1);
  10552. }
  10553. if ((this._clientTableAdapter != null)) {
  10554. count = (count + 1);
  10555. }
  10556. if ((this._clientServiceTableAdapter != null)) {
  10557. count = (count + 1);
  10558. }
  10559. if ((this._documentByServiceTableAdapter != null)) {
  10560. count = (count + 1);
  10561. }
  10562. if ((this._genderTableAdapter != null)) {
  10563. count = (count + 1);
  10564. }
  10565. if ((this._manufacturerTableAdapter != null)) {
  10566. count = (count + 1);
  10567. }
  10568. if ((this._productTableAdapter != null)) {
  10569. count = (count + 1);
  10570. }
  10571. if ((this._productPhotoTableAdapter != null)) {
  10572. count = (count + 1);
  10573. }
  10574. if ((this._productSaleTableAdapter != null)) {
  10575. count = (count + 1);
  10576. }
  10577. if ((this._serviceTableAdapter != null)) {
  10578. count = (count + 1);
  10579. }
  10580. if ((this._servicePhotoTableAdapter != null)) {
  10581. count = (count + 1);
  10582. }
  10583. if ((this._tagTableAdapter != null)) {
  10584. count = (count + 1);
  10585. }
  10586. if ((this._tagOfClientTableAdapter != null)) {
  10587. count = (count + 1);
  10588. }
  10589. return count;
  10590. }
  10591. }
  10592. /// <summary>
  10593. ///Update rows in top-down order.
  10594. ///</summary>
  10595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10597. private int UpdateUpdatedRows(_1Brovi11DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  10598. int result = 0;
  10599. if ((this._genderTableAdapter != null)) {
  10600. global::System.Data.DataRow[] updatedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10601. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10602. if (((updatedRows != null)
  10603. && (0 < updatedRows.Length))) {
  10604. result = (result + this._genderTableAdapter.Update(updatedRows));
  10605. allChangedRows.AddRange(updatedRows);
  10606. }
  10607. }
  10608. if ((this._clientTableAdapter != null)) {
  10609. global::System.Data.DataRow[] updatedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10610. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10611. if (((updatedRows != null)
  10612. && (0 < updatedRows.Length))) {
  10613. result = (result + this._clientTableAdapter.Update(updatedRows));
  10614. allChangedRows.AddRange(updatedRows);
  10615. }
  10616. }
  10617. if ((this._manufacturerTableAdapter != null)) {
  10618. global::System.Data.DataRow[] updatedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10619. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10620. if (((updatedRows != null)
  10621. && (0 < updatedRows.Length))) {
  10622. result = (result + this._manufacturerTableAdapter.Update(updatedRows));
  10623. allChangedRows.AddRange(updatedRows);
  10624. }
  10625. }
  10626. if ((this._serviceTableAdapter != null)) {
  10627. global::System.Data.DataRow[] updatedRows = dataSet.Service.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10628. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10629. if (((updatedRows != null)
  10630. && (0 < updatedRows.Length))) {
  10631. result = (result + this._serviceTableAdapter.Update(updatedRows));
  10632. allChangedRows.AddRange(updatedRows);
  10633. }
  10634. }
  10635. if ((this._clientServiceTableAdapter != null)) {
  10636. global::System.Data.DataRow[] updatedRows = dataSet.ClientService.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10637. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10638. if (((updatedRows != null)
  10639. && (0 < updatedRows.Length))) {
  10640. result = (result + this._clientServiceTableAdapter.Update(updatedRows));
  10641. allChangedRows.AddRange(updatedRows);
  10642. }
  10643. }
  10644. if ((this._productTableAdapter != null)) {
  10645. global::System.Data.DataRow[] updatedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10646. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10647. if (((updatedRows != null)
  10648. && (0 < updatedRows.Length))) {
  10649. result = (result + this._productTableAdapter.Update(updatedRows));
  10650. allChangedRows.AddRange(updatedRows);
  10651. }
  10652. }
  10653. if ((this._tagTableAdapter != null)) {
  10654. global::System.Data.DataRow[] updatedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10655. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10656. if (((updatedRows != null)
  10657. && (0 < updatedRows.Length))) {
  10658. result = (result + this._tagTableAdapter.Update(updatedRows));
  10659. allChangedRows.AddRange(updatedRows);
  10660. }
  10661. }
  10662. if ((this._attachedProductTableAdapter != null)) {
  10663. global::System.Data.DataRow[] updatedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10664. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10665. if (((updatedRows != null)
  10666. && (0 < updatedRows.Length))) {
  10667. result = (result + this._attachedProductTableAdapter.Update(updatedRows));
  10668. allChangedRows.AddRange(updatedRows);
  10669. }
  10670. }
  10671. if ((this._documentByServiceTableAdapter != null)) {
  10672. global::System.Data.DataRow[] updatedRows = dataSet.DocumentByService.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10673. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10674. if (((updatedRows != null)
  10675. && (0 < updatedRows.Length))) {
  10676. result = (result + this._documentByServiceTableAdapter.Update(updatedRows));
  10677. allChangedRows.AddRange(updatedRows);
  10678. }
  10679. }
  10680. if ((this._productPhotoTableAdapter != null)) {
  10681. global::System.Data.DataRow[] updatedRows = dataSet.ProductPhoto.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10682. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10683. if (((updatedRows != null)
  10684. && (0 < updatedRows.Length))) {
  10685. result = (result + this._productPhotoTableAdapter.Update(updatedRows));
  10686. allChangedRows.AddRange(updatedRows);
  10687. }
  10688. }
  10689. if ((this._productSaleTableAdapter != null)) {
  10690. global::System.Data.DataRow[] updatedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10691. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10692. if (((updatedRows != null)
  10693. && (0 < updatedRows.Length))) {
  10694. result = (result + this._productSaleTableAdapter.Update(updatedRows));
  10695. allChangedRows.AddRange(updatedRows);
  10696. }
  10697. }
  10698. if ((this._servicePhotoTableAdapter != null)) {
  10699. global::System.Data.DataRow[] updatedRows = dataSet.ServicePhoto.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10700. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10701. if (((updatedRows != null)
  10702. && (0 < updatedRows.Length))) {
  10703. result = (result + this._servicePhotoTableAdapter.Update(updatedRows));
  10704. allChangedRows.AddRange(updatedRows);
  10705. }
  10706. }
  10707. if ((this._tagOfClientTableAdapter != null)) {
  10708. global::System.Data.DataRow[] updatedRows = dataSet.TagOfClient.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10709. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10710. if (((updatedRows != null)
  10711. && (0 < updatedRows.Length))) {
  10712. result = (result + this._tagOfClientTableAdapter.Update(updatedRows));
  10713. allChangedRows.AddRange(updatedRows);
  10714. }
  10715. }
  10716. return result;
  10717. }
  10718. /// <summary>
  10719. ///Insert rows in top-down order.
  10720. ///</summary>
  10721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10723. private int UpdateInsertedRows(_1Brovi11DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  10724. int result = 0;
  10725. if ((this._genderTableAdapter != null)) {
  10726. global::System.Data.DataRow[] addedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.Added);
  10727. if (((addedRows != null)
  10728. && (0 < addedRows.Length))) {
  10729. result = (result + this._genderTableAdapter.Update(addedRows));
  10730. allAddedRows.AddRange(addedRows);
  10731. }
  10732. }
  10733. if ((this._clientTableAdapter != null)) {
  10734. global::System.Data.DataRow[] addedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.Added);
  10735. if (((addedRows != null)
  10736. && (0 < addedRows.Length))) {
  10737. result = (result + this._clientTableAdapter.Update(addedRows));
  10738. allAddedRows.AddRange(addedRows);
  10739. }
  10740. }
  10741. if ((this._manufacturerTableAdapter != null)) {
  10742. global::System.Data.DataRow[] addedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.Added);
  10743. if (((addedRows != null)
  10744. && (0 < addedRows.Length))) {
  10745. result = (result + this._manufacturerTableAdapter.Update(addedRows));
  10746. allAddedRows.AddRange(addedRows);
  10747. }
  10748. }
  10749. if ((this._serviceTableAdapter != null)) {
  10750. global::System.Data.DataRow[] addedRows = dataSet.Service.Select(null, null, global::System.Data.DataViewRowState.Added);
  10751. if (((addedRows != null)
  10752. && (0 < addedRows.Length))) {
  10753. result = (result + this._serviceTableAdapter.Update(addedRows));
  10754. allAddedRows.AddRange(addedRows);
  10755. }
  10756. }
  10757. if ((this._clientServiceTableAdapter != null)) {
  10758. global::System.Data.DataRow[] addedRows = dataSet.ClientService.Select(null, null, global::System.Data.DataViewRowState.Added);
  10759. if (((addedRows != null)
  10760. && (0 < addedRows.Length))) {
  10761. result = (result + this._clientServiceTableAdapter.Update(addedRows));
  10762. allAddedRows.AddRange(addedRows);
  10763. }
  10764. }
  10765. if ((this._productTableAdapter != null)) {
  10766. global::System.Data.DataRow[] addedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Added);
  10767. if (((addedRows != null)
  10768. && (0 < addedRows.Length))) {
  10769. result = (result + this._productTableAdapter.Update(addedRows));
  10770. allAddedRows.AddRange(addedRows);
  10771. }
  10772. }
  10773. if ((this._tagTableAdapter != null)) {
  10774. global::System.Data.DataRow[] addedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.Added);
  10775. if (((addedRows != null)
  10776. && (0 < addedRows.Length))) {
  10777. result = (result + this._tagTableAdapter.Update(addedRows));
  10778. allAddedRows.AddRange(addedRows);
  10779. }
  10780. }
  10781. if ((this._attachedProductTableAdapter != null)) {
  10782. global::System.Data.DataRow[] addedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.Added);
  10783. if (((addedRows != null)
  10784. && (0 < addedRows.Length))) {
  10785. result = (result + this._attachedProductTableAdapter.Update(addedRows));
  10786. allAddedRows.AddRange(addedRows);
  10787. }
  10788. }
  10789. if ((this._documentByServiceTableAdapter != null)) {
  10790. global::System.Data.DataRow[] addedRows = dataSet.DocumentByService.Select(null, null, global::System.Data.DataViewRowState.Added);
  10791. if (((addedRows != null)
  10792. && (0 < addedRows.Length))) {
  10793. result = (result + this._documentByServiceTableAdapter.Update(addedRows));
  10794. allAddedRows.AddRange(addedRows);
  10795. }
  10796. }
  10797. if ((this._productPhotoTableAdapter != null)) {
  10798. global::System.Data.DataRow[] addedRows = dataSet.ProductPhoto.Select(null, null, global::System.Data.DataViewRowState.Added);
  10799. if (((addedRows != null)
  10800. && (0 < addedRows.Length))) {
  10801. result = (result + this._productPhotoTableAdapter.Update(addedRows));
  10802. allAddedRows.AddRange(addedRows);
  10803. }
  10804. }
  10805. if ((this._productSaleTableAdapter != null)) {
  10806. global::System.Data.DataRow[] addedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.Added);
  10807. if (((addedRows != null)
  10808. && (0 < addedRows.Length))) {
  10809. result = (result + this._productSaleTableAdapter.Update(addedRows));
  10810. allAddedRows.AddRange(addedRows);
  10811. }
  10812. }
  10813. if ((this._servicePhotoTableAdapter != null)) {
  10814. global::System.Data.DataRow[] addedRows = dataSet.ServicePhoto.Select(null, null, global::System.Data.DataViewRowState.Added);
  10815. if (((addedRows != null)
  10816. && (0 < addedRows.Length))) {
  10817. result = (result + this._servicePhotoTableAdapter.Update(addedRows));
  10818. allAddedRows.AddRange(addedRows);
  10819. }
  10820. }
  10821. if ((this._tagOfClientTableAdapter != null)) {
  10822. global::System.Data.DataRow[] addedRows = dataSet.TagOfClient.Select(null, null, global::System.Data.DataViewRowState.Added);
  10823. if (((addedRows != null)
  10824. && (0 < addedRows.Length))) {
  10825. result = (result + this._tagOfClientTableAdapter.Update(addedRows));
  10826. allAddedRows.AddRange(addedRows);
  10827. }
  10828. }
  10829. return result;
  10830. }
  10831. /// <summary>
  10832. ///Delete rows in bottom-up order.
  10833. ///</summary>
  10834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10836. private int UpdateDeletedRows(_1Brovi11DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  10837. int result = 0;
  10838. if ((this._tagOfClientTableAdapter != null)) {
  10839. global::System.Data.DataRow[] deletedRows = dataSet.TagOfClient.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10840. if (((deletedRows != null)
  10841. && (0 < deletedRows.Length))) {
  10842. result = (result + this._tagOfClientTableAdapter.Update(deletedRows));
  10843. allChangedRows.AddRange(deletedRows);
  10844. }
  10845. }
  10846. if ((this._servicePhotoTableAdapter != null)) {
  10847. global::System.Data.DataRow[] deletedRows = dataSet.ServicePhoto.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10848. if (((deletedRows != null)
  10849. && (0 < deletedRows.Length))) {
  10850. result = (result + this._servicePhotoTableAdapter.Update(deletedRows));
  10851. allChangedRows.AddRange(deletedRows);
  10852. }
  10853. }
  10854. if ((this._productSaleTableAdapter != null)) {
  10855. global::System.Data.DataRow[] deletedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10856. if (((deletedRows != null)
  10857. && (0 < deletedRows.Length))) {
  10858. result = (result + this._productSaleTableAdapter.Update(deletedRows));
  10859. allChangedRows.AddRange(deletedRows);
  10860. }
  10861. }
  10862. if ((this._productPhotoTableAdapter != null)) {
  10863. global::System.Data.DataRow[] deletedRows = dataSet.ProductPhoto.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10864. if (((deletedRows != null)
  10865. && (0 < deletedRows.Length))) {
  10866. result = (result + this._productPhotoTableAdapter.Update(deletedRows));
  10867. allChangedRows.AddRange(deletedRows);
  10868. }
  10869. }
  10870. if ((this._documentByServiceTableAdapter != null)) {
  10871. global::System.Data.DataRow[] deletedRows = dataSet.DocumentByService.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10872. if (((deletedRows != null)
  10873. && (0 < deletedRows.Length))) {
  10874. result = (result + this._documentByServiceTableAdapter.Update(deletedRows));
  10875. allChangedRows.AddRange(deletedRows);
  10876. }
  10877. }
  10878. if ((this._attachedProductTableAdapter != null)) {
  10879. global::System.Data.DataRow[] deletedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10880. if (((deletedRows != null)
  10881. && (0 < deletedRows.Length))) {
  10882. result = (result + this._attachedProductTableAdapter.Update(deletedRows));
  10883. allChangedRows.AddRange(deletedRows);
  10884. }
  10885. }
  10886. if ((this._tagTableAdapter != null)) {
  10887. global::System.Data.DataRow[] deletedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10888. if (((deletedRows != null)
  10889. && (0 < deletedRows.Length))) {
  10890. result = (result + this._tagTableAdapter.Update(deletedRows));
  10891. allChangedRows.AddRange(deletedRows);
  10892. }
  10893. }
  10894. if ((this._productTableAdapter != null)) {
  10895. global::System.Data.DataRow[] deletedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10896. if (((deletedRows != null)
  10897. && (0 < deletedRows.Length))) {
  10898. result = (result + this._productTableAdapter.Update(deletedRows));
  10899. allChangedRows.AddRange(deletedRows);
  10900. }
  10901. }
  10902. if ((this._clientServiceTableAdapter != null)) {
  10903. global::System.Data.DataRow[] deletedRows = dataSet.ClientService.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10904. if (((deletedRows != null)
  10905. && (0 < deletedRows.Length))) {
  10906. result = (result + this._clientServiceTableAdapter.Update(deletedRows));
  10907. allChangedRows.AddRange(deletedRows);
  10908. }
  10909. }
  10910. if ((this._serviceTableAdapter != null)) {
  10911. global::System.Data.DataRow[] deletedRows = dataSet.Service.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10912. if (((deletedRows != null)
  10913. && (0 < deletedRows.Length))) {
  10914. result = (result + this._serviceTableAdapter.Update(deletedRows));
  10915. allChangedRows.AddRange(deletedRows);
  10916. }
  10917. }
  10918. if ((this._manufacturerTableAdapter != null)) {
  10919. global::System.Data.DataRow[] deletedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10920. if (((deletedRows != null)
  10921. && (0 < deletedRows.Length))) {
  10922. result = (result + this._manufacturerTableAdapter.Update(deletedRows));
  10923. allChangedRows.AddRange(deletedRows);
  10924. }
  10925. }
  10926. if ((this._clientTableAdapter != null)) {
  10927. global::System.Data.DataRow[] deletedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10928. if (((deletedRows != null)
  10929. && (0 < deletedRows.Length))) {
  10930. result = (result + this._clientTableAdapter.Update(deletedRows));
  10931. allChangedRows.AddRange(deletedRows);
  10932. }
  10933. }
  10934. if ((this._genderTableAdapter != null)) {
  10935. global::System.Data.DataRow[] deletedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10936. if (((deletedRows != null)
  10937. && (0 < deletedRows.Length))) {
  10938. result = (result + this._genderTableAdapter.Update(deletedRows));
  10939. allChangedRows.AddRange(deletedRows);
  10940. }
  10941. }
  10942. return result;
  10943. }
  10944. /// <summary>
  10945. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  10946. ///</summary>
  10947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10949. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  10950. if (((updatedRows == null)
  10951. || (updatedRows.Length < 1))) {
  10952. return updatedRows;
  10953. }
  10954. if (((allAddedRows == null)
  10955. || (allAddedRows.Count < 1))) {
  10956. return updatedRows;
  10957. }
  10958. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  10959. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  10960. global::System.Data.DataRow row = updatedRows[i];
  10961. if ((allAddedRows.Contains(row) == false)) {
  10962. realUpdatedRows.Add(row);
  10963. }
  10964. }
  10965. return realUpdatedRows.ToArray();
  10966. }
  10967. /// <summary>
  10968. ///Update all changes to the dataset.
  10969. ///</summary>
  10970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10972. public virtual int UpdateAll(_1Brovi11DataSet dataSet) {
  10973. if ((dataSet == null)) {
  10974. throw new global::System.ArgumentNullException("dataSet");
  10975. }
  10976. if ((dataSet.HasChanges() == false)) {
  10977. return 0;
  10978. }
  10979. if (((this._attachedProductTableAdapter != null)
  10980. && (this.MatchTableAdapterConnection(this._attachedProductTableAdapter.Connection) == false))) {
  10981. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10982. "r, должны использовать одинаковую строку подключения.");
  10983. }
  10984. if (((this._clientTableAdapter != null)
  10985. && (this.MatchTableAdapterConnection(this._clientTableAdapter.Connection) == false))) {
  10986. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10987. "r, должны использовать одинаковую строку подключения.");
  10988. }
  10989. if (((this._clientServiceTableAdapter != null)
  10990. && (this.MatchTableAdapterConnection(this._clientServiceTableAdapter.Connection) == false))) {
  10991. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10992. "r, должны использовать одинаковую строку подключения.");
  10993. }
  10994. if (((this._documentByServiceTableAdapter != null)
  10995. && (this.MatchTableAdapterConnection(this._documentByServiceTableAdapter.Connection) == false))) {
  10996. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10997. "r, должны использовать одинаковую строку подключения.");
  10998. }
  10999. if (((this._genderTableAdapter != null)
  11000. && (this.MatchTableAdapterConnection(this._genderTableAdapter.Connection) == false))) {
  11001. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11002. "r, должны использовать одинаковую строку подключения.");
  11003. }
  11004. if (((this._manufacturerTableAdapter != null)
  11005. && (this.MatchTableAdapterConnection(this._manufacturerTableAdapter.Connection) == false))) {
  11006. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11007. "r, должны использовать одинаковую строку подключения.");
  11008. }
  11009. if (((this._productTableAdapter != null)
  11010. && (this.MatchTableAdapterConnection(this._productTableAdapter.Connection) == false))) {
  11011. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11012. "r, должны использовать одинаковую строку подключения.");
  11013. }
  11014. if (((this._productPhotoTableAdapter != null)
  11015. && (this.MatchTableAdapterConnection(this._productPhotoTableAdapter.Connection) == false))) {
  11016. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11017. "r, должны использовать одинаковую строку подключения.");
  11018. }
  11019. if (((this._productSaleTableAdapter != null)
  11020. && (this.MatchTableAdapterConnection(this._productSaleTableAdapter.Connection) == false))) {
  11021. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11022. "r, должны использовать одинаковую строку подключения.");
  11023. }
  11024. if (((this._serviceTableAdapter != null)
  11025. && (this.MatchTableAdapterConnection(this._serviceTableAdapter.Connection) == false))) {
  11026. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11027. "r, должны использовать одинаковую строку подключения.");
  11028. }
  11029. if (((this._servicePhotoTableAdapter != null)
  11030. && (this.MatchTableAdapterConnection(this._servicePhotoTableAdapter.Connection) == false))) {
  11031. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11032. "r, должны использовать одинаковую строку подключения.");
  11033. }
  11034. if (((this._tagTableAdapter != null)
  11035. && (this.MatchTableAdapterConnection(this._tagTableAdapter.Connection) == false))) {
  11036. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11037. "r, должны использовать одинаковую строку подключения.");
  11038. }
  11039. if (((this._tagOfClientTableAdapter != null)
  11040. && (this.MatchTableAdapterConnection(this._tagOfClientTableAdapter.Connection) == false))) {
  11041. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11042. "r, должны использовать одинаковую строку подключения.");
  11043. }
  11044. global::System.Data.IDbConnection workConnection = this.Connection;
  11045. if ((workConnection == null)) {
  11046. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  11047. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  11048. }
  11049. bool workConnOpened = false;
  11050. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  11051. == global::System.Data.ConnectionState.Broken)) {
  11052. workConnection.Close();
  11053. }
  11054. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  11055. workConnection.Open();
  11056. workConnOpened = true;
  11057. }
  11058. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  11059. if ((workTransaction == null)) {
  11060. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  11061. "и или текущее состояние не позволяет начать транзакцию.");
  11062. }
  11063. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  11064. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  11065. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  11066. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  11067. int result = 0;
  11068. global::System.Data.DataSet backupDataSet = null;
  11069. if (this.BackupDataSetBeforeUpdate) {
  11070. backupDataSet = new global::System.Data.DataSet();
  11071. backupDataSet.Merge(dataSet);
  11072. }
  11073. try {
  11074. // ---- Prepare for update -----------
  11075. //
  11076. if ((this._attachedProductTableAdapter != null)) {
  11077. revertConnections.Add(this._attachedProductTableAdapter, this._attachedProductTableAdapter.Connection);
  11078. this._attachedProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11079. this._attachedProductTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11080. if (this._attachedProductTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11081. this._attachedProductTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11082. adaptersWithAcceptChangesDuringUpdate.Add(this._attachedProductTableAdapter.Adapter);
  11083. }
  11084. }
  11085. if ((this._clientTableAdapter != null)) {
  11086. revertConnections.Add(this._clientTableAdapter, this._clientTableAdapter.Connection);
  11087. this._clientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11088. this._clientTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11089. if (this._clientTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11090. this._clientTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11091. adaptersWithAcceptChangesDuringUpdate.Add(this._clientTableAdapter.Adapter);
  11092. }
  11093. }
  11094. if ((this._clientServiceTableAdapter != null)) {
  11095. revertConnections.Add(this._clientServiceTableAdapter, this._clientServiceTableAdapter.Connection);
  11096. this._clientServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11097. this._clientServiceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11098. if (this._clientServiceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11099. this._clientServiceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11100. adaptersWithAcceptChangesDuringUpdate.Add(this._clientServiceTableAdapter.Adapter);
  11101. }
  11102. }
  11103. if ((this._documentByServiceTableAdapter != null)) {
  11104. revertConnections.Add(this._documentByServiceTableAdapter, this._documentByServiceTableAdapter.Connection);
  11105. this._documentByServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11106. this._documentByServiceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11107. if (this._documentByServiceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11108. this._documentByServiceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11109. adaptersWithAcceptChangesDuringUpdate.Add(this._documentByServiceTableAdapter.Adapter);
  11110. }
  11111. }
  11112. if ((this._genderTableAdapter != null)) {
  11113. revertConnections.Add(this._genderTableAdapter, this._genderTableAdapter.Connection);
  11114. this._genderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11115. this._genderTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11116. if (this._genderTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11117. this._genderTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11118. adaptersWithAcceptChangesDuringUpdate.Add(this._genderTableAdapter.Adapter);
  11119. }
  11120. }
  11121. if ((this._manufacturerTableAdapter != null)) {
  11122. revertConnections.Add(this._manufacturerTableAdapter, this._manufacturerTableAdapter.Connection);
  11123. this._manufacturerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11124. this._manufacturerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11125. if (this._manufacturerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11126. this._manufacturerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11127. adaptersWithAcceptChangesDuringUpdate.Add(this._manufacturerTableAdapter.Adapter);
  11128. }
  11129. }
  11130. if ((this._productTableAdapter != null)) {
  11131. revertConnections.Add(this._productTableAdapter, this._productTableAdapter.Connection);
  11132. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11133. this._productTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11134. if (this._productTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11135. this._productTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11136. adaptersWithAcceptChangesDuringUpdate.Add(this._productTableAdapter.Adapter);
  11137. }
  11138. }
  11139. if ((this._productPhotoTableAdapter != null)) {
  11140. revertConnections.Add(this._productPhotoTableAdapter, this._productPhotoTableAdapter.Connection);
  11141. this._productPhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11142. this._productPhotoTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11143. if (this._productPhotoTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11144. this._productPhotoTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11145. adaptersWithAcceptChangesDuringUpdate.Add(this._productPhotoTableAdapter.Adapter);
  11146. }
  11147. }
  11148. if ((this._productSaleTableAdapter != null)) {
  11149. revertConnections.Add(this._productSaleTableAdapter, this._productSaleTableAdapter.Connection);
  11150. this._productSaleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11151. this._productSaleTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11152. if (this._productSaleTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11153. this._productSaleTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11154. adaptersWithAcceptChangesDuringUpdate.Add(this._productSaleTableAdapter.Adapter);
  11155. }
  11156. }
  11157. if ((this._serviceTableAdapter != null)) {
  11158. revertConnections.Add(this._serviceTableAdapter, this._serviceTableAdapter.Connection);
  11159. this._serviceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11160. this._serviceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11161. if (this._serviceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11162. this._serviceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11163. adaptersWithAcceptChangesDuringUpdate.Add(this._serviceTableAdapter.Adapter);
  11164. }
  11165. }
  11166. if ((this._servicePhotoTableAdapter != null)) {
  11167. revertConnections.Add(this._servicePhotoTableAdapter, this._servicePhotoTableAdapter.Connection);
  11168. this._servicePhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11169. this._servicePhotoTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11170. if (this._servicePhotoTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11171. this._servicePhotoTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11172. adaptersWithAcceptChangesDuringUpdate.Add(this._servicePhotoTableAdapter.Adapter);
  11173. }
  11174. }
  11175. if ((this._tagTableAdapter != null)) {
  11176. revertConnections.Add(this._tagTableAdapter, this._tagTableAdapter.Connection);
  11177. this._tagTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11178. this._tagTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11179. if (this._tagTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11180. this._tagTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11181. adaptersWithAcceptChangesDuringUpdate.Add(this._tagTableAdapter.Adapter);
  11182. }
  11183. }
  11184. if ((this._tagOfClientTableAdapter != null)) {
  11185. revertConnections.Add(this._tagOfClientTableAdapter, this._tagOfClientTableAdapter.Connection);
  11186. this._tagOfClientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11187. this._tagOfClientTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11188. if (this._tagOfClientTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11189. this._tagOfClientTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11190. adaptersWithAcceptChangesDuringUpdate.Add(this._tagOfClientTableAdapter.Adapter);
  11191. }
  11192. }
  11193. //
  11194. //---- Perform updates -----------
  11195. //
  11196. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  11197. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  11198. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  11199. }
  11200. else {
  11201. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  11202. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  11203. }
  11204. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  11205. //
  11206. //---- Commit updates -----------
  11207. //
  11208. workTransaction.Commit();
  11209. if ((0 < allAddedRows.Count)) {
  11210. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  11211. allAddedRows.CopyTo(rows);
  11212. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  11213. global::System.Data.DataRow row = rows[i];
  11214. row.AcceptChanges();
  11215. }
  11216. }
  11217. if ((0 < allChangedRows.Count)) {
  11218. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  11219. allChangedRows.CopyTo(rows);
  11220. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  11221. global::System.Data.DataRow row = rows[i];
  11222. row.AcceptChanges();
  11223. }
  11224. }
  11225. }
  11226. catch (global::System.Exception ex) {
  11227. workTransaction.Rollback();
  11228. // ---- Restore the dataset -----------
  11229. if (this.BackupDataSetBeforeUpdate) {
  11230. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  11231. dataSet.Clear();
  11232. dataSet.Merge(backupDataSet);
  11233. }
  11234. else {
  11235. if ((0 < allAddedRows.Count)) {
  11236. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  11237. allAddedRows.CopyTo(rows);
  11238. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  11239. global::System.Data.DataRow row = rows[i];
  11240. row.AcceptChanges();
  11241. row.SetAdded();
  11242. }
  11243. }
  11244. }
  11245. throw ex;
  11246. }
  11247. finally {
  11248. if (workConnOpened) {
  11249. workConnection.Close();
  11250. }
  11251. if ((this._attachedProductTableAdapter != null)) {
  11252. this._attachedProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._attachedProductTableAdapter]));
  11253. this._attachedProductTableAdapter.Transaction = null;
  11254. }
  11255. if ((this._clientTableAdapter != null)) {
  11256. this._clientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._clientTableAdapter]));
  11257. this._clientTableAdapter.Transaction = null;
  11258. }
  11259. if ((this._clientServiceTableAdapter != null)) {
  11260. this._clientServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._clientServiceTableAdapter]));
  11261. this._clientServiceTableAdapter.Transaction = null;
  11262. }
  11263. if ((this._documentByServiceTableAdapter != null)) {
  11264. this._documentByServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._documentByServiceTableAdapter]));
  11265. this._documentByServiceTableAdapter.Transaction = null;
  11266. }
  11267. if ((this._genderTableAdapter != null)) {
  11268. this._genderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._genderTableAdapter]));
  11269. this._genderTableAdapter.Transaction = null;
  11270. }
  11271. if ((this._manufacturerTableAdapter != null)) {
  11272. this._manufacturerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._manufacturerTableAdapter]));
  11273. this._manufacturerTableAdapter.Transaction = null;
  11274. }
  11275. if ((this._productTableAdapter != null)) {
  11276. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productTableAdapter]));
  11277. this._productTableAdapter.Transaction = null;
  11278. }
  11279. if ((this._productPhotoTableAdapter != null)) {
  11280. this._productPhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productPhotoTableAdapter]));
  11281. this._productPhotoTableAdapter.Transaction = null;
  11282. }
  11283. if ((this._productSaleTableAdapter != null)) {
  11284. this._productSaleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productSaleTableAdapter]));
  11285. this._productSaleTableAdapter.Transaction = null;
  11286. }
  11287. if ((this._serviceTableAdapter != null)) {
  11288. this._serviceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._serviceTableAdapter]));
  11289. this._serviceTableAdapter.Transaction = null;
  11290. }
  11291. if ((this._servicePhotoTableAdapter != null)) {
  11292. this._servicePhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._servicePhotoTableAdapter]));
  11293. this._servicePhotoTableAdapter.Transaction = null;
  11294. }
  11295. if ((this._tagTableAdapter != null)) {
  11296. this._tagTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tagTableAdapter]));
  11297. this._tagTableAdapter.Transaction = null;
  11298. }
  11299. if ((this._tagOfClientTableAdapter != null)) {
  11300. this._tagOfClientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tagOfClientTableAdapter]));
  11301. this._tagOfClientTableAdapter.Transaction = null;
  11302. }
  11303. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  11304. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  11305. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  11306. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  11307. global::System.Data.Common.DataAdapter adapter = adapters[i];
  11308. adapter.AcceptChangesDuringUpdate = true;
  11309. }
  11310. }
  11311. }
  11312. return result;
  11313. }
  11314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11316. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  11317. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  11318. }
  11319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11321. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  11322. if ((this._connection != null)) {
  11323. return true;
  11324. }
  11325. if (((this.Connection == null)
  11326. || (inputConnection == null))) {
  11327. return true;
  11328. }
  11329. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  11330. return true;
  11331. }
  11332. return false;
  11333. }
  11334. /// <summary>
  11335. ///Update Order Option
  11336. ///</summary>
  11337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11338. public enum UpdateOrderOption {
  11339. InsertUpdateDelete = 0,
  11340. UpdateInsertDelete = 1,
  11341. }
  11342. /// <summary>
  11343. ///Used to sort self-referenced table's rows
  11344. ///</summary>
  11345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11346. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  11347. private global::System.Data.DataRelation _relation;
  11348. private int _childFirst;
  11349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11351. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  11352. this._relation = relation;
  11353. if (childFirst) {
  11354. this._childFirst = -1;
  11355. }
  11356. else {
  11357. this._childFirst = 1;
  11358. }
  11359. }
  11360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11362. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  11363. global::System.Diagnostics.Debug.Assert((row != null));
  11364. global::System.Data.DataRow root = row;
  11365. distance = 0;
  11366. 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>();
  11367. traversedRows[row] = row;
  11368. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  11369. for (
  11370. ; ((parent != null)
  11371. && (traversedRows.ContainsKey(parent) == false));
  11372. ) {
  11373. distance = (distance + 1);
  11374. root = parent;
  11375. traversedRows[parent] = parent;
  11376. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  11377. }
  11378. if ((distance == 0)) {
  11379. traversedRows.Clear();
  11380. traversedRows[row] = row;
  11381. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  11382. for (
  11383. ; ((parent != null)
  11384. && (traversedRows.ContainsKey(parent) == false));
  11385. ) {
  11386. distance = (distance + 1);
  11387. root = parent;
  11388. traversedRows[parent] = parent;
  11389. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  11390. }
  11391. }
  11392. return root;
  11393. }
  11394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11396. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  11397. if (object.ReferenceEquals(row1, row2)) {
  11398. return 0;
  11399. }
  11400. if ((row1 == null)) {
  11401. return -1;
  11402. }
  11403. if ((row2 == null)) {
  11404. return 1;
  11405. }
  11406. int distance1 = 0;
  11407. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  11408. int distance2 = 0;
  11409. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  11410. if (object.ReferenceEquals(root1, root2)) {
  11411. return (this._childFirst * distance1.CompareTo(distance2));
  11412. }
  11413. else {
  11414. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  11415. && (root2.Table != null)));
  11416. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  11417. return -1;
  11418. }
  11419. else {
  11420. return 1;
  11421. }
  11422. }
  11423. }
  11424. }
  11425. }
  11426. }
  11427. #pragma warning restore 1591