BB_AzizovaDataSet.Designer.cs 1.1 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace BB_Azizova {
  12. /// <summary>
  13. ///Represents a strongly typed in-memory cache of data.
  14. ///</summary>
  15. [global::System.Serializable()]
  16. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  17. [global::System.ComponentModel.ToolboxItem(true)]
  18. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
  19. [global::System.Xml.Serialization.XmlRootAttribute("BB_AzizovaDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class BB_AzizovaDataSet : global::System.Data.DataSet {
  22. private AdministratorDataTable tableAdministrator;
  23. private AttachedProductDataTable tableAttachedProduct;
  24. private ClientDataTable tableClient;
  25. private ClientsDataTable tableClients;
  26. private ClientServiceDataTable tableClientService;
  27. private DocumentByServiceDataTable tableDocumentByService;
  28. private GenderDataTable tableGender;
  29. private ManufacturerDataTable tableManufacturer;
  30. private ProductDataTable tableProduct;
  31. private ProductPhotoDataTable tableProductPhoto;
  32. private ProductSaleDataTable tableProductSale;
  33. private ServiceDataTable tableService;
  34. private ServicePhotoDataTable tableServicePhoto;
  35. private SotrudnikDataTable tableSotrudnik;
  36. private TagDataTable tableTag;
  37. private TagOfClientDataTable tableTagOfClient;
  38. private UslugiDataTable tableUslugi;
  39. private Uslugi_i_KlientDataTable tableUslugi_i_Klient;
  40. private global::System.Data.DataRelation relationFK_AttachedProduct_Product;
  41. private global::System.Data.DataRelation relationFK_AttachedProduct_Product1;
  42. private global::System.Data.DataRelation relationFK_Client_Gender;
  43. private global::System.Data.DataRelation relationFK_ClientService_Client;
  44. private global::System.Data.DataRelation relationFK_ClientService_Service;
  45. private global::System.Data.DataRelation relationFK_DocumentByService_ClientService;
  46. private global::System.Data.DataRelation relationFK_Product_Manufacturer;
  47. private global::System.Data.DataRelation relationFK_ProductPhoto_Product;
  48. private global::System.Data.DataRelation relationFK_ProductSale_ClientService;
  49. private global::System.Data.DataRelation relationFK_ProductSale_Product;
  50. private global::System.Data.DataRelation relationFK_ServicePhoto_Service;
  51. private global::System.Data.DataRelation relationFK_Sotrudnik_Uslsgi;
  52. private global::System.Data.DataRelation relationFK_TagOfClient_Client;
  53. private global::System.Data.DataRelation relationFK_TagOfClient_Tag;
  54. private global::System.Data.DataRelation relationFK_Uslugi_i_Klient_Clients;
  55. private global::System.Data.DataRelation relationFK_Uslugi_i_Klient_Uslsgi;
  56. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  57. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  58. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  59. public BB_AzizovaDataSet() {
  60. this.BeginInit();
  61. this.InitClass();
  62. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  63. base.Tables.CollectionChanged += schemaChangedHandler;
  64. base.Relations.CollectionChanged += schemaChangedHandler;
  65. this.EndInit();
  66. }
  67. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  68. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  69. protected BB_AzizovaDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  70. base(info, context, false) {
  71. if ((this.IsBinarySerialized(info, context) == true)) {
  72. this.InitVars(false);
  73. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  74. this.Tables.CollectionChanged += schemaChangedHandler1;
  75. this.Relations.CollectionChanged += schemaChangedHandler1;
  76. return;
  77. }
  78. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  79. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  80. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  81. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  82. if ((ds.Tables["Administrator"] != null)) {
  83. base.Tables.Add(new AdministratorDataTable(ds.Tables["Administrator"]));
  84. }
  85. if ((ds.Tables["AttachedProduct"] != null)) {
  86. base.Tables.Add(new AttachedProductDataTable(ds.Tables["AttachedProduct"]));
  87. }
  88. if ((ds.Tables["Client"] != null)) {
  89. base.Tables.Add(new ClientDataTable(ds.Tables["Client"]));
  90. }
  91. if ((ds.Tables["Clients"] != null)) {
  92. base.Tables.Add(new ClientsDataTable(ds.Tables["Clients"]));
  93. }
  94. if ((ds.Tables["ClientService"] != null)) {
  95. base.Tables.Add(new ClientServiceDataTable(ds.Tables["ClientService"]));
  96. }
  97. if ((ds.Tables["DocumentByService"] != null)) {
  98. base.Tables.Add(new DocumentByServiceDataTable(ds.Tables["DocumentByService"]));
  99. }
  100. if ((ds.Tables["Gender"] != null)) {
  101. base.Tables.Add(new GenderDataTable(ds.Tables["Gender"]));
  102. }
  103. if ((ds.Tables["Manufacturer"] != null)) {
  104. base.Tables.Add(new ManufacturerDataTable(ds.Tables["Manufacturer"]));
  105. }
  106. if ((ds.Tables["Product"] != null)) {
  107. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  108. }
  109. if ((ds.Tables["ProductPhoto"] != null)) {
  110. base.Tables.Add(new ProductPhotoDataTable(ds.Tables["ProductPhoto"]));
  111. }
  112. if ((ds.Tables["ProductSale"] != null)) {
  113. base.Tables.Add(new ProductSaleDataTable(ds.Tables["ProductSale"]));
  114. }
  115. if ((ds.Tables["Service"] != null)) {
  116. base.Tables.Add(new ServiceDataTable(ds.Tables["Service"]));
  117. }
  118. if ((ds.Tables["ServicePhoto"] != null)) {
  119. base.Tables.Add(new ServicePhotoDataTable(ds.Tables["ServicePhoto"]));
  120. }
  121. if ((ds.Tables["Sotrudnik"] != null)) {
  122. base.Tables.Add(new SotrudnikDataTable(ds.Tables["Sotrudnik"]));
  123. }
  124. if ((ds.Tables["Tag"] != null)) {
  125. base.Tables.Add(new TagDataTable(ds.Tables["Tag"]));
  126. }
  127. if ((ds.Tables["TagOfClient"] != null)) {
  128. base.Tables.Add(new TagOfClientDataTable(ds.Tables["TagOfClient"]));
  129. }
  130. if ((ds.Tables["Uslugi"] != null)) {
  131. base.Tables.Add(new UslugiDataTable(ds.Tables["Uslugi"]));
  132. }
  133. if ((ds.Tables["Uslugi_i_Klient"] != null)) {
  134. base.Tables.Add(new Uslugi_i_KlientDataTable(ds.Tables["Uslugi_i_Klient"]));
  135. }
  136. this.DataSetName = ds.DataSetName;
  137. this.Prefix = ds.Prefix;
  138. this.Namespace = ds.Namespace;
  139. this.Locale = ds.Locale;
  140. this.CaseSensitive = ds.CaseSensitive;
  141. this.EnforceConstraints = ds.EnforceConstraints;
  142. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  143. this.InitVars();
  144. }
  145. else {
  146. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  147. }
  148. this.GetSerializationData(info, context);
  149. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  150. base.Tables.CollectionChanged += schemaChangedHandler;
  151. this.Relations.CollectionChanged += schemaChangedHandler;
  152. }
  153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  155. [global::System.ComponentModel.Browsable(false)]
  156. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  157. public AdministratorDataTable Administrator {
  158. get {
  159. return this.tableAdministrator;
  160. }
  161. }
  162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  164. [global::System.ComponentModel.Browsable(false)]
  165. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  166. public AttachedProductDataTable AttachedProduct {
  167. get {
  168. return this.tableAttachedProduct;
  169. }
  170. }
  171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  173. [global::System.ComponentModel.Browsable(false)]
  174. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  175. public ClientDataTable Client {
  176. get {
  177. return this.tableClient;
  178. }
  179. }
  180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  182. [global::System.ComponentModel.Browsable(false)]
  183. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  184. public ClientsDataTable Clients {
  185. get {
  186. return this.tableClients;
  187. }
  188. }
  189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  191. [global::System.ComponentModel.Browsable(false)]
  192. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  193. public ClientServiceDataTable ClientService {
  194. get {
  195. return this.tableClientService;
  196. }
  197. }
  198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  200. [global::System.ComponentModel.Browsable(false)]
  201. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  202. public DocumentByServiceDataTable DocumentByService {
  203. get {
  204. return this.tableDocumentByService;
  205. }
  206. }
  207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  209. [global::System.ComponentModel.Browsable(false)]
  210. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  211. public GenderDataTable Gender {
  212. get {
  213. return this.tableGender;
  214. }
  215. }
  216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  218. [global::System.ComponentModel.Browsable(false)]
  219. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  220. public ManufacturerDataTable Manufacturer {
  221. get {
  222. return this.tableManufacturer;
  223. }
  224. }
  225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  227. [global::System.ComponentModel.Browsable(false)]
  228. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  229. public ProductDataTable Product {
  230. get {
  231. return this.tableProduct;
  232. }
  233. }
  234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  236. [global::System.ComponentModel.Browsable(false)]
  237. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  238. public ProductPhotoDataTable ProductPhoto {
  239. get {
  240. return this.tableProductPhoto;
  241. }
  242. }
  243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  245. [global::System.ComponentModel.Browsable(false)]
  246. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  247. public ProductSaleDataTable ProductSale {
  248. get {
  249. return this.tableProductSale;
  250. }
  251. }
  252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  254. [global::System.ComponentModel.Browsable(false)]
  255. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  256. public ServiceDataTable Service {
  257. get {
  258. return this.tableService;
  259. }
  260. }
  261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  263. [global::System.ComponentModel.Browsable(false)]
  264. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  265. public ServicePhotoDataTable ServicePhoto {
  266. get {
  267. return this.tableServicePhoto;
  268. }
  269. }
  270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  271. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  272. [global::System.ComponentModel.Browsable(false)]
  273. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  274. public SotrudnikDataTable Sotrudnik {
  275. get {
  276. return this.tableSotrudnik;
  277. }
  278. }
  279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  281. [global::System.ComponentModel.Browsable(false)]
  282. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  283. public TagDataTable Tag {
  284. get {
  285. return this.tableTag;
  286. }
  287. }
  288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  290. [global::System.ComponentModel.Browsable(false)]
  291. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  292. public TagOfClientDataTable TagOfClient {
  293. get {
  294. return this.tableTagOfClient;
  295. }
  296. }
  297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  299. [global::System.ComponentModel.Browsable(false)]
  300. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  301. public UslugiDataTable Uslugi {
  302. get {
  303. return this.tableUslugi;
  304. }
  305. }
  306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  308. [global::System.ComponentModel.Browsable(false)]
  309. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  310. public Uslugi_i_KlientDataTable Uslugi_i_Klient {
  311. get {
  312. return this.tableUslugi_i_Klient;
  313. }
  314. }
  315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  317. [global::System.ComponentModel.BrowsableAttribute(true)]
  318. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  319. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  320. get {
  321. return this._schemaSerializationMode;
  322. }
  323. set {
  324. this._schemaSerializationMode = value;
  325. }
  326. }
  327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  328. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  329. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  330. public new global::System.Data.DataTableCollection Tables {
  331. get {
  332. return base.Tables;
  333. }
  334. }
  335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  337. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  338. public new global::System.Data.DataRelationCollection Relations {
  339. get {
  340. return base.Relations;
  341. }
  342. }
  343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  344. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  345. protected override void InitializeDerivedDataSet() {
  346. this.BeginInit();
  347. this.InitClass();
  348. this.EndInit();
  349. }
  350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  352. public override global::System.Data.DataSet Clone() {
  353. BB_AzizovaDataSet cln = ((BB_AzizovaDataSet)(base.Clone()));
  354. cln.InitVars();
  355. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  356. return cln;
  357. }
  358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  359. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  360. protected override bool ShouldSerializeTables() {
  361. return false;
  362. }
  363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  365. protected override bool ShouldSerializeRelations() {
  366. return false;
  367. }
  368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  370. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  371. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  372. this.Reset();
  373. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  374. ds.ReadXml(reader);
  375. if ((ds.Tables["Administrator"] != null)) {
  376. base.Tables.Add(new AdministratorDataTable(ds.Tables["Administrator"]));
  377. }
  378. if ((ds.Tables["AttachedProduct"] != null)) {
  379. base.Tables.Add(new AttachedProductDataTable(ds.Tables["AttachedProduct"]));
  380. }
  381. if ((ds.Tables["Client"] != null)) {
  382. base.Tables.Add(new ClientDataTable(ds.Tables["Client"]));
  383. }
  384. if ((ds.Tables["Clients"] != null)) {
  385. base.Tables.Add(new ClientsDataTable(ds.Tables["Clients"]));
  386. }
  387. if ((ds.Tables["ClientService"] != null)) {
  388. base.Tables.Add(new ClientServiceDataTable(ds.Tables["ClientService"]));
  389. }
  390. if ((ds.Tables["DocumentByService"] != null)) {
  391. base.Tables.Add(new DocumentByServiceDataTable(ds.Tables["DocumentByService"]));
  392. }
  393. if ((ds.Tables["Gender"] != null)) {
  394. base.Tables.Add(new GenderDataTable(ds.Tables["Gender"]));
  395. }
  396. if ((ds.Tables["Manufacturer"] != null)) {
  397. base.Tables.Add(new ManufacturerDataTable(ds.Tables["Manufacturer"]));
  398. }
  399. if ((ds.Tables["Product"] != null)) {
  400. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  401. }
  402. if ((ds.Tables["ProductPhoto"] != null)) {
  403. base.Tables.Add(new ProductPhotoDataTable(ds.Tables["ProductPhoto"]));
  404. }
  405. if ((ds.Tables["ProductSale"] != null)) {
  406. base.Tables.Add(new ProductSaleDataTable(ds.Tables["ProductSale"]));
  407. }
  408. if ((ds.Tables["Service"] != null)) {
  409. base.Tables.Add(new ServiceDataTable(ds.Tables["Service"]));
  410. }
  411. if ((ds.Tables["ServicePhoto"] != null)) {
  412. base.Tables.Add(new ServicePhotoDataTable(ds.Tables["ServicePhoto"]));
  413. }
  414. if ((ds.Tables["Sotrudnik"] != null)) {
  415. base.Tables.Add(new SotrudnikDataTable(ds.Tables["Sotrudnik"]));
  416. }
  417. if ((ds.Tables["Tag"] != null)) {
  418. base.Tables.Add(new TagDataTable(ds.Tables["Tag"]));
  419. }
  420. if ((ds.Tables["TagOfClient"] != null)) {
  421. base.Tables.Add(new TagOfClientDataTable(ds.Tables["TagOfClient"]));
  422. }
  423. if ((ds.Tables["Uslugi"] != null)) {
  424. base.Tables.Add(new UslugiDataTable(ds.Tables["Uslugi"]));
  425. }
  426. if ((ds.Tables["Uslugi_i_Klient"] != null)) {
  427. base.Tables.Add(new Uslugi_i_KlientDataTable(ds.Tables["Uslugi_i_Klient"]));
  428. }
  429. this.DataSetName = ds.DataSetName;
  430. this.Prefix = ds.Prefix;
  431. this.Namespace = ds.Namespace;
  432. this.Locale = ds.Locale;
  433. this.CaseSensitive = ds.CaseSensitive;
  434. this.EnforceConstraints = ds.EnforceConstraints;
  435. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  436. this.InitVars();
  437. }
  438. else {
  439. this.ReadXml(reader);
  440. this.InitVars();
  441. }
  442. }
  443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  444. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  445. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  446. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  447. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  448. stream.Position = 0;
  449. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  450. }
  451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  453. internal void InitVars() {
  454. this.InitVars(true);
  455. }
  456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  458. internal void InitVars(bool initTable) {
  459. this.tableAdministrator = ((AdministratorDataTable)(base.Tables["Administrator"]));
  460. if ((initTable == true)) {
  461. if ((this.tableAdministrator != null)) {
  462. this.tableAdministrator.InitVars();
  463. }
  464. }
  465. this.tableAttachedProduct = ((AttachedProductDataTable)(base.Tables["AttachedProduct"]));
  466. if ((initTable == true)) {
  467. if ((this.tableAttachedProduct != null)) {
  468. this.tableAttachedProduct.InitVars();
  469. }
  470. }
  471. this.tableClient = ((ClientDataTable)(base.Tables["Client"]));
  472. if ((initTable == true)) {
  473. if ((this.tableClient != null)) {
  474. this.tableClient.InitVars();
  475. }
  476. }
  477. this.tableClients = ((ClientsDataTable)(base.Tables["Clients"]));
  478. if ((initTable == true)) {
  479. if ((this.tableClients != null)) {
  480. this.tableClients.InitVars();
  481. }
  482. }
  483. this.tableClientService = ((ClientServiceDataTable)(base.Tables["ClientService"]));
  484. if ((initTable == true)) {
  485. if ((this.tableClientService != null)) {
  486. this.tableClientService.InitVars();
  487. }
  488. }
  489. this.tableDocumentByService = ((DocumentByServiceDataTable)(base.Tables["DocumentByService"]));
  490. if ((initTable == true)) {
  491. if ((this.tableDocumentByService != null)) {
  492. this.tableDocumentByService.InitVars();
  493. }
  494. }
  495. this.tableGender = ((GenderDataTable)(base.Tables["Gender"]));
  496. if ((initTable == true)) {
  497. if ((this.tableGender != null)) {
  498. this.tableGender.InitVars();
  499. }
  500. }
  501. this.tableManufacturer = ((ManufacturerDataTable)(base.Tables["Manufacturer"]));
  502. if ((initTable == true)) {
  503. if ((this.tableManufacturer != null)) {
  504. this.tableManufacturer.InitVars();
  505. }
  506. }
  507. this.tableProduct = ((ProductDataTable)(base.Tables["Product"]));
  508. if ((initTable == true)) {
  509. if ((this.tableProduct != null)) {
  510. this.tableProduct.InitVars();
  511. }
  512. }
  513. this.tableProductPhoto = ((ProductPhotoDataTable)(base.Tables["ProductPhoto"]));
  514. if ((initTable == true)) {
  515. if ((this.tableProductPhoto != null)) {
  516. this.tableProductPhoto.InitVars();
  517. }
  518. }
  519. this.tableProductSale = ((ProductSaleDataTable)(base.Tables["ProductSale"]));
  520. if ((initTable == true)) {
  521. if ((this.tableProductSale != null)) {
  522. this.tableProductSale.InitVars();
  523. }
  524. }
  525. this.tableService = ((ServiceDataTable)(base.Tables["Service"]));
  526. if ((initTable == true)) {
  527. if ((this.tableService != null)) {
  528. this.tableService.InitVars();
  529. }
  530. }
  531. this.tableServicePhoto = ((ServicePhotoDataTable)(base.Tables["ServicePhoto"]));
  532. if ((initTable == true)) {
  533. if ((this.tableServicePhoto != null)) {
  534. this.tableServicePhoto.InitVars();
  535. }
  536. }
  537. this.tableSotrudnik = ((SotrudnikDataTable)(base.Tables["Sotrudnik"]));
  538. if ((initTable == true)) {
  539. if ((this.tableSotrudnik != null)) {
  540. this.tableSotrudnik.InitVars();
  541. }
  542. }
  543. this.tableTag = ((TagDataTable)(base.Tables["Tag"]));
  544. if ((initTable == true)) {
  545. if ((this.tableTag != null)) {
  546. this.tableTag.InitVars();
  547. }
  548. }
  549. this.tableTagOfClient = ((TagOfClientDataTable)(base.Tables["TagOfClient"]));
  550. if ((initTable == true)) {
  551. if ((this.tableTagOfClient != null)) {
  552. this.tableTagOfClient.InitVars();
  553. }
  554. }
  555. this.tableUslugi = ((UslugiDataTable)(base.Tables["Uslugi"]));
  556. if ((initTable == true)) {
  557. if ((this.tableUslugi != null)) {
  558. this.tableUslugi.InitVars();
  559. }
  560. }
  561. this.tableUslugi_i_Klient = ((Uslugi_i_KlientDataTable)(base.Tables["Uslugi_i_Klient"]));
  562. if ((initTable == true)) {
  563. if ((this.tableUslugi_i_Klient != null)) {
  564. this.tableUslugi_i_Klient.InitVars();
  565. }
  566. }
  567. this.relationFK_AttachedProduct_Product = this.Relations["FK_AttachedProduct_Product"];
  568. this.relationFK_AttachedProduct_Product1 = this.Relations["FK_AttachedProduct_Product1"];
  569. this.relationFK_Client_Gender = this.Relations["FK_Client_Gender"];
  570. this.relationFK_ClientService_Client = this.Relations["FK_ClientService_Client"];
  571. this.relationFK_ClientService_Service = this.Relations["FK_ClientService_Service"];
  572. this.relationFK_DocumentByService_ClientService = this.Relations["FK_DocumentByService_ClientService"];
  573. this.relationFK_Product_Manufacturer = this.Relations["FK_Product_Manufacturer"];
  574. this.relationFK_ProductPhoto_Product = this.Relations["FK_ProductPhoto_Product"];
  575. this.relationFK_ProductSale_ClientService = this.Relations["FK_ProductSale_ClientService"];
  576. this.relationFK_ProductSale_Product = this.Relations["FK_ProductSale_Product"];
  577. this.relationFK_ServicePhoto_Service = this.Relations["FK_ServicePhoto_Service"];
  578. this.relationFK_Sotrudnik_Uslsgi = this.Relations["FK_Sotrudnik_Uslsgi"];
  579. this.relationFK_TagOfClient_Client = this.Relations["FK_TagOfClient_Client"];
  580. this.relationFK_TagOfClient_Tag = this.Relations["FK_TagOfClient_Tag"];
  581. this.relationFK_Uslugi_i_Klient_Clients = this.Relations["FK_Uslugi_i_Klient_Clients"];
  582. this.relationFK_Uslugi_i_Klient_Uslsgi = this.Relations["FK_Uslugi_i_Klient_Uslsgi"];
  583. }
  584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  586. private void InitClass() {
  587. this.DataSetName = "BB_AzizovaDataSet";
  588. this.Prefix = "";
  589. this.Namespace = "http://tempuri.org/BB_AzizovaDataSet.xsd";
  590. this.EnforceConstraints = true;
  591. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  592. this.tableAdministrator = new AdministratorDataTable();
  593. base.Tables.Add(this.tableAdministrator);
  594. this.tableAttachedProduct = new AttachedProductDataTable();
  595. base.Tables.Add(this.tableAttachedProduct);
  596. this.tableClient = new ClientDataTable();
  597. base.Tables.Add(this.tableClient);
  598. this.tableClients = new ClientsDataTable();
  599. base.Tables.Add(this.tableClients);
  600. this.tableClientService = new ClientServiceDataTable();
  601. base.Tables.Add(this.tableClientService);
  602. this.tableDocumentByService = new DocumentByServiceDataTable();
  603. base.Tables.Add(this.tableDocumentByService);
  604. this.tableGender = new GenderDataTable();
  605. base.Tables.Add(this.tableGender);
  606. this.tableManufacturer = new ManufacturerDataTable();
  607. base.Tables.Add(this.tableManufacturer);
  608. this.tableProduct = new ProductDataTable();
  609. base.Tables.Add(this.tableProduct);
  610. this.tableProductPhoto = new ProductPhotoDataTable();
  611. base.Tables.Add(this.tableProductPhoto);
  612. this.tableProductSale = new ProductSaleDataTable();
  613. base.Tables.Add(this.tableProductSale);
  614. this.tableService = new ServiceDataTable();
  615. base.Tables.Add(this.tableService);
  616. this.tableServicePhoto = new ServicePhotoDataTable();
  617. base.Tables.Add(this.tableServicePhoto);
  618. this.tableSotrudnik = new SotrudnikDataTable();
  619. base.Tables.Add(this.tableSotrudnik);
  620. this.tableTag = new TagDataTable();
  621. base.Tables.Add(this.tableTag);
  622. this.tableTagOfClient = new TagOfClientDataTable();
  623. base.Tables.Add(this.tableTagOfClient);
  624. this.tableUslugi = new UslugiDataTable();
  625. base.Tables.Add(this.tableUslugi);
  626. this.tableUslugi_i_Klient = new Uslugi_i_KlientDataTable();
  627. base.Tables.Add(this.tableUslugi_i_Klient);
  628. this.relationFK_AttachedProduct_Product = new global::System.Data.DataRelation("FK_AttachedProduct_Product", new global::System.Data.DataColumn[] {
  629. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  630. this.tableAttachedProduct.MainProductIDColumn}, false);
  631. this.Relations.Add(this.relationFK_AttachedProduct_Product);
  632. this.relationFK_AttachedProduct_Product1 = new global::System.Data.DataRelation("FK_AttachedProduct_Product1", new global::System.Data.DataColumn[] {
  633. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  634. this.tableAttachedProduct.AttachedProductIDColumn}, false);
  635. this.Relations.Add(this.relationFK_AttachedProduct_Product1);
  636. this.relationFK_Client_Gender = new global::System.Data.DataRelation("FK_Client_Gender", new global::System.Data.DataColumn[] {
  637. this.tableGender.CodeColumn}, new global::System.Data.DataColumn[] {
  638. this.tableClient.GenderCodeColumn}, false);
  639. this.Relations.Add(this.relationFK_Client_Gender);
  640. this.relationFK_ClientService_Client = new global::System.Data.DataRelation("FK_ClientService_Client", new global::System.Data.DataColumn[] {
  641. this.tableClient.IDColumn}, new global::System.Data.DataColumn[] {
  642. this.tableClientService.ClientIDColumn}, false);
  643. this.Relations.Add(this.relationFK_ClientService_Client);
  644. this.relationFK_ClientService_Service = new global::System.Data.DataRelation("FK_ClientService_Service", new global::System.Data.DataColumn[] {
  645. this.tableService.IDColumn}, new global::System.Data.DataColumn[] {
  646. this.tableClientService.ServiceIDColumn}, false);
  647. this.Relations.Add(this.relationFK_ClientService_Service);
  648. this.relationFK_DocumentByService_ClientService = new global::System.Data.DataRelation("FK_DocumentByService_ClientService", new global::System.Data.DataColumn[] {
  649. this.tableClientService.IDColumn}, new global::System.Data.DataColumn[] {
  650. this.tableDocumentByService.ClientServiceIDColumn}, false);
  651. this.Relations.Add(this.relationFK_DocumentByService_ClientService);
  652. this.relationFK_Product_Manufacturer = new global::System.Data.DataRelation("FK_Product_Manufacturer", new global::System.Data.DataColumn[] {
  653. this.tableManufacturer.IDColumn}, new global::System.Data.DataColumn[] {
  654. this.tableProduct.ManufacturerIDColumn}, false);
  655. this.Relations.Add(this.relationFK_Product_Manufacturer);
  656. this.relationFK_ProductPhoto_Product = new global::System.Data.DataRelation("FK_ProductPhoto_Product", new global::System.Data.DataColumn[] {
  657. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  658. this.tableProductPhoto.ProductIDColumn}, false);
  659. this.Relations.Add(this.relationFK_ProductPhoto_Product);
  660. this.relationFK_ProductSale_ClientService = new global::System.Data.DataRelation("FK_ProductSale_ClientService", new global::System.Data.DataColumn[] {
  661. this.tableClientService.IDColumn}, new global::System.Data.DataColumn[] {
  662. this.tableProductSale.ClientServiceIDColumn}, false);
  663. this.Relations.Add(this.relationFK_ProductSale_ClientService);
  664. this.relationFK_ProductSale_Product = new global::System.Data.DataRelation("FK_ProductSale_Product", new global::System.Data.DataColumn[] {
  665. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  666. this.tableProductSale.ProductIDColumn}, false);
  667. this.Relations.Add(this.relationFK_ProductSale_Product);
  668. this.relationFK_ServicePhoto_Service = new global::System.Data.DataRelation("FK_ServicePhoto_Service", new global::System.Data.DataColumn[] {
  669. this.tableService.IDColumn}, new global::System.Data.DataColumn[] {
  670. this.tableServicePhoto.ServiceIDColumn}, false);
  671. this.Relations.Add(this.relationFK_ServicePhoto_Service);
  672. this.relationFK_Sotrudnik_Uslsgi = new global::System.Data.DataRelation("FK_Sotrudnik_Uslsgi", new global::System.Data.DataColumn[] {
  673. this.tableUslugi.ID_UslugiColumn}, new global::System.Data.DataColumn[] {
  674. this.tableSotrudnik.ID_UslugiColumn}, false);
  675. this.Relations.Add(this.relationFK_Sotrudnik_Uslsgi);
  676. this.relationFK_TagOfClient_Client = new global::System.Data.DataRelation("FK_TagOfClient_Client", new global::System.Data.DataColumn[] {
  677. this.tableClient.IDColumn}, new global::System.Data.DataColumn[] {
  678. this.tableTagOfClient.ClientIDColumn}, false);
  679. this.Relations.Add(this.relationFK_TagOfClient_Client);
  680. this.relationFK_TagOfClient_Tag = new global::System.Data.DataRelation("FK_TagOfClient_Tag", new global::System.Data.DataColumn[] {
  681. this.tableTag.IDColumn}, new global::System.Data.DataColumn[] {
  682. this.tableTagOfClient.TagIDColumn}, false);
  683. this.Relations.Add(this.relationFK_TagOfClient_Tag);
  684. this.relationFK_Uslugi_i_Klient_Clients = new global::System.Data.DataRelation("FK_Uslugi_i_Klient_Clients", new global::System.Data.DataColumn[] {
  685. this.tableClients.ID_ClientColumn}, new global::System.Data.DataColumn[] {
  686. this.tableUslugi_i_Klient.ID_ClientColumn}, false);
  687. this.Relations.Add(this.relationFK_Uslugi_i_Klient_Clients);
  688. this.relationFK_Uslugi_i_Klient_Uslsgi = new global::System.Data.DataRelation("FK_Uslugi_i_Klient_Uslsgi", new global::System.Data.DataColumn[] {
  689. this.tableUslugi.ID_UslugiColumn}, new global::System.Data.DataColumn[] {
  690. this.tableUslugi_i_Klient.ID_UslugiColumn}, false);
  691. this.Relations.Add(this.relationFK_Uslugi_i_Klient_Uslsgi);
  692. }
  693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  695. private bool ShouldSerializeAdministrator() {
  696. return false;
  697. }
  698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  700. private bool ShouldSerializeAttachedProduct() {
  701. return false;
  702. }
  703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  705. private bool ShouldSerializeClient() {
  706. return false;
  707. }
  708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  710. private bool ShouldSerializeClients() {
  711. return false;
  712. }
  713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  715. private bool ShouldSerializeClientService() {
  716. return false;
  717. }
  718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  720. private bool ShouldSerializeDocumentByService() {
  721. return false;
  722. }
  723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  725. private bool ShouldSerializeGender() {
  726. return false;
  727. }
  728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  730. private bool ShouldSerializeManufacturer() {
  731. return false;
  732. }
  733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  735. private bool ShouldSerializeProduct() {
  736. return false;
  737. }
  738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  740. private bool ShouldSerializeProductPhoto() {
  741. return false;
  742. }
  743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  745. private bool ShouldSerializeProductSale() {
  746. return false;
  747. }
  748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  750. private bool ShouldSerializeService() {
  751. return false;
  752. }
  753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  755. private bool ShouldSerializeServicePhoto() {
  756. return false;
  757. }
  758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  760. private bool ShouldSerializeSotrudnik() {
  761. return false;
  762. }
  763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  765. private bool ShouldSerializeTag() {
  766. return false;
  767. }
  768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  770. private bool ShouldSerializeTagOfClient() {
  771. return false;
  772. }
  773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  774. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  775. private bool ShouldSerializeUslugi() {
  776. return false;
  777. }
  778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  780. private bool ShouldSerializeUslugi_i_Klient() {
  781. return false;
  782. }
  783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  785. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  786. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  787. this.InitVars();
  788. }
  789. }
  790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  792. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  793. BB_AzizovaDataSet ds = new BB_AzizovaDataSet();
  794. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  795. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  796. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  797. any.Namespace = ds.Namespace;
  798. sequence.Items.Add(any);
  799. type.Particle = sequence;
  800. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  801. if (xs.Contains(dsSchema.TargetNamespace)) {
  802. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  803. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  804. try {
  805. global::System.Xml.Schema.XmlSchema schema = null;
  806. dsSchema.Write(s1);
  807. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  808. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  809. s2.SetLength(0);
  810. schema.Write(s2);
  811. if ((s1.Length == s2.Length)) {
  812. s1.Position = 0;
  813. s2.Position = 0;
  814. for (; ((s1.Position != s1.Length)
  815. && (s1.ReadByte() == s2.ReadByte())); ) {
  816. ;
  817. }
  818. if ((s1.Position == s1.Length)) {
  819. return type;
  820. }
  821. }
  822. }
  823. }
  824. finally {
  825. if ((s1 != null)) {
  826. s1.Close();
  827. }
  828. if ((s2 != null)) {
  829. s2.Close();
  830. }
  831. }
  832. }
  833. xs.Add(dsSchema);
  834. return type;
  835. }
  836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  837. public delegate void AdministratorRowChangeEventHandler(object sender, AdministratorRowChangeEvent e);
  838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  839. public delegate void AttachedProductRowChangeEventHandler(object sender, AttachedProductRowChangeEvent e);
  840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  841. public delegate void ClientRowChangeEventHandler(object sender, ClientRowChangeEvent e);
  842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  843. public delegate void ClientsRowChangeEventHandler(object sender, ClientsRowChangeEvent e);
  844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  845. public delegate void ClientServiceRowChangeEventHandler(object sender, ClientServiceRowChangeEvent e);
  846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  847. public delegate void DocumentByServiceRowChangeEventHandler(object sender, DocumentByServiceRowChangeEvent e);
  848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  849. public delegate void GenderRowChangeEventHandler(object sender, GenderRowChangeEvent e);
  850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  851. public delegate void ManufacturerRowChangeEventHandler(object sender, ManufacturerRowChangeEvent e);
  852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  853. public delegate void ProductRowChangeEventHandler(object sender, ProductRowChangeEvent e);
  854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  855. public delegate void ProductPhotoRowChangeEventHandler(object sender, ProductPhotoRowChangeEvent e);
  856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  857. public delegate void ProductSaleRowChangeEventHandler(object sender, ProductSaleRowChangeEvent e);
  858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  859. public delegate void ServiceRowChangeEventHandler(object sender, ServiceRowChangeEvent e);
  860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  861. public delegate void ServicePhotoRowChangeEventHandler(object sender, ServicePhotoRowChangeEvent e);
  862. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  863. public delegate void SotrudnikRowChangeEventHandler(object sender, SotrudnikRowChangeEvent e);
  864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  865. public delegate void TagRowChangeEventHandler(object sender, TagRowChangeEvent e);
  866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  867. public delegate void TagOfClientRowChangeEventHandler(object sender, TagOfClientRowChangeEvent e);
  868. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  869. public delegate void UslugiRowChangeEventHandler(object sender, UslugiRowChangeEvent e);
  870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  871. public delegate void Uslugi_i_KlientRowChangeEventHandler(object sender, Uslugi_i_KlientRowChangeEvent e);
  872. /// <summary>
  873. ///Represents the strongly named DataTable class.
  874. ///</summary>
  875. [global::System.Serializable()]
  876. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  877. public partial class AdministratorDataTable : global::System.Data.TypedTableBase<AdministratorRow> {
  878. private global::System.Data.DataColumn columnLogin;
  879. private global::System.Data.DataColumn columnPassword;
  880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  881. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  882. public AdministratorDataTable() {
  883. this.TableName = "Administrator";
  884. this.BeginInit();
  885. this.InitClass();
  886. this.EndInit();
  887. }
  888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  890. internal AdministratorDataTable(global::System.Data.DataTable table) {
  891. this.TableName = table.TableName;
  892. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  893. this.CaseSensitive = table.CaseSensitive;
  894. }
  895. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  896. this.Locale = table.Locale;
  897. }
  898. if ((table.Namespace != table.DataSet.Namespace)) {
  899. this.Namespace = table.Namespace;
  900. }
  901. this.Prefix = table.Prefix;
  902. this.MinimumCapacity = table.MinimumCapacity;
  903. }
  904. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  905. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  906. protected AdministratorDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  907. base(info, context) {
  908. this.InitVars();
  909. }
  910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  911. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  912. public global::System.Data.DataColumn LoginColumn {
  913. get {
  914. return this.columnLogin;
  915. }
  916. }
  917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  919. public global::System.Data.DataColumn PasswordColumn {
  920. get {
  921. return this.columnPassword;
  922. }
  923. }
  924. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  925. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  926. [global::System.ComponentModel.Browsable(false)]
  927. public int Count {
  928. get {
  929. return this.Rows.Count;
  930. }
  931. }
  932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  934. public AdministratorRow this[int index] {
  935. get {
  936. return ((AdministratorRow)(this.Rows[index]));
  937. }
  938. }
  939. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  940. public event AdministratorRowChangeEventHandler AdministratorRowChanging;
  941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  942. public event AdministratorRowChangeEventHandler AdministratorRowChanged;
  943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  944. public event AdministratorRowChangeEventHandler AdministratorRowDeleting;
  945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  946. public event AdministratorRowChangeEventHandler AdministratorRowDeleted;
  947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  949. public void AddAdministratorRow(AdministratorRow row) {
  950. this.Rows.Add(row);
  951. }
  952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  953. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  954. public AdministratorRow AddAdministratorRow(string Login, string Password) {
  955. AdministratorRow rowAdministratorRow = ((AdministratorRow)(this.NewRow()));
  956. object[] columnValuesArray = new object[] {
  957. Login,
  958. Password};
  959. rowAdministratorRow.ItemArray = columnValuesArray;
  960. this.Rows.Add(rowAdministratorRow);
  961. return rowAdministratorRow;
  962. }
  963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  965. public override global::System.Data.DataTable Clone() {
  966. AdministratorDataTable cln = ((AdministratorDataTable)(base.Clone()));
  967. cln.InitVars();
  968. return cln;
  969. }
  970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  972. protected override global::System.Data.DataTable CreateInstance() {
  973. return new AdministratorDataTable();
  974. }
  975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  976. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  977. internal void InitVars() {
  978. this.columnLogin = base.Columns["Login"];
  979. this.columnPassword = base.Columns["Password"];
  980. }
  981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  982. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  983. private void InitClass() {
  984. this.columnLogin = new global::System.Data.DataColumn("Login", typeof(string), null, global::System.Data.MappingType.Element);
  985. base.Columns.Add(this.columnLogin);
  986. this.columnPassword = new global::System.Data.DataColumn("Password", typeof(string), null, global::System.Data.MappingType.Element);
  987. base.Columns.Add(this.columnPassword);
  988. this.columnLogin.MaxLength = 50;
  989. this.columnPassword.MaxLength = 50;
  990. }
  991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  993. public AdministratorRow NewAdministratorRow() {
  994. return ((AdministratorRow)(this.NewRow()));
  995. }
  996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  998. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  999. return new AdministratorRow(builder);
  1000. }
  1001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1003. protected override global::System.Type GetRowType() {
  1004. return typeof(AdministratorRow);
  1005. }
  1006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1008. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1009. base.OnRowChanged(e);
  1010. if ((this.AdministratorRowChanged != null)) {
  1011. this.AdministratorRowChanged(this, new AdministratorRowChangeEvent(((AdministratorRow)(e.Row)), e.Action));
  1012. }
  1013. }
  1014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1016. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1017. base.OnRowChanging(e);
  1018. if ((this.AdministratorRowChanging != null)) {
  1019. this.AdministratorRowChanging(this, new AdministratorRowChangeEvent(((AdministratorRow)(e.Row)), e.Action));
  1020. }
  1021. }
  1022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1024. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1025. base.OnRowDeleted(e);
  1026. if ((this.AdministratorRowDeleted != null)) {
  1027. this.AdministratorRowDeleted(this, new AdministratorRowChangeEvent(((AdministratorRow)(e.Row)), e.Action));
  1028. }
  1029. }
  1030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1032. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1033. base.OnRowDeleting(e);
  1034. if ((this.AdministratorRowDeleting != null)) {
  1035. this.AdministratorRowDeleting(this, new AdministratorRowChangeEvent(((AdministratorRow)(e.Row)), e.Action));
  1036. }
  1037. }
  1038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1039. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1040. public void RemoveAdministratorRow(AdministratorRow row) {
  1041. this.Rows.Remove(row);
  1042. }
  1043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1045. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1046. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1047. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1048. BB_AzizovaDataSet ds = new BB_AzizovaDataSet();
  1049. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1050. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1051. any1.MinOccurs = new decimal(0);
  1052. any1.MaxOccurs = decimal.MaxValue;
  1053. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1054. sequence.Items.Add(any1);
  1055. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1056. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1057. any2.MinOccurs = new decimal(1);
  1058. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1059. sequence.Items.Add(any2);
  1060. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1061. attribute1.Name = "namespace";
  1062. attribute1.FixedValue = ds.Namespace;
  1063. type.Attributes.Add(attribute1);
  1064. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1065. attribute2.Name = "tableTypeName";
  1066. attribute2.FixedValue = "AdministratorDataTable";
  1067. type.Attributes.Add(attribute2);
  1068. type.Particle = sequence;
  1069. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1070. if (xs.Contains(dsSchema.TargetNamespace)) {
  1071. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1072. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1073. try {
  1074. global::System.Xml.Schema.XmlSchema schema = null;
  1075. dsSchema.Write(s1);
  1076. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1077. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1078. s2.SetLength(0);
  1079. schema.Write(s2);
  1080. if ((s1.Length == s2.Length)) {
  1081. s1.Position = 0;
  1082. s2.Position = 0;
  1083. for (; ((s1.Position != s1.Length)
  1084. && (s1.ReadByte() == s2.ReadByte())); ) {
  1085. ;
  1086. }
  1087. if ((s1.Position == s1.Length)) {
  1088. return type;
  1089. }
  1090. }
  1091. }
  1092. }
  1093. finally {
  1094. if ((s1 != null)) {
  1095. s1.Close();
  1096. }
  1097. if ((s2 != null)) {
  1098. s2.Close();
  1099. }
  1100. }
  1101. }
  1102. xs.Add(dsSchema);
  1103. return type;
  1104. }
  1105. }
  1106. /// <summary>
  1107. ///Represents the strongly named DataTable class.
  1108. ///</summary>
  1109. [global::System.Serializable()]
  1110. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1111. public partial class AttachedProductDataTable : global::System.Data.TypedTableBase<AttachedProductRow> {
  1112. private global::System.Data.DataColumn columnMainProductID;
  1113. private global::System.Data.DataColumn columnAttachedProductID;
  1114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1116. public AttachedProductDataTable() {
  1117. this.TableName = "AttachedProduct";
  1118. this.BeginInit();
  1119. this.InitClass();
  1120. this.EndInit();
  1121. }
  1122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1123. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1124. internal AttachedProductDataTable(global::System.Data.DataTable table) {
  1125. this.TableName = table.TableName;
  1126. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1127. this.CaseSensitive = table.CaseSensitive;
  1128. }
  1129. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1130. this.Locale = table.Locale;
  1131. }
  1132. if ((table.Namespace != table.DataSet.Namespace)) {
  1133. this.Namespace = table.Namespace;
  1134. }
  1135. this.Prefix = table.Prefix;
  1136. this.MinimumCapacity = table.MinimumCapacity;
  1137. }
  1138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1140. protected AttachedProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1141. base(info, context) {
  1142. this.InitVars();
  1143. }
  1144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1146. public global::System.Data.DataColumn MainProductIDColumn {
  1147. get {
  1148. return this.columnMainProductID;
  1149. }
  1150. }
  1151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1153. public global::System.Data.DataColumn AttachedProductIDColumn {
  1154. get {
  1155. return this.columnAttachedProductID;
  1156. }
  1157. }
  1158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1160. [global::System.ComponentModel.Browsable(false)]
  1161. public int Count {
  1162. get {
  1163. return this.Rows.Count;
  1164. }
  1165. }
  1166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1168. public AttachedProductRow this[int index] {
  1169. get {
  1170. return ((AttachedProductRow)(this.Rows[index]));
  1171. }
  1172. }
  1173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1174. public event AttachedProductRowChangeEventHandler AttachedProductRowChanging;
  1175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1176. public event AttachedProductRowChangeEventHandler AttachedProductRowChanged;
  1177. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1178. public event AttachedProductRowChangeEventHandler AttachedProductRowDeleting;
  1179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1180. public event AttachedProductRowChangeEventHandler AttachedProductRowDeleted;
  1181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1183. public void AddAttachedProductRow(AttachedProductRow row) {
  1184. this.Rows.Add(row);
  1185. }
  1186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1188. public AttachedProductRow AddAttachedProductRow(ProductRow parentProductRowByFK_AttachedProduct_Product, ProductRow parentProductRowByFK_AttachedProduct_Product1) {
  1189. AttachedProductRow rowAttachedProductRow = ((AttachedProductRow)(this.NewRow()));
  1190. object[] columnValuesArray = new object[] {
  1191. null,
  1192. null};
  1193. if ((parentProductRowByFK_AttachedProduct_Product != null)) {
  1194. columnValuesArray[0] = parentProductRowByFK_AttachedProduct_Product[0];
  1195. }
  1196. if ((parentProductRowByFK_AttachedProduct_Product1 != null)) {
  1197. columnValuesArray[1] = parentProductRowByFK_AttachedProduct_Product1[0];
  1198. }
  1199. rowAttachedProductRow.ItemArray = columnValuesArray;
  1200. this.Rows.Add(rowAttachedProductRow);
  1201. return rowAttachedProductRow;
  1202. }
  1203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1205. public AttachedProductRow FindByMainProductIDAttachedProductID(int MainProductID, int AttachedProductID) {
  1206. return ((AttachedProductRow)(this.Rows.Find(new object[] {
  1207. MainProductID,
  1208. AttachedProductID})));
  1209. }
  1210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1212. public override global::System.Data.DataTable Clone() {
  1213. AttachedProductDataTable cln = ((AttachedProductDataTable)(base.Clone()));
  1214. cln.InitVars();
  1215. return cln;
  1216. }
  1217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1219. protected override global::System.Data.DataTable CreateInstance() {
  1220. return new AttachedProductDataTable();
  1221. }
  1222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1224. internal void InitVars() {
  1225. this.columnMainProductID = base.Columns["MainProductID"];
  1226. this.columnAttachedProductID = base.Columns["AttachedProductID"];
  1227. }
  1228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1230. private void InitClass() {
  1231. this.columnMainProductID = new global::System.Data.DataColumn("MainProductID", typeof(int), null, global::System.Data.MappingType.Element);
  1232. base.Columns.Add(this.columnMainProductID);
  1233. this.columnAttachedProductID = new global::System.Data.DataColumn("AttachedProductID", typeof(int), null, global::System.Data.MappingType.Element);
  1234. base.Columns.Add(this.columnAttachedProductID);
  1235. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1236. this.columnMainProductID,
  1237. this.columnAttachedProductID}, true));
  1238. this.columnMainProductID.AllowDBNull = false;
  1239. this.columnAttachedProductID.AllowDBNull = false;
  1240. }
  1241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1243. public AttachedProductRow NewAttachedProductRow() {
  1244. return ((AttachedProductRow)(this.NewRow()));
  1245. }
  1246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1248. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1249. return new AttachedProductRow(builder);
  1250. }
  1251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1253. protected override global::System.Type GetRowType() {
  1254. return typeof(AttachedProductRow);
  1255. }
  1256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1258. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1259. base.OnRowChanged(e);
  1260. if ((this.AttachedProductRowChanged != null)) {
  1261. this.AttachedProductRowChanged(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  1262. }
  1263. }
  1264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1265. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1266. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1267. base.OnRowChanging(e);
  1268. if ((this.AttachedProductRowChanging != null)) {
  1269. this.AttachedProductRowChanging(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  1270. }
  1271. }
  1272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1274. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1275. base.OnRowDeleted(e);
  1276. if ((this.AttachedProductRowDeleted != null)) {
  1277. this.AttachedProductRowDeleted(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  1278. }
  1279. }
  1280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1282. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1283. base.OnRowDeleting(e);
  1284. if ((this.AttachedProductRowDeleting != null)) {
  1285. this.AttachedProductRowDeleting(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  1286. }
  1287. }
  1288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1290. public void RemoveAttachedProductRow(AttachedProductRow row) {
  1291. this.Rows.Remove(row);
  1292. }
  1293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1295. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1296. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1297. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1298. BB_AzizovaDataSet ds = new BB_AzizovaDataSet();
  1299. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1300. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1301. any1.MinOccurs = new decimal(0);
  1302. any1.MaxOccurs = decimal.MaxValue;
  1303. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1304. sequence.Items.Add(any1);
  1305. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1306. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1307. any2.MinOccurs = new decimal(1);
  1308. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1309. sequence.Items.Add(any2);
  1310. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1311. attribute1.Name = "namespace";
  1312. attribute1.FixedValue = ds.Namespace;
  1313. type.Attributes.Add(attribute1);
  1314. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1315. attribute2.Name = "tableTypeName";
  1316. attribute2.FixedValue = "AttachedProductDataTable";
  1317. type.Attributes.Add(attribute2);
  1318. type.Particle = sequence;
  1319. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1320. if (xs.Contains(dsSchema.TargetNamespace)) {
  1321. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1322. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1323. try {
  1324. global::System.Xml.Schema.XmlSchema schema = null;
  1325. dsSchema.Write(s1);
  1326. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1327. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1328. s2.SetLength(0);
  1329. schema.Write(s2);
  1330. if ((s1.Length == s2.Length)) {
  1331. s1.Position = 0;
  1332. s2.Position = 0;
  1333. for (; ((s1.Position != s1.Length)
  1334. && (s1.ReadByte() == s2.ReadByte())); ) {
  1335. ;
  1336. }
  1337. if ((s1.Position == s1.Length)) {
  1338. return type;
  1339. }
  1340. }
  1341. }
  1342. }
  1343. finally {
  1344. if ((s1 != null)) {
  1345. s1.Close();
  1346. }
  1347. if ((s2 != null)) {
  1348. s2.Close();
  1349. }
  1350. }
  1351. }
  1352. xs.Add(dsSchema);
  1353. return type;
  1354. }
  1355. }
  1356. /// <summary>
  1357. ///Represents the strongly named DataTable class.
  1358. ///</summary>
  1359. [global::System.Serializable()]
  1360. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1361. public partial class ClientDataTable : global::System.Data.TypedTableBase<ClientRow> {
  1362. private global::System.Data.DataColumn columnID;
  1363. private global::System.Data.DataColumn columnFirstName;
  1364. private global::System.Data.DataColumn columnLastName;
  1365. private global::System.Data.DataColumn columnPatronymic;
  1366. private global::System.Data.DataColumn columnBirthday;
  1367. private global::System.Data.DataColumn columnRegistrationDate;
  1368. private global::System.Data.DataColumn columnEmail;
  1369. private global::System.Data.DataColumn columnPhone;
  1370. private global::System.Data.DataColumn columnGenderCode;
  1371. private global::System.Data.DataColumn columnPhotoPath;
  1372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1374. public ClientDataTable() {
  1375. this.TableName = "Client";
  1376. this.BeginInit();
  1377. this.InitClass();
  1378. this.EndInit();
  1379. }
  1380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1382. internal ClientDataTable(global::System.Data.DataTable table) {
  1383. this.TableName = table.TableName;
  1384. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1385. this.CaseSensitive = table.CaseSensitive;
  1386. }
  1387. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1388. this.Locale = table.Locale;
  1389. }
  1390. if ((table.Namespace != table.DataSet.Namespace)) {
  1391. this.Namespace = table.Namespace;
  1392. }
  1393. this.Prefix = table.Prefix;
  1394. this.MinimumCapacity = table.MinimumCapacity;
  1395. }
  1396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1398. protected ClientDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1399. base(info, context) {
  1400. this.InitVars();
  1401. }
  1402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1403. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1404. public global::System.Data.DataColumn IDColumn {
  1405. get {
  1406. return this.columnID;
  1407. }
  1408. }
  1409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1411. public global::System.Data.DataColumn FirstNameColumn {
  1412. get {
  1413. return this.columnFirstName;
  1414. }
  1415. }
  1416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1418. public global::System.Data.DataColumn LastNameColumn {
  1419. get {
  1420. return this.columnLastName;
  1421. }
  1422. }
  1423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1425. public global::System.Data.DataColumn PatronymicColumn {
  1426. get {
  1427. return this.columnPatronymic;
  1428. }
  1429. }
  1430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1432. public global::System.Data.DataColumn BirthdayColumn {
  1433. get {
  1434. return this.columnBirthday;
  1435. }
  1436. }
  1437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1439. public global::System.Data.DataColumn RegistrationDateColumn {
  1440. get {
  1441. return this.columnRegistrationDate;
  1442. }
  1443. }
  1444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1446. public global::System.Data.DataColumn EmailColumn {
  1447. get {
  1448. return this.columnEmail;
  1449. }
  1450. }
  1451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1453. public global::System.Data.DataColumn PhoneColumn {
  1454. get {
  1455. return this.columnPhone;
  1456. }
  1457. }
  1458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1459. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1460. public global::System.Data.DataColumn GenderCodeColumn {
  1461. get {
  1462. return this.columnGenderCode;
  1463. }
  1464. }
  1465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1467. public global::System.Data.DataColumn PhotoPathColumn {
  1468. get {
  1469. return this.columnPhotoPath;
  1470. }
  1471. }
  1472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1474. [global::System.ComponentModel.Browsable(false)]
  1475. public int Count {
  1476. get {
  1477. return this.Rows.Count;
  1478. }
  1479. }
  1480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1482. public ClientRow this[int index] {
  1483. get {
  1484. return ((ClientRow)(this.Rows[index]));
  1485. }
  1486. }
  1487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1488. public event ClientRowChangeEventHandler ClientRowChanging;
  1489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1490. public event ClientRowChangeEventHandler ClientRowChanged;
  1491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1492. public event ClientRowChangeEventHandler ClientRowDeleting;
  1493. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1494. public event ClientRowChangeEventHandler ClientRowDeleted;
  1495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1497. public void AddClientRow(ClientRow row) {
  1498. this.Rows.Add(row);
  1499. }
  1500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1502. 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) {
  1503. ClientRow rowClientRow = ((ClientRow)(this.NewRow()));
  1504. object[] columnValuesArray = new object[] {
  1505. null,
  1506. FirstName,
  1507. LastName,
  1508. Patronymic,
  1509. Birthday,
  1510. RegistrationDate,
  1511. Email,
  1512. Phone,
  1513. null,
  1514. PhotoPath};
  1515. if ((parentGenderRowByFK_Client_Gender != null)) {
  1516. columnValuesArray[8] = parentGenderRowByFK_Client_Gender[0];
  1517. }
  1518. rowClientRow.ItemArray = columnValuesArray;
  1519. this.Rows.Add(rowClientRow);
  1520. return rowClientRow;
  1521. }
  1522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1524. public ClientRow FindByID(int ID) {
  1525. return ((ClientRow)(this.Rows.Find(new object[] {
  1526. ID})));
  1527. }
  1528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1530. public override global::System.Data.DataTable Clone() {
  1531. ClientDataTable cln = ((ClientDataTable)(base.Clone()));
  1532. cln.InitVars();
  1533. return cln;
  1534. }
  1535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1537. protected override global::System.Data.DataTable CreateInstance() {
  1538. return new ClientDataTable();
  1539. }
  1540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1542. internal void InitVars() {
  1543. this.columnID = base.Columns["ID"];
  1544. this.columnFirstName = base.Columns["FirstName"];
  1545. this.columnLastName = base.Columns["LastName"];
  1546. this.columnPatronymic = base.Columns["Patronymic"];
  1547. this.columnBirthday = base.Columns["Birthday"];
  1548. this.columnRegistrationDate = base.Columns["RegistrationDate"];
  1549. this.columnEmail = base.Columns["Email"];
  1550. this.columnPhone = base.Columns["Phone"];
  1551. this.columnGenderCode = base.Columns["GenderCode"];
  1552. this.columnPhotoPath = base.Columns["PhotoPath"];
  1553. }
  1554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1556. private void InitClass() {
  1557. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1558. base.Columns.Add(this.columnID);
  1559. this.columnFirstName = new global::System.Data.DataColumn("FirstName", typeof(string), null, global::System.Data.MappingType.Element);
  1560. base.Columns.Add(this.columnFirstName);
  1561. this.columnLastName = new global::System.Data.DataColumn("LastName", typeof(string), null, global::System.Data.MappingType.Element);
  1562. base.Columns.Add(this.columnLastName);
  1563. this.columnPatronymic = new global::System.Data.DataColumn("Patronymic", typeof(string), null, global::System.Data.MappingType.Element);
  1564. base.Columns.Add(this.columnPatronymic);
  1565. this.columnBirthday = new global::System.Data.DataColumn("Birthday", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1566. base.Columns.Add(this.columnBirthday);
  1567. this.columnRegistrationDate = new global::System.Data.DataColumn("RegistrationDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1568. base.Columns.Add(this.columnRegistrationDate);
  1569. this.columnEmail = new global::System.Data.DataColumn("Email", typeof(string), null, global::System.Data.MappingType.Element);
  1570. base.Columns.Add(this.columnEmail);
  1571. this.columnPhone = new global::System.Data.DataColumn("Phone", typeof(string), null, global::System.Data.MappingType.Element);
  1572. base.Columns.Add(this.columnPhone);
  1573. this.columnGenderCode = new global::System.Data.DataColumn("GenderCode", typeof(string), null, global::System.Data.MappingType.Element);
  1574. base.Columns.Add(this.columnGenderCode);
  1575. this.columnPhotoPath = new global::System.Data.DataColumn("PhotoPath", typeof(string), null, global::System.Data.MappingType.Element);
  1576. base.Columns.Add(this.columnPhotoPath);
  1577. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1578. this.columnID}, true));
  1579. this.columnID.AutoIncrement = true;
  1580. this.columnID.AutoIncrementSeed = -1;
  1581. this.columnID.AutoIncrementStep = -1;
  1582. this.columnID.AllowDBNull = false;
  1583. this.columnID.ReadOnly = true;
  1584. this.columnID.Unique = true;
  1585. this.columnFirstName.AllowDBNull = false;
  1586. this.columnFirstName.MaxLength = 50;
  1587. this.columnLastName.AllowDBNull = false;
  1588. this.columnLastName.MaxLength = 50;
  1589. this.columnPatronymic.MaxLength = 50;
  1590. this.columnRegistrationDate.AllowDBNull = false;
  1591. this.columnEmail.MaxLength = 255;
  1592. this.columnPhone.AllowDBNull = false;
  1593. this.columnPhone.MaxLength = 20;
  1594. this.columnGenderCode.AllowDBNull = false;
  1595. this.columnGenderCode.MaxLength = 1;
  1596. this.columnPhotoPath.MaxLength = 1000;
  1597. }
  1598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1600. public ClientRow NewClientRow() {
  1601. return ((ClientRow)(this.NewRow()));
  1602. }
  1603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1605. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1606. return new ClientRow(builder);
  1607. }
  1608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1610. protected override global::System.Type GetRowType() {
  1611. return typeof(ClientRow);
  1612. }
  1613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1615. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1616. base.OnRowChanged(e);
  1617. if ((this.ClientRowChanged != null)) {
  1618. this.ClientRowChanged(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  1619. }
  1620. }
  1621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1622. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1623. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1624. base.OnRowChanging(e);
  1625. if ((this.ClientRowChanging != null)) {
  1626. this.ClientRowChanging(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  1627. }
  1628. }
  1629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1631. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1632. base.OnRowDeleted(e);
  1633. if ((this.ClientRowDeleted != null)) {
  1634. this.ClientRowDeleted(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  1635. }
  1636. }
  1637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1639. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1640. base.OnRowDeleting(e);
  1641. if ((this.ClientRowDeleting != null)) {
  1642. this.ClientRowDeleting(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  1643. }
  1644. }
  1645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1647. public void RemoveClientRow(ClientRow row) {
  1648. this.Rows.Remove(row);
  1649. }
  1650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1652. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1653. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1654. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1655. BB_AzizovaDataSet ds = new BB_AzizovaDataSet();
  1656. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1657. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1658. any1.MinOccurs = new decimal(0);
  1659. any1.MaxOccurs = decimal.MaxValue;
  1660. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1661. sequence.Items.Add(any1);
  1662. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1663. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1664. any2.MinOccurs = new decimal(1);
  1665. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1666. sequence.Items.Add(any2);
  1667. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1668. attribute1.Name = "namespace";
  1669. attribute1.FixedValue = ds.Namespace;
  1670. type.Attributes.Add(attribute1);
  1671. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1672. attribute2.Name = "tableTypeName";
  1673. attribute2.FixedValue = "ClientDataTable";
  1674. type.Attributes.Add(attribute2);
  1675. type.Particle = sequence;
  1676. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1677. if (xs.Contains(dsSchema.TargetNamespace)) {
  1678. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1679. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1680. try {
  1681. global::System.Xml.Schema.XmlSchema schema = null;
  1682. dsSchema.Write(s1);
  1683. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1684. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1685. s2.SetLength(0);
  1686. schema.Write(s2);
  1687. if ((s1.Length == s2.Length)) {
  1688. s1.Position = 0;
  1689. s2.Position = 0;
  1690. for (; ((s1.Position != s1.Length)
  1691. && (s1.ReadByte() == s2.ReadByte())); ) {
  1692. ;
  1693. }
  1694. if ((s1.Position == s1.Length)) {
  1695. return type;
  1696. }
  1697. }
  1698. }
  1699. }
  1700. finally {
  1701. if ((s1 != null)) {
  1702. s1.Close();
  1703. }
  1704. if ((s2 != null)) {
  1705. s2.Close();
  1706. }
  1707. }
  1708. }
  1709. xs.Add(dsSchema);
  1710. return type;
  1711. }
  1712. }
  1713. /// <summary>
  1714. ///Represents the strongly named DataTable class.
  1715. ///</summary>
  1716. [global::System.Serializable()]
  1717. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1718. public partial class ClientsDataTable : global::System.Data.TypedTableBase<ClientsRow> {
  1719. private global::System.Data.DataColumn columnID_Client;
  1720. private global::System.Data.DataColumn columnPhomilia;
  1721. private global::System.Data.DataColumn columnName;
  1722. private global::System.Data.DataColumn columnOtchestvo;
  1723. private global::System.Data.DataColumn columnPol;
  1724. private global::System.Data.DataColumn columnPhone;
  1725. private global::System.Data.DataColumn columnBirthday;
  1726. private global::System.Data.DataColumn columnEmail;
  1727. private global::System.Data.DataColumn columnData_Registra;
  1728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1730. public ClientsDataTable() {
  1731. this.TableName = "Clients";
  1732. this.BeginInit();
  1733. this.InitClass();
  1734. this.EndInit();
  1735. }
  1736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1738. internal ClientsDataTable(global::System.Data.DataTable table) {
  1739. this.TableName = table.TableName;
  1740. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1741. this.CaseSensitive = table.CaseSensitive;
  1742. }
  1743. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1744. this.Locale = table.Locale;
  1745. }
  1746. if ((table.Namespace != table.DataSet.Namespace)) {
  1747. this.Namespace = table.Namespace;
  1748. }
  1749. this.Prefix = table.Prefix;
  1750. this.MinimumCapacity = table.MinimumCapacity;
  1751. }
  1752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1754. protected ClientsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1755. base(info, context) {
  1756. this.InitVars();
  1757. }
  1758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1760. public global::System.Data.DataColumn ID_ClientColumn {
  1761. get {
  1762. return this.columnID_Client;
  1763. }
  1764. }
  1765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1767. public global::System.Data.DataColumn PhomiliaColumn {
  1768. get {
  1769. return this.columnPhomilia;
  1770. }
  1771. }
  1772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1774. public global::System.Data.DataColumn NameColumn {
  1775. get {
  1776. return this.columnName;
  1777. }
  1778. }
  1779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1781. public global::System.Data.DataColumn OtchestvoColumn {
  1782. get {
  1783. return this.columnOtchestvo;
  1784. }
  1785. }
  1786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1788. public global::System.Data.DataColumn PolColumn {
  1789. get {
  1790. return this.columnPol;
  1791. }
  1792. }
  1793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1795. public global::System.Data.DataColumn PhoneColumn {
  1796. get {
  1797. return this.columnPhone;
  1798. }
  1799. }
  1800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1802. public global::System.Data.DataColumn BirthdayColumn {
  1803. get {
  1804. return this.columnBirthday;
  1805. }
  1806. }
  1807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1809. public global::System.Data.DataColumn EmailColumn {
  1810. get {
  1811. return this.columnEmail;
  1812. }
  1813. }
  1814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1816. public global::System.Data.DataColumn Data_RegistraColumn {
  1817. get {
  1818. return this.columnData_Registra;
  1819. }
  1820. }
  1821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1823. [global::System.ComponentModel.Browsable(false)]
  1824. public int Count {
  1825. get {
  1826. return this.Rows.Count;
  1827. }
  1828. }
  1829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1831. public ClientsRow this[int index] {
  1832. get {
  1833. return ((ClientsRow)(this.Rows[index]));
  1834. }
  1835. }
  1836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1837. public event ClientsRowChangeEventHandler ClientsRowChanging;
  1838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1839. public event ClientsRowChangeEventHandler ClientsRowChanged;
  1840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1841. public event ClientsRowChangeEventHandler ClientsRowDeleting;
  1842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1843. public event ClientsRowChangeEventHandler ClientsRowDeleted;
  1844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1846. public void AddClientsRow(ClientsRow row) {
  1847. this.Rows.Add(row);
  1848. }
  1849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1851. public ClientsRow AddClientsRow(long ID_Client, string Phomilia, string Name, string Otchestvo, string Pol, string Phone, System.DateTime Birthday, string Email, System.DateTime Data_Registra) {
  1852. ClientsRow rowClientsRow = ((ClientsRow)(this.NewRow()));
  1853. object[] columnValuesArray = new object[] {
  1854. ID_Client,
  1855. Phomilia,
  1856. Name,
  1857. Otchestvo,
  1858. Pol,
  1859. Phone,
  1860. Birthday,
  1861. Email,
  1862. Data_Registra};
  1863. rowClientsRow.ItemArray = columnValuesArray;
  1864. this.Rows.Add(rowClientsRow);
  1865. return rowClientsRow;
  1866. }
  1867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1868. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1869. public ClientsRow FindByID_Client(long ID_Client) {
  1870. return ((ClientsRow)(this.Rows.Find(new object[] {
  1871. ID_Client})));
  1872. }
  1873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1875. public override global::System.Data.DataTable Clone() {
  1876. ClientsDataTable cln = ((ClientsDataTable)(base.Clone()));
  1877. cln.InitVars();
  1878. return cln;
  1879. }
  1880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1881. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1882. protected override global::System.Data.DataTable CreateInstance() {
  1883. return new ClientsDataTable();
  1884. }
  1885. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1886. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1887. internal void InitVars() {
  1888. this.columnID_Client = base.Columns["ID_Client"];
  1889. this.columnPhomilia = base.Columns["Phomilia"];
  1890. this.columnName = base.Columns["Name"];
  1891. this.columnOtchestvo = base.Columns["Otchestvo"];
  1892. this.columnPol = base.Columns["Pol"];
  1893. this.columnPhone = base.Columns["Phone"];
  1894. this.columnBirthday = base.Columns["Birthday"];
  1895. this.columnEmail = base.Columns["Email"];
  1896. this.columnData_Registra = base.Columns["Data_Registra"];
  1897. }
  1898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1900. private void InitClass() {
  1901. this.columnID_Client = new global::System.Data.DataColumn("ID_Client", typeof(long), null, global::System.Data.MappingType.Element);
  1902. base.Columns.Add(this.columnID_Client);
  1903. this.columnPhomilia = new global::System.Data.DataColumn("Phomilia", typeof(string), null, global::System.Data.MappingType.Element);
  1904. base.Columns.Add(this.columnPhomilia);
  1905. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  1906. base.Columns.Add(this.columnName);
  1907. this.columnOtchestvo = new global::System.Data.DataColumn("Otchestvo", typeof(string), null, global::System.Data.MappingType.Element);
  1908. base.Columns.Add(this.columnOtchestvo);
  1909. this.columnPol = new global::System.Data.DataColumn("Pol", typeof(string), null, global::System.Data.MappingType.Element);
  1910. base.Columns.Add(this.columnPol);
  1911. this.columnPhone = new global::System.Data.DataColumn("Phone", typeof(string), null, global::System.Data.MappingType.Element);
  1912. base.Columns.Add(this.columnPhone);
  1913. this.columnBirthday = new global::System.Data.DataColumn("Birthday", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1914. base.Columns.Add(this.columnBirthday);
  1915. this.columnEmail = new global::System.Data.DataColumn("Email", typeof(string), null, global::System.Data.MappingType.Element);
  1916. base.Columns.Add(this.columnEmail);
  1917. this.columnData_Registra = new global::System.Data.DataColumn("Data_Registra", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1918. base.Columns.Add(this.columnData_Registra);
  1919. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1920. this.columnID_Client}, true));
  1921. this.columnID_Client.AllowDBNull = false;
  1922. this.columnID_Client.Unique = true;
  1923. this.columnPhomilia.MaxLength = 50;
  1924. this.columnName.MaxLength = 50;
  1925. this.columnOtchestvo.MaxLength = 50;
  1926. this.columnPol.MaxLength = 50;
  1927. this.columnPhone.MaxLength = 50;
  1928. this.columnEmail.MaxLength = 50;
  1929. }
  1930. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1931. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1932. public ClientsRow NewClientsRow() {
  1933. return ((ClientsRow)(this.NewRow()));
  1934. }
  1935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1936. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1937. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1938. return new ClientsRow(builder);
  1939. }
  1940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1942. protected override global::System.Type GetRowType() {
  1943. return typeof(ClientsRow);
  1944. }
  1945. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1946. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1947. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1948. base.OnRowChanged(e);
  1949. if ((this.ClientsRowChanged != null)) {
  1950. this.ClientsRowChanged(this, new ClientsRowChangeEvent(((ClientsRow)(e.Row)), e.Action));
  1951. }
  1952. }
  1953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1955. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1956. base.OnRowChanging(e);
  1957. if ((this.ClientsRowChanging != null)) {
  1958. this.ClientsRowChanging(this, new ClientsRowChangeEvent(((ClientsRow)(e.Row)), e.Action));
  1959. }
  1960. }
  1961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1963. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1964. base.OnRowDeleted(e);
  1965. if ((this.ClientsRowDeleted != null)) {
  1966. this.ClientsRowDeleted(this, new ClientsRowChangeEvent(((ClientsRow)(e.Row)), e.Action));
  1967. }
  1968. }
  1969. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1970. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1971. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1972. base.OnRowDeleting(e);
  1973. if ((this.ClientsRowDeleting != null)) {
  1974. this.ClientsRowDeleting(this, new ClientsRowChangeEvent(((ClientsRow)(e.Row)), e.Action));
  1975. }
  1976. }
  1977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1978. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1979. public void RemoveClientsRow(ClientsRow row) {
  1980. this.Rows.Remove(row);
  1981. }
  1982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1984. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1985. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1986. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1987. BB_AzizovaDataSet ds = new BB_AzizovaDataSet();
  1988. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1989. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1990. any1.MinOccurs = new decimal(0);
  1991. any1.MaxOccurs = decimal.MaxValue;
  1992. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1993. sequence.Items.Add(any1);
  1994. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1995. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1996. any2.MinOccurs = new decimal(1);
  1997. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1998. sequence.Items.Add(any2);
  1999. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2000. attribute1.Name = "namespace";
  2001. attribute1.FixedValue = ds.Namespace;
  2002. type.Attributes.Add(attribute1);
  2003. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2004. attribute2.Name = "tableTypeName";
  2005. attribute2.FixedValue = "ClientsDataTable";
  2006. type.Attributes.Add(attribute2);
  2007. type.Particle = sequence;
  2008. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2009. if (xs.Contains(dsSchema.TargetNamespace)) {
  2010. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2011. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2012. try {
  2013. global::System.Xml.Schema.XmlSchema schema = null;
  2014. dsSchema.Write(s1);
  2015. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2016. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2017. s2.SetLength(0);
  2018. schema.Write(s2);
  2019. if ((s1.Length == s2.Length)) {
  2020. s1.Position = 0;
  2021. s2.Position = 0;
  2022. for (; ((s1.Position != s1.Length)
  2023. && (s1.ReadByte() == s2.ReadByte())); ) {
  2024. ;
  2025. }
  2026. if ((s1.Position == s1.Length)) {
  2027. return type;
  2028. }
  2029. }
  2030. }
  2031. }
  2032. finally {
  2033. if ((s1 != null)) {
  2034. s1.Close();
  2035. }
  2036. if ((s2 != null)) {
  2037. s2.Close();
  2038. }
  2039. }
  2040. }
  2041. xs.Add(dsSchema);
  2042. return type;
  2043. }
  2044. }
  2045. /// <summary>
  2046. ///Represents the strongly named DataTable class.
  2047. ///</summary>
  2048. [global::System.Serializable()]
  2049. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2050. public partial class ClientServiceDataTable : global::System.Data.TypedTableBase<ClientServiceRow> {
  2051. private global::System.Data.DataColumn columnID;
  2052. private global::System.Data.DataColumn columnClientID;
  2053. private global::System.Data.DataColumn columnServiceID;
  2054. private global::System.Data.DataColumn columnStartTime;
  2055. private global::System.Data.DataColumn columnComment;
  2056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2057. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2058. public ClientServiceDataTable() {
  2059. this.TableName = "ClientService";
  2060. this.BeginInit();
  2061. this.InitClass();
  2062. this.EndInit();
  2063. }
  2064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2066. internal ClientServiceDataTable(global::System.Data.DataTable table) {
  2067. this.TableName = table.TableName;
  2068. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2069. this.CaseSensitive = table.CaseSensitive;
  2070. }
  2071. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2072. this.Locale = table.Locale;
  2073. }
  2074. if ((table.Namespace != table.DataSet.Namespace)) {
  2075. this.Namespace = table.Namespace;
  2076. }
  2077. this.Prefix = table.Prefix;
  2078. this.MinimumCapacity = table.MinimumCapacity;
  2079. }
  2080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2082. protected ClientServiceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2083. base(info, context) {
  2084. this.InitVars();
  2085. }
  2086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2088. public global::System.Data.DataColumn IDColumn {
  2089. get {
  2090. return this.columnID;
  2091. }
  2092. }
  2093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2095. public global::System.Data.DataColumn ClientIDColumn {
  2096. get {
  2097. return this.columnClientID;
  2098. }
  2099. }
  2100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2101. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2102. public global::System.Data.DataColumn ServiceIDColumn {
  2103. get {
  2104. return this.columnServiceID;
  2105. }
  2106. }
  2107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2108. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2109. public global::System.Data.DataColumn StartTimeColumn {
  2110. get {
  2111. return this.columnStartTime;
  2112. }
  2113. }
  2114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2116. public global::System.Data.DataColumn CommentColumn {
  2117. get {
  2118. return this.columnComment;
  2119. }
  2120. }
  2121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2123. [global::System.ComponentModel.Browsable(false)]
  2124. public int Count {
  2125. get {
  2126. return this.Rows.Count;
  2127. }
  2128. }
  2129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2131. public ClientServiceRow this[int index] {
  2132. get {
  2133. return ((ClientServiceRow)(this.Rows[index]));
  2134. }
  2135. }
  2136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2137. public event ClientServiceRowChangeEventHandler ClientServiceRowChanging;
  2138. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2139. public event ClientServiceRowChangeEventHandler ClientServiceRowChanged;
  2140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2141. public event ClientServiceRowChangeEventHandler ClientServiceRowDeleting;
  2142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2143. public event ClientServiceRowChangeEventHandler ClientServiceRowDeleted;
  2144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2146. public void AddClientServiceRow(ClientServiceRow row) {
  2147. this.Rows.Add(row);
  2148. }
  2149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2151. public ClientServiceRow AddClientServiceRow(ClientRow parentClientRowByFK_ClientService_Client, ServiceRow parentServiceRowByFK_ClientService_Service, System.DateTime StartTime, string Comment) {
  2152. ClientServiceRow rowClientServiceRow = ((ClientServiceRow)(this.NewRow()));
  2153. object[] columnValuesArray = new object[] {
  2154. null,
  2155. null,
  2156. null,
  2157. StartTime,
  2158. Comment};
  2159. if ((parentClientRowByFK_ClientService_Client != null)) {
  2160. columnValuesArray[1] = parentClientRowByFK_ClientService_Client[0];
  2161. }
  2162. if ((parentServiceRowByFK_ClientService_Service != null)) {
  2163. columnValuesArray[2] = parentServiceRowByFK_ClientService_Service[0];
  2164. }
  2165. rowClientServiceRow.ItemArray = columnValuesArray;
  2166. this.Rows.Add(rowClientServiceRow);
  2167. return rowClientServiceRow;
  2168. }
  2169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2171. public ClientServiceRow FindByID(int ID) {
  2172. return ((ClientServiceRow)(this.Rows.Find(new object[] {
  2173. ID})));
  2174. }
  2175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2177. public override global::System.Data.DataTable Clone() {
  2178. ClientServiceDataTable cln = ((ClientServiceDataTable)(base.Clone()));
  2179. cln.InitVars();
  2180. return cln;
  2181. }
  2182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2184. protected override global::System.Data.DataTable CreateInstance() {
  2185. return new ClientServiceDataTable();
  2186. }
  2187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2189. internal void InitVars() {
  2190. this.columnID = base.Columns["ID"];
  2191. this.columnClientID = base.Columns["ClientID"];
  2192. this.columnServiceID = base.Columns["ServiceID"];
  2193. this.columnStartTime = base.Columns["StartTime"];
  2194. this.columnComment = base.Columns["Comment"];
  2195. }
  2196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2198. private void InitClass() {
  2199. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2200. base.Columns.Add(this.columnID);
  2201. this.columnClientID = new global::System.Data.DataColumn("ClientID", typeof(int), null, global::System.Data.MappingType.Element);
  2202. base.Columns.Add(this.columnClientID);
  2203. this.columnServiceID = new global::System.Data.DataColumn("ServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  2204. base.Columns.Add(this.columnServiceID);
  2205. this.columnStartTime = new global::System.Data.DataColumn("StartTime", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  2206. base.Columns.Add(this.columnStartTime);
  2207. this.columnComment = new global::System.Data.DataColumn("Comment", typeof(string), null, global::System.Data.MappingType.Element);
  2208. base.Columns.Add(this.columnComment);
  2209. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2210. this.columnID}, true));
  2211. this.columnID.AutoIncrement = true;
  2212. this.columnID.AutoIncrementSeed = -1;
  2213. this.columnID.AutoIncrementStep = -1;
  2214. this.columnID.AllowDBNull = false;
  2215. this.columnID.ReadOnly = true;
  2216. this.columnID.Unique = true;
  2217. this.columnClientID.AllowDBNull = false;
  2218. this.columnServiceID.AllowDBNull = false;
  2219. this.columnStartTime.AllowDBNull = false;
  2220. this.columnComment.MaxLength = 2147483647;
  2221. }
  2222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2224. public ClientServiceRow NewClientServiceRow() {
  2225. return ((ClientServiceRow)(this.NewRow()));
  2226. }
  2227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2229. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2230. return new ClientServiceRow(builder);
  2231. }
  2232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2234. protected override global::System.Type GetRowType() {
  2235. return typeof(ClientServiceRow);
  2236. }
  2237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2239. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2240. base.OnRowChanged(e);
  2241. if ((this.ClientServiceRowChanged != null)) {
  2242. this.ClientServiceRowChanged(this, new ClientServiceRowChangeEvent(((ClientServiceRow)(e.Row)), e.Action));
  2243. }
  2244. }
  2245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2247. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2248. base.OnRowChanging(e);
  2249. if ((this.ClientServiceRowChanging != null)) {
  2250. this.ClientServiceRowChanging(this, new ClientServiceRowChangeEvent(((ClientServiceRow)(e.Row)), e.Action));
  2251. }
  2252. }
  2253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2255. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2256. base.OnRowDeleted(e);
  2257. if ((this.ClientServiceRowDeleted != null)) {
  2258. this.ClientServiceRowDeleted(this, new ClientServiceRowChangeEvent(((ClientServiceRow)(e.Row)), e.Action));
  2259. }
  2260. }
  2261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2263. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2264. base.OnRowDeleting(e);
  2265. if ((this.ClientServiceRowDeleting != null)) {
  2266. this.ClientServiceRowDeleting(this, new ClientServiceRowChangeEvent(((ClientServiceRow)(e.Row)), e.Action));
  2267. }
  2268. }
  2269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2270. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2271. public void RemoveClientServiceRow(ClientServiceRow row) {
  2272. this.Rows.Remove(row);
  2273. }
  2274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2276. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2277. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2278. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2279. BB_AzizovaDataSet ds = new BB_AzizovaDataSet();
  2280. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2281. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2282. any1.MinOccurs = new decimal(0);
  2283. any1.MaxOccurs = decimal.MaxValue;
  2284. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2285. sequence.Items.Add(any1);
  2286. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2287. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2288. any2.MinOccurs = new decimal(1);
  2289. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2290. sequence.Items.Add(any2);
  2291. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2292. attribute1.Name = "namespace";
  2293. attribute1.FixedValue = ds.Namespace;
  2294. type.Attributes.Add(attribute1);
  2295. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2296. attribute2.Name = "tableTypeName";
  2297. attribute2.FixedValue = "ClientServiceDataTable";
  2298. type.Attributes.Add(attribute2);
  2299. type.Particle = sequence;
  2300. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2301. if (xs.Contains(dsSchema.TargetNamespace)) {
  2302. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2303. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2304. try {
  2305. global::System.Xml.Schema.XmlSchema schema = null;
  2306. dsSchema.Write(s1);
  2307. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2308. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2309. s2.SetLength(0);
  2310. schema.Write(s2);
  2311. if ((s1.Length == s2.Length)) {
  2312. s1.Position = 0;
  2313. s2.Position = 0;
  2314. for (; ((s1.Position != s1.Length)
  2315. && (s1.ReadByte() == s2.ReadByte())); ) {
  2316. ;
  2317. }
  2318. if ((s1.Position == s1.Length)) {
  2319. return type;
  2320. }
  2321. }
  2322. }
  2323. }
  2324. finally {
  2325. if ((s1 != null)) {
  2326. s1.Close();
  2327. }
  2328. if ((s2 != null)) {
  2329. s2.Close();
  2330. }
  2331. }
  2332. }
  2333. xs.Add(dsSchema);
  2334. return type;
  2335. }
  2336. }
  2337. /// <summary>
  2338. ///Represents the strongly named DataTable class.
  2339. ///</summary>
  2340. [global::System.Serializable()]
  2341. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2342. public partial class DocumentByServiceDataTable : global::System.Data.TypedTableBase<DocumentByServiceRow> {
  2343. private global::System.Data.DataColumn columnID;
  2344. private global::System.Data.DataColumn columnClientServiceID;
  2345. private global::System.Data.DataColumn columnDocumentPath;
  2346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2348. public DocumentByServiceDataTable() {
  2349. this.TableName = "DocumentByService";
  2350. this.BeginInit();
  2351. this.InitClass();
  2352. this.EndInit();
  2353. }
  2354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2355. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2356. internal DocumentByServiceDataTable(global::System.Data.DataTable table) {
  2357. this.TableName = table.TableName;
  2358. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2359. this.CaseSensitive = table.CaseSensitive;
  2360. }
  2361. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2362. this.Locale = table.Locale;
  2363. }
  2364. if ((table.Namespace != table.DataSet.Namespace)) {
  2365. this.Namespace = table.Namespace;
  2366. }
  2367. this.Prefix = table.Prefix;
  2368. this.MinimumCapacity = table.MinimumCapacity;
  2369. }
  2370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2372. protected DocumentByServiceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2373. base(info, context) {
  2374. this.InitVars();
  2375. }
  2376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2378. public global::System.Data.DataColumn IDColumn {
  2379. get {
  2380. return this.columnID;
  2381. }
  2382. }
  2383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2385. public global::System.Data.DataColumn ClientServiceIDColumn {
  2386. get {
  2387. return this.columnClientServiceID;
  2388. }
  2389. }
  2390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2392. public global::System.Data.DataColumn DocumentPathColumn {
  2393. get {
  2394. return this.columnDocumentPath;
  2395. }
  2396. }
  2397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2399. [global::System.ComponentModel.Browsable(false)]
  2400. public int Count {
  2401. get {
  2402. return this.Rows.Count;
  2403. }
  2404. }
  2405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2407. public DocumentByServiceRow this[int index] {
  2408. get {
  2409. return ((DocumentByServiceRow)(this.Rows[index]));
  2410. }
  2411. }
  2412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2413. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowChanging;
  2414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2415. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowChanged;
  2416. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2417. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowDeleting;
  2418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2419. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowDeleted;
  2420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2422. public void AddDocumentByServiceRow(DocumentByServiceRow row) {
  2423. this.Rows.Add(row);
  2424. }
  2425. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2427. public DocumentByServiceRow AddDocumentByServiceRow(ClientServiceRow parentClientServiceRowByFK_DocumentByService_ClientService, string DocumentPath) {
  2428. DocumentByServiceRow rowDocumentByServiceRow = ((DocumentByServiceRow)(this.NewRow()));
  2429. object[] columnValuesArray = new object[] {
  2430. null,
  2431. null,
  2432. DocumentPath};
  2433. if ((parentClientServiceRowByFK_DocumentByService_ClientService != null)) {
  2434. columnValuesArray[1] = parentClientServiceRowByFK_DocumentByService_ClientService[0];
  2435. }
  2436. rowDocumentByServiceRow.ItemArray = columnValuesArray;
  2437. this.Rows.Add(rowDocumentByServiceRow);
  2438. return rowDocumentByServiceRow;
  2439. }
  2440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2442. public DocumentByServiceRow FindByID(int ID) {
  2443. return ((DocumentByServiceRow)(this.Rows.Find(new object[] {
  2444. ID})));
  2445. }
  2446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2448. public override global::System.Data.DataTable Clone() {
  2449. DocumentByServiceDataTable cln = ((DocumentByServiceDataTable)(base.Clone()));
  2450. cln.InitVars();
  2451. return cln;
  2452. }
  2453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2454. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2455. protected override global::System.Data.DataTable CreateInstance() {
  2456. return new DocumentByServiceDataTable();
  2457. }
  2458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2459. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2460. internal void InitVars() {
  2461. this.columnID = base.Columns["ID"];
  2462. this.columnClientServiceID = base.Columns["ClientServiceID"];
  2463. this.columnDocumentPath = base.Columns["DocumentPath"];
  2464. }
  2465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2467. private void InitClass() {
  2468. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2469. base.Columns.Add(this.columnID);
  2470. this.columnClientServiceID = new global::System.Data.DataColumn("ClientServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  2471. base.Columns.Add(this.columnClientServiceID);
  2472. this.columnDocumentPath = new global::System.Data.DataColumn("DocumentPath", typeof(string), null, global::System.Data.MappingType.Element);
  2473. base.Columns.Add(this.columnDocumentPath);
  2474. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2475. this.columnID}, true));
  2476. this.columnID.AutoIncrement = true;
  2477. this.columnID.AutoIncrementSeed = -1;
  2478. this.columnID.AutoIncrementStep = -1;
  2479. this.columnID.AllowDBNull = false;
  2480. this.columnID.ReadOnly = true;
  2481. this.columnID.Unique = true;
  2482. this.columnClientServiceID.AllowDBNull = false;
  2483. this.columnDocumentPath.AllowDBNull = false;
  2484. this.columnDocumentPath.MaxLength = 1000;
  2485. }
  2486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2488. public DocumentByServiceRow NewDocumentByServiceRow() {
  2489. return ((DocumentByServiceRow)(this.NewRow()));
  2490. }
  2491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2493. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2494. return new DocumentByServiceRow(builder);
  2495. }
  2496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2498. protected override global::System.Type GetRowType() {
  2499. return typeof(DocumentByServiceRow);
  2500. }
  2501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2503. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2504. base.OnRowChanged(e);
  2505. if ((this.DocumentByServiceRowChanged != null)) {
  2506. this.DocumentByServiceRowChanged(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  2507. }
  2508. }
  2509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2511. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2512. base.OnRowChanging(e);
  2513. if ((this.DocumentByServiceRowChanging != null)) {
  2514. this.DocumentByServiceRowChanging(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  2515. }
  2516. }
  2517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2519. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2520. base.OnRowDeleted(e);
  2521. if ((this.DocumentByServiceRowDeleted != null)) {
  2522. this.DocumentByServiceRowDeleted(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  2523. }
  2524. }
  2525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2526. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2527. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2528. base.OnRowDeleting(e);
  2529. if ((this.DocumentByServiceRowDeleting != null)) {
  2530. this.DocumentByServiceRowDeleting(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  2531. }
  2532. }
  2533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2535. public void RemoveDocumentByServiceRow(DocumentByServiceRow row) {
  2536. this.Rows.Remove(row);
  2537. }
  2538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2539. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2540. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2541. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2542. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2543. BB_AzizovaDataSet ds = new BB_AzizovaDataSet();
  2544. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2545. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2546. any1.MinOccurs = new decimal(0);
  2547. any1.MaxOccurs = decimal.MaxValue;
  2548. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2549. sequence.Items.Add(any1);
  2550. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2551. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2552. any2.MinOccurs = new decimal(1);
  2553. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2554. sequence.Items.Add(any2);
  2555. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2556. attribute1.Name = "namespace";
  2557. attribute1.FixedValue = ds.Namespace;
  2558. type.Attributes.Add(attribute1);
  2559. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2560. attribute2.Name = "tableTypeName";
  2561. attribute2.FixedValue = "DocumentByServiceDataTable";
  2562. type.Attributes.Add(attribute2);
  2563. type.Particle = sequence;
  2564. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2565. if (xs.Contains(dsSchema.TargetNamespace)) {
  2566. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2567. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2568. try {
  2569. global::System.Xml.Schema.XmlSchema schema = null;
  2570. dsSchema.Write(s1);
  2571. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2572. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2573. s2.SetLength(0);
  2574. schema.Write(s2);
  2575. if ((s1.Length == s2.Length)) {
  2576. s1.Position = 0;
  2577. s2.Position = 0;
  2578. for (; ((s1.Position != s1.Length)
  2579. && (s1.ReadByte() == s2.ReadByte())); ) {
  2580. ;
  2581. }
  2582. if ((s1.Position == s1.Length)) {
  2583. return type;
  2584. }
  2585. }
  2586. }
  2587. }
  2588. finally {
  2589. if ((s1 != null)) {
  2590. s1.Close();
  2591. }
  2592. if ((s2 != null)) {
  2593. s2.Close();
  2594. }
  2595. }
  2596. }
  2597. xs.Add(dsSchema);
  2598. return type;
  2599. }
  2600. }
  2601. /// <summary>
  2602. ///Represents the strongly named DataTable class.
  2603. ///</summary>
  2604. [global::System.Serializable()]
  2605. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2606. public partial class GenderDataTable : global::System.Data.TypedTableBase<GenderRow> {
  2607. private global::System.Data.DataColumn columnCode;
  2608. private global::System.Data.DataColumn columnName;
  2609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2611. public GenderDataTable() {
  2612. this.TableName = "Gender";
  2613. this.BeginInit();
  2614. this.InitClass();
  2615. this.EndInit();
  2616. }
  2617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2619. internal GenderDataTable(global::System.Data.DataTable table) {
  2620. this.TableName = table.TableName;
  2621. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2622. this.CaseSensitive = table.CaseSensitive;
  2623. }
  2624. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2625. this.Locale = table.Locale;
  2626. }
  2627. if ((table.Namespace != table.DataSet.Namespace)) {
  2628. this.Namespace = table.Namespace;
  2629. }
  2630. this.Prefix = table.Prefix;
  2631. this.MinimumCapacity = table.MinimumCapacity;
  2632. }
  2633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2635. protected GenderDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2636. base(info, context) {
  2637. this.InitVars();
  2638. }
  2639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2641. public global::System.Data.DataColumn CodeColumn {
  2642. get {
  2643. return this.columnCode;
  2644. }
  2645. }
  2646. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2648. public global::System.Data.DataColumn NameColumn {
  2649. get {
  2650. return this.columnName;
  2651. }
  2652. }
  2653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2655. [global::System.ComponentModel.Browsable(false)]
  2656. public int Count {
  2657. get {
  2658. return this.Rows.Count;
  2659. }
  2660. }
  2661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2663. public GenderRow this[int index] {
  2664. get {
  2665. return ((GenderRow)(this.Rows[index]));
  2666. }
  2667. }
  2668. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2669. public event GenderRowChangeEventHandler GenderRowChanging;
  2670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2671. public event GenderRowChangeEventHandler GenderRowChanged;
  2672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2673. public event GenderRowChangeEventHandler GenderRowDeleting;
  2674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2675. public event GenderRowChangeEventHandler GenderRowDeleted;
  2676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2678. public void AddGenderRow(GenderRow row) {
  2679. this.Rows.Add(row);
  2680. }
  2681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2683. public GenderRow AddGenderRow(string Code, string Name) {
  2684. GenderRow rowGenderRow = ((GenderRow)(this.NewRow()));
  2685. object[] columnValuesArray = new object[] {
  2686. Code,
  2687. Name};
  2688. rowGenderRow.ItemArray = columnValuesArray;
  2689. this.Rows.Add(rowGenderRow);
  2690. return rowGenderRow;
  2691. }
  2692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2694. public GenderRow FindByCode(string Code) {
  2695. return ((GenderRow)(this.Rows.Find(new object[] {
  2696. Code})));
  2697. }
  2698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2700. public override global::System.Data.DataTable Clone() {
  2701. GenderDataTable cln = ((GenderDataTable)(base.Clone()));
  2702. cln.InitVars();
  2703. return cln;
  2704. }
  2705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2707. protected override global::System.Data.DataTable CreateInstance() {
  2708. return new GenderDataTable();
  2709. }
  2710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2711. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2712. internal void InitVars() {
  2713. this.columnCode = base.Columns["Code"];
  2714. this.columnName = base.Columns["Name"];
  2715. }
  2716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2718. private void InitClass() {
  2719. this.columnCode = new global::System.Data.DataColumn("Code", typeof(string), null, global::System.Data.MappingType.Element);
  2720. base.Columns.Add(this.columnCode);
  2721. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  2722. base.Columns.Add(this.columnName);
  2723. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2724. this.columnCode}, true));
  2725. this.columnCode.AllowDBNull = false;
  2726. this.columnCode.Unique = true;
  2727. this.columnCode.MaxLength = 1;
  2728. this.columnName.MaxLength = 10;
  2729. }
  2730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2732. public GenderRow NewGenderRow() {
  2733. return ((GenderRow)(this.NewRow()));
  2734. }
  2735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2737. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2738. return new GenderRow(builder);
  2739. }
  2740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2742. protected override global::System.Type GetRowType() {
  2743. return typeof(GenderRow);
  2744. }
  2745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2747. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2748. base.OnRowChanged(e);
  2749. if ((this.GenderRowChanged != null)) {
  2750. this.GenderRowChanged(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2751. }
  2752. }
  2753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2755. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2756. base.OnRowChanging(e);
  2757. if ((this.GenderRowChanging != null)) {
  2758. this.GenderRowChanging(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2759. }
  2760. }
  2761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2763. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2764. base.OnRowDeleted(e);
  2765. if ((this.GenderRowDeleted != null)) {
  2766. this.GenderRowDeleted(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2767. }
  2768. }
  2769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2771. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2772. base.OnRowDeleting(e);
  2773. if ((this.GenderRowDeleting != null)) {
  2774. this.GenderRowDeleting(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2775. }
  2776. }
  2777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2779. public void RemoveGenderRow(GenderRow row) {
  2780. this.Rows.Remove(row);
  2781. }
  2782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2784. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2785. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2786. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2787. BB_AzizovaDataSet ds = new BB_AzizovaDataSet();
  2788. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2789. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2790. any1.MinOccurs = new decimal(0);
  2791. any1.MaxOccurs = decimal.MaxValue;
  2792. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2793. sequence.Items.Add(any1);
  2794. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2795. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2796. any2.MinOccurs = new decimal(1);
  2797. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2798. sequence.Items.Add(any2);
  2799. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2800. attribute1.Name = "namespace";
  2801. attribute1.FixedValue = ds.Namespace;
  2802. type.Attributes.Add(attribute1);
  2803. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2804. attribute2.Name = "tableTypeName";
  2805. attribute2.FixedValue = "GenderDataTable";
  2806. type.Attributes.Add(attribute2);
  2807. type.Particle = sequence;
  2808. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2809. if (xs.Contains(dsSchema.TargetNamespace)) {
  2810. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2811. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2812. try {
  2813. global::System.Xml.Schema.XmlSchema schema = null;
  2814. dsSchema.Write(s1);
  2815. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2816. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2817. s2.SetLength(0);
  2818. schema.Write(s2);
  2819. if ((s1.Length == s2.Length)) {
  2820. s1.Position = 0;
  2821. s2.Position = 0;
  2822. for (; ((s1.Position != s1.Length)
  2823. && (s1.ReadByte() == s2.ReadByte())); ) {
  2824. ;
  2825. }
  2826. if ((s1.Position == s1.Length)) {
  2827. return type;
  2828. }
  2829. }
  2830. }
  2831. }
  2832. finally {
  2833. if ((s1 != null)) {
  2834. s1.Close();
  2835. }
  2836. if ((s2 != null)) {
  2837. s2.Close();
  2838. }
  2839. }
  2840. }
  2841. xs.Add(dsSchema);
  2842. return type;
  2843. }
  2844. }
  2845. /// <summary>
  2846. ///Represents the strongly named DataTable class.
  2847. ///</summary>
  2848. [global::System.Serializable()]
  2849. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2850. public partial class ManufacturerDataTable : global::System.Data.TypedTableBase<ManufacturerRow> {
  2851. private global::System.Data.DataColumn columnID;
  2852. private global::System.Data.DataColumn columnName;
  2853. private global::System.Data.DataColumn columnStartDate;
  2854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2856. public ManufacturerDataTable() {
  2857. this.TableName = "Manufacturer";
  2858. this.BeginInit();
  2859. this.InitClass();
  2860. this.EndInit();
  2861. }
  2862. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2863. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2864. internal ManufacturerDataTable(global::System.Data.DataTable table) {
  2865. this.TableName = table.TableName;
  2866. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2867. this.CaseSensitive = table.CaseSensitive;
  2868. }
  2869. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2870. this.Locale = table.Locale;
  2871. }
  2872. if ((table.Namespace != table.DataSet.Namespace)) {
  2873. this.Namespace = table.Namespace;
  2874. }
  2875. this.Prefix = table.Prefix;
  2876. this.MinimumCapacity = table.MinimumCapacity;
  2877. }
  2878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2880. protected ManufacturerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2881. base(info, context) {
  2882. this.InitVars();
  2883. }
  2884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2886. public global::System.Data.DataColumn IDColumn {
  2887. get {
  2888. return this.columnID;
  2889. }
  2890. }
  2891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2893. public global::System.Data.DataColumn NameColumn {
  2894. get {
  2895. return this.columnName;
  2896. }
  2897. }
  2898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2900. public global::System.Data.DataColumn StartDateColumn {
  2901. get {
  2902. return this.columnStartDate;
  2903. }
  2904. }
  2905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2907. [global::System.ComponentModel.Browsable(false)]
  2908. public int Count {
  2909. get {
  2910. return this.Rows.Count;
  2911. }
  2912. }
  2913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2915. public ManufacturerRow this[int index] {
  2916. get {
  2917. return ((ManufacturerRow)(this.Rows[index]));
  2918. }
  2919. }
  2920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2921. public event ManufacturerRowChangeEventHandler ManufacturerRowChanging;
  2922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2923. public event ManufacturerRowChangeEventHandler ManufacturerRowChanged;
  2924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2925. public event ManufacturerRowChangeEventHandler ManufacturerRowDeleting;
  2926. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2927. public event ManufacturerRowChangeEventHandler ManufacturerRowDeleted;
  2928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2930. public void AddManufacturerRow(ManufacturerRow row) {
  2931. this.Rows.Add(row);
  2932. }
  2933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2934. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2935. public ManufacturerRow AddManufacturerRow(string Name, System.DateTime StartDate) {
  2936. ManufacturerRow rowManufacturerRow = ((ManufacturerRow)(this.NewRow()));
  2937. object[] columnValuesArray = new object[] {
  2938. null,
  2939. Name,
  2940. StartDate};
  2941. rowManufacturerRow.ItemArray = columnValuesArray;
  2942. this.Rows.Add(rowManufacturerRow);
  2943. return rowManufacturerRow;
  2944. }
  2945. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2946. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2947. public ManufacturerRow FindByID(int ID) {
  2948. return ((ManufacturerRow)(this.Rows.Find(new object[] {
  2949. ID})));
  2950. }
  2951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2952. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2953. public override global::System.Data.DataTable Clone() {
  2954. ManufacturerDataTable cln = ((ManufacturerDataTable)(base.Clone()));
  2955. cln.InitVars();
  2956. return cln;
  2957. }
  2958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2959. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2960. protected override global::System.Data.DataTable CreateInstance() {
  2961. return new ManufacturerDataTable();
  2962. }
  2963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2965. internal void InitVars() {
  2966. this.columnID = base.Columns["ID"];
  2967. this.columnName = base.Columns["Name"];
  2968. this.columnStartDate = base.Columns["StartDate"];
  2969. }
  2970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2972. private void InitClass() {
  2973. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2974. base.Columns.Add(this.columnID);
  2975. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  2976. base.Columns.Add(this.columnName);
  2977. this.columnStartDate = new global::System.Data.DataColumn("StartDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  2978. base.Columns.Add(this.columnStartDate);
  2979. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2980. this.columnID}, true));
  2981. this.columnID.AutoIncrement = true;
  2982. this.columnID.AutoIncrementSeed = -1;
  2983. this.columnID.AutoIncrementStep = -1;
  2984. this.columnID.AllowDBNull = false;
  2985. this.columnID.ReadOnly = true;
  2986. this.columnID.Unique = true;
  2987. this.columnName.AllowDBNull = false;
  2988. this.columnName.MaxLength = 100;
  2989. }
  2990. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2991. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2992. public ManufacturerRow NewManufacturerRow() {
  2993. return ((ManufacturerRow)(this.NewRow()));
  2994. }
  2995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2997. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2998. return new ManufacturerRow(builder);
  2999. }
  3000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3002. protected override global::System.Type GetRowType() {
  3003. return typeof(ManufacturerRow);
  3004. }
  3005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3007. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3008. base.OnRowChanged(e);
  3009. if ((this.ManufacturerRowChanged != null)) {
  3010. this.ManufacturerRowChanged(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  3011. }
  3012. }
  3013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3015. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3016. base.OnRowChanging(e);
  3017. if ((this.ManufacturerRowChanging != null)) {
  3018. this.ManufacturerRowChanging(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  3019. }
  3020. }
  3021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3023. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3024. base.OnRowDeleted(e);
  3025. if ((this.ManufacturerRowDeleted != null)) {
  3026. this.ManufacturerRowDeleted(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  3027. }
  3028. }
  3029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3031. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3032. base.OnRowDeleting(e);
  3033. if ((this.ManufacturerRowDeleting != null)) {
  3034. this.ManufacturerRowDeleting(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  3035. }
  3036. }
  3037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3039. public void RemoveManufacturerRow(ManufacturerRow row) {
  3040. this.Rows.Remove(row);
  3041. }
  3042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3044. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3045. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3046. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3047. BB_AzizovaDataSet ds = new BB_AzizovaDataSet();
  3048. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3049. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3050. any1.MinOccurs = new decimal(0);
  3051. any1.MaxOccurs = decimal.MaxValue;
  3052. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3053. sequence.Items.Add(any1);
  3054. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3055. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3056. any2.MinOccurs = new decimal(1);
  3057. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3058. sequence.Items.Add(any2);
  3059. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3060. attribute1.Name = "namespace";
  3061. attribute1.FixedValue = ds.Namespace;
  3062. type.Attributes.Add(attribute1);
  3063. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3064. attribute2.Name = "tableTypeName";
  3065. attribute2.FixedValue = "ManufacturerDataTable";
  3066. type.Attributes.Add(attribute2);
  3067. type.Particle = sequence;
  3068. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3069. if (xs.Contains(dsSchema.TargetNamespace)) {
  3070. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3071. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3072. try {
  3073. global::System.Xml.Schema.XmlSchema schema = null;
  3074. dsSchema.Write(s1);
  3075. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3076. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3077. s2.SetLength(0);
  3078. schema.Write(s2);
  3079. if ((s1.Length == s2.Length)) {
  3080. s1.Position = 0;
  3081. s2.Position = 0;
  3082. for (; ((s1.Position != s1.Length)
  3083. && (s1.ReadByte() == s2.ReadByte())); ) {
  3084. ;
  3085. }
  3086. if ((s1.Position == s1.Length)) {
  3087. return type;
  3088. }
  3089. }
  3090. }
  3091. }
  3092. finally {
  3093. if ((s1 != null)) {
  3094. s1.Close();
  3095. }
  3096. if ((s2 != null)) {
  3097. s2.Close();
  3098. }
  3099. }
  3100. }
  3101. xs.Add(dsSchema);
  3102. return type;
  3103. }
  3104. }
  3105. /// <summary>
  3106. ///Represents the strongly named DataTable class.
  3107. ///</summary>
  3108. [global::System.Serializable()]
  3109. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3110. public partial class ProductDataTable : global::System.Data.TypedTableBase<ProductRow> {
  3111. private global::System.Data.DataColumn columnID;
  3112. private global::System.Data.DataColumn columnTitle;
  3113. private global::System.Data.DataColumn columnCost;
  3114. private global::System.Data.DataColumn columnDescription;
  3115. private global::System.Data.DataColumn columnMainImagePath;
  3116. private global::System.Data.DataColumn columnIsActive;
  3117. private global::System.Data.DataColumn columnManufacturerID;
  3118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3120. public ProductDataTable() {
  3121. this.TableName = "Product";
  3122. this.BeginInit();
  3123. this.InitClass();
  3124. this.EndInit();
  3125. }
  3126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3128. internal ProductDataTable(global::System.Data.DataTable table) {
  3129. this.TableName = table.TableName;
  3130. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3131. this.CaseSensitive = table.CaseSensitive;
  3132. }
  3133. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3134. this.Locale = table.Locale;
  3135. }
  3136. if ((table.Namespace != table.DataSet.Namespace)) {
  3137. this.Namespace = table.Namespace;
  3138. }
  3139. this.Prefix = table.Prefix;
  3140. this.MinimumCapacity = table.MinimumCapacity;
  3141. }
  3142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3144. protected ProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3145. base(info, context) {
  3146. this.InitVars();
  3147. }
  3148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3150. public global::System.Data.DataColumn IDColumn {
  3151. get {
  3152. return this.columnID;
  3153. }
  3154. }
  3155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3157. public global::System.Data.DataColumn TitleColumn {
  3158. get {
  3159. return this.columnTitle;
  3160. }
  3161. }
  3162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3164. public global::System.Data.DataColumn CostColumn {
  3165. get {
  3166. return this.columnCost;
  3167. }
  3168. }
  3169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3171. public global::System.Data.DataColumn DescriptionColumn {
  3172. get {
  3173. return this.columnDescription;
  3174. }
  3175. }
  3176. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3177. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3178. public global::System.Data.DataColumn MainImagePathColumn {
  3179. get {
  3180. return this.columnMainImagePath;
  3181. }
  3182. }
  3183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3185. public global::System.Data.DataColumn IsActiveColumn {
  3186. get {
  3187. return this.columnIsActive;
  3188. }
  3189. }
  3190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3191. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3192. public global::System.Data.DataColumn ManufacturerIDColumn {
  3193. get {
  3194. return this.columnManufacturerID;
  3195. }
  3196. }
  3197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3199. [global::System.ComponentModel.Browsable(false)]
  3200. public int Count {
  3201. get {
  3202. return this.Rows.Count;
  3203. }
  3204. }
  3205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3207. public ProductRow this[int index] {
  3208. get {
  3209. return ((ProductRow)(this.Rows[index]));
  3210. }
  3211. }
  3212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3213. public event ProductRowChangeEventHandler ProductRowChanging;
  3214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3215. public event ProductRowChangeEventHandler ProductRowChanged;
  3216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3217. public event ProductRowChangeEventHandler ProductRowDeleting;
  3218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3219. public event ProductRowChangeEventHandler ProductRowDeleted;
  3220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3222. public void AddProductRow(ProductRow row) {
  3223. this.Rows.Add(row);
  3224. }
  3225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3227. public ProductRow AddProductRow(string Title, decimal Cost, string Description, string MainImagePath, bool IsActive, ManufacturerRow parentManufacturerRowByFK_Product_Manufacturer) {
  3228. ProductRow rowProductRow = ((ProductRow)(this.NewRow()));
  3229. object[] columnValuesArray = new object[] {
  3230. null,
  3231. Title,
  3232. Cost,
  3233. Description,
  3234. MainImagePath,
  3235. IsActive,
  3236. null};
  3237. if ((parentManufacturerRowByFK_Product_Manufacturer != null)) {
  3238. columnValuesArray[6] = parentManufacturerRowByFK_Product_Manufacturer[0];
  3239. }
  3240. rowProductRow.ItemArray = columnValuesArray;
  3241. this.Rows.Add(rowProductRow);
  3242. return rowProductRow;
  3243. }
  3244. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3245. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3246. public ProductRow FindByID(int ID) {
  3247. return ((ProductRow)(this.Rows.Find(new object[] {
  3248. ID})));
  3249. }
  3250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3252. public override global::System.Data.DataTable Clone() {
  3253. ProductDataTable cln = ((ProductDataTable)(base.Clone()));
  3254. cln.InitVars();
  3255. return cln;
  3256. }
  3257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3259. protected override global::System.Data.DataTable CreateInstance() {
  3260. return new ProductDataTable();
  3261. }
  3262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3264. internal void InitVars() {
  3265. this.columnID = base.Columns["ID"];
  3266. this.columnTitle = base.Columns["Title"];
  3267. this.columnCost = base.Columns["Cost"];
  3268. this.columnDescription = base.Columns["Description"];
  3269. this.columnMainImagePath = base.Columns["MainImagePath"];
  3270. this.columnIsActive = base.Columns["IsActive"];
  3271. this.columnManufacturerID = base.Columns["ManufacturerID"];
  3272. }
  3273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3275. private void InitClass() {
  3276. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3277. base.Columns.Add(this.columnID);
  3278. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  3279. base.Columns.Add(this.columnTitle);
  3280. this.columnCost = new global::System.Data.DataColumn("Cost", typeof(decimal), null, global::System.Data.MappingType.Element);
  3281. base.Columns.Add(this.columnCost);
  3282. this.columnDescription = new global::System.Data.DataColumn("Description", typeof(string), null, global::System.Data.MappingType.Element);
  3283. base.Columns.Add(this.columnDescription);
  3284. this.columnMainImagePath = new global::System.Data.DataColumn("MainImagePath", typeof(string), null, global::System.Data.MappingType.Element);
  3285. base.Columns.Add(this.columnMainImagePath);
  3286. this.columnIsActive = new global::System.Data.DataColumn("IsActive", typeof(bool), null, global::System.Data.MappingType.Element);
  3287. base.Columns.Add(this.columnIsActive);
  3288. this.columnManufacturerID = new global::System.Data.DataColumn("ManufacturerID", typeof(int), null, global::System.Data.MappingType.Element);
  3289. base.Columns.Add(this.columnManufacturerID);
  3290. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3291. this.columnID}, true));
  3292. this.columnID.AutoIncrement = true;
  3293. this.columnID.AutoIncrementSeed = -1;
  3294. this.columnID.AutoIncrementStep = -1;
  3295. this.columnID.AllowDBNull = false;
  3296. this.columnID.ReadOnly = true;
  3297. this.columnID.Unique = true;
  3298. this.columnTitle.AllowDBNull = false;
  3299. this.columnTitle.MaxLength = 100;
  3300. this.columnCost.AllowDBNull = false;
  3301. this.columnDescription.MaxLength = 2147483647;
  3302. this.columnMainImagePath.MaxLength = 1000;
  3303. this.columnIsActive.AllowDBNull = false;
  3304. }
  3305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3306. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3307. public ProductRow NewProductRow() {
  3308. return ((ProductRow)(this.NewRow()));
  3309. }
  3310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3312. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3313. return new ProductRow(builder);
  3314. }
  3315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3317. protected override global::System.Type GetRowType() {
  3318. return typeof(ProductRow);
  3319. }
  3320. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3321. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3322. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3323. base.OnRowChanged(e);
  3324. if ((this.ProductRowChanged != null)) {
  3325. this.ProductRowChanged(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  3326. }
  3327. }
  3328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3330. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3331. base.OnRowChanging(e);
  3332. if ((this.ProductRowChanging != null)) {
  3333. this.ProductRowChanging(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  3334. }
  3335. }
  3336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3338. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3339. base.OnRowDeleted(e);
  3340. if ((this.ProductRowDeleted != null)) {
  3341. this.ProductRowDeleted(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  3342. }
  3343. }
  3344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3346. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3347. base.OnRowDeleting(e);
  3348. if ((this.ProductRowDeleting != null)) {
  3349. this.ProductRowDeleting(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  3350. }
  3351. }
  3352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3354. public void RemoveProductRow(ProductRow row) {
  3355. this.Rows.Remove(row);
  3356. }
  3357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3359. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3360. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3361. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3362. BB_AzizovaDataSet ds = new BB_AzizovaDataSet();
  3363. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3364. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3365. any1.MinOccurs = new decimal(0);
  3366. any1.MaxOccurs = decimal.MaxValue;
  3367. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3368. sequence.Items.Add(any1);
  3369. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3370. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3371. any2.MinOccurs = new decimal(1);
  3372. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3373. sequence.Items.Add(any2);
  3374. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3375. attribute1.Name = "namespace";
  3376. attribute1.FixedValue = ds.Namespace;
  3377. type.Attributes.Add(attribute1);
  3378. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3379. attribute2.Name = "tableTypeName";
  3380. attribute2.FixedValue = "ProductDataTable";
  3381. type.Attributes.Add(attribute2);
  3382. type.Particle = sequence;
  3383. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3384. if (xs.Contains(dsSchema.TargetNamespace)) {
  3385. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3386. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3387. try {
  3388. global::System.Xml.Schema.XmlSchema schema = null;
  3389. dsSchema.Write(s1);
  3390. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3391. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3392. s2.SetLength(0);
  3393. schema.Write(s2);
  3394. if ((s1.Length == s2.Length)) {
  3395. s1.Position = 0;
  3396. s2.Position = 0;
  3397. for (; ((s1.Position != s1.Length)
  3398. && (s1.ReadByte() == s2.ReadByte())); ) {
  3399. ;
  3400. }
  3401. if ((s1.Position == s1.Length)) {
  3402. return type;
  3403. }
  3404. }
  3405. }
  3406. }
  3407. finally {
  3408. if ((s1 != null)) {
  3409. s1.Close();
  3410. }
  3411. if ((s2 != null)) {
  3412. s2.Close();
  3413. }
  3414. }
  3415. }
  3416. xs.Add(dsSchema);
  3417. return type;
  3418. }
  3419. }
  3420. /// <summary>
  3421. ///Represents the strongly named DataTable class.
  3422. ///</summary>
  3423. [global::System.Serializable()]
  3424. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3425. public partial class ProductPhotoDataTable : global::System.Data.TypedTableBase<ProductPhotoRow> {
  3426. private global::System.Data.DataColumn columnID;
  3427. private global::System.Data.DataColumn columnProductID;
  3428. private global::System.Data.DataColumn columnPhotoPath;
  3429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3431. public ProductPhotoDataTable() {
  3432. this.TableName = "ProductPhoto";
  3433. this.BeginInit();
  3434. this.InitClass();
  3435. this.EndInit();
  3436. }
  3437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3439. internal ProductPhotoDataTable(global::System.Data.DataTable table) {
  3440. this.TableName = table.TableName;
  3441. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3442. this.CaseSensitive = table.CaseSensitive;
  3443. }
  3444. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3445. this.Locale = table.Locale;
  3446. }
  3447. if ((table.Namespace != table.DataSet.Namespace)) {
  3448. this.Namespace = table.Namespace;
  3449. }
  3450. this.Prefix = table.Prefix;
  3451. this.MinimumCapacity = table.MinimumCapacity;
  3452. }
  3453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3454. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3455. protected ProductPhotoDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3456. base(info, context) {
  3457. this.InitVars();
  3458. }
  3459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3461. public global::System.Data.DataColumn IDColumn {
  3462. get {
  3463. return this.columnID;
  3464. }
  3465. }
  3466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3468. public global::System.Data.DataColumn ProductIDColumn {
  3469. get {
  3470. return this.columnProductID;
  3471. }
  3472. }
  3473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3475. public global::System.Data.DataColumn PhotoPathColumn {
  3476. get {
  3477. return this.columnPhotoPath;
  3478. }
  3479. }
  3480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3482. [global::System.ComponentModel.Browsable(false)]
  3483. public int Count {
  3484. get {
  3485. return this.Rows.Count;
  3486. }
  3487. }
  3488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3490. public ProductPhotoRow this[int index] {
  3491. get {
  3492. return ((ProductPhotoRow)(this.Rows[index]));
  3493. }
  3494. }
  3495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3496. public event ProductPhotoRowChangeEventHandler ProductPhotoRowChanging;
  3497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3498. public event ProductPhotoRowChangeEventHandler ProductPhotoRowChanged;
  3499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3500. public event ProductPhotoRowChangeEventHandler ProductPhotoRowDeleting;
  3501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3502. public event ProductPhotoRowChangeEventHandler ProductPhotoRowDeleted;
  3503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3505. public void AddProductPhotoRow(ProductPhotoRow row) {
  3506. this.Rows.Add(row);
  3507. }
  3508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3510. public ProductPhotoRow AddProductPhotoRow(ProductRow parentProductRowByFK_ProductPhoto_Product, string PhotoPath) {
  3511. ProductPhotoRow rowProductPhotoRow = ((ProductPhotoRow)(this.NewRow()));
  3512. object[] columnValuesArray = new object[] {
  3513. null,
  3514. null,
  3515. PhotoPath};
  3516. if ((parentProductRowByFK_ProductPhoto_Product != null)) {
  3517. columnValuesArray[1] = parentProductRowByFK_ProductPhoto_Product[0];
  3518. }
  3519. rowProductPhotoRow.ItemArray = columnValuesArray;
  3520. this.Rows.Add(rowProductPhotoRow);
  3521. return rowProductPhotoRow;
  3522. }
  3523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3525. public ProductPhotoRow FindByID(int ID) {
  3526. return ((ProductPhotoRow)(this.Rows.Find(new object[] {
  3527. ID})));
  3528. }
  3529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3531. public override global::System.Data.DataTable Clone() {
  3532. ProductPhotoDataTable cln = ((ProductPhotoDataTable)(base.Clone()));
  3533. cln.InitVars();
  3534. return cln;
  3535. }
  3536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3538. protected override global::System.Data.DataTable CreateInstance() {
  3539. return new ProductPhotoDataTable();
  3540. }
  3541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3543. internal void InitVars() {
  3544. this.columnID = base.Columns["ID"];
  3545. this.columnProductID = base.Columns["ProductID"];
  3546. this.columnPhotoPath = base.Columns["PhotoPath"];
  3547. }
  3548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3549. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3550. private void InitClass() {
  3551. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3552. base.Columns.Add(this.columnID);
  3553. this.columnProductID = new global::System.Data.DataColumn("ProductID", typeof(int), null, global::System.Data.MappingType.Element);
  3554. base.Columns.Add(this.columnProductID);
  3555. this.columnPhotoPath = new global::System.Data.DataColumn("PhotoPath", typeof(string), null, global::System.Data.MappingType.Element);
  3556. base.Columns.Add(this.columnPhotoPath);
  3557. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3558. this.columnID}, true));
  3559. this.columnID.AutoIncrement = true;
  3560. this.columnID.AutoIncrementSeed = -1;
  3561. this.columnID.AutoIncrementStep = -1;
  3562. this.columnID.AllowDBNull = false;
  3563. this.columnID.ReadOnly = true;
  3564. this.columnID.Unique = true;
  3565. this.columnProductID.AllowDBNull = false;
  3566. this.columnPhotoPath.AllowDBNull = false;
  3567. this.columnPhotoPath.MaxLength = 1000;
  3568. }
  3569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3571. public ProductPhotoRow NewProductPhotoRow() {
  3572. return ((ProductPhotoRow)(this.NewRow()));
  3573. }
  3574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3576. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3577. return new ProductPhotoRow(builder);
  3578. }
  3579. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3580. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3581. protected override global::System.Type GetRowType() {
  3582. return typeof(ProductPhotoRow);
  3583. }
  3584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3586. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3587. base.OnRowChanged(e);
  3588. if ((this.ProductPhotoRowChanged != null)) {
  3589. this.ProductPhotoRowChanged(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  3590. }
  3591. }
  3592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3594. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3595. base.OnRowChanging(e);
  3596. if ((this.ProductPhotoRowChanging != null)) {
  3597. this.ProductPhotoRowChanging(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  3598. }
  3599. }
  3600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3602. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3603. base.OnRowDeleted(e);
  3604. if ((this.ProductPhotoRowDeleted != null)) {
  3605. this.ProductPhotoRowDeleted(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  3606. }
  3607. }
  3608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3610. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3611. base.OnRowDeleting(e);
  3612. if ((this.ProductPhotoRowDeleting != null)) {
  3613. this.ProductPhotoRowDeleting(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  3614. }
  3615. }
  3616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3618. public void RemoveProductPhotoRow(ProductPhotoRow row) {
  3619. this.Rows.Remove(row);
  3620. }
  3621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3622. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3623. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3624. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3625. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3626. BB_AzizovaDataSet ds = new BB_AzizovaDataSet();
  3627. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3628. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3629. any1.MinOccurs = new decimal(0);
  3630. any1.MaxOccurs = decimal.MaxValue;
  3631. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3632. sequence.Items.Add(any1);
  3633. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3634. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3635. any2.MinOccurs = new decimal(1);
  3636. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3637. sequence.Items.Add(any2);
  3638. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3639. attribute1.Name = "namespace";
  3640. attribute1.FixedValue = ds.Namespace;
  3641. type.Attributes.Add(attribute1);
  3642. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3643. attribute2.Name = "tableTypeName";
  3644. attribute2.FixedValue = "ProductPhotoDataTable";
  3645. type.Attributes.Add(attribute2);
  3646. type.Particle = sequence;
  3647. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3648. if (xs.Contains(dsSchema.TargetNamespace)) {
  3649. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3650. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3651. try {
  3652. global::System.Xml.Schema.XmlSchema schema = null;
  3653. dsSchema.Write(s1);
  3654. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3655. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3656. s2.SetLength(0);
  3657. schema.Write(s2);
  3658. if ((s1.Length == s2.Length)) {
  3659. s1.Position = 0;
  3660. s2.Position = 0;
  3661. for (; ((s1.Position != s1.Length)
  3662. && (s1.ReadByte() == s2.ReadByte())); ) {
  3663. ;
  3664. }
  3665. if ((s1.Position == s1.Length)) {
  3666. return type;
  3667. }
  3668. }
  3669. }
  3670. }
  3671. finally {
  3672. if ((s1 != null)) {
  3673. s1.Close();
  3674. }
  3675. if ((s2 != null)) {
  3676. s2.Close();
  3677. }
  3678. }
  3679. }
  3680. xs.Add(dsSchema);
  3681. return type;
  3682. }
  3683. }
  3684. /// <summary>
  3685. ///Represents the strongly named DataTable class.
  3686. ///</summary>
  3687. [global::System.Serializable()]
  3688. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3689. public partial class ProductSaleDataTable : global::System.Data.TypedTableBase<ProductSaleRow> {
  3690. private global::System.Data.DataColumn columnID;
  3691. private global::System.Data.DataColumn columnSaleDate;
  3692. private global::System.Data.DataColumn columnProductID;
  3693. private global::System.Data.DataColumn columnQuantity;
  3694. private global::System.Data.DataColumn columnClientServiceID;
  3695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3697. public ProductSaleDataTable() {
  3698. this.TableName = "ProductSale";
  3699. this.BeginInit();
  3700. this.InitClass();
  3701. this.EndInit();
  3702. }
  3703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3705. internal ProductSaleDataTable(global::System.Data.DataTable table) {
  3706. this.TableName = table.TableName;
  3707. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3708. this.CaseSensitive = table.CaseSensitive;
  3709. }
  3710. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3711. this.Locale = table.Locale;
  3712. }
  3713. if ((table.Namespace != table.DataSet.Namespace)) {
  3714. this.Namespace = table.Namespace;
  3715. }
  3716. this.Prefix = table.Prefix;
  3717. this.MinimumCapacity = table.MinimumCapacity;
  3718. }
  3719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3721. protected ProductSaleDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3722. base(info, context) {
  3723. this.InitVars();
  3724. }
  3725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3727. public global::System.Data.DataColumn IDColumn {
  3728. get {
  3729. return this.columnID;
  3730. }
  3731. }
  3732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3734. public global::System.Data.DataColumn SaleDateColumn {
  3735. get {
  3736. return this.columnSaleDate;
  3737. }
  3738. }
  3739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3741. public global::System.Data.DataColumn ProductIDColumn {
  3742. get {
  3743. return this.columnProductID;
  3744. }
  3745. }
  3746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3748. public global::System.Data.DataColumn QuantityColumn {
  3749. get {
  3750. return this.columnQuantity;
  3751. }
  3752. }
  3753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3755. public global::System.Data.DataColumn ClientServiceIDColumn {
  3756. get {
  3757. return this.columnClientServiceID;
  3758. }
  3759. }
  3760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3761. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3762. [global::System.ComponentModel.Browsable(false)]
  3763. public int Count {
  3764. get {
  3765. return this.Rows.Count;
  3766. }
  3767. }
  3768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3770. public ProductSaleRow this[int index] {
  3771. get {
  3772. return ((ProductSaleRow)(this.Rows[index]));
  3773. }
  3774. }
  3775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3776. public event ProductSaleRowChangeEventHandler ProductSaleRowChanging;
  3777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3778. public event ProductSaleRowChangeEventHandler ProductSaleRowChanged;
  3779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3780. public event ProductSaleRowChangeEventHandler ProductSaleRowDeleting;
  3781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3782. public event ProductSaleRowChangeEventHandler ProductSaleRowDeleted;
  3783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3785. public void AddProductSaleRow(ProductSaleRow row) {
  3786. this.Rows.Add(row);
  3787. }
  3788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3790. public ProductSaleRow AddProductSaleRow(System.DateTime SaleDate, ProductRow parentProductRowByFK_ProductSale_Product, int Quantity, ClientServiceRow parentClientServiceRowByFK_ProductSale_ClientService) {
  3791. ProductSaleRow rowProductSaleRow = ((ProductSaleRow)(this.NewRow()));
  3792. object[] columnValuesArray = new object[] {
  3793. null,
  3794. SaleDate,
  3795. null,
  3796. Quantity,
  3797. null};
  3798. if ((parentProductRowByFK_ProductSale_Product != null)) {
  3799. columnValuesArray[2] = parentProductRowByFK_ProductSale_Product[0];
  3800. }
  3801. if ((parentClientServiceRowByFK_ProductSale_ClientService != null)) {
  3802. columnValuesArray[4] = parentClientServiceRowByFK_ProductSale_ClientService[0];
  3803. }
  3804. rowProductSaleRow.ItemArray = columnValuesArray;
  3805. this.Rows.Add(rowProductSaleRow);
  3806. return rowProductSaleRow;
  3807. }
  3808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3810. public ProductSaleRow FindByID(int ID) {
  3811. return ((ProductSaleRow)(this.Rows.Find(new object[] {
  3812. ID})));
  3813. }
  3814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3816. public override global::System.Data.DataTable Clone() {
  3817. ProductSaleDataTable cln = ((ProductSaleDataTable)(base.Clone()));
  3818. cln.InitVars();
  3819. return cln;
  3820. }
  3821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3823. protected override global::System.Data.DataTable CreateInstance() {
  3824. return new ProductSaleDataTable();
  3825. }
  3826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3828. internal void InitVars() {
  3829. this.columnID = base.Columns["ID"];
  3830. this.columnSaleDate = base.Columns["SaleDate"];
  3831. this.columnProductID = base.Columns["ProductID"];
  3832. this.columnQuantity = base.Columns["Quantity"];
  3833. this.columnClientServiceID = base.Columns["ClientServiceID"];
  3834. }
  3835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3837. private void InitClass() {
  3838. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3839. base.Columns.Add(this.columnID);
  3840. this.columnSaleDate = new global::System.Data.DataColumn("SaleDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  3841. base.Columns.Add(this.columnSaleDate);
  3842. this.columnProductID = new global::System.Data.DataColumn("ProductID", typeof(int), null, global::System.Data.MappingType.Element);
  3843. base.Columns.Add(this.columnProductID);
  3844. this.columnQuantity = new global::System.Data.DataColumn("Quantity", typeof(int), null, global::System.Data.MappingType.Element);
  3845. base.Columns.Add(this.columnQuantity);
  3846. this.columnClientServiceID = new global::System.Data.DataColumn("ClientServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  3847. base.Columns.Add(this.columnClientServiceID);
  3848. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3849. this.columnID}, true));
  3850. this.columnID.AutoIncrement = true;
  3851. this.columnID.AutoIncrementSeed = -1;
  3852. this.columnID.AutoIncrementStep = -1;
  3853. this.columnID.AllowDBNull = false;
  3854. this.columnID.ReadOnly = true;
  3855. this.columnID.Unique = true;
  3856. this.columnSaleDate.AllowDBNull = false;
  3857. this.columnProductID.AllowDBNull = false;
  3858. this.columnQuantity.AllowDBNull = false;
  3859. }
  3860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3862. public ProductSaleRow NewProductSaleRow() {
  3863. return ((ProductSaleRow)(this.NewRow()));
  3864. }
  3865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3867. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3868. return new ProductSaleRow(builder);
  3869. }
  3870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3872. protected override global::System.Type GetRowType() {
  3873. return typeof(ProductSaleRow);
  3874. }
  3875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3877. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3878. base.OnRowChanged(e);
  3879. if ((this.ProductSaleRowChanged != null)) {
  3880. this.ProductSaleRowChanged(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3881. }
  3882. }
  3883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3885. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3886. base.OnRowChanging(e);
  3887. if ((this.ProductSaleRowChanging != null)) {
  3888. this.ProductSaleRowChanging(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3889. }
  3890. }
  3891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3893. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3894. base.OnRowDeleted(e);
  3895. if ((this.ProductSaleRowDeleted != null)) {
  3896. this.ProductSaleRowDeleted(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3897. }
  3898. }
  3899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3901. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3902. base.OnRowDeleting(e);
  3903. if ((this.ProductSaleRowDeleting != null)) {
  3904. this.ProductSaleRowDeleting(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3905. }
  3906. }
  3907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3909. public void RemoveProductSaleRow(ProductSaleRow row) {
  3910. this.Rows.Remove(row);
  3911. }
  3912. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3913. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3914. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3915. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3916. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3917. BB_AzizovaDataSet ds = new BB_AzizovaDataSet();
  3918. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3919. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3920. any1.MinOccurs = new decimal(0);
  3921. any1.MaxOccurs = decimal.MaxValue;
  3922. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3923. sequence.Items.Add(any1);
  3924. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3925. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3926. any2.MinOccurs = new decimal(1);
  3927. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3928. sequence.Items.Add(any2);
  3929. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3930. attribute1.Name = "namespace";
  3931. attribute1.FixedValue = ds.Namespace;
  3932. type.Attributes.Add(attribute1);
  3933. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3934. attribute2.Name = "tableTypeName";
  3935. attribute2.FixedValue = "ProductSaleDataTable";
  3936. type.Attributes.Add(attribute2);
  3937. type.Particle = sequence;
  3938. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3939. if (xs.Contains(dsSchema.TargetNamespace)) {
  3940. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3941. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3942. try {
  3943. global::System.Xml.Schema.XmlSchema schema = null;
  3944. dsSchema.Write(s1);
  3945. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3946. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3947. s2.SetLength(0);
  3948. schema.Write(s2);
  3949. if ((s1.Length == s2.Length)) {
  3950. s1.Position = 0;
  3951. s2.Position = 0;
  3952. for (; ((s1.Position != s1.Length)
  3953. && (s1.ReadByte() == s2.ReadByte())); ) {
  3954. ;
  3955. }
  3956. if ((s1.Position == s1.Length)) {
  3957. return type;
  3958. }
  3959. }
  3960. }
  3961. }
  3962. finally {
  3963. if ((s1 != null)) {
  3964. s1.Close();
  3965. }
  3966. if ((s2 != null)) {
  3967. s2.Close();
  3968. }
  3969. }
  3970. }
  3971. xs.Add(dsSchema);
  3972. return type;
  3973. }
  3974. }
  3975. /// <summary>
  3976. ///Represents the strongly named DataTable class.
  3977. ///</summary>
  3978. [global::System.Serializable()]
  3979. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3980. public partial class ServiceDataTable : global::System.Data.TypedTableBase<ServiceRow> {
  3981. private global::System.Data.DataColumn columnID;
  3982. private global::System.Data.DataColumn columnTitle;
  3983. private global::System.Data.DataColumn columnCost;
  3984. private global::System.Data.DataColumn columnDurationInSeconds;
  3985. private global::System.Data.DataColumn columnDescription;
  3986. private global::System.Data.DataColumn columnDiscount;
  3987. private global::System.Data.DataColumn columnMainImagePath;
  3988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3989. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3990. public ServiceDataTable() {
  3991. this.TableName = "Service";
  3992. this.BeginInit();
  3993. this.InitClass();
  3994. this.EndInit();
  3995. }
  3996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3998. internal ServiceDataTable(global::System.Data.DataTable table) {
  3999. this.TableName = table.TableName;
  4000. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  4001. this.CaseSensitive = table.CaseSensitive;
  4002. }
  4003. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  4004. this.Locale = table.Locale;
  4005. }
  4006. if ((table.Namespace != table.DataSet.Namespace)) {
  4007. this.Namespace = table.Namespace;
  4008. }
  4009. this.Prefix = table.Prefix;
  4010. this.MinimumCapacity = table.MinimumCapacity;
  4011. }
  4012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4014. protected ServiceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  4015. base(info, context) {
  4016. this.InitVars();
  4017. }
  4018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4020. public global::System.Data.DataColumn IDColumn {
  4021. get {
  4022. return this.columnID;
  4023. }
  4024. }
  4025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4027. public global::System.Data.DataColumn TitleColumn {
  4028. get {
  4029. return this.columnTitle;
  4030. }
  4031. }
  4032. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4033. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4034. public global::System.Data.DataColumn CostColumn {
  4035. get {
  4036. return this.columnCost;
  4037. }
  4038. }
  4039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4041. public global::System.Data.DataColumn DurationInSecondsColumn {
  4042. get {
  4043. return this.columnDurationInSeconds;
  4044. }
  4045. }
  4046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4048. public global::System.Data.DataColumn DescriptionColumn {
  4049. get {
  4050. return this.columnDescription;
  4051. }
  4052. }
  4053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4055. public global::System.Data.DataColumn DiscountColumn {
  4056. get {
  4057. return this.columnDiscount;
  4058. }
  4059. }
  4060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4062. public global::System.Data.DataColumn MainImagePathColumn {
  4063. get {
  4064. return this.columnMainImagePath;
  4065. }
  4066. }
  4067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4069. [global::System.ComponentModel.Browsable(false)]
  4070. public int Count {
  4071. get {
  4072. return this.Rows.Count;
  4073. }
  4074. }
  4075. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4076. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4077. public ServiceRow this[int index] {
  4078. get {
  4079. return ((ServiceRow)(this.Rows[index]));
  4080. }
  4081. }
  4082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4083. public event ServiceRowChangeEventHandler ServiceRowChanging;
  4084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4085. public event ServiceRowChangeEventHandler ServiceRowChanged;
  4086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4087. public event ServiceRowChangeEventHandler ServiceRowDeleting;
  4088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4089. public event ServiceRowChangeEventHandler ServiceRowDeleted;
  4090. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4091. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4092. public void AddServiceRow(ServiceRow row) {
  4093. this.Rows.Add(row);
  4094. }
  4095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4097. public ServiceRow AddServiceRow(string Title, decimal Cost, int DurationInSeconds, string Description, double Discount, string MainImagePath) {
  4098. ServiceRow rowServiceRow = ((ServiceRow)(this.NewRow()));
  4099. object[] columnValuesArray = new object[] {
  4100. null,
  4101. Title,
  4102. Cost,
  4103. DurationInSeconds,
  4104. Description,
  4105. Discount,
  4106. MainImagePath};
  4107. rowServiceRow.ItemArray = columnValuesArray;
  4108. this.Rows.Add(rowServiceRow);
  4109. return rowServiceRow;
  4110. }
  4111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4113. public ServiceRow FindByID(int ID) {
  4114. return ((ServiceRow)(this.Rows.Find(new object[] {
  4115. ID})));
  4116. }
  4117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4119. public override global::System.Data.DataTable Clone() {
  4120. ServiceDataTable cln = ((ServiceDataTable)(base.Clone()));
  4121. cln.InitVars();
  4122. return cln;
  4123. }
  4124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4126. protected override global::System.Data.DataTable CreateInstance() {
  4127. return new ServiceDataTable();
  4128. }
  4129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4131. internal void InitVars() {
  4132. this.columnID = base.Columns["ID"];
  4133. this.columnTitle = base.Columns["Title"];
  4134. this.columnCost = base.Columns["Cost"];
  4135. this.columnDurationInSeconds = base.Columns["DurationInSeconds"];
  4136. this.columnDescription = base.Columns["Description"];
  4137. this.columnDiscount = base.Columns["Discount"];
  4138. this.columnMainImagePath = base.Columns["MainImagePath"];
  4139. }
  4140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4142. private void InitClass() {
  4143. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  4144. base.Columns.Add(this.columnID);
  4145. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  4146. base.Columns.Add(this.columnTitle);
  4147. this.columnCost = new global::System.Data.DataColumn("Cost", typeof(decimal), null, global::System.Data.MappingType.Element);
  4148. base.Columns.Add(this.columnCost);
  4149. this.columnDurationInSeconds = new global::System.Data.DataColumn("DurationInSeconds", typeof(int), null, global::System.Data.MappingType.Element);
  4150. base.Columns.Add(this.columnDurationInSeconds);
  4151. this.columnDescription = new global::System.Data.DataColumn("Description", typeof(string), null, global::System.Data.MappingType.Element);
  4152. base.Columns.Add(this.columnDescription);
  4153. this.columnDiscount = new global::System.Data.DataColumn("Discount", typeof(double), null, global::System.Data.MappingType.Element);
  4154. base.Columns.Add(this.columnDiscount);
  4155. this.columnMainImagePath = new global::System.Data.DataColumn("MainImagePath", typeof(string), null, global::System.Data.MappingType.Element);
  4156. base.Columns.Add(this.columnMainImagePath);
  4157. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  4158. this.columnID}, true));
  4159. this.columnID.AutoIncrement = true;
  4160. this.columnID.AutoIncrementSeed = -1;
  4161. this.columnID.AutoIncrementStep = -1;
  4162. this.columnID.AllowDBNull = false;
  4163. this.columnID.ReadOnly = true;
  4164. this.columnID.Unique = true;
  4165. this.columnTitle.AllowDBNull = false;
  4166. this.columnTitle.MaxLength = 100;
  4167. this.columnCost.AllowDBNull = false;
  4168. this.columnDurationInSeconds.AllowDBNull = false;
  4169. this.columnDescription.MaxLength = 2147483647;
  4170. this.columnMainImagePath.MaxLength = 1000;
  4171. }
  4172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4174. public ServiceRow NewServiceRow() {
  4175. return ((ServiceRow)(this.NewRow()));
  4176. }
  4177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4179. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4180. return new ServiceRow(builder);
  4181. }
  4182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4184. protected override global::System.Type GetRowType() {
  4185. return typeof(ServiceRow);
  4186. }
  4187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4189. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4190. base.OnRowChanged(e);
  4191. if ((this.ServiceRowChanged != null)) {
  4192. this.ServiceRowChanged(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  4193. }
  4194. }
  4195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4197. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4198. base.OnRowChanging(e);
  4199. if ((this.ServiceRowChanging != null)) {
  4200. this.ServiceRowChanging(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  4201. }
  4202. }
  4203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4205. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4206. base.OnRowDeleted(e);
  4207. if ((this.ServiceRowDeleted != null)) {
  4208. this.ServiceRowDeleted(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  4209. }
  4210. }
  4211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4213. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4214. base.OnRowDeleting(e);
  4215. if ((this.ServiceRowDeleting != null)) {
  4216. this.ServiceRowDeleting(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  4217. }
  4218. }
  4219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4221. public void RemoveServiceRow(ServiceRow row) {
  4222. this.Rows.Remove(row);
  4223. }
  4224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4226. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4227. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4228. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4229. BB_AzizovaDataSet ds = new BB_AzizovaDataSet();
  4230. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4231. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4232. any1.MinOccurs = new decimal(0);
  4233. any1.MaxOccurs = decimal.MaxValue;
  4234. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4235. sequence.Items.Add(any1);
  4236. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4237. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4238. any2.MinOccurs = new decimal(1);
  4239. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4240. sequence.Items.Add(any2);
  4241. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4242. attribute1.Name = "namespace";
  4243. attribute1.FixedValue = ds.Namespace;
  4244. type.Attributes.Add(attribute1);
  4245. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4246. attribute2.Name = "tableTypeName";
  4247. attribute2.FixedValue = "ServiceDataTable";
  4248. type.Attributes.Add(attribute2);
  4249. type.Particle = sequence;
  4250. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4251. if (xs.Contains(dsSchema.TargetNamespace)) {
  4252. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4253. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4254. try {
  4255. global::System.Xml.Schema.XmlSchema schema = null;
  4256. dsSchema.Write(s1);
  4257. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4258. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4259. s2.SetLength(0);
  4260. schema.Write(s2);
  4261. if ((s1.Length == s2.Length)) {
  4262. s1.Position = 0;
  4263. s2.Position = 0;
  4264. for (; ((s1.Position != s1.Length)
  4265. && (s1.ReadByte() == s2.ReadByte())); ) {
  4266. ;
  4267. }
  4268. if ((s1.Position == s1.Length)) {
  4269. return type;
  4270. }
  4271. }
  4272. }
  4273. }
  4274. finally {
  4275. if ((s1 != null)) {
  4276. s1.Close();
  4277. }
  4278. if ((s2 != null)) {
  4279. s2.Close();
  4280. }
  4281. }
  4282. }
  4283. xs.Add(dsSchema);
  4284. return type;
  4285. }
  4286. }
  4287. /// <summary>
  4288. ///Represents the strongly named DataTable class.
  4289. ///</summary>
  4290. [global::System.Serializable()]
  4291. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  4292. public partial class ServicePhotoDataTable : global::System.Data.TypedTableBase<ServicePhotoRow> {
  4293. private global::System.Data.DataColumn columnID;
  4294. private global::System.Data.DataColumn columnServiceID;
  4295. private global::System.Data.DataColumn columnPhotoPath;
  4296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4297. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4298. public ServicePhotoDataTable() {
  4299. this.TableName = "ServicePhoto";
  4300. this.BeginInit();
  4301. this.InitClass();
  4302. this.EndInit();
  4303. }
  4304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4306. internal ServicePhotoDataTable(global::System.Data.DataTable table) {
  4307. this.TableName = table.TableName;
  4308. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  4309. this.CaseSensitive = table.CaseSensitive;
  4310. }
  4311. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  4312. this.Locale = table.Locale;
  4313. }
  4314. if ((table.Namespace != table.DataSet.Namespace)) {
  4315. this.Namespace = table.Namespace;
  4316. }
  4317. this.Prefix = table.Prefix;
  4318. this.MinimumCapacity = table.MinimumCapacity;
  4319. }
  4320. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4321. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4322. protected ServicePhotoDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  4323. base(info, context) {
  4324. this.InitVars();
  4325. }
  4326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4327. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4328. public global::System.Data.DataColumn IDColumn {
  4329. get {
  4330. return this.columnID;
  4331. }
  4332. }
  4333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4335. public global::System.Data.DataColumn ServiceIDColumn {
  4336. get {
  4337. return this.columnServiceID;
  4338. }
  4339. }
  4340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4342. public global::System.Data.DataColumn PhotoPathColumn {
  4343. get {
  4344. return this.columnPhotoPath;
  4345. }
  4346. }
  4347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4349. [global::System.ComponentModel.Browsable(false)]
  4350. public int Count {
  4351. get {
  4352. return this.Rows.Count;
  4353. }
  4354. }
  4355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4357. public ServicePhotoRow this[int index] {
  4358. get {
  4359. return ((ServicePhotoRow)(this.Rows[index]));
  4360. }
  4361. }
  4362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4363. public event ServicePhotoRowChangeEventHandler ServicePhotoRowChanging;
  4364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4365. public event ServicePhotoRowChangeEventHandler ServicePhotoRowChanged;
  4366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4367. public event ServicePhotoRowChangeEventHandler ServicePhotoRowDeleting;
  4368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4369. public event ServicePhotoRowChangeEventHandler ServicePhotoRowDeleted;
  4370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4372. public void AddServicePhotoRow(ServicePhotoRow row) {
  4373. this.Rows.Add(row);
  4374. }
  4375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4377. public ServicePhotoRow AddServicePhotoRow(ServiceRow parentServiceRowByFK_ServicePhoto_Service, string PhotoPath) {
  4378. ServicePhotoRow rowServicePhotoRow = ((ServicePhotoRow)(this.NewRow()));
  4379. object[] columnValuesArray = new object[] {
  4380. null,
  4381. null,
  4382. PhotoPath};
  4383. if ((parentServiceRowByFK_ServicePhoto_Service != null)) {
  4384. columnValuesArray[1] = parentServiceRowByFK_ServicePhoto_Service[0];
  4385. }
  4386. rowServicePhotoRow.ItemArray = columnValuesArray;
  4387. this.Rows.Add(rowServicePhotoRow);
  4388. return rowServicePhotoRow;
  4389. }
  4390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4392. public ServicePhotoRow FindByID(int ID) {
  4393. return ((ServicePhotoRow)(this.Rows.Find(new object[] {
  4394. ID})));
  4395. }
  4396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4398. public override global::System.Data.DataTable Clone() {
  4399. ServicePhotoDataTable cln = ((ServicePhotoDataTable)(base.Clone()));
  4400. cln.InitVars();
  4401. return cln;
  4402. }
  4403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4405. protected override global::System.Data.DataTable CreateInstance() {
  4406. return new ServicePhotoDataTable();
  4407. }
  4408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4410. internal void InitVars() {
  4411. this.columnID = base.Columns["ID"];
  4412. this.columnServiceID = base.Columns["ServiceID"];
  4413. this.columnPhotoPath = base.Columns["PhotoPath"];
  4414. }
  4415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4416. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4417. private void InitClass() {
  4418. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  4419. base.Columns.Add(this.columnID);
  4420. this.columnServiceID = new global::System.Data.DataColumn("ServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  4421. base.Columns.Add(this.columnServiceID);
  4422. this.columnPhotoPath = new global::System.Data.DataColumn("PhotoPath", typeof(string), null, global::System.Data.MappingType.Element);
  4423. base.Columns.Add(this.columnPhotoPath);
  4424. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  4425. this.columnID}, true));
  4426. this.columnID.AutoIncrement = true;
  4427. this.columnID.AutoIncrementSeed = -1;
  4428. this.columnID.AutoIncrementStep = -1;
  4429. this.columnID.AllowDBNull = false;
  4430. this.columnID.ReadOnly = true;
  4431. this.columnID.Unique = true;
  4432. this.columnServiceID.AllowDBNull = false;
  4433. this.columnPhotoPath.AllowDBNull = false;
  4434. this.columnPhotoPath.MaxLength = 1000;
  4435. }
  4436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4438. public ServicePhotoRow NewServicePhotoRow() {
  4439. return ((ServicePhotoRow)(this.NewRow()));
  4440. }
  4441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4443. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4444. return new ServicePhotoRow(builder);
  4445. }
  4446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4448. protected override global::System.Type GetRowType() {
  4449. return typeof(ServicePhotoRow);
  4450. }
  4451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4453. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4454. base.OnRowChanged(e);
  4455. if ((this.ServicePhotoRowChanged != null)) {
  4456. this.ServicePhotoRowChanged(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  4457. }
  4458. }
  4459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4461. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4462. base.OnRowChanging(e);
  4463. if ((this.ServicePhotoRowChanging != null)) {
  4464. this.ServicePhotoRowChanging(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  4465. }
  4466. }
  4467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4469. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4470. base.OnRowDeleted(e);
  4471. if ((this.ServicePhotoRowDeleted != null)) {
  4472. this.ServicePhotoRowDeleted(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  4473. }
  4474. }
  4475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4477. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4478. base.OnRowDeleting(e);
  4479. if ((this.ServicePhotoRowDeleting != null)) {
  4480. this.ServicePhotoRowDeleting(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  4481. }
  4482. }
  4483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4485. public void RemoveServicePhotoRow(ServicePhotoRow row) {
  4486. this.Rows.Remove(row);
  4487. }
  4488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4490. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4491. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4492. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4493. BB_AzizovaDataSet ds = new BB_AzizovaDataSet();
  4494. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4495. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4496. any1.MinOccurs = new decimal(0);
  4497. any1.MaxOccurs = decimal.MaxValue;
  4498. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4499. sequence.Items.Add(any1);
  4500. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4501. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4502. any2.MinOccurs = new decimal(1);
  4503. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4504. sequence.Items.Add(any2);
  4505. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4506. attribute1.Name = "namespace";
  4507. attribute1.FixedValue = ds.Namespace;
  4508. type.Attributes.Add(attribute1);
  4509. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4510. attribute2.Name = "tableTypeName";
  4511. attribute2.FixedValue = "ServicePhotoDataTable";
  4512. type.Attributes.Add(attribute2);
  4513. type.Particle = sequence;
  4514. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4515. if (xs.Contains(dsSchema.TargetNamespace)) {
  4516. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4517. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4518. try {
  4519. global::System.Xml.Schema.XmlSchema schema = null;
  4520. dsSchema.Write(s1);
  4521. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4522. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4523. s2.SetLength(0);
  4524. schema.Write(s2);
  4525. if ((s1.Length == s2.Length)) {
  4526. s1.Position = 0;
  4527. s2.Position = 0;
  4528. for (; ((s1.Position != s1.Length)
  4529. && (s1.ReadByte() == s2.ReadByte())); ) {
  4530. ;
  4531. }
  4532. if ((s1.Position == s1.Length)) {
  4533. return type;
  4534. }
  4535. }
  4536. }
  4537. }
  4538. finally {
  4539. if ((s1 != null)) {
  4540. s1.Close();
  4541. }
  4542. if ((s2 != null)) {
  4543. s2.Close();
  4544. }
  4545. }
  4546. }
  4547. xs.Add(dsSchema);
  4548. return type;
  4549. }
  4550. }
  4551. /// <summary>
  4552. ///Represents the strongly named DataTable class.
  4553. ///</summary>
  4554. [global::System.Serializable()]
  4555. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  4556. public partial class SotrudnikDataTable : global::System.Data.TypedTableBase<SotrudnikRow> {
  4557. private global::System.Data.DataColumn columnID_Sotrudnik;
  4558. private global::System.Data.DataColumn columnPhomilia;
  4559. private global::System.Data.DataColumn columnName;
  4560. private global::System.Data.DataColumn columnID_Uslugi;
  4561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4563. public SotrudnikDataTable() {
  4564. this.TableName = "Sotrudnik";
  4565. this.BeginInit();
  4566. this.InitClass();
  4567. this.EndInit();
  4568. }
  4569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4571. internal SotrudnikDataTable(global::System.Data.DataTable table) {
  4572. this.TableName = table.TableName;
  4573. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  4574. this.CaseSensitive = table.CaseSensitive;
  4575. }
  4576. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  4577. this.Locale = table.Locale;
  4578. }
  4579. if ((table.Namespace != table.DataSet.Namespace)) {
  4580. this.Namespace = table.Namespace;
  4581. }
  4582. this.Prefix = table.Prefix;
  4583. this.MinimumCapacity = table.MinimumCapacity;
  4584. }
  4585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4587. protected SotrudnikDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  4588. base(info, context) {
  4589. this.InitVars();
  4590. }
  4591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4593. public global::System.Data.DataColumn ID_SotrudnikColumn {
  4594. get {
  4595. return this.columnID_Sotrudnik;
  4596. }
  4597. }
  4598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4600. public global::System.Data.DataColumn PhomiliaColumn {
  4601. get {
  4602. return this.columnPhomilia;
  4603. }
  4604. }
  4605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4607. public global::System.Data.DataColumn NameColumn {
  4608. get {
  4609. return this.columnName;
  4610. }
  4611. }
  4612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4614. public global::System.Data.DataColumn ID_UslugiColumn {
  4615. get {
  4616. return this.columnID_Uslugi;
  4617. }
  4618. }
  4619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4621. [global::System.ComponentModel.Browsable(false)]
  4622. public int Count {
  4623. get {
  4624. return this.Rows.Count;
  4625. }
  4626. }
  4627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4629. public SotrudnikRow this[int index] {
  4630. get {
  4631. return ((SotrudnikRow)(this.Rows[index]));
  4632. }
  4633. }
  4634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4635. public event SotrudnikRowChangeEventHandler SotrudnikRowChanging;
  4636. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4637. public event SotrudnikRowChangeEventHandler SotrudnikRowChanged;
  4638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4639. public event SotrudnikRowChangeEventHandler SotrudnikRowDeleting;
  4640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4641. public event SotrudnikRowChangeEventHandler SotrudnikRowDeleted;
  4642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4644. public void AddSotrudnikRow(SotrudnikRow row) {
  4645. this.Rows.Add(row);
  4646. }
  4647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4649. public SotrudnikRow AddSotrudnikRow(long ID_Sotrudnik, string Phomilia, string Name, UslugiRow parentUslugiRowByFK_Sotrudnik_Uslsgi) {
  4650. SotrudnikRow rowSotrudnikRow = ((SotrudnikRow)(this.NewRow()));
  4651. object[] columnValuesArray = new object[] {
  4652. ID_Sotrudnik,
  4653. Phomilia,
  4654. Name,
  4655. null};
  4656. if ((parentUslugiRowByFK_Sotrudnik_Uslsgi != null)) {
  4657. columnValuesArray[3] = parentUslugiRowByFK_Sotrudnik_Uslsgi[0];
  4658. }
  4659. rowSotrudnikRow.ItemArray = columnValuesArray;
  4660. this.Rows.Add(rowSotrudnikRow);
  4661. return rowSotrudnikRow;
  4662. }
  4663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4665. public SotrudnikRow FindByID_Sotrudnik(long ID_Sotrudnik) {
  4666. return ((SotrudnikRow)(this.Rows.Find(new object[] {
  4667. ID_Sotrudnik})));
  4668. }
  4669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4671. public override global::System.Data.DataTable Clone() {
  4672. SotrudnikDataTable cln = ((SotrudnikDataTable)(base.Clone()));
  4673. cln.InitVars();
  4674. return cln;
  4675. }
  4676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4678. protected override global::System.Data.DataTable CreateInstance() {
  4679. return new SotrudnikDataTable();
  4680. }
  4681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4683. internal void InitVars() {
  4684. this.columnID_Sotrudnik = base.Columns["ID_Sotrudnik"];
  4685. this.columnPhomilia = base.Columns["Phomilia"];
  4686. this.columnName = base.Columns["Name"];
  4687. this.columnID_Uslugi = base.Columns["ID_Uslugi"];
  4688. }
  4689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4690. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4691. private void InitClass() {
  4692. this.columnID_Sotrudnik = new global::System.Data.DataColumn("ID_Sotrudnik", typeof(long), null, global::System.Data.MappingType.Element);
  4693. base.Columns.Add(this.columnID_Sotrudnik);
  4694. this.columnPhomilia = new global::System.Data.DataColumn("Phomilia", typeof(string), null, global::System.Data.MappingType.Element);
  4695. base.Columns.Add(this.columnPhomilia);
  4696. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  4697. base.Columns.Add(this.columnName);
  4698. this.columnID_Uslugi = new global::System.Data.DataColumn("ID_Uslugi", typeof(long), null, global::System.Data.MappingType.Element);
  4699. base.Columns.Add(this.columnID_Uslugi);
  4700. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  4701. this.columnID_Sotrudnik}, true));
  4702. this.columnID_Sotrudnik.AllowDBNull = false;
  4703. this.columnID_Sotrudnik.Unique = true;
  4704. this.columnPhomilia.MaxLength = 50;
  4705. this.columnName.MaxLength = 50;
  4706. }
  4707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4709. public SotrudnikRow NewSotrudnikRow() {
  4710. return ((SotrudnikRow)(this.NewRow()));
  4711. }
  4712. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4713. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4714. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4715. return new SotrudnikRow(builder);
  4716. }
  4717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4719. protected override global::System.Type GetRowType() {
  4720. return typeof(SotrudnikRow);
  4721. }
  4722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4724. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4725. base.OnRowChanged(e);
  4726. if ((this.SotrudnikRowChanged != null)) {
  4727. this.SotrudnikRowChanged(this, new SotrudnikRowChangeEvent(((SotrudnikRow)(e.Row)), e.Action));
  4728. }
  4729. }
  4730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4732. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4733. base.OnRowChanging(e);
  4734. if ((this.SotrudnikRowChanging != null)) {
  4735. this.SotrudnikRowChanging(this, new SotrudnikRowChangeEvent(((SotrudnikRow)(e.Row)), e.Action));
  4736. }
  4737. }
  4738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4740. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4741. base.OnRowDeleted(e);
  4742. if ((this.SotrudnikRowDeleted != null)) {
  4743. this.SotrudnikRowDeleted(this, new SotrudnikRowChangeEvent(((SotrudnikRow)(e.Row)), e.Action));
  4744. }
  4745. }
  4746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4748. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4749. base.OnRowDeleting(e);
  4750. if ((this.SotrudnikRowDeleting != null)) {
  4751. this.SotrudnikRowDeleting(this, new SotrudnikRowChangeEvent(((SotrudnikRow)(e.Row)), e.Action));
  4752. }
  4753. }
  4754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4756. public void RemoveSotrudnikRow(SotrudnikRow row) {
  4757. this.Rows.Remove(row);
  4758. }
  4759. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4760. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4761. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4762. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4763. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4764. BB_AzizovaDataSet ds = new BB_AzizovaDataSet();
  4765. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4766. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4767. any1.MinOccurs = new decimal(0);
  4768. any1.MaxOccurs = decimal.MaxValue;
  4769. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4770. sequence.Items.Add(any1);
  4771. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4772. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4773. any2.MinOccurs = new decimal(1);
  4774. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4775. sequence.Items.Add(any2);
  4776. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4777. attribute1.Name = "namespace";
  4778. attribute1.FixedValue = ds.Namespace;
  4779. type.Attributes.Add(attribute1);
  4780. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4781. attribute2.Name = "tableTypeName";
  4782. attribute2.FixedValue = "SotrudnikDataTable";
  4783. type.Attributes.Add(attribute2);
  4784. type.Particle = sequence;
  4785. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4786. if (xs.Contains(dsSchema.TargetNamespace)) {
  4787. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4788. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4789. try {
  4790. global::System.Xml.Schema.XmlSchema schema = null;
  4791. dsSchema.Write(s1);
  4792. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4793. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4794. s2.SetLength(0);
  4795. schema.Write(s2);
  4796. if ((s1.Length == s2.Length)) {
  4797. s1.Position = 0;
  4798. s2.Position = 0;
  4799. for (; ((s1.Position != s1.Length)
  4800. && (s1.ReadByte() == s2.ReadByte())); ) {
  4801. ;
  4802. }
  4803. if ((s1.Position == s1.Length)) {
  4804. return type;
  4805. }
  4806. }
  4807. }
  4808. }
  4809. finally {
  4810. if ((s1 != null)) {
  4811. s1.Close();
  4812. }
  4813. if ((s2 != null)) {
  4814. s2.Close();
  4815. }
  4816. }
  4817. }
  4818. xs.Add(dsSchema);
  4819. return type;
  4820. }
  4821. }
  4822. /// <summary>
  4823. ///Represents the strongly named DataTable class.
  4824. ///</summary>
  4825. [global::System.Serializable()]
  4826. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  4827. public partial class TagDataTable : global::System.Data.TypedTableBase<TagRow> {
  4828. private global::System.Data.DataColumn columnID;
  4829. private global::System.Data.DataColumn columnTitle;
  4830. private global::System.Data.DataColumn columnColor;
  4831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4832. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4833. public TagDataTable() {
  4834. this.TableName = "Tag";
  4835. this.BeginInit();
  4836. this.InitClass();
  4837. this.EndInit();
  4838. }
  4839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4841. internal TagDataTable(global::System.Data.DataTable table) {
  4842. this.TableName = table.TableName;
  4843. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  4844. this.CaseSensitive = table.CaseSensitive;
  4845. }
  4846. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  4847. this.Locale = table.Locale;
  4848. }
  4849. if ((table.Namespace != table.DataSet.Namespace)) {
  4850. this.Namespace = table.Namespace;
  4851. }
  4852. this.Prefix = table.Prefix;
  4853. this.MinimumCapacity = table.MinimumCapacity;
  4854. }
  4855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4857. protected TagDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  4858. base(info, context) {
  4859. this.InitVars();
  4860. }
  4861. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4862. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4863. public global::System.Data.DataColumn IDColumn {
  4864. get {
  4865. return this.columnID;
  4866. }
  4867. }
  4868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4870. public global::System.Data.DataColumn TitleColumn {
  4871. get {
  4872. return this.columnTitle;
  4873. }
  4874. }
  4875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4877. public global::System.Data.DataColumn ColorColumn {
  4878. get {
  4879. return this.columnColor;
  4880. }
  4881. }
  4882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4884. [global::System.ComponentModel.Browsable(false)]
  4885. public int Count {
  4886. get {
  4887. return this.Rows.Count;
  4888. }
  4889. }
  4890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4892. public TagRow this[int index] {
  4893. get {
  4894. return ((TagRow)(this.Rows[index]));
  4895. }
  4896. }
  4897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4898. public event TagRowChangeEventHandler TagRowChanging;
  4899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4900. public event TagRowChangeEventHandler TagRowChanged;
  4901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4902. public event TagRowChangeEventHandler TagRowDeleting;
  4903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4904. public event TagRowChangeEventHandler TagRowDeleted;
  4905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4907. public void AddTagRow(TagRow row) {
  4908. this.Rows.Add(row);
  4909. }
  4910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4911. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4912. public TagRow AddTagRow(string Title, string Color) {
  4913. TagRow rowTagRow = ((TagRow)(this.NewRow()));
  4914. object[] columnValuesArray = new object[] {
  4915. null,
  4916. Title,
  4917. Color};
  4918. rowTagRow.ItemArray = columnValuesArray;
  4919. this.Rows.Add(rowTagRow);
  4920. return rowTagRow;
  4921. }
  4922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4923. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4924. public TagRow FindByID(int ID) {
  4925. return ((TagRow)(this.Rows.Find(new object[] {
  4926. ID})));
  4927. }
  4928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4930. public override global::System.Data.DataTable Clone() {
  4931. TagDataTable cln = ((TagDataTable)(base.Clone()));
  4932. cln.InitVars();
  4933. return cln;
  4934. }
  4935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4936. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4937. protected override global::System.Data.DataTable CreateInstance() {
  4938. return new TagDataTable();
  4939. }
  4940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4942. internal void InitVars() {
  4943. this.columnID = base.Columns["ID"];
  4944. this.columnTitle = base.Columns["Title"];
  4945. this.columnColor = base.Columns["Color"];
  4946. }
  4947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4949. private void InitClass() {
  4950. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  4951. base.Columns.Add(this.columnID);
  4952. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  4953. base.Columns.Add(this.columnTitle);
  4954. this.columnColor = new global::System.Data.DataColumn("Color", typeof(string), null, global::System.Data.MappingType.Element);
  4955. base.Columns.Add(this.columnColor);
  4956. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  4957. this.columnID}, true));
  4958. this.columnID.AutoIncrement = true;
  4959. this.columnID.AutoIncrementSeed = -1;
  4960. this.columnID.AutoIncrementStep = -1;
  4961. this.columnID.AllowDBNull = false;
  4962. this.columnID.ReadOnly = true;
  4963. this.columnID.Unique = true;
  4964. this.columnTitle.AllowDBNull = false;
  4965. this.columnTitle.MaxLength = 30;
  4966. this.columnColor.AllowDBNull = false;
  4967. this.columnColor.MaxLength = 6;
  4968. }
  4969. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4970. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4971. public TagRow NewTagRow() {
  4972. return ((TagRow)(this.NewRow()));
  4973. }
  4974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4976. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4977. return new TagRow(builder);
  4978. }
  4979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4981. protected override global::System.Type GetRowType() {
  4982. return typeof(TagRow);
  4983. }
  4984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4986. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4987. base.OnRowChanged(e);
  4988. if ((this.TagRowChanged != null)) {
  4989. this.TagRowChanged(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  4990. }
  4991. }
  4992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4994. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4995. base.OnRowChanging(e);
  4996. if ((this.TagRowChanging != null)) {
  4997. this.TagRowChanging(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  4998. }
  4999. }
  5000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5002. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  5003. base.OnRowDeleted(e);
  5004. if ((this.TagRowDeleted != null)) {
  5005. this.TagRowDeleted(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  5006. }
  5007. }
  5008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5010. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  5011. base.OnRowDeleting(e);
  5012. if ((this.TagRowDeleting != null)) {
  5013. this.TagRowDeleting(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  5014. }
  5015. }
  5016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5018. public void RemoveTagRow(TagRow row) {
  5019. this.Rows.Remove(row);
  5020. }
  5021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5023. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  5024. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  5025. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  5026. BB_AzizovaDataSet ds = new BB_AzizovaDataSet();
  5027. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  5028. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  5029. any1.MinOccurs = new decimal(0);
  5030. any1.MaxOccurs = decimal.MaxValue;
  5031. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  5032. sequence.Items.Add(any1);
  5033. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  5034. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  5035. any2.MinOccurs = new decimal(1);
  5036. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  5037. sequence.Items.Add(any2);
  5038. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  5039. attribute1.Name = "namespace";
  5040. attribute1.FixedValue = ds.Namespace;
  5041. type.Attributes.Add(attribute1);
  5042. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  5043. attribute2.Name = "tableTypeName";
  5044. attribute2.FixedValue = "TagDataTable";
  5045. type.Attributes.Add(attribute2);
  5046. type.Particle = sequence;
  5047. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  5048. if (xs.Contains(dsSchema.TargetNamespace)) {
  5049. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  5050. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  5051. try {
  5052. global::System.Xml.Schema.XmlSchema schema = null;
  5053. dsSchema.Write(s1);
  5054. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  5055. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  5056. s2.SetLength(0);
  5057. schema.Write(s2);
  5058. if ((s1.Length == s2.Length)) {
  5059. s1.Position = 0;
  5060. s2.Position = 0;
  5061. for (; ((s1.Position != s1.Length)
  5062. && (s1.ReadByte() == s2.ReadByte())); ) {
  5063. ;
  5064. }
  5065. if ((s1.Position == s1.Length)) {
  5066. return type;
  5067. }
  5068. }
  5069. }
  5070. }
  5071. finally {
  5072. if ((s1 != null)) {
  5073. s1.Close();
  5074. }
  5075. if ((s2 != null)) {
  5076. s2.Close();
  5077. }
  5078. }
  5079. }
  5080. xs.Add(dsSchema);
  5081. return type;
  5082. }
  5083. }
  5084. /// <summary>
  5085. ///Represents the strongly named DataTable class.
  5086. ///</summary>
  5087. [global::System.Serializable()]
  5088. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  5089. public partial class TagOfClientDataTable : global::System.Data.TypedTableBase<TagOfClientRow> {
  5090. private global::System.Data.DataColumn columnClientID;
  5091. private global::System.Data.DataColumn columnTagID;
  5092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5094. public TagOfClientDataTable() {
  5095. this.TableName = "TagOfClient";
  5096. this.BeginInit();
  5097. this.InitClass();
  5098. this.EndInit();
  5099. }
  5100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5101. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5102. internal TagOfClientDataTable(global::System.Data.DataTable table) {
  5103. this.TableName = table.TableName;
  5104. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  5105. this.CaseSensitive = table.CaseSensitive;
  5106. }
  5107. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  5108. this.Locale = table.Locale;
  5109. }
  5110. if ((table.Namespace != table.DataSet.Namespace)) {
  5111. this.Namespace = table.Namespace;
  5112. }
  5113. this.Prefix = table.Prefix;
  5114. this.MinimumCapacity = table.MinimumCapacity;
  5115. }
  5116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5118. protected TagOfClientDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  5119. base(info, context) {
  5120. this.InitVars();
  5121. }
  5122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5123. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5124. public global::System.Data.DataColumn ClientIDColumn {
  5125. get {
  5126. return this.columnClientID;
  5127. }
  5128. }
  5129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5131. public global::System.Data.DataColumn TagIDColumn {
  5132. get {
  5133. return this.columnTagID;
  5134. }
  5135. }
  5136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5138. [global::System.ComponentModel.Browsable(false)]
  5139. public int Count {
  5140. get {
  5141. return this.Rows.Count;
  5142. }
  5143. }
  5144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5146. public TagOfClientRow this[int index] {
  5147. get {
  5148. return ((TagOfClientRow)(this.Rows[index]));
  5149. }
  5150. }
  5151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5152. public event TagOfClientRowChangeEventHandler TagOfClientRowChanging;
  5153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5154. public event TagOfClientRowChangeEventHandler TagOfClientRowChanged;
  5155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5156. public event TagOfClientRowChangeEventHandler TagOfClientRowDeleting;
  5157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5158. public event TagOfClientRowChangeEventHandler TagOfClientRowDeleted;
  5159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5161. public void AddTagOfClientRow(TagOfClientRow row) {
  5162. this.Rows.Add(row);
  5163. }
  5164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5166. public TagOfClientRow AddTagOfClientRow(ClientRow parentClientRowByFK_TagOfClient_Client, TagRow parentTagRowByFK_TagOfClient_Tag) {
  5167. TagOfClientRow rowTagOfClientRow = ((TagOfClientRow)(this.NewRow()));
  5168. object[] columnValuesArray = new object[] {
  5169. null,
  5170. null};
  5171. if ((parentClientRowByFK_TagOfClient_Client != null)) {
  5172. columnValuesArray[0] = parentClientRowByFK_TagOfClient_Client[0];
  5173. }
  5174. if ((parentTagRowByFK_TagOfClient_Tag != null)) {
  5175. columnValuesArray[1] = parentTagRowByFK_TagOfClient_Tag[0];
  5176. }
  5177. rowTagOfClientRow.ItemArray = columnValuesArray;
  5178. this.Rows.Add(rowTagOfClientRow);
  5179. return rowTagOfClientRow;
  5180. }
  5181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5183. public TagOfClientRow FindByClientIDTagID(int ClientID, int TagID) {
  5184. return ((TagOfClientRow)(this.Rows.Find(new object[] {
  5185. ClientID,
  5186. TagID})));
  5187. }
  5188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5190. public override global::System.Data.DataTable Clone() {
  5191. TagOfClientDataTable cln = ((TagOfClientDataTable)(base.Clone()));
  5192. cln.InitVars();
  5193. return cln;
  5194. }
  5195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5197. protected override global::System.Data.DataTable CreateInstance() {
  5198. return new TagOfClientDataTable();
  5199. }
  5200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5201. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5202. internal void InitVars() {
  5203. this.columnClientID = base.Columns["ClientID"];
  5204. this.columnTagID = base.Columns["TagID"];
  5205. }
  5206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5208. private void InitClass() {
  5209. this.columnClientID = new global::System.Data.DataColumn("ClientID", typeof(int), null, global::System.Data.MappingType.Element);
  5210. base.Columns.Add(this.columnClientID);
  5211. this.columnTagID = new global::System.Data.DataColumn("TagID", typeof(int), null, global::System.Data.MappingType.Element);
  5212. base.Columns.Add(this.columnTagID);
  5213. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  5214. this.columnClientID,
  5215. this.columnTagID}, true));
  5216. this.columnClientID.AllowDBNull = false;
  5217. this.columnTagID.AllowDBNull = false;
  5218. }
  5219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5221. public TagOfClientRow NewTagOfClientRow() {
  5222. return ((TagOfClientRow)(this.NewRow()));
  5223. }
  5224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5226. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  5227. return new TagOfClientRow(builder);
  5228. }
  5229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5231. protected override global::System.Type GetRowType() {
  5232. return typeof(TagOfClientRow);
  5233. }
  5234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5236. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  5237. base.OnRowChanged(e);
  5238. if ((this.TagOfClientRowChanged != null)) {
  5239. this.TagOfClientRowChanged(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  5240. }
  5241. }
  5242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5244. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  5245. base.OnRowChanging(e);
  5246. if ((this.TagOfClientRowChanging != null)) {
  5247. this.TagOfClientRowChanging(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  5248. }
  5249. }
  5250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5252. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  5253. base.OnRowDeleted(e);
  5254. if ((this.TagOfClientRowDeleted != null)) {
  5255. this.TagOfClientRowDeleted(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  5256. }
  5257. }
  5258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5260. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  5261. base.OnRowDeleting(e);
  5262. if ((this.TagOfClientRowDeleting != null)) {
  5263. this.TagOfClientRowDeleting(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  5264. }
  5265. }
  5266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5268. public void RemoveTagOfClientRow(TagOfClientRow row) {
  5269. this.Rows.Remove(row);
  5270. }
  5271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5272. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5273. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  5274. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  5275. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  5276. BB_AzizovaDataSet ds = new BB_AzizovaDataSet();
  5277. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  5278. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  5279. any1.MinOccurs = new decimal(0);
  5280. any1.MaxOccurs = decimal.MaxValue;
  5281. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  5282. sequence.Items.Add(any1);
  5283. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  5284. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  5285. any2.MinOccurs = new decimal(1);
  5286. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  5287. sequence.Items.Add(any2);
  5288. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  5289. attribute1.Name = "namespace";
  5290. attribute1.FixedValue = ds.Namespace;
  5291. type.Attributes.Add(attribute1);
  5292. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  5293. attribute2.Name = "tableTypeName";
  5294. attribute2.FixedValue = "TagOfClientDataTable";
  5295. type.Attributes.Add(attribute2);
  5296. type.Particle = sequence;
  5297. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  5298. if (xs.Contains(dsSchema.TargetNamespace)) {
  5299. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  5300. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  5301. try {
  5302. global::System.Xml.Schema.XmlSchema schema = null;
  5303. dsSchema.Write(s1);
  5304. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  5305. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  5306. s2.SetLength(0);
  5307. schema.Write(s2);
  5308. if ((s1.Length == s2.Length)) {
  5309. s1.Position = 0;
  5310. s2.Position = 0;
  5311. for (; ((s1.Position != s1.Length)
  5312. && (s1.ReadByte() == s2.ReadByte())); ) {
  5313. ;
  5314. }
  5315. if ((s1.Position == s1.Length)) {
  5316. return type;
  5317. }
  5318. }
  5319. }
  5320. }
  5321. finally {
  5322. if ((s1 != null)) {
  5323. s1.Close();
  5324. }
  5325. if ((s2 != null)) {
  5326. s2.Close();
  5327. }
  5328. }
  5329. }
  5330. xs.Add(dsSchema);
  5331. return type;
  5332. }
  5333. }
  5334. /// <summary>
  5335. ///Represents the strongly named DataTable class.
  5336. ///</summary>
  5337. [global::System.Serializable()]
  5338. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  5339. public partial class UslugiDataTable : global::System.Data.TypedTableBase<UslugiRow> {
  5340. private global::System.Data.DataColumn columnID_Uslugi;
  5341. private global::System.Data.DataColumn columnНаименование_услуги;
  5342. private global::System.Data.DataColumn columnГлавное_изображение;
  5343. private global::System.Data.DataColumn columnДлительность;
  5344. private global::System.Data.DataColumn columnСтоимость;
  5345. private global::System.Data.DataColumn columnДействующая_скидка;
  5346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5348. public UslugiDataTable() {
  5349. this.TableName = "Uslugi";
  5350. this.BeginInit();
  5351. this.InitClass();
  5352. this.EndInit();
  5353. }
  5354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5355. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5356. internal UslugiDataTable(global::System.Data.DataTable table) {
  5357. this.TableName = table.TableName;
  5358. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  5359. this.CaseSensitive = table.CaseSensitive;
  5360. }
  5361. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  5362. this.Locale = table.Locale;
  5363. }
  5364. if ((table.Namespace != table.DataSet.Namespace)) {
  5365. this.Namespace = table.Namespace;
  5366. }
  5367. this.Prefix = table.Prefix;
  5368. this.MinimumCapacity = table.MinimumCapacity;
  5369. }
  5370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5372. protected UslugiDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  5373. base(info, context) {
  5374. this.InitVars();
  5375. }
  5376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5378. public global::System.Data.DataColumn ID_UslugiColumn {
  5379. get {
  5380. return this.columnID_Uslugi;
  5381. }
  5382. }
  5383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5385. public global::System.Data.DataColumn Наименование_услугиColumn {
  5386. get {
  5387. return this.columnНаименование_услуги;
  5388. }
  5389. }
  5390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5392. public global::System.Data.DataColumn Главное_изображениеColumn {
  5393. get {
  5394. return this.columnГлавное_изображение;
  5395. }
  5396. }
  5397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5399. public global::System.Data.DataColumn ДлительностьColumn {
  5400. get {
  5401. return this.columnДлительность;
  5402. }
  5403. }
  5404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5406. public global::System.Data.DataColumn СтоимостьColumn {
  5407. get {
  5408. return this.columnСтоимость;
  5409. }
  5410. }
  5411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5413. public global::System.Data.DataColumn Действующая_скидкаColumn {
  5414. get {
  5415. return this.columnДействующая_скидка;
  5416. }
  5417. }
  5418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5420. [global::System.ComponentModel.Browsable(false)]
  5421. public int Count {
  5422. get {
  5423. return this.Rows.Count;
  5424. }
  5425. }
  5426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5428. public UslugiRow this[int index] {
  5429. get {
  5430. return ((UslugiRow)(this.Rows[index]));
  5431. }
  5432. }
  5433. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5434. public event UslugiRowChangeEventHandler UslugiRowChanging;
  5435. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5436. public event UslugiRowChangeEventHandler UslugiRowChanged;
  5437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5438. public event UslugiRowChangeEventHandler UslugiRowDeleting;
  5439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5440. public event UslugiRowChangeEventHandler UslugiRowDeleted;
  5441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5443. public void AddUslugiRow(UslugiRow row) {
  5444. this.Rows.Add(row);
  5445. }
  5446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5448. public UslugiRow AddUslugiRow(long ID_Uslugi, string Наименование_услуги, string Главное_изображение, string Длительность, string Стоимость, string Действующая_скидка) {
  5449. UslugiRow rowUslugiRow = ((UslugiRow)(this.NewRow()));
  5450. object[] columnValuesArray = new object[] {
  5451. ID_Uslugi,
  5452. Наименование_услуги,
  5453. Главное_изображение,
  5454. Длительность,
  5455. Стоимость,
  5456. Действующая_скидка};
  5457. rowUslugiRow.ItemArray = columnValuesArray;
  5458. this.Rows.Add(rowUslugiRow);
  5459. return rowUslugiRow;
  5460. }
  5461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5463. public UslugiRow FindByID_Uslugi(long ID_Uslugi) {
  5464. return ((UslugiRow)(this.Rows.Find(new object[] {
  5465. ID_Uslugi})));
  5466. }
  5467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5469. public override global::System.Data.DataTable Clone() {
  5470. UslugiDataTable cln = ((UslugiDataTable)(base.Clone()));
  5471. cln.InitVars();
  5472. return cln;
  5473. }
  5474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5476. protected override global::System.Data.DataTable CreateInstance() {
  5477. return new UslugiDataTable();
  5478. }
  5479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5480. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5481. internal void InitVars() {
  5482. this.columnID_Uslugi = base.Columns["ID_Uslugi"];
  5483. this.columnНаименование_услуги = base.Columns["Наименование_услуги"];
  5484. this.columnГлавное_изображение = base.Columns["Главное_изображение"];
  5485. this.columnДлительность = base.Columns["Длительность"];
  5486. this.columnСтоимость = base.Columns["Стоимость"];
  5487. this.columnДействующая_скидка = base.Columns["Действующая_скидка"];
  5488. }
  5489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5491. private void InitClass() {
  5492. this.columnID_Uslugi = new global::System.Data.DataColumn("ID_Uslugi", typeof(long), null, global::System.Data.MappingType.Element);
  5493. base.Columns.Add(this.columnID_Uslugi);
  5494. this.columnНаименование_услуги = new global::System.Data.DataColumn("Наименование_услуги", typeof(string), null, global::System.Data.MappingType.Element);
  5495. base.Columns.Add(this.columnНаименование_услуги);
  5496. this.columnГлавное_изображение = new global::System.Data.DataColumn("Главное_изображение", typeof(string), null, global::System.Data.MappingType.Element);
  5497. base.Columns.Add(this.columnГлавное_изображение);
  5498. this.columnДлительность = new global::System.Data.DataColumn("Длительность", typeof(string), null, global::System.Data.MappingType.Element);
  5499. base.Columns.Add(this.columnДлительность);
  5500. this.columnСтоимость = new global::System.Data.DataColumn("Стоимость", typeof(string), null, global::System.Data.MappingType.Element);
  5501. base.Columns.Add(this.columnСтоимость);
  5502. this.columnДействующая_скидка = new global::System.Data.DataColumn("Действующая_скидка", typeof(string), null, global::System.Data.MappingType.Element);
  5503. base.Columns.Add(this.columnДействующая_скидка);
  5504. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  5505. this.columnID_Uslugi}, true));
  5506. this.columnID_Uslugi.AllowDBNull = false;
  5507. this.columnID_Uslugi.Unique = true;
  5508. this.columnНаименование_услуги.MaxLength = 50;
  5509. this.columnГлавное_изображение.MaxLength = 100;
  5510. this.columnДлительность.MaxLength = 50;
  5511. this.columnСтоимость.MaxLength = 50;
  5512. this.columnДействующая_скидка.MaxLength = 50;
  5513. }
  5514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5516. public UslugiRow NewUslugiRow() {
  5517. return ((UslugiRow)(this.NewRow()));
  5518. }
  5519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5521. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  5522. return new UslugiRow(builder);
  5523. }
  5524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5526. protected override global::System.Type GetRowType() {
  5527. return typeof(UslugiRow);
  5528. }
  5529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5531. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  5532. base.OnRowChanged(e);
  5533. if ((this.UslugiRowChanged != null)) {
  5534. this.UslugiRowChanged(this, new UslugiRowChangeEvent(((UslugiRow)(e.Row)), e.Action));
  5535. }
  5536. }
  5537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5539. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  5540. base.OnRowChanging(e);
  5541. if ((this.UslugiRowChanging != null)) {
  5542. this.UslugiRowChanging(this, new UslugiRowChangeEvent(((UslugiRow)(e.Row)), e.Action));
  5543. }
  5544. }
  5545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5547. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  5548. base.OnRowDeleted(e);
  5549. if ((this.UslugiRowDeleted != null)) {
  5550. this.UslugiRowDeleted(this, new UslugiRowChangeEvent(((UslugiRow)(e.Row)), e.Action));
  5551. }
  5552. }
  5553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5555. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  5556. base.OnRowDeleting(e);
  5557. if ((this.UslugiRowDeleting != null)) {
  5558. this.UslugiRowDeleting(this, new UslugiRowChangeEvent(((UslugiRow)(e.Row)), e.Action));
  5559. }
  5560. }
  5561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5563. public void RemoveUslugiRow(UslugiRow row) {
  5564. this.Rows.Remove(row);
  5565. }
  5566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5568. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  5569. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  5570. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  5571. BB_AzizovaDataSet ds = new BB_AzizovaDataSet();
  5572. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  5573. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  5574. any1.MinOccurs = new decimal(0);
  5575. any1.MaxOccurs = decimal.MaxValue;
  5576. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  5577. sequence.Items.Add(any1);
  5578. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  5579. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  5580. any2.MinOccurs = new decimal(1);
  5581. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  5582. sequence.Items.Add(any2);
  5583. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  5584. attribute1.Name = "namespace";
  5585. attribute1.FixedValue = ds.Namespace;
  5586. type.Attributes.Add(attribute1);
  5587. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  5588. attribute2.Name = "tableTypeName";
  5589. attribute2.FixedValue = "UslugiDataTable";
  5590. type.Attributes.Add(attribute2);
  5591. type.Particle = sequence;
  5592. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  5593. if (xs.Contains(dsSchema.TargetNamespace)) {
  5594. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  5595. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  5596. try {
  5597. global::System.Xml.Schema.XmlSchema schema = null;
  5598. dsSchema.Write(s1);
  5599. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  5600. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  5601. s2.SetLength(0);
  5602. schema.Write(s2);
  5603. if ((s1.Length == s2.Length)) {
  5604. s1.Position = 0;
  5605. s2.Position = 0;
  5606. for (; ((s1.Position != s1.Length)
  5607. && (s1.ReadByte() == s2.ReadByte())); ) {
  5608. ;
  5609. }
  5610. if ((s1.Position == s1.Length)) {
  5611. return type;
  5612. }
  5613. }
  5614. }
  5615. }
  5616. finally {
  5617. if ((s1 != null)) {
  5618. s1.Close();
  5619. }
  5620. if ((s2 != null)) {
  5621. s2.Close();
  5622. }
  5623. }
  5624. }
  5625. xs.Add(dsSchema);
  5626. return type;
  5627. }
  5628. }
  5629. /// <summary>
  5630. ///Represents the strongly named DataTable class.
  5631. ///</summary>
  5632. [global::System.Serializable()]
  5633. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  5634. public partial class Uslugi_i_KlientDataTable : global::System.Data.TypedTableBase<Uslugi_i_KlientRow> {
  5635. private global::System.Data.DataColumn columnID;
  5636. private global::System.Data.DataColumn columnУслуга;
  5637. private global::System.Data.DataColumn columnНачало_оказания_услуги;
  5638. private global::System.Data.DataColumn columnКлиент;
  5639. private global::System.Data.DataColumn columnID_Client;
  5640. private global::System.Data.DataColumn columnID_Uslugi;
  5641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5642. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5643. public Uslugi_i_KlientDataTable() {
  5644. this.TableName = "Uslugi_i_Klient";
  5645. this.BeginInit();
  5646. this.InitClass();
  5647. this.EndInit();
  5648. }
  5649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5651. internal Uslugi_i_KlientDataTable(global::System.Data.DataTable table) {
  5652. this.TableName = table.TableName;
  5653. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  5654. this.CaseSensitive = table.CaseSensitive;
  5655. }
  5656. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  5657. this.Locale = table.Locale;
  5658. }
  5659. if ((table.Namespace != table.DataSet.Namespace)) {
  5660. this.Namespace = table.Namespace;
  5661. }
  5662. this.Prefix = table.Prefix;
  5663. this.MinimumCapacity = table.MinimumCapacity;
  5664. }
  5665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5666. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5667. protected Uslugi_i_KlientDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  5668. base(info, context) {
  5669. this.InitVars();
  5670. }
  5671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5673. public global::System.Data.DataColumn IDColumn {
  5674. get {
  5675. return this.columnID;
  5676. }
  5677. }
  5678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5680. public global::System.Data.DataColumn УслугаColumn {
  5681. get {
  5682. return this.columnУслуга;
  5683. }
  5684. }
  5685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5687. public global::System.Data.DataColumn Начало_оказания_услугиColumn {
  5688. get {
  5689. return this.columnНачало_оказания_услуги;
  5690. }
  5691. }
  5692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5694. public global::System.Data.DataColumn КлиентColumn {
  5695. get {
  5696. return this.columnКлиент;
  5697. }
  5698. }
  5699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5701. public global::System.Data.DataColumn ID_ClientColumn {
  5702. get {
  5703. return this.columnID_Client;
  5704. }
  5705. }
  5706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5708. public global::System.Data.DataColumn ID_UslugiColumn {
  5709. get {
  5710. return this.columnID_Uslugi;
  5711. }
  5712. }
  5713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5715. [global::System.ComponentModel.Browsable(false)]
  5716. public int Count {
  5717. get {
  5718. return this.Rows.Count;
  5719. }
  5720. }
  5721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5723. public Uslugi_i_KlientRow this[int index] {
  5724. get {
  5725. return ((Uslugi_i_KlientRow)(this.Rows[index]));
  5726. }
  5727. }
  5728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5729. public event Uslugi_i_KlientRowChangeEventHandler Uslugi_i_KlientRowChanging;
  5730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5731. public event Uslugi_i_KlientRowChangeEventHandler Uslugi_i_KlientRowChanged;
  5732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5733. public event Uslugi_i_KlientRowChangeEventHandler Uslugi_i_KlientRowDeleting;
  5734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5735. public event Uslugi_i_KlientRowChangeEventHandler Uslugi_i_KlientRowDeleted;
  5736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5738. public void AddUslugi_i_KlientRow(Uslugi_i_KlientRow row) {
  5739. this.Rows.Add(row);
  5740. }
  5741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5742. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5743. public Uslugi_i_KlientRow AddUslugi_i_KlientRow(long ID, string Услуга, System.DateTime Начало_оказания_услуги, string Клиент, ClientsRow parentClientsRowByFK_Uslugi_i_Klient_Clients, UslugiRow parentUslugiRowByFK_Uslugi_i_Klient_Uslsgi) {
  5744. Uslugi_i_KlientRow rowUslugi_i_KlientRow = ((Uslugi_i_KlientRow)(this.NewRow()));
  5745. object[] columnValuesArray = new object[] {
  5746. ID,
  5747. Услуга,
  5748. Начало_оказания_услуги,
  5749. Клиент,
  5750. null,
  5751. null};
  5752. if ((parentClientsRowByFK_Uslugi_i_Klient_Clients != null)) {
  5753. columnValuesArray[4] = parentClientsRowByFK_Uslugi_i_Klient_Clients[0];
  5754. }
  5755. if ((parentUslugiRowByFK_Uslugi_i_Klient_Uslsgi != null)) {
  5756. columnValuesArray[5] = parentUslugiRowByFK_Uslugi_i_Klient_Uslsgi[0];
  5757. }
  5758. rowUslugi_i_KlientRow.ItemArray = columnValuesArray;
  5759. this.Rows.Add(rowUslugi_i_KlientRow);
  5760. return rowUslugi_i_KlientRow;
  5761. }
  5762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5764. public Uslugi_i_KlientRow FindByID(long ID) {
  5765. return ((Uslugi_i_KlientRow)(this.Rows.Find(new object[] {
  5766. ID})));
  5767. }
  5768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5770. public override global::System.Data.DataTable Clone() {
  5771. Uslugi_i_KlientDataTable cln = ((Uslugi_i_KlientDataTable)(base.Clone()));
  5772. cln.InitVars();
  5773. return cln;
  5774. }
  5775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5776. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5777. protected override global::System.Data.DataTable CreateInstance() {
  5778. return new Uslugi_i_KlientDataTable();
  5779. }
  5780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5782. internal void InitVars() {
  5783. this.columnID = base.Columns["ID"];
  5784. this.columnУслуга = base.Columns["Услуга"];
  5785. this.columnНачало_оказания_услуги = base.Columns["Начало_оказания_услуги"];
  5786. this.columnКлиент = base.Columns["Клиент"];
  5787. this.columnID_Client = base.Columns["ID_Client"];
  5788. this.columnID_Uslugi = base.Columns["ID_Uslugi"];
  5789. }
  5790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5792. private void InitClass() {
  5793. this.columnID = new global::System.Data.DataColumn("ID", typeof(long), null, global::System.Data.MappingType.Element);
  5794. base.Columns.Add(this.columnID);
  5795. this.columnУслуга = new global::System.Data.DataColumn("Услуга", typeof(string), null, global::System.Data.MappingType.Element);
  5796. base.Columns.Add(this.columnУслуга);
  5797. this.columnНачало_оказания_услуги = new global::System.Data.DataColumn("Начало_оказания_услуги", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  5798. base.Columns.Add(this.columnНачало_оказания_услуги);
  5799. this.columnКлиент = new global::System.Data.DataColumn("Клиент", typeof(string), null, global::System.Data.MappingType.Element);
  5800. base.Columns.Add(this.columnКлиент);
  5801. this.columnID_Client = new global::System.Data.DataColumn("ID_Client", typeof(long), null, global::System.Data.MappingType.Element);
  5802. base.Columns.Add(this.columnID_Client);
  5803. this.columnID_Uslugi = new global::System.Data.DataColumn("ID_Uslugi", typeof(long), null, global::System.Data.MappingType.Element);
  5804. base.Columns.Add(this.columnID_Uslugi);
  5805. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  5806. this.columnID}, true));
  5807. this.columnID.AllowDBNull = false;
  5808. this.columnID.Unique = true;
  5809. this.columnУслуга.MaxLength = 2147483647;
  5810. this.columnКлиент.MaxLength = 50;
  5811. }
  5812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5814. public Uslugi_i_KlientRow NewUslugi_i_KlientRow() {
  5815. return ((Uslugi_i_KlientRow)(this.NewRow()));
  5816. }
  5817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5818. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5819. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  5820. return new Uslugi_i_KlientRow(builder);
  5821. }
  5822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5824. protected override global::System.Type GetRowType() {
  5825. return typeof(Uslugi_i_KlientRow);
  5826. }
  5827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5829. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  5830. base.OnRowChanged(e);
  5831. if ((this.Uslugi_i_KlientRowChanged != null)) {
  5832. this.Uslugi_i_KlientRowChanged(this, new Uslugi_i_KlientRowChangeEvent(((Uslugi_i_KlientRow)(e.Row)), e.Action));
  5833. }
  5834. }
  5835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5837. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  5838. base.OnRowChanging(e);
  5839. if ((this.Uslugi_i_KlientRowChanging != null)) {
  5840. this.Uslugi_i_KlientRowChanging(this, new Uslugi_i_KlientRowChangeEvent(((Uslugi_i_KlientRow)(e.Row)), e.Action));
  5841. }
  5842. }
  5843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5845. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  5846. base.OnRowDeleted(e);
  5847. if ((this.Uslugi_i_KlientRowDeleted != null)) {
  5848. this.Uslugi_i_KlientRowDeleted(this, new Uslugi_i_KlientRowChangeEvent(((Uslugi_i_KlientRow)(e.Row)), e.Action));
  5849. }
  5850. }
  5851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5853. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  5854. base.OnRowDeleting(e);
  5855. if ((this.Uslugi_i_KlientRowDeleting != null)) {
  5856. this.Uslugi_i_KlientRowDeleting(this, new Uslugi_i_KlientRowChangeEvent(((Uslugi_i_KlientRow)(e.Row)), e.Action));
  5857. }
  5858. }
  5859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5861. public void RemoveUslugi_i_KlientRow(Uslugi_i_KlientRow row) {
  5862. this.Rows.Remove(row);
  5863. }
  5864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5866. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  5867. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  5868. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  5869. BB_AzizovaDataSet ds = new BB_AzizovaDataSet();
  5870. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  5871. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  5872. any1.MinOccurs = new decimal(0);
  5873. any1.MaxOccurs = decimal.MaxValue;
  5874. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  5875. sequence.Items.Add(any1);
  5876. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  5877. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  5878. any2.MinOccurs = new decimal(1);
  5879. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  5880. sequence.Items.Add(any2);
  5881. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  5882. attribute1.Name = "namespace";
  5883. attribute1.FixedValue = ds.Namespace;
  5884. type.Attributes.Add(attribute1);
  5885. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  5886. attribute2.Name = "tableTypeName";
  5887. attribute2.FixedValue = "Uslugi_i_KlientDataTable";
  5888. type.Attributes.Add(attribute2);
  5889. type.Particle = sequence;
  5890. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  5891. if (xs.Contains(dsSchema.TargetNamespace)) {
  5892. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  5893. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  5894. try {
  5895. global::System.Xml.Schema.XmlSchema schema = null;
  5896. dsSchema.Write(s1);
  5897. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  5898. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  5899. s2.SetLength(0);
  5900. schema.Write(s2);
  5901. if ((s1.Length == s2.Length)) {
  5902. s1.Position = 0;
  5903. s2.Position = 0;
  5904. for (; ((s1.Position != s1.Length)
  5905. && (s1.ReadByte() == s2.ReadByte())); ) {
  5906. ;
  5907. }
  5908. if ((s1.Position == s1.Length)) {
  5909. return type;
  5910. }
  5911. }
  5912. }
  5913. }
  5914. finally {
  5915. if ((s1 != null)) {
  5916. s1.Close();
  5917. }
  5918. if ((s2 != null)) {
  5919. s2.Close();
  5920. }
  5921. }
  5922. }
  5923. xs.Add(dsSchema);
  5924. return type;
  5925. }
  5926. }
  5927. /// <summary>
  5928. ///Represents strongly named DataRow class.
  5929. ///</summary>
  5930. public partial class AdministratorRow : global::System.Data.DataRow {
  5931. private AdministratorDataTable tableAdministrator;
  5932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5934. internal AdministratorRow(global::System.Data.DataRowBuilder rb) :
  5935. base(rb) {
  5936. this.tableAdministrator = ((AdministratorDataTable)(this.Table));
  5937. }
  5938. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5939. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5940. public string Login {
  5941. get {
  5942. try {
  5943. return ((string)(this[this.tableAdministrator.LoginColumn]));
  5944. }
  5945. catch (global::System.InvalidCastException e) {
  5946. throw new global::System.Data.StrongTypingException("Значение для столбца \'Login\' в таблице \'Administrator\' равно DBNull.", e);
  5947. }
  5948. }
  5949. set {
  5950. this[this.tableAdministrator.LoginColumn] = value;
  5951. }
  5952. }
  5953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5955. public string Password {
  5956. get {
  5957. try {
  5958. return ((string)(this[this.tableAdministrator.PasswordColumn]));
  5959. }
  5960. catch (global::System.InvalidCastException e) {
  5961. throw new global::System.Data.StrongTypingException("Значение для столбца \'Password\' в таблице \'Administrator\' равно DBNull.", e);
  5962. }
  5963. }
  5964. set {
  5965. this[this.tableAdministrator.PasswordColumn] = value;
  5966. }
  5967. }
  5968. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5969. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5970. public bool IsLoginNull() {
  5971. return this.IsNull(this.tableAdministrator.LoginColumn);
  5972. }
  5973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5975. public void SetLoginNull() {
  5976. this[this.tableAdministrator.LoginColumn] = global::System.Convert.DBNull;
  5977. }
  5978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5980. public bool IsPasswordNull() {
  5981. return this.IsNull(this.tableAdministrator.PasswordColumn);
  5982. }
  5983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5984. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5985. public void SetPasswordNull() {
  5986. this[this.tableAdministrator.PasswordColumn] = global::System.Convert.DBNull;
  5987. }
  5988. }
  5989. /// <summary>
  5990. ///Represents strongly named DataRow class.
  5991. ///</summary>
  5992. public partial class AttachedProductRow : global::System.Data.DataRow {
  5993. private AttachedProductDataTable tableAttachedProduct;
  5994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5996. internal AttachedProductRow(global::System.Data.DataRowBuilder rb) :
  5997. base(rb) {
  5998. this.tableAttachedProduct = ((AttachedProductDataTable)(this.Table));
  5999. }
  6000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6002. public int MainProductID {
  6003. get {
  6004. return ((int)(this[this.tableAttachedProduct.MainProductIDColumn]));
  6005. }
  6006. set {
  6007. this[this.tableAttachedProduct.MainProductIDColumn] = value;
  6008. }
  6009. }
  6010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6011. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6012. public int AttachedProductID {
  6013. get {
  6014. return ((int)(this[this.tableAttachedProduct.AttachedProductIDColumn]));
  6015. }
  6016. set {
  6017. this[this.tableAttachedProduct.AttachedProductIDColumn] = value;
  6018. }
  6019. }
  6020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6022. public ProductRow ProductRowByFK_AttachedProduct_Product {
  6023. get {
  6024. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_AttachedProduct_Product"])));
  6025. }
  6026. set {
  6027. this.SetParentRow(value, this.Table.ParentRelations["FK_AttachedProduct_Product"]);
  6028. }
  6029. }
  6030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6032. public ProductRow ProductRowByFK_AttachedProduct_Product1 {
  6033. get {
  6034. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_AttachedProduct_Product1"])));
  6035. }
  6036. set {
  6037. this.SetParentRow(value, this.Table.ParentRelations["FK_AttachedProduct_Product1"]);
  6038. }
  6039. }
  6040. }
  6041. /// <summary>
  6042. ///Represents strongly named DataRow class.
  6043. ///</summary>
  6044. public partial class ClientRow : global::System.Data.DataRow {
  6045. private ClientDataTable tableClient;
  6046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6048. internal ClientRow(global::System.Data.DataRowBuilder rb) :
  6049. base(rb) {
  6050. this.tableClient = ((ClientDataTable)(this.Table));
  6051. }
  6052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6054. public int ID {
  6055. get {
  6056. return ((int)(this[this.tableClient.IDColumn]));
  6057. }
  6058. set {
  6059. this[this.tableClient.IDColumn] = value;
  6060. }
  6061. }
  6062. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6063. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6064. public string FirstName {
  6065. get {
  6066. return ((string)(this[this.tableClient.FirstNameColumn]));
  6067. }
  6068. set {
  6069. this[this.tableClient.FirstNameColumn] = value;
  6070. }
  6071. }
  6072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6074. public string LastName {
  6075. get {
  6076. return ((string)(this[this.tableClient.LastNameColumn]));
  6077. }
  6078. set {
  6079. this[this.tableClient.LastNameColumn] = value;
  6080. }
  6081. }
  6082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6084. public string Patronymic {
  6085. get {
  6086. try {
  6087. return ((string)(this[this.tableClient.PatronymicColumn]));
  6088. }
  6089. catch (global::System.InvalidCastException e) {
  6090. throw new global::System.Data.StrongTypingException("Значение для столбца \'Patronymic\' в таблице \'Client\' равно DBNull.", e);
  6091. }
  6092. }
  6093. set {
  6094. this[this.tableClient.PatronymicColumn] = value;
  6095. }
  6096. }
  6097. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6098. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6099. public System.DateTime Birthday {
  6100. get {
  6101. try {
  6102. return ((global::System.DateTime)(this[this.tableClient.BirthdayColumn]));
  6103. }
  6104. catch (global::System.InvalidCastException e) {
  6105. throw new global::System.Data.StrongTypingException("Значение для столбца \'Birthday\' в таблице \'Client\' равно DBNull.", e);
  6106. }
  6107. }
  6108. set {
  6109. this[this.tableClient.BirthdayColumn] = value;
  6110. }
  6111. }
  6112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6113. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6114. public System.DateTime RegistrationDate {
  6115. get {
  6116. return ((global::System.DateTime)(this[this.tableClient.RegistrationDateColumn]));
  6117. }
  6118. set {
  6119. this[this.tableClient.RegistrationDateColumn] = value;
  6120. }
  6121. }
  6122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6123. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6124. public string Email {
  6125. get {
  6126. try {
  6127. return ((string)(this[this.tableClient.EmailColumn]));
  6128. }
  6129. catch (global::System.InvalidCastException e) {
  6130. throw new global::System.Data.StrongTypingException("Значение для столбца \'Email\' в таблице \'Client\' равно DBNull.", e);
  6131. }
  6132. }
  6133. set {
  6134. this[this.tableClient.EmailColumn] = value;
  6135. }
  6136. }
  6137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6138. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6139. public string Phone {
  6140. get {
  6141. return ((string)(this[this.tableClient.PhoneColumn]));
  6142. }
  6143. set {
  6144. this[this.tableClient.PhoneColumn] = value;
  6145. }
  6146. }
  6147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6149. public string GenderCode {
  6150. get {
  6151. return ((string)(this[this.tableClient.GenderCodeColumn]));
  6152. }
  6153. set {
  6154. this[this.tableClient.GenderCodeColumn] = value;
  6155. }
  6156. }
  6157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6159. public string PhotoPath {
  6160. get {
  6161. try {
  6162. return ((string)(this[this.tableClient.PhotoPathColumn]));
  6163. }
  6164. catch (global::System.InvalidCastException e) {
  6165. throw new global::System.Data.StrongTypingException("Значение для столбца \'PhotoPath\' в таблице \'Client\' равно DBNull.", e);
  6166. }
  6167. }
  6168. set {
  6169. this[this.tableClient.PhotoPathColumn] = value;
  6170. }
  6171. }
  6172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6174. public GenderRow GenderRow {
  6175. get {
  6176. return ((GenderRow)(this.GetParentRow(this.Table.ParentRelations["FK_Client_Gender"])));
  6177. }
  6178. set {
  6179. this.SetParentRow(value, this.Table.ParentRelations["FK_Client_Gender"]);
  6180. }
  6181. }
  6182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6184. public bool IsPatronymicNull() {
  6185. return this.IsNull(this.tableClient.PatronymicColumn);
  6186. }
  6187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6189. public void SetPatronymicNull() {
  6190. this[this.tableClient.PatronymicColumn] = global::System.Convert.DBNull;
  6191. }
  6192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6194. public bool IsBirthdayNull() {
  6195. return this.IsNull(this.tableClient.BirthdayColumn);
  6196. }
  6197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6199. public void SetBirthdayNull() {
  6200. this[this.tableClient.BirthdayColumn] = global::System.Convert.DBNull;
  6201. }
  6202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6204. public bool IsEmailNull() {
  6205. return this.IsNull(this.tableClient.EmailColumn);
  6206. }
  6207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6209. public void SetEmailNull() {
  6210. this[this.tableClient.EmailColumn] = global::System.Convert.DBNull;
  6211. }
  6212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6213. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6214. public bool IsPhotoPathNull() {
  6215. return this.IsNull(this.tableClient.PhotoPathColumn);
  6216. }
  6217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6219. public void SetPhotoPathNull() {
  6220. this[this.tableClient.PhotoPathColumn] = global::System.Convert.DBNull;
  6221. }
  6222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6224. public ClientServiceRow[] GetClientServiceRows() {
  6225. if ((this.Table.ChildRelations["FK_ClientService_Client"] == null)) {
  6226. return new ClientServiceRow[0];
  6227. }
  6228. else {
  6229. return ((ClientServiceRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ClientService_Client"])));
  6230. }
  6231. }
  6232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6234. public TagOfClientRow[] GetTagOfClientRows() {
  6235. if ((this.Table.ChildRelations["FK_TagOfClient_Client"] == null)) {
  6236. return new TagOfClientRow[0];
  6237. }
  6238. else {
  6239. return ((TagOfClientRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TagOfClient_Client"])));
  6240. }
  6241. }
  6242. }
  6243. /// <summary>
  6244. ///Represents strongly named DataRow class.
  6245. ///</summary>
  6246. public partial class ClientsRow : global::System.Data.DataRow {
  6247. private ClientsDataTable tableClients;
  6248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6250. internal ClientsRow(global::System.Data.DataRowBuilder rb) :
  6251. base(rb) {
  6252. this.tableClients = ((ClientsDataTable)(this.Table));
  6253. }
  6254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6255. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6256. public long ID_Client {
  6257. get {
  6258. return ((long)(this[this.tableClients.ID_ClientColumn]));
  6259. }
  6260. set {
  6261. this[this.tableClients.ID_ClientColumn] = value;
  6262. }
  6263. }
  6264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6265. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6266. public string Phomilia {
  6267. get {
  6268. try {
  6269. return ((string)(this[this.tableClients.PhomiliaColumn]));
  6270. }
  6271. catch (global::System.InvalidCastException e) {
  6272. throw new global::System.Data.StrongTypingException("Значение для столбца \'Phomilia\' в таблице \'Clients\' равно DBNull.", e);
  6273. }
  6274. }
  6275. set {
  6276. this[this.tableClients.PhomiliaColumn] = value;
  6277. }
  6278. }
  6279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6281. public string Name {
  6282. get {
  6283. try {
  6284. return ((string)(this[this.tableClients.NameColumn]));
  6285. }
  6286. catch (global::System.InvalidCastException e) {
  6287. throw new global::System.Data.StrongTypingException("Значение для столбца \'Name\' в таблице \'Clients\' равно DBNull.", e);
  6288. }
  6289. }
  6290. set {
  6291. this[this.tableClients.NameColumn] = value;
  6292. }
  6293. }
  6294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6296. public string Otchestvo {
  6297. get {
  6298. try {
  6299. return ((string)(this[this.tableClients.OtchestvoColumn]));
  6300. }
  6301. catch (global::System.InvalidCastException e) {
  6302. throw new global::System.Data.StrongTypingException("Значение для столбца \'Otchestvo\' в таблице \'Clients\' равно DBNull.", e);
  6303. }
  6304. }
  6305. set {
  6306. this[this.tableClients.OtchestvoColumn] = value;
  6307. }
  6308. }
  6309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6311. public string Pol {
  6312. get {
  6313. try {
  6314. return ((string)(this[this.tableClients.PolColumn]));
  6315. }
  6316. catch (global::System.InvalidCastException e) {
  6317. throw new global::System.Data.StrongTypingException("Значение для столбца \'Pol\' в таблице \'Clients\' равно DBNull.", e);
  6318. }
  6319. }
  6320. set {
  6321. this[this.tableClients.PolColumn] = value;
  6322. }
  6323. }
  6324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6326. public string Phone {
  6327. get {
  6328. try {
  6329. return ((string)(this[this.tableClients.PhoneColumn]));
  6330. }
  6331. catch (global::System.InvalidCastException e) {
  6332. throw new global::System.Data.StrongTypingException("Значение для столбца \'Phone\' в таблице \'Clients\' равно DBNull.", e);
  6333. }
  6334. }
  6335. set {
  6336. this[this.tableClients.PhoneColumn] = value;
  6337. }
  6338. }
  6339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6341. public System.DateTime Birthday {
  6342. get {
  6343. try {
  6344. return ((global::System.DateTime)(this[this.tableClients.BirthdayColumn]));
  6345. }
  6346. catch (global::System.InvalidCastException e) {
  6347. throw new global::System.Data.StrongTypingException("Значение для столбца \'Birthday\' в таблице \'Clients\' равно DBNull.", e);
  6348. }
  6349. }
  6350. set {
  6351. this[this.tableClients.BirthdayColumn] = value;
  6352. }
  6353. }
  6354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6355. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6356. public string Email {
  6357. get {
  6358. try {
  6359. return ((string)(this[this.tableClients.EmailColumn]));
  6360. }
  6361. catch (global::System.InvalidCastException e) {
  6362. throw new global::System.Data.StrongTypingException("Значение для столбца \'Email\' в таблице \'Clients\' равно DBNull.", e);
  6363. }
  6364. }
  6365. set {
  6366. this[this.tableClients.EmailColumn] = value;
  6367. }
  6368. }
  6369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6371. public System.DateTime Data_Registra {
  6372. get {
  6373. try {
  6374. return ((global::System.DateTime)(this[this.tableClients.Data_RegistraColumn]));
  6375. }
  6376. catch (global::System.InvalidCastException e) {
  6377. throw new global::System.Data.StrongTypingException("Значение для столбца \'Data_Registra\' в таблице \'Clients\' равно DBNull.", e);
  6378. }
  6379. }
  6380. set {
  6381. this[this.tableClients.Data_RegistraColumn] = value;
  6382. }
  6383. }
  6384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6386. public bool IsPhomiliaNull() {
  6387. return this.IsNull(this.tableClients.PhomiliaColumn);
  6388. }
  6389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6391. public void SetPhomiliaNull() {
  6392. this[this.tableClients.PhomiliaColumn] = global::System.Convert.DBNull;
  6393. }
  6394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6396. public bool IsNameNull() {
  6397. return this.IsNull(this.tableClients.NameColumn);
  6398. }
  6399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6401. public void SetNameNull() {
  6402. this[this.tableClients.NameColumn] = global::System.Convert.DBNull;
  6403. }
  6404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6406. public bool IsOtchestvoNull() {
  6407. return this.IsNull(this.tableClients.OtchestvoColumn);
  6408. }
  6409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6411. public void SetOtchestvoNull() {
  6412. this[this.tableClients.OtchestvoColumn] = global::System.Convert.DBNull;
  6413. }
  6414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6416. public bool IsPolNull() {
  6417. return this.IsNull(this.tableClients.PolColumn);
  6418. }
  6419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6421. public void SetPolNull() {
  6422. this[this.tableClients.PolColumn] = global::System.Convert.DBNull;
  6423. }
  6424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6426. public bool IsPhoneNull() {
  6427. return this.IsNull(this.tableClients.PhoneColumn);
  6428. }
  6429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6431. public void SetPhoneNull() {
  6432. this[this.tableClients.PhoneColumn] = global::System.Convert.DBNull;
  6433. }
  6434. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6435. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6436. public bool IsBirthdayNull() {
  6437. return this.IsNull(this.tableClients.BirthdayColumn);
  6438. }
  6439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6441. public void SetBirthdayNull() {
  6442. this[this.tableClients.BirthdayColumn] = global::System.Convert.DBNull;
  6443. }
  6444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6446. public bool IsEmailNull() {
  6447. return this.IsNull(this.tableClients.EmailColumn);
  6448. }
  6449. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6450. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6451. public void SetEmailNull() {
  6452. this[this.tableClients.EmailColumn] = global::System.Convert.DBNull;
  6453. }
  6454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6456. public bool IsData_RegistraNull() {
  6457. return this.IsNull(this.tableClients.Data_RegistraColumn);
  6458. }
  6459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6461. public void SetData_RegistraNull() {
  6462. this[this.tableClients.Data_RegistraColumn] = global::System.Convert.DBNull;
  6463. }
  6464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6466. public Uslugi_i_KlientRow[] GetUslugi_i_KlientRows() {
  6467. if ((this.Table.ChildRelations["FK_Uslugi_i_Klient_Clients"] == null)) {
  6468. return new Uslugi_i_KlientRow[0];
  6469. }
  6470. else {
  6471. return ((Uslugi_i_KlientRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Uslugi_i_Klient_Clients"])));
  6472. }
  6473. }
  6474. }
  6475. /// <summary>
  6476. ///Represents strongly named DataRow class.
  6477. ///</summary>
  6478. public partial class ClientServiceRow : global::System.Data.DataRow {
  6479. private ClientServiceDataTable tableClientService;
  6480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6482. internal ClientServiceRow(global::System.Data.DataRowBuilder rb) :
  6483. base(rb) {
  6484. this.tableClientService = ((ClientServiceDataTable)(this.Table));
  6485. }
  6486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6488. public int ID {
  6489. get {
  6490. return ((int)(this[this.tableClientService.IDColumn]));
  6491. }
  6492. set {
  6493. this[this.tableClientService.IDColumn] = value;
  6494. }
  6495. }
  6496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6498. public int ClientID {
  6499. get {
  6500. return ((int)(this[this.tableClientService.ClientIDColumn]));
  6501. }
  6502. set {
  6503. this[this.tableClientService.ClientIDColumn] = value;
  6504. }
  6505. }
  6506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6508. public int ServiceID {
  6509. get {
  6510. return ((int)(this[this.tableClientService.ServiceIDColumn]));
  6511. }
  6512. set {
  6513. this[this.tableClientService.ServiceIDColumn] = value;
  6514. }
  6515. }
  6516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6518. public System.DateTime StartTime {
  6519. get {
  6520. return ((global::System.DateTime)(this[this.tableClientService.StartTimeColumn]));
  6521. }
  6522. set {
  6523. this[this.tableClientService.StartTimeColumn] = value;
  6524. }
  6525. }
  6526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6528. public string Comment {
  6529. get {
  6530. try {
  6531. return ((string)(this[this.tableClientService.CommentColumn]));
  6532. }
  6533. catch (global::System.InvalidCastException e) {
  6534. throw new global::System.Data.StrongTypingException("Значение для столбца \'Comment\' в таблице \'ClientService\' равно DBNull.", e);
  6535. }
  6536. }
  6537. set {
  6538. this[this.tableClientService.CommentColumn] = value;
  6539. }
  6540. }
  6541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6543. public ClientRow ClientRow {
  6544. get {
  6545. return ((ClientRow)(this.GetParentRow(this.Table.ParentRelations["FK_ClientService_Client"])));
  6546. }
  6547. set {
  6548. this.SetParentRow(value, this.Table.ParentRelations["FK_ClientService_Client"]);
  6549. }
  6550. }
  6551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6553. public ServiceRow ServiceRow {
  6554. get {
  6555. return ((ServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_ClientService_Service"])));
  6556. }
  6557. set {
  6558. this.SetParentRow(value, this.Table.ParentRelations["FK_ClientService_Service"]);
  6559. }
  6560. }
  6561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6563. public bool IsCommentNull() {
  6564. return this.IsNull(this.tableClientService.CommentColumn);
  6565. }
  6566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6568. public void SetCommentNull() {
  6569. this[this.tableClientService.CommentColumn] = global::System.Convert.DBNull;
  6570. }
  6571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6573. public DocumentByServiceRow[] GetDocumentByServiceRows() {
  6574. if ((this.Table.ChildRelations["FK_DocumentByService_ClientService"] == null)) {
  6575. return new DocumentByServiceRow[0];
  6576. }
  6577. else {
  6578. return ((DocumentByServiceRow[])(base.GetChildRows(this.Table.ChildRelations["FK_DocumentByService_ClientService"])));
  6579. }
  6580. }
  6581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6583. public ProductSaleRow[] GetProductSaleRows() {
  6584. if ((this.Table.ChildRelations["FK_ProductSale_ClientService"] == null)) {
  6585. return new ProductSaleRow[0];
  6586. }
  6587. else {
  6588. return ((ProductSaleRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductSale_ClientService"])));
  6589. }
  6590. }
  6591. }
  6592. /// <summary>
  6593. ///Represents strongly named DataRow class.
  6594. ///</summary>
  6595. public partial class DocumentByServiceRow : global::System.Data.DataRow {
  6596. private DocumentByServiceDataTable tableDocumentByService;
  6597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6599. internal DocumentByServiceRow(global::System.Data.DataRowBuilder rb) :
  6600. base(rb) {
  6601. this.tableDocumentByService = ((DocumentByServiceDataTable)(this.Table));
  6602. }
  6603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6605. public int ID {
  6606. get {
  6607. return ((int)(this[this.tableDocumentByService.IDColumn]));
  6608. }
  6609. set {
  6610. this[this.tableDocumentByService.IDColumn] = value;
  6611. }
  6612. }
  6613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6615. public int ClientServiceID {
  6616. get {
  6617. return ((int)(this[this.tableDocumentByService.ClientServiceIDColumn]));
  6618. }
  6619. set {
  6620. this[this.tableDocumentByService.ClientServiceIDColumn] = value;
  6621. }
  6622. }
  6623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6625. public string DocumentPath {
  6626. get {
  6627. return ((string)(this[this.tableDocumentByService.DocumentPathColumn]));
  6628. }
  6629. set {
  6630. this[this.tableDocumentByService.DocumentPathColumn] = value;
  6631. }
  6632. }
  6633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6635. public ClientServiceRow ClientServiceRow {
  6636. get {
  6637. return ((ClientServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_DocumentByService_ClientService"])));
  6638. }
  6639. set {
  6640. this.SetParentRow(value, this.Table.ParentRelations["FK_DocumentByService_ClientService"]);
  6641. }
  6642. }
  6643. }
  6644. /// <summary>
  6645. ///Represents strongly named DataRow class.
  6646. ///</summary>
  6647. public partial class GenderRow : global::System.Data.DataRow {
  6648. private GenderDataTable tableGender;
  6649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6651. internal GenderRow(global::System.Data.DataRowBuilder rb) :
  6652. base(rb) {
  6653. this.tableGender = ((GenderDataTable)(this.Table));
  6654. }
  6655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6657. public string Code {
  6658. get {
  6659. return ((string)(this[this.tableGender.CodeColumn]));
  6660. }
  6661. set {
  6662. this[this.tableGender.CodeColumn] = value;
  6663. }
  6664. }
  6665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6666. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6667. public string Name {
  6668. get {
  6669. try {
  6670. return ((string)(this[this.tableGender.NameColumn]));
  6671. }
  6672. catch (global::System.InvalidCastException e) {
  6673. throw new global::System.Data.StrongTypingException("Значение для столбца \'Name\' в таблице \'Gender\' равно DBNull.", e);
  6674. }
  6675. }
  6676. set {
  6677. this[this.tableGender.NameColumn] = value;
  6678. }
  6679. }
  6680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6682. public bool IsNameNull() {
  6683. return this.IsNull(this.tableGender.NameColumn);
  6684. }
  6685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6687. public void SetNameNull() {
  6688. this[this.tableGender.NameColumn] = global::System.Convert.DBNull;
  6689. }
  6690. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6692. public ClientRow[] GetClientRows() {
  6693. if ((this.Table.ChildRelations["FK_Client_Gender"] == null)) {
  6694. return new ClientRow[0];
  6695. }
  6696. else {
  6697. return ((ClientRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Client_Gender"])));
  6698. }
  6699. }
  6700. }
  6701. /// <summary>
  6702. ///Represents strongly named DataRow class.
  6703. ///</summary>
  6704. public partial class ManufacturerRow : global::System.Data.DataRow {
  6705. private ManufacturerDataTable tableManufacturer;
  6706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6708. internal ManufacturerRow(global::System.Data.DataRowBuilder rb) :
  6709. base(rb) {
  6710. this.tableManufacturer = ((ManufacturerDataTable)(this.Table));
  6711. }
  6712. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6713. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6714. public int ID {
  6715. get {
  6716. return ((int)(this[this.tableManufacturer.IDColumn]));
  6717. }
  6718. set {
  6719. this[this.tableManufacturer.IDColumn] = value;
  6720. }
  6721. }
  6722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6724. public string Name {
  6725. get {
  6726. return ((string)(this[this.tableManufacturer.NameColumn]));
  6727. }
  6728. set {
  6729. this[this.tableManufacturer.NameColumn] = value;
  6730. }
  6731. }
  6732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6734. public System.DateTime StartDate {
  6735. get {
  6736. try {
  6737. return ((global::System.DateTime)(this[this.tableManufacturer.StartDateColumn]));
  6738. }
  6739. catch (global::System.InvalidCastException e) {
  6740. throw new global::System.Data.StrongTypingException("Значение для столбца \'StartDate\' в таблице \'Manufacturer\' равно DBNull.", e);
  6741. }
  6742. }
  6743. set {
  6744. this[this.tableManufacturer.StartDateColumn] = value;
  6745. }
  6746. }
  6747. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6748. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6749. public bool IsStartDateNull() {
  6750. return this.IsNull(this.tableManufacturer.StartDateColumn);
  6751. }
  6752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6754. public void SetStartDateNull() {
  6755. this[this.tableManufacturer.StartDateColumn] = global::System.Convert.DBNull;
  6756. }
  6757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6759. public ProductRow[] GetProductRows() {
  6760. if ((this.Table.ChildRelations["FK_Product_Manufacturer"] == null)) {
  6761. return new ProductRow[0];
  6762. }
  6763. else {
  6764. return ((ProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Product_Manufacturer"])));
  6765. }
  6766. }
  6767. }
  6768. /// <summary>
  6769. ///Represents strongly named DataRow class.
  6770. ///</summary>
  6771. public partial class ProductRow : global::System.Data.DataRow {
  6772. private ProductDataTable tableProduct;
  6773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6774. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6775. internal ProductRow(global::System.Data.DataRowBuilder rb) :
  6776. base(rb) {
  6777. this.tableProduct = ((ProductDataTable)(this.Table));
  6778. }
  6779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6781. public int ID {
  6782. get {
  6783. return ((int)(this[this.tableProduct.IDColumn]));
  6784. }
  6785. set {
  6786. this[this.tableProduct.IDColumn] = value;
  6787. }
  6788. }
  6789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6791. public string Title {
  6792. get {
  6793. return ((string)(this[this.tableProduct.TitleColumn]));
  6794. }
  6795. set {
  6796. this[this.tableProduct.TitleColumn] = value;
  6797. }
  6798. }
  6799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6801. public decimal Cost {
  6802. get {
  6803. return ((decimal)(this[this.tableProduct.CostColumn]));
  6804. }
  6805. set {
  6806. this[this.tableProduct.CostColumn] = value;
  6807. }
  6808. }
  6809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6811. public string Description {
  6812. get {
  6813. try {
  6814. return ((string)(this[this.tableProduct.DescriptionColumn]));
  6815. }
  6816. catch (global::System.InvalidCastException e) {
  6817. throw new global::System.Data.StrongTypingException("Значение для столбца \'Description\' в таблице \'Product\' равно DBNull.", e);
  6818. }
  6819. }
  6820. set {
  6821. this[this.tableProduct.DescriptionColumn] = value;
  6822. }
  6823. }
  6824. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6825. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6826. public string MainImagePath {
  6827. get {
  6828. try {
  6829. return ((string)(this[this.tableProduct.MainImagePathColumn]));
  6830. }
  6831. catch (global::System.InvalidCastException e) {
  6832. throw new global::System.Data.StrongTypingException("Значение для столбца \'MainImagePath\' в таблице \'Product\' равно DBNull.", e);
  6833. }
  6834. }
  6835. set {
  6836. this[this.tableProduct.MainImagePathColumn] = value;
  6837. }
  6838. }
  6839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6841. public bool IsActive {
  6842. get {
  6843. return ((bool)(this[this.tableProduct.IsActiveColumn]));
  6844. }
  6845. set {
  6846. this[this.tableProduct.IsActiveColumn] = value;
  6847. }
  6848. }
  6849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6851. public int ManufacturerID {
  6852. get {
  6853. try {
  6854. return ((int)(this[this.tableProduct.ManufacturerIDColumn]));
  6855. }
  6856. catch (global::System.InvalidCastException e) {
  6857. throw new global::System.Data.StrongTypingException("Значение для столбца \'ManufacturerID\' в таблице \'Product\' равно DBNull.", e);
  6858. }
  6859. }
  6860. set {
  6861. this[this.tableProduct.ManufacturerIDColumn] = value;
  6862. }
  6863. }
  6864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6866. public ManufacturerRow ManufacturerRow {
  6867. get {
  6868. return ((ManufacturerRow)(this.GetParentRow(this.Table.ParentRelations["FK_Product_Manufacturer"])));
  6869. }
  6870. set {
  6871. this.SetParentRow(value, this.Table.ParentRelations["FK_Product_Manufacturer"]);
  6872. }
  6873. }
  6874. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6875. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6876. public bool IsDescriptionNull() {
  6877. return this.IsNull(this.tableProduct.DescriptionColumn);
  6878. }
  6879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6881. public void SetDescriptionNull() {
  6882. this[this.tableProduct.DescriptionColumn] = global::System.Convert.DBNull;
  6883. }
  6884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6886. public bool IsMainImagePathNull() {
  6887. return this.IsNull(this.tableProduct.MainImagePathColumn);
  6888. }
  6889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6891. public void SetMainImagePathNull() {
  6892. this[this.tableProduct.MainImagePathColumn] = global::System.Convert.DBNull;
  6893. }
  6894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6896. public bool IsManufacturerIDNull() {
  6897. return this.IsNull(this.tableProduct.ManufacturerIDColumn);
  6898. }
  6899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6901. public void SetManufacturerIDNull() {
  6902. this[this.tableProduct.ManufacturerIDColumn] = global::System.Convert.DBNull;
  6903. }
  6904. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6905. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6906. public AttachedProductRow[] GetAttachedProductRowsByFK_AttachedProduct_Product() {
  6907. if ((this.Table.ChildRelations["FK_AttachedProduct_Product"] == null)) {
  6908. return new AttachedProductRow[0];
  6909. }
  6910. else {
  6911. return ((AttachedProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AttachedProduct_Product"])));
  6912. }
  6913. }
  6914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6915. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6916. public AttachedProductRow[] GetAttachedProductRowsByFK_AttachedProduct_Product1() {
  6917. if ((this.Table.ChildRelations["FK_AttachedProduct_Product1"] == null)) {
  6918. return new AttachedProductRow[0];
  6919. }
  6920. else {
  6921. return ((AttachedProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AttachedProduct_Product1"])));
  6922. }
  6923. }
  6924. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6925. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6926. public ProductPhotoRow[] GetProductPhotoRows() {
  6927. if ((this.Table.ChildRelations["FK_ProductPhoto_Product"] == null)) {
  6928. return new ProductPhotoRow[0];
  6929. }
  6930. else {
  6931. return ((ProductPhotoRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductPhoto_Product"])));
  6932. }
  6933. }
  6934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6935. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6936. public ProductSaleRow[] GetProductSaleRows() {
  6937. if ((this.Table.ChildRelations["FK_ProductSale_Product"] == null)) {
  6938. return new ProductSaleRow[0];
  6939. }
  6940. else {
  6941. return ((ProductSaleRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductSale_Product"])));
  6942. }
  6943. }
  6944. }
  6945. /// <summary>
  6946. ///Represents strongly named DataRow class.
  6947. ///</summary>
  6948. public partial class ProductPhotoRow : global::System.Data.DataRow {
  6949. private ProductPhotoDataTable tableProductPhoto;
  6950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6952. internal ProductPhotoRow(global::System.Data.DataRowBuilder rb) :
  6953. base(rb) {
  6954. this.tableProductPhoto = ((ProductPhotoDataTable)(this.Table));
  6955. }
  6956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6958. public int ID {
  6959. get {
  6960. return ((int)(this[this.tableProductPhoto.IDColumn]));
  6961. }
  6962. set {
  6963. this[this.tableProductPhoto.IDColumn] = value;
  6964. }
  6965. }
  6966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6968. public int ProductID {
  6969. get {
  6970. return ((int)(this[this.tableProductPhoto.ProductIDColumn]));
  6971. }
  6972. set {
  6973. this[this.tableProductPhoto.ProductIDColumn] = value;
  6974. }
  6975. }
  6976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6978. public string PhotoPath {
  6979. get {
  6980. return ((string)(this[this.tableProductPhoto.PhotoPathColumn]));
  6981. }
  6982. set {
  6983. this[this.tableProductPhoto.PhotoPathColumn] = value;
  6984. }
  6985. }
  6986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6987. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6988. public ProductRow ProductRow {
  6989. get {
  6990. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductPhoto_Product"])));
  6991. }
  6992. set {
  6993. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductPhoto_Product"]);
  6994. }
  6995. }
  6996. }
  6997. /// <summary>
  6998. ///Represents strongly named DataRow class.
  6999. ///</summary>
  7000. public partial class ProductSaleRow : global::System.Data.DataRow {
  7001. private ProductSaleDataTable tableProductSale;
  7002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7004. internal ProductSaleRow(global::System.Data.DataRowBuilder rb) :
  7005. base(rb) {
  7006. this.tableProductSale = ((ProductSaleDataTable)(this.Table));
  7007. }
  7008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7010. public int ID {
  7011. get {
  7012. return ((int)(this[this.tableProductSale.IDColumn]));
  7013. }
  7014. set {
  7015. this[this.tableProductSale.IDColumn] = value;
  7016. }
  7017. }
  7018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7020. public System.DateTime SaleDate {
  7021. get {
  7022. return ((global::System.DateTime)(this[this.tableProductSale.SaleDateColumn]));
  7023. }
  7024. set {
  7025. this[this.tableProductSale.SaleDateColumn] = value;
  7026. }
  7027. }
  7028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7030. public int ProductID {
  7031. get {
  7032. return ((int)(this[this.tableProductSale.ProductIDColumn]));
  7033. }
  7034. set {
  7035. this[this.tableProductSale.ProductIDColumn] = value;
  7036. }
  7037. }
  7038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7039. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7040. public int Quantity {
  7041. get {
  7042. return ((int)(this[this.tableProductSale.QuantityColumn]));
  7043. }
  7044. set {
  7045. this[this.tableProductSale.QuantityColumn] = value;
  7046. }
  7047. }
  7048. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7049. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7050. public int ClientServiceID {
  7051. get {
  7052. try {
  7053. return ((int)(this[this.tableProductSale.ClientServiceIDColumn]));
  7054. }
  7055. catch (global::System.InvalidCastException e) {
  7056. throw new global::System.Data.StrongTypingException("Значение для столбца \'ClientServiceID\' в таблице \'ProductSale\' равно DBNull.", e);
  7057. }
  7058. }
  7059. set {
  7060. this[this.tableProductSale.ClientServiceIDColumn] = value;
  7061. }
  7062. }
  7063. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7064. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7065. public ClientServiceRow ClientServiceRow {
  7066. get {
  7067. return ((ClientServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductSale_ClientService"])));
  7068. }
  7069. set {
  7070. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductSale_ClientService"]);
  7071. }
  7072. }
  7073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7075. public ProductRow ProductRow {
  7076. get {
  7077. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductSale_Product"])));
  7078. }
  7079. set {
  7080. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductSale_Product"]);
  7081. }
  7082. }
  7083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7085. public bool IsClientServiceIDNull() {
  7086. return this.IsNull(this.tableProductSale.ClientServiceIDColumn);
  7087. }
  7088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7090. public void SetClientServiceIDNull() {
  7091. this[this.tableProductSale.ClientServiceIDColumn] = global::System.Convert.DBNull;
  7092. }
  7093. }
  7094. /// <summary>
  7095. ///Represents strongly named DataRow class.
  7096. ///</summary>
  7097. public partial class ServiceRow : global::System.Data.DataRow {
  7098. private ServiceDataTable tableService;
  7099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7101. internal ServiceRow(global::System.Data.DataRowBuilder rb) :
  7102. base(rb) {
  7103. this.tableService = ((ServiceDataTable)(this.Table));
  7104. }
  7105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7106. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7107. public int ID {
  7108. get {
  7109. return ((int)(this[this.tableService.IDColumn]));
  7110. }
  7111. set {
  7112. this[this.tableService.IDColumn] = value;
  7113. }
  7114. }
  7115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7117. public string Title {
  7118. get {
  7119. return ((string)(this[this.tableService.TitleColumn]));
  7120. }
  7121. set {
  7122. this[this.tableService.TitleColumn] = value;
  7123. }
  7124. }
  7125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7126. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7127. public decimal Cost {
  7128. get {
  7129. return ((decimal)(this[this.tableService.CostColumn]));
  7130. }
  7131. set {
  7132. this[this.tableService.CostColumn] = value;
  7133. }
  7134. }
  7135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7137. public int DurationInSeconds {
  7138. get {
  7139. return ((int)(this[this.tableService.DurationInSecondsColumn]));
  7140. }
  7141. set {
  7142. this[this.tableService.DurationInSecondsColumn] = value;
  7143. }
  7144. }
  7145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7147. public string Description {
  7148. get {
  7149. try {
  7150. return ((string)(this[this.tableService.DescriptionColumn]));
  7151. }
  7152. catch (global::System.InvalidCastException e) {
  7153. throw new global::System.Data.StrongTypingException("Значение для столбца \'Description\' в таблице \'Service\' равно DBNull.", e);
  7154. }
  7155. }
  7156. set {
  7157. this[this.tableService.DescriptionColumn] = value;
  7158. }
  7159. }
  7160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7162. public double Discount {
  7163. get {
  7164. try {
  7165. return ((double)(this[this.tableService.DiscountColumn]));
  7166. }
  7167. catch (global::System.InvalidCastException e) {
  7168. throw new global::System.Data.StrongTypingException("Значение для столбца \'Discount\' в таблице \'Service\' равно DBNull.", e);
  7169. }
  7170. }
  7171. set {
  7172. this[this.tableService.DiscountColumn] = value;
  7173. }
  7174. }
  7175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7177. public string MainImagePath {
  7178. get {
  7179. try {
  7180. return ((string)(this[this.tableService.MainImagePathColumn]));
  7181. }
  7182. catch (global::System.InvalidCastException e) {
  7183. throw new global::System.Data.StrongTypingException("Значение для столбца \'MainImagePath\' в таблице \'Service\' равно DBNull.", e);
  7184. }
  7185. }
  7186. set {
  7187. this[this.tableService.MainImagePathColumn] = value;
  7188. }
  7189. }
  7190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7191. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7192. public bool IsDescriptionNull() {
  7193. return this.IsNull(this.tableService.DescriptionColumn);
  7194. }
  7195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7197. public void SetDescriptionNull() {
  7198. this[this.tableService.DescriptionColumn] = global::System.Convert.DBNull;
  7199. }
  7200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7201. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7202. public bool IsDiscountNull() {
  7203. return this.IsNull(this.tableService.DiscountColumn);
  7204. }
  7205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7207. public void SetDiscountNull() {
  7208. this[this.tableService.DiscountColumn] = global::System.Convert.DBNull;
  7209. }
  7210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7212. public bool IsMainImagePathNull() {
  7213. return this.IsNull(this.tableService.MainImagePathColumn);
  7214. }
  7215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7217. public void SetMainImagePathNull() {
  7218. this[this.tableService.MainImagePathColumn] = global::System.Convert.DBNull;
  7219. }
  7220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7222. public ClientServiceRow[] GetClientServiceRows() {
  7223. if ((this.Table.ChildRelations["FK_ClientService_Service"] == null)) {
  7224. return new ClientServiceRow[0];
  7225. }
  7226. else {
  7227. return ((ClientServiceRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ClientService_Service"])));
  7228. }
  7229. }
  7230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7232. public ServicePhotoRow[] GetServicePhotoRows() {
  7233. if ((this.Table.ChildRelations["FK_ServicePhoto_Service"] == null)) {
  7234. return new ServicePhotoRow[0];
  7235. }
  7236. else {
  7237. return ((ServicePhotoRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ServicePhoto_Service"])));
  7238. }
  7239. }
  7240. }
  7241. /// <summary>
  7242. ///Represents strongly named DataRow class.
  7243. ///</summary>
  7244. public partial class ServicePhotoRow : global::System.Data.DataRow {
  7245. private ServicePhotoDataTable tableServicePhoto;
  7246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7248. internal ServicePhotoRow(global::System.Data.DataRowBuilder rb) :
  7249. base(rb) {
  7250. this.tableServicePhoto = ((ServicePhotoDataTable)(this.Table));
  7251. }
  7252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7254. public int ID {
  7255. get {
  7256. return ((int)(this[this.tableServicePhoto.IDColumn]));
  7257. }
  7258. set {
  7259. this[this.tableServicePhoto.IDColumn] = value;
  7260. }
  7261. }
  7262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7264. public int ServiceID {
  7265. get {
  7266. return ((int)(this[this.tableServicePhoto.ServiceIDColumn]));
  7267. }
  7268. set {
  7269. this[this.tableServicePhoto.ServiceIDColumn] = value;
  7270. }
  7271. }
  7272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7274. public string PhotoPath {
  7275. get {
  7276. return ((string)(this[this.tableServicePhoto.PhotoPathColumn]));
  7277. }
  7278. set {
  7279. this[this.tableServicePhoto.PhotoPathColumn] = value;
  7280. }
  7281. }
  7282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7284. public ServiceRow ServiceRow {
  7285. get {
  7286. return ((ServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_ServicePhoto_Service"])));
  7287. }
  7288. set {
  7289. this.SetParentRow(value, this.Table.ParentRelations["FK_ServicePhoto_Service"]);
  7290. }
  7291. }
  7292. }
  7293. /// <summary>
  7294. ///Represents strongly named DataRow class.
  7295. ///</summary>
  7296. public partial class SotrudnikRow : global::System.Data.DataRow {
  7297. private SotrudnikDataTable tableSotrudnik;
  7298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7300. internal SotrudnikRow(global::System.Data.DataRowBuilder rb) :
  7301. base(rb) {
  7302. this.tableSotrudnik = ((SotrudnikDataTable)(this.Table));
  7303. }
  7304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7306. public long ID_Sotrudnik {
  7307. get {
  7308. return ((long)(this[this.tableSotrudnik.ID_SotrudnikColumn]));
  7309. }
  7310. set {
  7311. this[this.tableSotrudnik.ID_SotrudnikColumn] = value;
  7312. }
  7313. }
  7314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7316. public string Phomilia {
  7317. get {
  7318. try {
  7319. return ((string)(this[this.tableSotrudnik.PhomiliaColumn]));
  7320. }
  7321. catch (global::System.InvalidCastException e) {
  7322. throw new global::System.Data.StrongTypingException("Значение для столбца \'Phomilia\' в таблице \'Sotrudnik\' равно DBNull.", e);
  7323. }
  7324. }
  7325. set {
  7326. this[this.tableSotrudnik.PhomiliaColumn] = value;
  7327. }
  7328. }
  7329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7331. public string Name {
  7332. get {
  7333. try {
  7334. return ((string)(this[this.tableSotrudnik.NameColumn]));
  7335. }
  7336. catch (global::System.InvalidCastException e) {
  7337. throw new global::System.Data.StrongTypingException("Значение для столбца \'Name\' в таблице \'Sotrudnik\' равно DBNull.", e);
  7338. }
  7339. }
  7340. set {
  7341. this[this.tableSotrudnik.NameColumn] = value;
  7342. }
  7343. }
  7344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7346. public long ID_Uslugi {
  7347. get {
  7348. try {
  7349. return ((long)(this[this.tableSotrudnik.ID_UslugiColumn]));
  7350. }
  7351. catch (global::System.InvalidCastException e) {
  7352. throw new global::System.Data.StrongTypingException("Значение для столбца \'ID_Uslugi\' в таблице \'Sotrudnik\' равно DBNull.", e);
  7353. }
  7354. }
  7355. set {
  7356. this[this.tableSotrudnik.ID_UslugiColumn] = value;
  7357. }
  7358. }
  7359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7361. public UslugiRow UslugiRow {
  7362. get {
  7363. return ((UslugiRow)(this.GetParentRow(this.Table.ParentRelations["FK_Sotrudnik_Uslsgi"])));
  7364. }
  7365. set {
  7366. this.SetParentRow(value, this.Table.ParentRelations["FK_Sotrudnik_Uslsgi"]);
  7367. }
  7368. }
  7369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7371. public bool IsPhomiliaNull() {
  7372. return this.IsNull(this.tableSotrudnik.PhomiliaColumn);
  7373. }
  7374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7376. public void SetPhomiliaNull() {
  7377. this[this.tableSotrudnik.PhomiliaColumn] = global::System.Convert.DBNull;
  7378. }
  7379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7381. public bool IsNameNull() {
  7382. return this.IsNull(this.tableSotrudnik.NameColumn);
  7383. }
  7384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7386. public void SetNameNull() {
  7387. this[this.tableSotrudnik.NameColumn] = global::System.Convert.DBNull;
  7388. }
  7389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7391. public bool IsID_UslugiNull() {
  7392. return this.IsNull(this.tableSotrudnik.ID_UslugiColumn);
  7393. }
  7394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7396. public void SetID_UslugiNull() {
  7397. this[this.tableSotrudnik.ID_UslugiColumn] = global::System.Convert.DBNull;
  7398. }
  7399. }
  7400. /// <summary>
  7401. ///Represents strongly named DataRow class.
  7402. ///</summary>
  7403. public partial class TagRow : global::System.Data.DataRow {
  7404. private TagDataTable tableTag;
  7405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7407. internal TagRow(global::System.Data.DataRowBuilder rb) :
  7408. base(rb) {
  7409. this.tableTag = ((TagDataTable)(this.Table));
  7410. }
  7411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7413. public int ID {
  7414. get {
  7415. return ((int)(this[this.tableTag.IDColumn]));
  7416. }
  7417. set {
  7418. this[this.tableTag.IDColumn] = value;
  7419. }
  7420. }
  7421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7423. public string Title {
  7424. get {
  7425. return ((string)(this[this.tableTag.TitleColumn]));
  7426. }
  7427. set {
  7428. this[this.tableTag.TitleColumn] = value;
  7429. }
  7430. }
  7431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7433. public string Color {
  7434. get {
  7435. return ((string)(this[this.tableTag.ColorColumn]));
  7436. }
  7437. set {
  7438. this[this.tableTag.ColorColumn] = value;
  7439. }
  7440. }
  7441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7443. public TagOfClientRow[] GetTagOfClientRows() {
  7444. if ((this.Table.ChildRelations["FK_TagOfClient_Tag"] == null)) {
  7445. return new TagOfClientRow[0];
  7446. }
  7447. else {
  7448. return ((TagOfClientRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TagOfClient_Tag"])));
  7449. }
  7450. }
  7451. }
  7452. /// <summary>
  7453. ///Represents strongly named DataRow class.
  7454. ///</summary>
  7455. public partial class TagOfClientRow : global::System.Data.DataRow {
  7456. private TagOfClientDataTable tableTagOfClient;
  7457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7458. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7459. internal TagOfClientRow(global::System.Data.DataRowBuilder rb) :
  7460. base(rb) {
  7461. this.tableTagOfClient = ((TagOfClientDataTable)(this.Table));
  7462. }
  7463. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7464. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7465. public int ClientID {
  7466. get {
  7467. return ((int)(this[this.tableTagOfClient.ClientIDColumn]));
  7468. }
  7469. set {
  7470. this[this.tableTagOfClient.ClientIDColumn] = value;
  7471. }
  7472. }
  7473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7475. public int TagID {
  7476. get {
  7477. return ((int)(this[this.tableTagOfClient.TagIDColumn]));
  7478. }
  7479. set {
  7480. this[this.tableTagOfClient.TagIDColumn] = value;
  7481. }
  7482. }
  7483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7485. public ClientRow ClientRow {
  7486. get {
  7487. return ((ClientRow)(this.GetParentRow(this.Table.ParentRelations["FK_TagOfClient_Client"])));
  7488. }
  7489. set {
  7490. this.SetParentRow(value, this.Table.ParentRelations["FK_TagOfClient_Client"]);
  7491. }
  7492. }
  7493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7495. public TagRow TagRow {
  7496. get {
  7497. return ((TagRow)(this.GetParentRow(this.Table.ParentRelations["FK_TagOfClient_Tag"])));
  7498. }
  7499. set {
  7500. this.SetParentRow(value, this.Table.ParentRelations["FK_TagOfClient_Tag"]);
  7501. }
  7502. }
  7503. }
  7504. /// <summary>
  7505. ///Represents strongly named DataRow class.
  7506. ///</summary>
  7507. public partial class UslugiRow : global::System.Data.DataRow {
  7508. private UslugiDataTable tableUslugi;
  7509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7511. internal UslugiRow(global::System.Data.DataRowBuilder rb) :
  7512. base(rb) {
  7513. this.tableUslugi = ((UslugiDataTable)(this.Table));
  7514. }
  7515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7516. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7517. public long ID_Uslugi {
  7518. get {
  7519. return ((long)(this[this.tableUslugi.ID_UslugiColumn]));
  7520. }
  7521. set {
  7522. this[this.tableUslugi.ID_UslugiColumn] = value;
  7523. }
  7524. }
  7525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7526. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7527. public string Наименование_услуги {
  7528. get {
  7529. try {
  7530. return ((string)(this[this.tableUslugi.Наименование_услугиColumn]));
  7531. }
  7532. catch (global::System.InvalidCastException e) {
  7533. throw new global::System.Data.StrongTypingException("Значение для столбца \'Наименование_услуги\' в таблице \'Uslugi\' равно DBNull.", e);
  7534. }
  7535. }
  7536. set {
  7537. this[this.tableUslugi.Наименование_услугиColumn] = value;
  7538. }
  7539. }
  7540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7542. public string Главное_изображение {
  7543. get {
  7544. try {
  7545. return ((string)(this[this.tableUslugi.Главное_изображениеColumn]));
  7546. }
  7547. catch (global::System.InvalidCastException e) {
  7548. throw new global::System.Data.StrongTypingException("Значение для столбца \'Главное_изображение\' в таблице \'Uslugi\' равно DBNull.", e);
  7549. }
  7550. }
  7551. set {
  7552. this[this.tableUslugi.Главное_изображениеColumn] = value;
  7553. }
  7554. }
  7555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7557. public string Длительность {
  7558. get {
  7559. try {
  7560. return ((string)(this[this.tableUslugi.ДлительностьColumn]));
  7561. }
  7562. catch (global::System.InvalidCastException e) {
  7563. throw new global::System.Data.StrongTypingException("Значение для столбца \'Длительность\' в таблице \'Uslugi\' равно DBNull.", e);
  7564. }
  7565. }
  7566. set {
  7567. this[this.tableUslugi.ДлительностьColumn] = value;
  7568. }
  7569. }
  7570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7572. public string Стоимость {
  7573. get {
  7574. try {
  7575. return ((string)(this[this.tableUslugi.СтоимостьColumn]));
  7576. }
  7577. catch (global::System.InvalidCastException e) {
  7578. throw new global::System.Data.StrongTypingException("Значение для столбца \'Стоимость\' в таблице \'Uslugi\' равно DBNull.", e);
  7579. }
  7580. }
  7581. set {
  7582. this[this.tableUslugi.СтоимостьColumn] = value;
  7583. }
  7584. }
  7585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7587. public string Действующая_скидка {
  7588. get {
  7589. try {
  7590. return ((string)(this[this.tableUslugi.Действующая_скидкаColumn]));
  7591. }
  7592. catch (global::System.InvalidCastException e) {
  7593. throw new global::System.Data.StrongTypingException("Значение для столбца \'Действующая_скидка\' в таблице \'Uslugi\' равно DBNull.", e);
  7594. }
  7595. }
  7596. set {
  7597. this[this.tableUslugi.Действующая_скидкаColumn] = value;
  7598. }
  7599. }
  7600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7602. public bool IsНаименование_услугиNull() {
  7603. return this.IsNull(this.tableUslugi.Наименование_услугиColumn);
  7604. }
  7605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7607. public void SetНаименование_услугиNull() {
  7608. this[this.tableUslugi.Наименование_услугиColumn] = global::System.Convert.DBNull;
  7609. }
  7610. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7611. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7612. public bool IsГлавное_изображениеNull() {
  7613. return this.IsNull(this.tableUslugi.Главное_изображениеColumn);
  7614. }
  7615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7617. public void SetГлавное_изображениеNull() {
  7618. this[this.tableUslugi.Главное_изображениеColumn] = global::System.Convert.DBNull;
  7619. }
  7620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7622. public bool IsДлительностьNull() {
  7623. return this.IsNull(this.tableUslugi.ДлительностьColumn);
  7624. }
  7625. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7626. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7627. public void SetДлительностьNull() {
  7628. this[this.tableUslugi.ДлительностьColumn] = global::System.Convert.DBNull;
  7629. }
  7630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7632. public bool IsСтоимостьNull() {
  7633. return this.IsNull(this.tableUslugi.СтоимостьColumn);
  7634. }
  7635. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7636. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7637. public void SetСтоимостьNull() {
  7638. this[this.tableUslugi.СтоимостьColumn] = global::System.Convert.DBNull;
  7639. }
  7640. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7641. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7642. public bool IsДействующая_скидкаNull() {
  7643. return this.IsNull(this.tableUslugi.Действующая_скидкаColumn);
  7644. }
  7645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7647. public void SetДействующая_скидкаNull() {
  7648. this[this.tableUslugi.Действующая_скидкаColumn] = global::System.Convert.DBNull;
  7649. }
  7650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7652. public SotrudnikRow[] GetSotrudnikRows() {
  7653. if ((this.Table.ChildRelations["FK_Sotrudnik_Uslsgi"] == null)) {
  7654. return new SotrudnikRow[0];
  7655. }
  7656. else {
  7657. return ((SotrudnikRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Sotrudnik_Uslsgi"])));
  7658. }
  7659. }
  7660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7662. public Uslugi_i_KlientRow[] GetUslugi_i_KlientRows() {
  7663. if ((this.Table.ChildRelations["FK_Uslugi_i_Klient_Uslsgi"] == null)) {
  7664. return new Uslugi_i_KlientRow[0];
  7665. }
  7666. else {
  7667. return ((Uslugi_i_KlientRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Uslugi_i_Klient_Uslsgi"])));
  7668. }
  7669. }
  7670. }
  7671. /// <summary>
  7672. ///Represents strongly named DataRow class.
  7673. ///</summary>
  7674. public partial class Uslugi_i_KlientRow : global::System.Data.DataRow {
  7675. private Uslugi_i_KlientDataTable tableUslugi_i_Klient;
  7676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7678. internal Uslugi_i_KlientRow(global::System.Data.DataRowBuilder rb) :
  7679. base(rb) {
  7680. this.tableUslugi_i_Klient = ((Uslugi_i_KlientDataTable)(this.Table));
  7681. }
  7682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7684. public long ID {
  7685. get {
  7686. return ((long)(this[this.tableUslugi_i_Klient.IDColumn]));
  7687. }
  7688. set {
  7689. this[this.tableUslugi_i_Klient.IDColumn] = value;
  7690. }
  7691. }
  7692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7694. public string Услуга {
  7695. get {
  7696. try {
  7697. return ((string)(this[this.tableUslugi_i_Klient.УслугаColumn]));
  7698. }
  7699. catch (global::System.InvalidCastException e) {
  7700. throw new global::System.Data.StrongTypingException("Значение для столбца \'Услуга\' в таблице \'Uslugi_i_Klient\' равно DBNull.", e);
  7701. }
  7702. }
  7703. set {
  7704. this[this.tableUslugi_i_Klient.УслугаColumn] = value;
  7705. }
  7706. }
  7707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7709. public System.DateTime Начало_оказания_услуги {
  7710. get {
  7711. try {
  7712. return ((global::System.DateTime)(this[this.tableUslugi_i_Klient.Начало_оказания_услугиColumn]));
  7713. }
  7714. catch (global::System.InvalidCastException e) {
  7715. throw new global::System.Data.StrongTypingException("Значение для столбца \'Начало_оказания_услуги\' в таблице \'Uslugi_i_Klient\' равно D" +
  7716. "BNull.", e);
  7717. }
  7718. }
  7719. set {
  7720. this[this.tableUslugi_i_Klient.Начало_оказания_услугиColumn] = value;
  7721. }
  7722. }
  7723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7725. public string Клиент {
  7726. get {
  7727. try {
  7728. return ((string)(this[this.tableUslugi_i_Klient.КлиентColumn]));
  7729. }
  7730. catch (global::System.InvalidCastException e) {
  7731. throw new global::System.Data.StrongTypingException("Значение для столбца \'Клиент\' в таблице \'Uslugi_i_Klient\' равно DBNull.", e);
  7732. }
  7733. }
  7734. set {
  7735. this[this.tableUslugi_i_Klient.КлиентColumn] = value;
  7736. }
  7737. }
  7738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7740. public long ID_Client {
  7741. get {
  7742. try {
  7743. return ((long)(this[this.tableUslugi_i_Klient.ID_ClientColumn]));
  7744. }
  7745. catch (global::System.InvalidCastException e) {
  7746. throw new global::System.Data.StrongTypingException("Значение для столбца \'ID_Client\' в таблице \'Uslugi_i_Klient\' равно DBNull.", e);
  7747. }
  7748. }
  7749. set {
  7750. this[this.tableUslugi_i_Klient.ID_ClientColumn] = value;
  7751. }
  7752. }
  7753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7755. public long ID_Uslugi {
  7756. get {
  7757. try {
  7758. return ((long)(this[this.tableUslugi_i_Klient.ID_UslugiColumn]));
  7759. }
  7760. catch (global::System.InvalidCastException e) {
  7761. throw new global::System.Data.StrongTypingException("Значение для столбца \'ID_Uslugi\' в таблице \'Uslugi_i_Klient\' равно DBNull.", e);
  7762. }
  7763. }
  7764. set {
  7765. this[this.tableUslugi_i_Klient.ID_UslugiColumn] = value;
  7766. }
  7767. }
  7768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7770. public ClientsRow ClientsRow {
  7771. get {
  7772. return ((ClientsRow)(this.GetParentRow(this.Table.ParentRelations["FK_Uslugi_i_Klient_Clients"])));
  7773. }
  7774. set {
  7775. this.SetParentRow(value, this.Table.ParentRelations["FK_Uslugi_i_Klient_Clients"]);
  7776. }
  7777. }
  7778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7780. public UslugiRow UslugiRow {
  7781. get {
  7782. return ((UslugiRow)(this.GetParentRow(this.Table.ParentRelations["FK_Uslugi_i_Klient_Uslsgi"])));
  7783. }
  7784. set {
  7785. this.SetParentRow(value, this.Table.ParentRelations["FK_Uslugi_i_Klient_Uslsgi"]);
  7786. }
  7787. }
  7788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7790. public bool IsУслугаNull() {
  7791. return this.IsNull(this.tableUslugi_i_Klient.УслугаColumn);
  7792. }
  7793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7795. public void SetУслугаNull() {
  7796. this[this.tableUslugi_i_Klient.УслугаColumn] = global::System.Convert.DBNull;
  7797. }
  7798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7800. public bool IsНачало_оказания_услугиNull() {
  7801. return this.IsNull(this.tableUslugi_i_Klient.Начало_оказания_услугиColumn);
  7802. }
  7803. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7804. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7805. public void SetНачало_оказания_услугиNull() {
  7806. this[this.tableUslugi_i_Klient.Начало_оказания_услугиColumn] = global::System.Convert.DBNull;
  7807. }
  7808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7810. public bool IsКлиентNull() {
  7811. return this.IsNull(this.tableUslugi_i_Klient.КлиентColumn);
  7812. }
  7813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7814. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7815. public void SetКлиентNull() {
  7816. this[this.tableUslugi_i_Klient.КлиентColumn] = global::System.Convert.DBNull;
  7817. }
  7818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7820. public bool IsID_ClientNull() {
  7821. return this.IsNull(this.tableUslugi_i_Klient.ID_ClientColumn);
  7822. }
  7823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7825. public void SetID_ClientNull() {
  7826. this[this.tableUslugi_i_Klient.ID_ClientColumn] = global::System.Convert.DBNull;
  7827. }
  7828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7830. public bool IsID_UslugiNull() {
  7831. return this.IsNull(this.tableUslugi_i_Klient.ID_UslugiColumn);
  7832. }
  7833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7835. public void SetID_UslugiNull() {
  7836. this[this.tableUslugi_i_Klient.ID_UslugiColumn] = global::System.Convert.DBNull;
  7837. }
  7838. }
  7839. /// <summary>
  7840. ///Row event argument class
  7841. ///</summary>
  7842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7843. public class AdministratorRowChangeEvent : global::System.EventArgs {
  7844. private AdministratorRow eventRow;
  7845. private global::System.Data.DataRowAction eventAction;
  7846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7848. public AdministratorRowChangeEvent(AdministratorRow row, global::System.Data.DataRowAction action) {
  7849. this.eventRow = row;
  7850. this.eventAction = action;
  7851. }
  7852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7854. public AdministratorRow Row {
  7855. get {
  7856. return this.eventRow;
  7857. }
  7858. }
  7859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7861. public global::System.Data.DataRowAction Action {
  7862. get {
  7863. return this.eventAction;
  7864. }
  7865. }
  7866. }
  7867. /// <summary>
  7868. ///Row event argument class
  7869. ///</summary>
  7870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7871. public class AttachedProductRowChangeEvent : global::System.EventArgs {
  7872. private AttachedProductRow eventRow;
  7873. private global::System.Data.DataRowAction eventAction;
  7874. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7875. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7876. public AttachedProductRowChangeEvent(AttachedProductRow row, global::System.Data.DataRowAction action) {
  7877. this.eventRow = row;
  7878. this.eventAction = action;
  7879. }
  7880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7881. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7882. public AttachedProductRow Row {
  7883. get {
  7884. return this.eventRow;
  7885. }
  7886. }
  7887. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7888. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7889. public global::System.Data.DataRowAction Action {
  7890. get {
  7891. return this.eventAction;
  7892. }
  7893. }
  7894. }
  7895. /// <summary>
  7896. ///Row event argument class
  7897. ///</summary>
  7898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7899. public class ClientRowChangeEvent : global::System.EventArgs {
  7900. private ClientRow eventRow;
  7901. private global::System.Data.DataRowAction eventAction;
  7902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7904. public ClientRowChangeEvent(ClientRow row, global::System.Data.DataRowAction action) {
  7905. this.eventRow = row;
  7906. this.eventAction = action;
  7907. }
  7908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7910. public ClientRow Row {
  7911. get {
  7912. return this.eventRow;
  7913. }
  7914. }
  7915. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7916. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7917. public global::System.Data.DataRowAction Action {
  7918. get {
  7919. return this.eventAction;
  7920. }
  7921. }
  7922. }
  7923. /// <summary>
  7924. ///Row event argument class
  7925. ///</summary>
  7926. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7927. public class ClientsRowChangeEvent : global::System.EventArgs {
  7928. private ClientsRow eventRow;
  7929. private global::System.Data.DataRowAction eventAction;
  7930. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7931. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7932. public ClientsRowChangeEvent(ClientsRow row, global::System.Data.DataRowAction action) {
  7933. this.eventRow = row;
  7934. this.eventAction = action;
  7935. }
  7936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7938. public ClientsRow Row {
  7939. get {
  7940. return this.eventRow;
  7941. }
  7942. }
  7943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7945. public global::System.Data.DataRowAction Action {
  7946. get {
  7947. return this.eventAction;
  7948. }
  7949. }
  7950. }
  7951. /// <summary>
  7952. ///Row event argument class
  7953. ///</summary>
  7954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7955. public class ClientServiceRowChangeEvent : global::System.EventArgs {
  7956. private ClientServiceRow eventRow;
  7957. private global::System.Data.DataRowAction eventAction;
  7958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7959. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7960. public ClientServiceRowChangeEvent(ClientServiceRow row, global::System.Data.DataRowAction action) {
  7961. this.eventRow = row;
  7962. this.eventAction = action;
  7963. }
  7964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7966. public ClientServiceRow Row {
  7967. get {
  7968. return this.eventRow;
  7969. }
  7970. }
  7971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7972. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7973. public global::System.Data.DataRowAction Action {
  7974. get {
  7975. return this.eventAction;
  7976. }
  7977. }
  7978. }
  7979. /// <summary>
  7980. ///Row event argument class
  7981. ///</summary>
  7982. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7983. public class DocumentByServiceRowChangeEvent : global::System.EventArgs {
  7984. private DocumentByServiceRow eventRow;
  7985. private global::System.Data.DataRowAction eventAction;
  7986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7987. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7988. public DocumentByServiceRowChangeEvent(DocumentByServiceRow row, global::System.Data.DataRowAction action) {
  7989. this.eventRow = row;
  7990. this.eventAction = action;
  7991. }
  7992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7994. public DocumentByServiceRow Row {
  7995. get {
  7996. return this.eventRow;
  7997. }
  7998. }
  7999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8001. public global::System.Data.DataRowAction Action {
  8002. get {
  8003. return this.eventAction;
  8004. }
  8005. }
  8006. }
  8007. /// <summary>
  8008. ///Row event argument class
  8009. ///</summary>
  8010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8011. public class GenderRowChangeEvent : global::System.EventArgs {
  8012. private GenderRow eventRow;
  8013. private global::System.Data.DataRowAction eventAction;
  8014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8016. public GenderRowChangeEvent(GenderRow row, global::System.Data.DataRowAction action) {
  8017. this.eventRow = row;
  8018. this.eventAction = action;
  8019. }
  8020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8022. public GenderRow Row {
  8023. get {
  8024. return this.eventRow;
  8025. }
  8026. }
  8027. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8028. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8029. public global::System.Data.DataRowAction Action {
  8030. get {
  8031. return this.eventAction;
  8032. }
  8033. }
  8034. }
  8035. /// <summary>
  8036. ///Row event argument class
  8037. ///</summary>
  8038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8039. public class ManufacturerRowChangeEvent : global::System.EventArgs {
  8040. private ManufacturerRow eventRow;
  8041. private global::System.Data.DataRowAction eventAction;
  8042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8044. public ManufacturerRowChangeEvent(ManufacturerRow row, global::System.Data.DataRowAction action) {
  8045. this.eventRow = row;
  8046. this.eventAction = action;
  8047. }
  8048. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8049. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8050. public ManufacturerRow Row {
  8051. get {
  8052. return this.eventRow;
  8053. }
  8054. }
  8055. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8056. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8057. public global::System.Data.DataRowAction Action {
  8058. get {
  8059. return this.eventAction;
  8060. }
  8061. }
  8062. }
  8063. /// <summary>
  8064. ///Row event argument class
  8065. ///</summary>
  8066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8067. public class ProductRowChangeEvent : global::System.EventArgs {
  8068. private ProductRow eventRow;
  8069. private global::System.Data.DataRowAction eventAction;
  8070. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8071. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8072. public ProductRowChangeEvent(ProductRow row, global::System.Data.DataRowAction action) {
  8073. this.eventRow = row;
  8074. this.eventAction = action;
  8075. }
  8076. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8077. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8078. public ProductRow Row {
  8079. get {
  8080. return this.eventRow;
  8081. }
  8082. }
  8083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8085. public global::System.Data.DataRowAction Action {
  8086. get {
  8087. return this.eventAction;
  8088. }
  8089. }
  8090. }
  8091. /// <summary>
  8092. ///Row event argument class
  8093. ///</summary>
  8094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8095. public class ProductPhotoRowChangeEvent : global::System.EventArgs {
  8096. private ProductPhotoRow eventRow;
  8097. private global::System.Data.DataRowAction eventAction;
  8098. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8099. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8100. public ProductPhotoRowChangeEvent(ProductPhotoRow row, global::System.Data.DataRowAction action) {
  8101. this.eventRow = row;
  8102. this.eventAction = action;
  8103. }
  8104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8106. public ProductPhotoRow Row {
  8107. get {
  8108. return this.eventRow;
  8109. }
  8110. }
  8111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8113. public global::System.Data.DataRowAction Action {
  8114. get {
  8115. return this.eventAction;
  8116. }
  8117. }
  8118. }
  8119. /// <summary>
  8120. ///Row event argument class
  8121. ///</summary>
  8122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8123. public class ProductSaleRowChangeEvent : global::System.EventArgs {
  8124. private ProductSaleRow eventRow;
  8125. private global::System.Data.DataRowAction eventAction;
  8126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8128. public ProductSaleRowChangeEvent(ProductSaleRow row, global::System.Data.DataRowAction action) {
  8129. this.eventRow = row;
  8130. this.eventAction = action;
  8131. }
  8132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8133. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8134. public ProductSaleRow Row {
  8135. get {
  8136. return this.eventRow;
  8137. }
  8138. }
  8139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8141. public global::System.Data.DataRowAction Action {
  8142. get {
  8143. return this.eventAction;
  8144. }
  8145. }
  8146. }
  8147. /// <summary>
  8148. ///Row event argument class
  8149. ///</summary>
  8150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8151. public class ServiceRowChangeEvent : global::System.EventArgs {
  8152. private ServiceRow eventRow;
  8153. private global::System.Data.DataRowAction eventAction;
  8154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8156. public ServiceRowChangeEvent(ServiceRow row, global::System.Data.DataRowAction action) {
  8157. this.eventRow = row;
  8158. this.eventAction = action;
  8159. }
  8160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8162. public ServiceRow Row {
  8163. get {
  8164. return this.eventRow;
  8165. }
  8166. }
  8167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8169. public global::System.Data.DataRowAction Action {
  8170. get {
  8171. return this.eventAction;
  8172. }
  8173. }
  8174. }
  8175. /// <summary>
  8176. ///Row event argument class
  8177. ///</summary>
  8178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8179. public class ServicePhotoRowChangeEvent : global::System.EventArgs {
  8180. private ServicePhotoRow eventRow;
  8181. private global::System.Data.DataRowAction eventAction;
  8182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8184. public ServicePhotoRowChangeEvent(ServicePhotoRow row, global::System.Data.DataRowAction action) {
  8185. this.eventRow = row;
  8186. this.eventAction = action;
  8187. }
  8188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8190. public ServicePhotoRow Row {
  8191. get {
  8192. return this.eventRow;
  8193. }
  8194. }
  8195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8197. public global::System.Data.DataRowAction Action {
  8198. get {
  8199. return this.eventAction;
  8200. }
  8201. }
  8202. }
  8203. /// <summary>
  8204. ///Row event argument class
  8205. ///</summary>
  8206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8207. public class SotrudnikRowChangeEvent : global::System.EventArgs {
  8208. private SotrudnikRow eventRow;
  8209. private global::System.Data.DataRowAction eventAction;
  8210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8212. public SotrudnikRowChangeEvent(SotrudnikRow row, global::System.Data.DataRowAction action) {
  8213. this.eventRow = row;
  8214. this.eventAction = action;
  8215. }
  8216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8218. public SotrudnikRow Row {
  8219. get {
  8220. return this.eventRow;
  8221. }
  8222. }
  8223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8225. public global::System.Data.DataRowAction Action {
  8226. get {
  8227. return this.eventAction;
  8228. }
  8229. }
  8230. }
  8231. /// <summary>
  8232. ///Row event argument class
  8233. ///</summary>
  8234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8235. public class TagRowChangeEvent : global::System.EventArgs {
  8236. private TagRow eventRow;
  8237. private global::System.Data.DataRowAction eventAction;
  8238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8240. public TagRowChangeEvent(TagRow row, global::System.Data.DataRowAction action) {
  8241. this.eventRow = row;
  8242. this.eventAction = action;
  8243. }
  8244. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8245. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8246. public TagRow Row {
  8247. get {
  8248. return this.eventRow;
  8249. }
  8250. }
  8251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8253. public global::System.Data.DataRowAction Action {
  8254. get {
  8255. return this.eventAction;
  8256. }
  8257. }
  8258. }
  8259. /// <summary>
  8260. ///Row event argument class
  8261. ///</summary>
  8262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8263. public class TagOfClientRowChangeEvent : global::System.EventArgs {
  8264. private TagOfClientRow eventRow;
  8265. private global::System.Data.DataRowAction eventAction;
  8266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8268. public TagOfClientRowChangeEvent(TagOfClientRow row, global::System.Data.DataRowAction action) {
  8269. this.eventRow = row;
  8270. this.eventAction = action;
  8271. }
  8272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8274. public TagOfClientRow Row {
  8275. get {
  8276. return this.eventRow;
  8277. }
  8278. }
  8279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8281. public global::System.Data.DataRowAction Action {
  8282. get {
  8283. return this.eventAction;
  8284. }
  8285. }
  8286. }
  8287. /// <summary>
  8288. ///Row event argument class
  8289. ///</summary>
  8290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8291. public class UslugiRowChangeEvent : global::System.EventArgs {
  8292. private UslugiRow eventRow;
  8293. private global::System.Data.DataRowAction eventAction;
  8294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8296. public UslugiRowChangeEvent(UslugiRow row, global::System.Data.DataRowAction action) {
  8297. this.eventRow = row;
  8298. this.eventAction = action;
  8299. }
  8300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8302. public UslugiRow Row {
  8303. get {
  8304. return this.eventRow;
  8305. }
  8306. }
  8307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8309. public global::System.Data.DataRowAction Action {
  8310. get {
  8311. return this.eventAction;
  8312. }
  8313. }
  8314. }
  8315. /// <summary>
  8316. ///Row event argument class
  8317. ///</summary>
  8318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8319. public class Uslugi_i_KlientRowChangeEvent : global::System.EventArgs {
  8320. private Uslugi_i_KlientRow eventRow;
  8321. private global::System.Data.DataRowAction eventAction;
  8322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8324. public Uslugi_i_KlientRowChangeEvent(Uslugi_i_KlientRow row, global::System.Data.DataRowAction action) {
  8325. this.eventRow = row;
  8326. this.eventAction = action;
  8327. }
  8328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8330. public Uslugi_i_KlientRow Row {
  8331. get {
  8332. return this.eventRow;
  8333. }
  8334. }
  8335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8337. public global::System.Data.DataRowAction Action {
  8338. get {
  8339. return this.eventAction;
  8340. }
  8341. }
  8342. }
  8343. }
  8344. }
  8345. namespace BB_Azizova.BB_AzizovaDataSetTableAdapters {
  8346. /// <summary>
  8347. ///Represents the connection and commands used to retrieve and save data.
  8348. ///</summary>
  8349. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8350. [global::System.ComponentModel.ToolboxItem(true)]
  8351. [global::System.ComponentModel.DataObjectAttribute(true)]
  8352. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8353. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8354. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8355. public partial class AdministratorTableAdapter : global::System.ComponentModel.Component {
  8356. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8357. private global::System.Data.SqlClient.SqlConnection _connection;
  8358. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8359. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8360. private bool _clearBeforeFill;
  8361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8363. public AdministratorTableAdapter() {
  8364. this.ClearBeforeFill = true;
  8365. }
  8366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8367. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8368. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8369. get {
  8370. if ((this._adapter == null)) {
  8371. this.InitAdapter();
  8372. }
  8373. return this._adapter;
  8374. }
  8375. }
  8376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8378. internal global::System.Data.SqlClient.SqlConnection Connection {
  8379. get {
  8380. if ((this._connection == null)) {
  8381. this.InitConnection();
  8382. }
  8383. return this._connection;
  8384. }
  8385. set {
  8386. this._connection = value;
  8387. if ((this.Adapter.InsertCommand != null)) {
  8388. this.Adapter.InsertCommand.Connection = value;
  8389. }
  8390. if ((this.Adapter.DeleteCommand != null)) {
  8391. this.Adapter.DeleteCommand.Connection = value;
  8392. }
  8393. if ((this.Adapter.UpdateCommand != null)) {
  8394. this.Adapter.UpdateCommand.Connection = value;
  8395. }
  8396. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8397. if ((this.CommandCollection[i] != null)) {
  8398. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8399. }
  8400. }
  8401. }
  8402. }
  8403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8405. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8406. get {
  8407. return this._transaction;
  8408. }
  8409. set {
  8410. this._transaction = value;
  8411. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8412. this.CommandCollection[i].Transaction = this._transaction;
  8413. }
  8414. if (((this.Adapter != null)
  8415. && (this.Adapter.DeleteCommand != null))) {
  8416. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8417. }
  8418. if (((this.Adapter != null)
  8419. && (this.Adapter.InsertCommand != null))) {
  8420. this.Adapter.InsertCommand.Transaction = this._transaction;
  8421. }
  8422. if (((this.Adapter != null)
  8423. && (this.Adapter.UpdateCommand != null))) {
  8424. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8425. }
  8426. }
  8427. }
  8428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8429. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8430. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8431. get {
  8432. if ((this._commandCollection == null)) {
  8433. this.InitCommandCollection();
  8434. }
  8435. return this._commandCollection;
  8436. }
  8437. }
  8438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8440. public bool ClearBeforeFill {
  8441. get {
  8442. return this._clearBeforeFill;
  8443. }
  8444. set {
  8445. this._clearBeforeFill = value;
  8446. }
  8447. }
  8448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8450. private void InitAdapter() {
  8451. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8452. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8453. tableMapping.SourceTable = "Table";
  8454. tableMapping.DataSetTable = "Administrator";
  8455. tableMapping.ColumnMappings.Add("Login", "Login");
  8456. tableMapping.ColumnMappings.Add("Password", "Password");
  8457. this._adapter.TableMappings.Add(tableMapping);
  8458. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8459. this._adapter.InsertCommand.Connection = this.Connection;
  8460. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Administrator] ([Login], [Password]) VALUES (@Login, @Password" +
  8461. ")";
  8462. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8463. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8464. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8465. }
  8466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8468. private void InitConnection() {
  8469. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8470. this._connection.ConnectionString = global::BB_Azizova.Properties.Settings.Default.BB_AzizovaConnectionString;
  8471. }
  8472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8474. private void InitCommandCollection() {
  8475. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8476. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8477. this._commandCollection[0].Connection = this.Connection;
  8478. this._commandCollection[0].CommandText = "SELECT Login, Password FROM dbo.Administrator";
  8479. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8480. }
  8481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8483. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8484. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8485. public virtual int Fill(BB_AzizovaDataSet.AdministratorDataTable dataTable) {
  8486. this.Adapter.SelectCommand = this.CommandCollection[0];
  8487. if ((this.ClearBeforeFill == true)) {
  8488. dataTable.Clear();
  8489. }
  8490. int returnValue = this.Adapter.Fill(dataTable);
  8491. return returnValue;
  8492. }
  8493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8495. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8496. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8497. public virtual BB_AzizovaDataSet.AdministratorDataTable GetData() {
  8498. this.Adapter.SelectCommand = this.CommandCollection[0];
  8499. BB_AzizovaDataSet.AdministratorDataTable dataTable = new BB_AzizovaDataSet.AdministratorDataTable();
  8500. this.Adapter.Fill(dataTable);
  8501. return dataTable;
  8502. }
  8503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8505. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8506. public virtual int Update(BB_AzizovaDataSet.AdministratorDataTable dataTable) {
  8507. return this.Adapter.Update(dataTable);
  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. public virtual int Update(BB_AzizovaDataSet dataSet) {
  8513. return this.Adapter.Update(dataSet, "Administrator");
  8514. }
  8515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8516. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8517. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8518. public virtual int Update(global::System.Data.DataRow dataRow) {
  8519. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8520. dataRow});
  8521. }
  8522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8524. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8525. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8526. return this.Adapter.Update(dataRows);
  8527. }
  8528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8530. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8531. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8532. public virtual int Insert(string Login, string Password) {
  8533. if ((Login == null)) {
  8534. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  8535. }
  8536. else {
  8537. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Login));
  8538. }
  8539. if ((Password == null)) {
  8540. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  8541. }
  8542. else {
  8543. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Password));
  8544. }
  8545. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8546. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8547. != global::System.Data.ConnectionState.Open)) {
  8548. this.Adapter.InsertCommand.Connection.Open();
  8549. }
  8550. try {
  8551. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8552. return returnValue;
  8553. }
  8554. finally {
  8555. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8556. this.Adapter.InsertCommand.Connection.Close();
  8557. }
  8558. }
  8559. }
  8560. }
  8561. /// <summary>
  8562. ///Represents the connection and commands used to retrieve and save data.
  8563. ///</summary>
  8564. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8565. [global::System.ComponentModel.ToolboxItem(true)]
  8566. [global::System.ComponentModel.DataObjectAttribute(true)]
  8567. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8568. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8569. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8570. public partial class AttachedProductTableAdapter : global::System.ComponentModel.Component {
  8571. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8572. private global::System.Data.SqlClient.SqlConnection _connection;
  8573. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8574. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8575. private bool _clearBeforeFill;
  8576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8578. public AttachedProductTableAdapter() {
  8579. this.ClearBeforeFill = true;
  8580. }
  8581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8583. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8584. get {
  8585. if ((this._adapter == null)) {
  8586. this.InitAdapter();
  8587. }
  8588. return this._adapter;
  8589. }
  8590. }
  8591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8593. internal global::System.Data.SqlClient.SqlConnection Connection {
  8594. get {
  8595. if ((this._connection == null)) {
  8596. this.InitConnection();
  8597. }
  8598. return this._connection;
  8599. }
  8600. set {
  8601. this._connection = value;
  8602. if ((this.Adapter.InsertCommand != null)) {
  8603. this.Adapter.InsertCommand.Connection = value;
  8604. }
  8605. if ((this.Adapter.DeleteCommand != null)) {
  8606. this.Adapter.DeleteCommand.Connection = value;
  8607. }
  8608. if ((this.Adapter.UpdateCommand != null)) {
  8609. this.Adapter.UpdateCommand.Connection = value;
  8610. }
  8611. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8612. if ((this.CommandCollection[i] != null)) {
  8613. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8614. }
  8615. }
  8616. }
  8617. }
  8618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8620. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8621. get {
  8622. return this._transaction;
  8623. }
  8624. set {
  8625. this._transaction = value;
  8626. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8627. this.CommandCollection[i].Transaction = this._transaction;
  8628. }
  8629. if (((this.Adapter != null)
  8630. && (this.Adapter.DeleteCommand != null))) {
  8631. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8632. }
  8633. if (((this.Adapter != null)
  8634. && (this.Adapter.InsertCommand != null))) {
  8635. this.Adapter.InsertCommand.Transaction = this._transaction;
  8636. }
  8637. if (((this.Adapter != null)
  8638. && (this.Adapter.UpdateCommand != null))) {
  8639. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8640. }
  8641. }
  8642. }
  8643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8645. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8646. get {
  8647. if ((this._commandCollection == null)) {
  8648. this.InitCommandCollection();
  8649. }
  8650. return this._commandCollection;
  8651. }
  8652. }
  8653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8655. public bool ClearBeforeFill {
  8656. get {
  8657. return this._clearBeforeFill;
  8658. }
  8659. set {
  8660. this._clearBeforeFill = value;
  8661. }
  8662. }
  8663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8665. private void InitAdapter() {
  8666. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8667. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8668. tableMapping.SourceTable = "Table";
  8669. tableMapping.DataSetTable = "AttachedProduct";
  8670. tableMapping.ColumnMappings.Add("MainProductID", "MainProductID");
  8671. tableMapping.ColumnMappings.Add("AttachedProductID", "AttachedProductID");
  8672. this._adapter.TableMappings.Add(tableMapping);
  8673. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8674. this._adapter.DeleteCommand.Connection = this.Connection;
  8675. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[AttachedProduct] WHERE (([MainProductID] = @Original_MainProdu" +
  8676. "ctID) AND ([AttachedProductID] = @Original_AttachedProductID))";
  8677. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8678. 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, "", "", ""));
  8679. 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, "", "", ""));
  8680. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8681. this._adapter.InsertCommand.Connection = this.Connection;
  8682. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[AttachedProduct] ([MainProductID], [AttachedProductID]) VALUES (@MainProductID, @AttachedProductID);
  8683. SELECT MainProductID, AttachedProductID FROM AttachedProduct WHERE (AttachedProductID = @AttachedProductID) AND (MainProductID = @MainProductID)";
  8684. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8685. 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, "", "", ""));
  8686. 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, "", "", ""));
  8687. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8688. this._adapter.UpdateCommand.Connection = this.Connection;
  8689. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AttachedProduct] SET [MainProductID] = @MainProductID, [AttachedProductID] = @AttachedProductID WHERE (([MainProductID] = @Original_MainProductID) AND ([AttachedProductID] = @Original_AttachedProductID));
  8690. SELECT MainProductID, AttachedProductID FROM AttachedProduct WHERE (AttachedProductID = @AttachedProductID) AND (MainProductID = @MainProductID)";
  8691. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8692. 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, "", "", ""));
  8693. 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, "", "", ""));
  8694. 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, "", "", ""));
  8695. 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, "", "", ""));
  8696. }
  8697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8699. private void InitConnection() {
  8700. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8701. this._connection.ConnectionString = global::BB_Azizova.Properties.Settings.Default.BB_AzizovaConnectionString;
  8702. }
  8703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8705. private void InitCommandCollection() {
  8706. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8707. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8708. this._commandCollection[0].Connection = this.Connection;
  8709. this._commandCollection[0].CommandText = "SELECT MainProductID, AttachedProductID FROM dbo.AttachedProduct";
  8710. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8711. }
  8712. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8713. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8714. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8715. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8716. public virtual int Fill(BB_AzizovaDataSet.AttachedProductDataTable dataTable) {
  8717. this.Adapter.SelectCommand = this.CommandCollection[0];
  8718. if ((this.ClearBeforeFill == true)) {
  8719. dataTable.Clear();
  8720. }
  8721. int returnValue = this.Adapter.Fill(dataTable);
  8722. return returnValue;
  8723. }
  8724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8725. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8726. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8727. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8728. public virtual BB_AzizovaDataSet.AttachedProductDataTable GetData() {
  8729. this.Adapter.SelectCommand = this.CommandCollection[0];
  8730. BB_AzizovaDataSet.AttachedProductDataTable dataTable = new BB_AzizovaDataSet.AttachedProductDataTable();
  8731. this.Adapter.Fill(dataTable);
  8732. return dataTable;
  8733. }
  8734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8736. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8737. public virtual int Update(BB_AzizovaDataSet.AttachedProductDataTable dataTable) {
  8738. return this.Adapter.Update(dataTable);
  8739. }
  8740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8742. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8743. public virtual int Update(BB_AzizovaDataSet dataSet) {
  8744. return this.Adapter.Update(dataSet, "AttachedProduct");
  8745. }
  8746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8748. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8749. public virtual int Update(global::System.Data.DataRow dataRow) {
  8750. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8751. dataRow});
  8752. }
  8753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8755. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8756. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8757. return this.Adapter.Update(dataRows);
  8758. }
  8759. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8760. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8761. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8762. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8763. public virtual int Delete(int Original_MainProductID, int Original_AttachedProductID) {
  8764. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_MainProductID));
  8765. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_AttachedProductID));
  8766. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8767. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8768. != global::System.Data.ConnectionState.Open)) {
  8769. this.Adapter.DeleteCommand.Connection.Open();
  8770. }
  8771. try {
  8772. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8773. return returnValue;
  8774. }
  8775. finally {
  8776. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8777. this.Adapter.DeleteCommand.Connection.Close();
  8778. }
  8779. }
  8780. }
  8781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8783. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8784. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8785. public virtual int Insert(int MainProductID, int AttachedProductID) {
  8786. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(MainProductID));
  8787. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(AttachedProductID));
  8788. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8789. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8790. != global::System.Data.ConnectionState.Open)) {
  8791. this.Adapter.InsertCommand.Connection.Open();
  8792. }
  8793. try {
  8794. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8795. return returnValue;
  8796. }
  8797. finally {
  8798. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8799. this.Adapter.InsertCommand.Connection.Close();
  8800. }
  8801. }
  8802. }
  8803. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8804. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8805. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8806. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8807. public virtual int Update(int MainProductID, int AttachedProductID, int Original_MainProductID, int Original_AttachedProductID) {
  8808. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(MainProductID));
  8809. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(AttachedProductID));
  8810. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_MainProductID));
  8811. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_AttachedProductID));
  8812. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8813. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8814. != global::System.Data.ConnectionState.Open)) {
  8815. this.Adapter.UpdateCommand.Connection.Open();
  8816. }
  8817. try {
  8818. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8819. return returnValue;
  8820. }
  8821. finally {
  8822. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8823. this.Adapter.UpdateCommand.Connection.Close();
  8824. }
  8825. }
  8826. }
  8827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8829. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8830. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8831. public virtual int Update(int Original_MainProductID, int Original_AttachedProductID) {
  8832. return this.Update(Original_MainProductID, Original_AttachedProductID, Original_MainProductID, Original_AttachedProductID);
  8833. }
  8834. }
  8835. /// <summary>
  8836. ///Represents the connection and commands used to retrieve and save data.
  8837. ///</summary>
  8838. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8839. [global::System.ComponentModel.ToolboxItem(true)]
  8840. [global::System.ComponentModel.DataObjectAttribute(true)]
  8841. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8842. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8843. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8844. public partial class ClientTableAdapter : global::System.ComponentModel.Component {
  8845. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8846. private global::System.Data.SqlClient.SqlConnection _connection;
  8847. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8848. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8849. private bool _clearBeforeFill;
  8850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8852. public ClientTableAdapter() {
  8853. this.ClearBeforeFill = true;
  8854. }
  8855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8857. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8858. get {
  8859. if ((this._adapter == null)) {
  8860. this.InitAdapter();
  8861. }
  8862. return this._adapter;
  8863. }
  8864. }
  8865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8867. internal global::System.Data.SqlClient.SqlConnection Connection {
  8868. get {
  8869. if ((this._connection == null)) {
  8870. this.InitConnection();
  8871. }
  8872. return this._connection;
  8873. }
  8874. set {
  8875. this._connection = value;
  8876. if ((this.Adapter.InsertCommand != null)) {
  8877. this.Adapter.InsertCommand.Connection = value;
  8878. }
  8879. if ((this.Adapter.DeleteCommand != null)) {
  8880. this.Adapter.DeleteCommand.Connection = value;
  8881. }
  8882. if ((this.Adapter.UpdateCommand != null)) {
  8883. this.Adapter.UpdateCommand.Connection = value;
  8884. }
  8885. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8886. if ((this.CommandCollection[i] != null)) {
  8887. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8888. }
  8889. }
  8890. }
  8891. }
  8892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8894. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8895. get {
  8896. return this._transaction;
  8897. }
  8898. set {
  8899. this._transaction = value;
  8900. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8901. this.CommandCollection[i].Transaction = this._transaction;
  8902. }
  8903. if (((this.Adapter != null)
  8904. && (this.Adapter.DeleteCommand != null))) {
  8905. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8906. }
  8907. if (((this.Adapter != null)
  8908. && (this.Adapter.InsertCommand != null))) {
  8909. this.Adapter.InsertCommand.Transaction = this._transaction;
  8910. }
  8911. if (((this.Adapter != null)
  8912. && (this.Adapter.UpdateCommand != null))) {
  8913. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8914. }
  8915. }
  8916. }
  8917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8919. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8920. get {
  8921. if ((this._commandCollection == null)) {
  8922. this.InitCommandCollection();
  8923. }
  8924. return this._commandCollection;
  8925. }
  8926. }
  8927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8929. public bool ClearBeforeFill {
  8930. get {
  8931. return this._clearBeforeFill;
  8932. }
  8933. set {
  8934. this._clearBeforeFill = value;
  8935. }
  8936. }
  8937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8939. private void InitAdapter() {
  8940. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8941. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8942. tableMapping.SourceTable = "Table";
  8943. tableMapping.DataSetTable = "Client";
  8944. tableMapping.ColumnMappings.Add("ID", "ID");
  8945. tableMapping.ColumnMappings.Add("FirstName", "FirstName");
  8946. tableMapping.ColumnMappings.Add("LastName", "LastName");
  8947. tableMapping.ColumnMappings.Add("Patronymic", "Patronymic");
  8948. tableMapping.ColumnMappings.Add("Birthday", "Birthday");
  8949. tableMapping.ColumnMappings.Add("RegistrationDate", "RegistrationDate");
  8950. tableMapping.ColumnMappings.Add("Email", "Email");
  8951. tableMapping.ColumnMappings.Add("Phone", "Phone");
  8952. tableMapping.ColumnMappings.Add("GenderCode", "GenderCode");
  8953. tableMapping.ColumnMappings.Add("PhotoPath", "PhotoPath");
  8954. this._adapter.TableMappings.Add(tableMapping);
  8955. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8956. this._adapter.DeleteCommand.Connection = this.Connection;
  8957. 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)))";
  8958. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8959. 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, "", "", ""));
  8960. 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, "", "", ""));
  8961. 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, "", "", ""));
  8962. 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, "", "", ""));
  8963. 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, "", "", ""));
  8964. 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, "", "", ""));
  8965. 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, "", "", ""));
  8966. 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, "", "", ""));
  8967. 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, "", "", ""));
  8968. 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, "", "", ""));
  8969. 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, "", "", ""));
  8970. 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, "", "", ""));
  8971. 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, "", "", ""));
  8972. 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, "", "", ""));
  8973. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8974. this._adapter.InsertCommand.Connection = this.Connection;
  8975. 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);
  8976. SELECT ID, FirstName, LastName, Patronymic, Birthday, RegistrationDate, Email, Phone, GenderCode, PhotoPath FROM Client WHERE (ID = SCOPE_IDENTITY())";
  8977. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8978. 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, "", "", ""));
  8979. 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, "", "", ""));
  8980. 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, "", "", ""));
  8981. 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, "", "", ""));
  8982. 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, "", "", ""));
  8983. 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, "", "", ""));
  8984. 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, "", "", ""));
  8985. 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, "", "", ""));
  8986. 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, "", "", ""));
  8987. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8988. this._adapter.UpdateCommand.Connection = this.Connection;
  8989. 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)));
  8990. SELECT ID, FirstName, LastName, Patronymic, Birthday, RegistrationDate, Email, Phone, GenderCode, PhotoPath FROM Client WHERE (ID = @ID)";
  8991. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8992. 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, "", "", ""));
  8993. 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, "", "", ""));
  8994. 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, "", "", ""));
  8995. 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, "", "", ""));
  8996. 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, "", "", ""));
  8997. 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, "", "", ""));
  8998. 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, "", "", ""));
  8999. 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, "", "", ""));
  9000. 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, "", "", ""));
  9001. 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, "", "", ""));
  9002. 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, "", "", ""));
  9003. 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, "", "", ""));
  9004. 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, "", "", ""));
  9005. 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, "", "", ""));
  9006. 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, "", "", ""));
  9007. 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, "", "", ""));
  9008. 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, "", "", ""));
  9009. 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, "", "", ""));
  9010. 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, "", "", ""));
  9011. 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, "", "", ""));
  9012. 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, "", "", ""));
  9013. 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, "", "", ""));
  9014. 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, "", "", ""));
  9015. 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, "", "", ""));
  9016. }
  9017. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9019. private void InitConnection() {
  9020. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9021. this._connection.ConnectionString = global::BB_Azizova.Properties.Settings.Default.BB_AzizovaConnectionString;
  9022. }
  9023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9025. private void InitCommandCollection() {
  9026. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9027. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9028. this._commandCollection[0].Connection = this.Connection;
  9029. this._commandCollection[0].CommandText = "SELECT ID, FirstName, LastName, Patronymic, Birthday, RegistrationDate, Email, Ph" +
  9030. "one, GenderCode, PhotoPath FROM dbo.Client";
  9031. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9032. }
  9033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9034. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9035. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9036. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9037. public virtual int Fill(BB_AzizovaDataSet.ClientDataTable dataTable) {
  9038. this.Adapter.SelectCommand = this.CommandCollection[0];
  9039. if ((this.ClearBeforeFill == true)) {
  9040. dataTable.Clear();
  9041. }
  9042. int returnValue = this.Adapter.Fill(dataTable);
  9043. return returnValue;
  9044. }
  9045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9047. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9048. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9049. public virtual BB_AzizovaDataSet.ClientDataTable GetData() {
  9050. this.Adapter.SelectCommand = this.CommandCollection[0];
  9051. BB_AzizovaDataSet.ClientDataTable dataTable = new BB_AzizovaDataSet.ClientDataTable();
  9052. this.Adapter.Fill(dataTable);
  9053. return dataTable;
  9054. }
  9055. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9056. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9057. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9058. public virtual int Update(BB_AzizovaDataSet.ClientDataTable dataTable) {
  9059. return this.Adapter.Update(dataTable);
  9060. }
  9061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9063. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9064. public virtual int Update(BB_AzizovaDataSet dataSet) {
  9065. return this.Adapter.Update(dataSet, "Client");
  9066. }
  9067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9069. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9070. public virtual int Update(global::System.Data.DataRow dataRow) {
  9071. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9072. dataRow});
  9073. }
  9074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9076. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9077. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9078. return this.Adapter.Update(dataRows);
  9079. }
  9080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9082. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9083. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9084. 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) {
  9085. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9086. if ((Original_FirstName == null)) {
  9087. throw new global::System.ArgumentNullException("Original_FirstName");
  9088. }
  9089. else {
  9090. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_FirstName));
  9091. }
  9092. if ((Original_LastName == null)) {
  9093. throw new global::System.ArgumentNullException("Original_LastName");
  9094. }
  9095. else {
  9096. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_LastName));
  9097. }
  9098. if ((Original_Patronymic == null)) {
  9099. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  9100. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  9101. }
  9102. else {
  9103. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  9104. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Patronymic));
  9105. }
  9106. if ((Original_Birthday.HasValue == true)) {
  9107. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  9108. this.Adapter.DeleteCommand.Parameters[6].Value = ((System.DateTime)(Original_Birthday.Value));
  9109. }
  9110. else {
  9111. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  9112. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  9113. }
  9114. this.Adapter.DeleteCommand.Parameters[7].Value = ((System.DateTime)(Original_RegistrationDate));
  9115. if ((Original_Email == null)) {
  9116. this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(1));
  9117. this.Adapter.DeleteCommand.Parameters[9].Value = global::System.DBNull.Value;
  9118. }
  9119. else {
  9120. this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(0));
  9121. this.Adapter.DeleteCommand.Parameters[9].Value = ((string)(Original_Email));
  9122. }
  9123. if ((Original_Phone == null)) {
  9124. throw new global::System.ArgumentNullException("Original_Phone");
  9125. }
  9126. else {
  9127. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Phone));
  9128. }
  9129. if ((Original_GenderCode == null)) {
  9130. throw new global::System.ArgumentNullException("Original_GenderCode");
  9131. }
  9132. else {
  9133. this.Adapter.DeleteCommand.Parameters[11].Value = ((string)(Original_GenderCode));
  9134. }
  9135. if ((Original_PhotoPath == null)) {
  9136. this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(1));
  9137. this.Adapter.DeleteCommand.Parameters[13].Value = global::System.DBNull.Value;
  9138. }
  9139. else {
  9140. this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(0));
  9141. this.Adapter.DeleteCommand.Parameters[13].Value = ((string)(Original_PhotoPath));
  9142. }
  9143. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9144. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9145. != global::System.Data.ConnectionState.Open)) {
  9146. this.Adapter.DeleteCommand.Connection.Open();
  9147. }
  9148. try {
  9149. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9150. return returnValue;
  9151. }
  9152. finally {
  9153. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9154. this.Adapter.DeleteCommand.Connection.Close();
  9155. }
  9156. }
  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.Insert, true)]
  9162. 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) {
  9163. if ((FirstName == null)) {
  9164. throw new global::System.ArgumentNullException("FirstName");
  9165. }
  9166. else {
  9167. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(FirstName));
  9168. }
  9169. if ((LastName == null)) {
  9170. throw new global::System.ArgumentNullException("LastName");
  9171. }
  9172. else {
  9173. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(LastName));
  9174. }
  9175. if ((Patronymic == null)) {
  9176. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  9177. }
  9178. else {
  9179. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Patronymic));
  9180. }
  9181. if ((Birthday.HasValue == true)) {
  9182. this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(Birthday.Value));
  9183. }
  9184. else {
  9185. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  9186. }
  9187. this.Adapter.InsertCommand.Parameters[4].Value = ((System.DateTime)(RegistrationDate));
  9188. if ((Email == null)) {
  9189. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  9190. }
  9191. else {
  9192. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Email));
  9193. }
  9194. if ((Phone == null)) {
  9195. throw new global::System.ArgumentNullException("Phone");
  9196. }
  9197. else {
  9198. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Phone));
  9199. }
  9200. if ((GenderCode == null)) {
  9201. throw new global::System.ArgumentNullException("GenderCode");
  9202. }
  9203. else {
  9204. this.Adapter.InsertCommand.Parameters[7].Value = ((string)(GenderCode));
  9205. }
  9206. if ((PhotoPath == null)) {
  9207. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  9208. }
  9209. else {
  9210. this.Adapter.InsertCommand.Parameters[8].Value = ((string)(PhotoPath));
  9211. }
  9212. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9213. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9214. != global::System.Data.ConnectionState.Open)) {
  9215. this.Adapter.InsertCommand.Connection.Open();
  9216. }
  9217. try {
  9218. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9219. return returnValue;
  9220. }
  9221. finally {
  9222. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9223. this.Adapter.InsertCommand.Connection.Close();
  9224. }
  9225. }
  9226. }
  9227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9229. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9230. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9231. public virtual int Update(
  9232. string FirstName,
  9233. string LastName,
  9234. string Patronymic,
  9235. global::System.Nullable<global::System.DateTime> Birthday,
  9236. System.DateTime RegistrationDate,
  9237. string Email,
  9238. string Phone,
  9239. string GenderCode,
  9240. string PhotoPath,
  9241. int Original_ID,
  9242. string Original_FirstName,
  9243. string Original_LastName,
  9244. string Original_Patronymic,
  9245. global::System.Nullable<global::System.DateTime> Original_Birthday,
  9246. System.DateTime Original_RegistrationDate,
  9247. string Original_Email,
  9248. string Original_Phone,
  9249. string Original_GenderCode,
  9250. string Original_PhotoPath,
  9251. int ID) {
  9252. if ((FirstName == null)) {
  9253. throw new global::System.ArgumentNullException("FirstName");
  9254. }
  9255. else {
  9256. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(FirstName));
  9257. }
  9258. if ((LastName == null)) {
  9259. throw new global::System.ArgumentNullException("LastName");
  9260. }
  9261. else {
  9262. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(LastName));
  9263. }
  9264. if ((Patronymic == null)) {
  9265. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  9266. }
  9267. else {
  9268. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Patronymic));
  9269. }
  9270. if ((Birthday.HasValue == true)) {
  9271. this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(Birthday.Value));
  9272. }
  9273. else {
  9274. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  9275. }
  9276. this.Adapter.UpdateCommand.Parameters[4].Value = ((System.DateTime)(RegistrationDate));
  9277. if ((Email == null)) {
  9278. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  9279. }
  9280. else {
  9281. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Email));
  9282. }
  9283. if ((Phone == null)) {
  9284. throw new global::System.ArgumentNullException("Phone");
  9285. }
  9286. else {
  9287. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Phone));
  9288. }
  9289. if ((GenderCode == null)) {
  9290. throw new global::System.ArgumentNullException("GenderCode");
  9291. }
  9292. else {
  9293. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(GenderCode));
  9294. }
  9295. if ((PhotoPath == null)) {
  9296. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  9297. }
  9298. else {
  9299. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(PhotoPath));
  9300. }
  9301. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_ID));
  9302. if ((Original_FirstName == null)) {
  9303. throw new global::System.ArgumentNullException("Original_FirstName");
  9304. }
  9305. else {
  9306. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_FirstName));
  9307. }
  9308. if ((Original_LastName == null)) {
  9309. throw new global::System.ArgumentNullException("Original_LastName");
  9310. }
  9311. else {
  9312. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_LastName));
  9313. }
  9314. if ((Original_Patronymic == null)) {
  9315. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  9316. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  9317. }
  9318. else {
  9319. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  9320. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_Patronymic));
  9321. }
  9322. if ((Original_Birthday.HasValue == true)) {
  9323. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  9324. this.Adapter.UpdateCommand.Parameters[15].Value = ((System.DateTime)(Original_Birthday.Value));
  9325. }
  9326. else {
  9327. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  9328. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  9329. }
  9330. this.Adapter.UpdateCommand.Parameters[16].Value = ((System.DateTime)(Original_RegistrationDate));
  9331. if ((Original_Email == null)) {
  9332. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
  9333. this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
  9334. }
  9335. else {
  9336. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
  9337. this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_Email));
  9338. }
  9339. if ((Original_Phone == null)) {
  9340. throw new global::System.ArgumentNullException("Original_Phone");
  9341. }
  9342. else {
  9343. this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_Phone));
  9344. }
  9345. if ((Original_GenderCode == null)) {
  9346. throw new global::System.ArgumentNullException("Original_GenderCode");
  9347. }
  9348. else {
  9349. this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(Original_GenderCode));
  9350. }
  9351. if ((Original_PhotoPath == null)) {
  9352. this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(1));
  9353. this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value;
  9354. }
  9355. else {
  9356. this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(0));
  9357. this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(Original_PhotoPath));
  9358. }
  9359. this.Adapter.UpdateCommand.Parameters[23].Value = ((int)(ID));
  9360. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9361. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9362. != global::System.Data.ConnectionState.Open)) {
  9363. this.Adapter.UpdateCommand.Connection.Open();
  9364. }
  9365. try {
  9366. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9367. return returnValue;
  9368. }
  9369. finally {
  9370. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9371. this.Adapter.UpdateCommand.Connection.Close();
  9372. }
  9373. }
  9374. }
  9375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9377. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9378. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9379. public virtual int Update(
  9380. string FirstName,
  9381. string LastName,
  9382. string Patronymic,
  9383. global::System.Nullable<global::System.DateTime> Birthday,
  9384. System.DateTime RegistrationDate,
  9385. string Email,
  9386. string Phone,
  9387. string GenderCode,
  9388. string PhotoPath,
  9389. int Original_ID,
  9390. string Original_FirstName,
  9391. string Original_LastName,
  9392. string Original_Patronymic,
  9393. global::System.Nullable<global::System.DateTime> Original_Birthday,
  9394. System.DateTime Original_RegistrationDate,
  9395. string Original_Email,
  9396. string Original_Phone,
  9397. string Original_GenderCode,
  9398. string Original_PhotoPath) {
  9399. 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);
  9400. }
  9401. }
  9402. /// <summary>
  9403. ///Represents the connection and commands used to retrieve and save data.
  9404. ///</summary>
  9405. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9406. [global::System.ComponentModel.ToolboxItem(true)]
  9407. [global::System.ComponentModel.DataObjectAttribute(true)]
  9408. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9409. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9410. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9411. public partial class ClientsTableAdapter : global::System.ComponentModel.Component {
  9412. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9413. private global::System.Data.SqlClient.SqlConnection _connection;
  9414. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9415. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9416. private bool _clearBeforeFill;
  9417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9419. public ClientsTableAdapter() {
  9420. this.ClearBeforeFill = true;
  9421. }
  9422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9423. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9424. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9425. get {
  9426. if ((this._adapter == null)) {
  9427. this.InitAdapter();
  9428. }
  9429. return this._adapter;
  9430. }
  9431. }
  9432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9433. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9434. internal global::System.Data.SqlClient.SqlConnection Connection {
  9435. get {
  9436. if ((this._connection == null)) {
  9437. this.InitConnection();
  9438. }
  9439. return this._connection;
  9440. }
  9441. set {
  9442. this._connection = value;
  9443. if ((this.Adapter.InsertCommand != null)) {
  9444. this.Adapter.InsertCommand.Connection = value;
  9445. }
  9446. if ((this.Adapter.DeleteCommand != null)) {
  9447. this.Adapter.DeleteCommand.Connection = value;
  9448. }
  9449. if ((this.Adapter.UpdateCommand != null)) {
  9450. this.Adapter.UpdateCommand.Connection = value;
  9451. }
  9452. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9453. if ((this.CommandCollection[i] != null)) {
  9454. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9455. }
  9456. }
  9457. }
  9458. }
  9459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9461. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9462. get {
  9463. return this._transaction;
  9464. }
  9465. set {
  9466. this._transaction = value;
  9467. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9468. this.CommandCollection[i].Transaction = this._transaction;
  9469. }
  9470. if (((this.Adapter != null)
  9471. && (this.Adapter.DeleteCommand != null))) {
  9472. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9473. }
  9474. if (((this.Adapter != null)
  9475. && (this.Adapter.InsertCommand != null))) {
  9476. this.Adapter.InsertCommand.Transaction = this._transaction;
  9477. }
  9478. if (((this.Adapter != null)
  9479. && (this.Adapter.UpdateCommand != null))) {
  9480. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9481. }
  9482. }
  9483. }
  9484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9486. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9487. get {
  9488. if ((this._commandCollection == null)) {
  9489. this.InitCommandCollection();
  9490. }
  9491. return this._commandCollection;
  9492. }
  9493. }
  9494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9496. public bool ClearBeforeFill {
  9497. get {
  9498. return this._clearBeforeFill;
  9499. }
  9500. set {
  9501. this._clearBeforeFill = value;
  9502. }
  9503. }
  9504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9506. private void InitAdapter() {
  9507. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9508. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9509. tableMapping.SourceTable = "Table";
  9510. tableMapping.DataSetTable = "Clients";
  9511. tableMapping.ColumnMappings.Add("ID_Client", "ID_Client");
  9512. tableMapping.ColumnMappings.Add("Phomilia", "Phomilia");
  9513. tableMapping.ColumnMappings.Add("Name", "Name");
  9514. tableMapping.ColumnMappings.Add("Otchestvo", "Otchestvo");
  9515. tableMapping.ColumnMappings.Add("Pol", "Pol");
  9516. tableMapping.ColumnMappings.Add("Phone", "Phone");
  9517. tableMapping.ColumnMappings.Add("Birthday", "Birthday");
  9518. tableMapping.ColumnMappings.Add("Email", "Email");
  9519. tableMapping.ColumnMappings.Add("Data_Registra", "Data_Registra");
  9520. this._adapter.TableMappings.Add(tableMapping);
  9521. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9522. this._adapter.DeleteCommand.Connection = this.Connection;
  9523. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Clients] WHERE (([ID_Client] = @Original_ID_Client) AND ((@IsNull_Phomilia = 1 AND [Phomilia] IS NULL) OR ([Phomilia] = @Original_Phomilia)) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_Otchestvo = 1 AND [Otchestvo] IS NULL) OR ([Otchestvo] = @Original_Otchestvo)) AND ((@IsNull_Pol = 1 AND [Pol] IS NULL) OR ([Pol] = @Original_Pol)) AND ((@IsNull_Phone = 1 AND [Phone] IS NULL) OR ([Phone] = @Original_Phone)) AND ((@IsNull_Birthday = 1 AND [Birthday] IS NULL) OR ([Birthday] = @Original_Birthday)) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ((@IsNull_Data_Registra = 1 AND [Data_Registra] IS NULL) OR ([Data_Registra] = @Original_Data_Registra)))";
  9524. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9525. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Client", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Client", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9526. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Phomilia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phomilia", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9527. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Phomilia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phomilia", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9528. 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, "", "", ""));
  9529. 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, "", "", ""));
  9530. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Otchestvo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Otchestvo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9531. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Otchestvo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Otchestvo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9532. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Pol", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Pol", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9533. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Pol", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Pol", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9534. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Phone", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9535. 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, "", "", ""));
  9536. 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, "", "", ""));
  9537. 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, "", "", ""));
  9538. 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, "", "", ""));
  9539. 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, "", "", ""));
  9540. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Data_Registra", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Data_Registra", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9541. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Data_Registra", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Data_Registra", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9542. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9543. this._adapter.InsertCommand.Connection = this.Connection;
  9544. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Clients] ([ID_Client], [Phomilia], [Name], [Otchestvo], [Pol], [Phone], [Birthday], [Email], [Data_Registra]) VALUES (@ID_Client, @Phomilia, @Name, @Otchestvo, @Pol, @Phone, @Birthday, @Email, @Data_Registra);
  9545. SELECT ID_Client, Phomilia, Name, Otchestvo, Pol, Phone, Birthday, Email, Data_Registra FROM Clients WHERE (ID_Client = @ID_Client)";
  9546. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9547. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Client", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Client", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9548. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Phomilia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phomilia", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9549. 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, "", "", ""));
  9550. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Otchestvo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Otchestvo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9551. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Pol", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Pol", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9552. 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, "", "", ""));
  9553. 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, "", "", ""));
  9554. 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, "", "", ""));
  9555. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Data_Registra", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Data_Registra", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9556. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9557. this._adapter.UpdateCommand.Connection = this.Connection;
  9558. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Clients] SET [ID_Client] = @ID_Client, [Phomilia] = @Phomilia, [Name] = @Name, [Otchestvo] = @Otchestvo, [Pol] = @Pol, [Phone] = @Phone, [Birthday] = @Birthday, [Email] = @Email, [Data_Registra] = @Data_Registra WHERE (([ID_Client] = @Original_ID_Client) AND ((@IsNull_Phomilia = 1 AND [Phomilia] IS NULL) OR ([Phomilia] = @Original_Phomilia)) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_Otchestvo = 1 AND [Otchestvo] IS NULL) OR ([Otchestvo] = @Original_Otchestvo)) AND ((@IsNull_Pol = 1 AND [Pol] IS NULL) OR ([Pol] = @Original_Pol)) AND ((@IsNull_Phone = 1 AND [Phone] IS NULL) OR ([Phone] = @Original_Phone)) AND ((@IsNull_Birthday = 1 AND [Birthday] IS NULL) OR ([Birthday] = @Original_Birthday)) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ((@IsNull_Data_Registra = 1 AND [Data_Registra] IS NULL) OR ([Data_Registra] = @Original_Data_Registra)));
  9559. SELECT ID_Client, Phomilia, Name, Otchestvo, Pol, Phone, Birthday, Email, Data_Registra FROM Clients WHERE (ID_Client = @ID_Client)";
  9560. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9561. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Client", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Client", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9562. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Phomilia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phomilia", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9563. 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, "", "", ""));
  9564. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Otchestvo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Otchestvo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9565. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Pol", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Pol", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9566. 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, "", "", ""));
  9567. 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, "", "", ""));
  9568. 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, "", "", ""));
  9569. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Data_Registra", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Data_Registra", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9570. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Client", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Client", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9571. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Phomilia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phomilia", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9572. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Phomilia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phomilia", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9573. 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, "", "", ""));
  9574. 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, "", "", ""));
  9575. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Otchestvo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Otchestvo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9576. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Otchestvo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Otchestvo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9577. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Pol", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Pol", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9578. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Pol", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Pol", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9579. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Phone", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9580. 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, "", "", ""));
  9581. 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, "", "", ""));
  9582. 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, "", "", ""));
  9583. 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, "", "", ""));
  9584. 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, "", "", ""));
  9585. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Data_Registra", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Data_Registra", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9586. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Data_Registra", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Data_Registra", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9587. }
  9588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9590. private void InitConnection() {
  9591. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9592. this._connection.ConnectionString = global::BB_Azizova.Properties.Settings.Default.BB_AzizovaConnectionString;
  9593. }
  9594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9596. private void InitCommandCollection() {
  9597. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9598. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9599. this._commandCollection[0].Connection = this.Connection;
  9600. this._commandCollection[0].CommandText = "SELECT ID_Client, Phomilia, Name, Otchestvo, Pol, Phone, Birthday, Email, Data_Re" +
  9601. "gistra FROM dbo.Clients";
  9602. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9603. }
  9604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9606. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9607. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9608. public virtual int Fill(BB_AzizovaDataSet.ClientsDataTable dataTable) {
  9609. this.Adapter.SelectCommand = this.CommandCollection[0];
  9610. if ((this.ClearBeforeFill == true)) {
  9611. dataTable.Clear();
  9612. }
  9613. int returnValue = this.Adapter.Fill(dataTable);
  9614. return returnValue;
  9615. }
  9616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9618. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9619. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9620. public virtual BB_AzizovaDataSet.ClientsDataTable GetData() {
  9621. this.Adapter.SelectCommand = this.CommandCollection[0];
  9622. BB_AzizovaDataSet.ClientsDataTable dataTable = new BB_AzizovaDataSet.ClientsDataTable();
  9623. this.Adapter.Fill(dataTable);
  9624. return dataTable;
  9625. }
  9626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9628. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9629. public virtual int Update(BB_AzizovaDataSet.ClientsDataTable dataTable) {
  9630. return this.Adapter.Update(dataTable);
  9631. }
  9632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9634. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9635. public virtual int Update(BB_AzizovaDataSet dataSet) {
  9636. return this.Adapter.Update(dataSet, "Clients");
  9637. }
  9638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9640. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9641. public virtual int Update(global::System.Data.DataRow dataRow) {
  9642. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9643. dataRow});
  9644. }
  9645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9647. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9648. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9649. return this.Adapter.Update(dataRows);
  9650. }
  9651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9653. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9654. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9655. public virtual int Delete(long Original_ID_Client, string Original_Phomilia, string Original_Name, string Original_Otchestvo, string Original_Pol, string Original_Phone, global::System.Nullable<global::System.DateTime> Original_Birthday, string Original_Email, global::System.Nullable<global::System.DateTime> Original_Data_Registra) {
  9656. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_ID_Client));
  9657. if ((Original_Phomilia == null)) {
  9658. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  9659. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  9660. }
  9661. else {
  9662. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  9663. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Phomilia));
  9664. }
  9665. if ((Original_Name == null)) {
  9666. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  9667. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  9668. }
  9669. else {
  9670. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  9671. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Name));
  9672. }
  9673. if ((Original_Otchestvo == null)) {
  9674. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  9675. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  9676. }
  9677. else {
  9678. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  9679. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Otchestvo));
  9680. }
  9681. if ((Original_Pol == null)) {
  9682. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  9683. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  9684. }
  9685. else {
  9686. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  9687. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Pol));
  9688. }
  9689. if ((Original_Phone == null)) {
  9690. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  9691. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  9692. }
  9693. else {
  9694. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  9695. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Phone));
  9696. }
  9697. if ((Original_Birthday.HasValue == true)) {
  9698. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  9699. this.Adapter.DeleteCommand.Parameters[12].Value = ((System.DateTime)(Original_Birthday.Value));
  9700. }
  9701. else {
  9702. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  9703. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  9704. }
  9705. if ((Original_Email == null)) {
  9706. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
  9707. this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
  9708. }
  9709. else {
  9710. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
  9711. this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_Email));
  9712. }
  9713. if ((Original_Data_Registra.HasValue == true)) {
  9714. this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(0));
  9715. this.Adapter.DeleteCommand.Parameters[16].Value = ((System.DateTime)(Original_Data_Registra.Value));
  9716. }
  9717. else {
  9718. this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(1));
  9719. this.Adapter.DeleteCommand.Parameters[16].Value = global::System.DBNull.Value;
  9720. }
  9721. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9722. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9723. != global::System.Data.ConnectionState.Open)) {
  9724. this.Adapter.DeleteCommand.Connection.Open();
  9725. }
  9726. try {
  9727. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9728. return returnValue;
  9729. }
  9730. finally {
  9731. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9732. this.Adapter.DeleteCommand.Connection.Close();
  9733. }
  9734. }
  9735. }
  9736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9738. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9739. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9740. public virtual int Insert(long ID_Client, string Phomilia, string Name, string Otchestvo, string Pol, string Phone, global::System.Nullable<global::System.DateTime> Birthday, string Email, global::System.Nullable<global::System.DateTime> Data_Registra) {
  9741. this.Adapter.InsertCommand.Parameters[0].Value = ((long)(ID_Client));
  9742. if ((Phomilia == null)) {
  9743. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  9744. }
  9745. else {
  9746. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Phomilia));
  9747. }
  9748. if ((Name == null)) {
  9749. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  9750. }
  9751. else {
  9752. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Name));
  9753. }
  9754. if ((Otchestvo == null)) {
  9755. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  9756. }
  9757. else {
  9758. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Otchestvo));
  9759. }
  9760. if ((Pol == null)) {
  9761. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  9762. }
  9763. else {
  9764. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Pol));
  9765. }
  9766. if ((Phone == null)) {
  9767. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  9768. }
  9769. else {
  9770. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Phone));
  9771. }
  9772. if ((Birthday.HasValue == true)) {
  9773. this.Adapter.InsertCommand.Parameters[6].Value = ((System.DateTime)(Birthday.Value));
  9774. }
  9775. else {
  9776. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  9777. }
  9778. if ((Email == null)) {
  9779. this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
  9780. }
  9781. else {
  9782. this.Adapter.InsertCommand.Parameters[7].Value = ((string)(Email));
  9783. }
  9784. if ((Data_Registra.HasValue == true)) {
  9785. this.Adapter.InsertCommand.Parameters[8].Value = ((System.DateTime)(Data_Registra.Value));
  9786. }
  9787. else {
  9788. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  9789. }
  9790. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9791. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9792. != global::System.Data.ConnectionState.Open)) {
  9793. this.Adapter.InsertCommand.Connection.Open();
  9794. }
  9795. try {
  9796. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9797. return returnValue;
  9798. }
  9799. finally {
  9800. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9801. this.Adapter.InsertCommand.Connection.Close();
  9802. }
  9803. }
  9804. }
  9805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9806. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9807. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9808. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9809. public virtual int Update(
  9810. long ID_Client,
  9811. string Phomilia,
  9812. string Name,
  9813. string Otchestvo,
  9814. string Pol,
  9815. string Phone,
  9816. global::System.Nullable<global::System.DateTime> Birthday,
  9817. string Email,
  9818. global::System.Nullable<global::System.DateTime> Data_Registra,
  9819. long Original_ID_Client,
  9820. string Original_Phomilia,
  9821. string Original_Name,
  9822. string Original_Otchestvo,
  9823. string Original_Pol,
  9824. string Original_Phone,
  9825. global::System.Nullable<global::System.DateTime> Original_Birthday,
  9826. string Original_Email,
  9827. global::System.Nullable<global::System.DateTime> Original_Data_Registra) {
  9828. this.Adapter.UpdateCommand.Parameters[0].Value = ((long)(ID_Client));
  9829. if ((Phomilia == null)) {
  9830. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  9831. }
  9832. else {
  9833. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Phomilia));
  9834. }
  9835. if ((Name == null)) {
  9836. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  9837. }
  9838. else {
  9839. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Name));
  9840. }
  9841. if ((Otchestvo == null)) {
  9842. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  9843. }
  9844. else {
  9845. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Otchestvo));
  9846. }
  9847. if ((Pol == null)) {
  9848. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  9849. }
  9850. else {
  9851. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Pol));
  9852. }
  9853. if ((Phone == null)) {
  9854. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  9855. }
  9856. else {
  9857. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Phone));
  9858. }
  9859. if ((Birthday.HasValue == true)) {
  9860. this.Adapter.UpdateCommand.Parameters[6].Value = ((System.DateTime)(Birthday.Value));
  9861. }
  9862. else {
  9863. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  9864. }
  9865. if ((Email == null)) {
  9866. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  9867. }
  9868. else {
  9869. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Email));
  9870. }
  9871. if ((Data_Registra.HasValue == true)) {
  9872. this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(Data_Registra.Value));
  9873. }
  9874. else {
  9875. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  9876. }
  9877. this.Adapter.UpdateCommand.Parameters[9].Value = ((long)(Original_ID_Client));
  9878. if ((Original_Phomilia == null)) {
  9879. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  9880. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  9881. }
  9882. else {
  9883. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  9884. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Phomilia));
  9885. }
  9886. if ((Original_Name == null)) {
  9887. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  9888. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  9889. }
  9890. else {
  9891. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  9892. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_Name));
  9893. }
  9894. if ((Original_Otchestvo == null)) {
  9895. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  9896. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  9897. }
  9898. else {
  9899. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  9900. this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_Otchestvo));
  9901. }
  9902. if ((Original_Pol == null)) {
  9903. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
  9904. this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
  9905. }
  9906. else {
  9907. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
  9908. this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_Pol));
  9909. }
  9910. if ((Original_Phone == null)) {
  9911. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
  9912. this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
  9913. }
  9914. else {
  9915. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
  9916. this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_Phone));
  9917. }
  9918. if ((Original_Birthday.HasValue == true)) {
  9919. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
  9920. this.Adapter.UpdateCommand.Parameters[21].Value = ((System.DateTime)(Original_Birthday.Value));
  9921. }
  9922. else {
  9923. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
  9924. this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
  9925. }
  9926. if ((Original_Email == null)) {
  9927. this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
  9928. this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
  9929. }
  9930. else {
  9931. this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
  9932. this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_Email));
  9933. }
  9934. if ((Original_Data_Registra.HasValue == true)) {
  9935. this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0));
  9936. this.Adapter.UpdateCommand.Parameters[25].Value = ((System.DateTime)(Original_Data_Registra.Value));
  9937. }
  9938. else {
  9939. this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1));
  9940. this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value;
  9941. }
  9942. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9943. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9944. != global::System.Data.ConnectionState.Open)) {
  9945. this.Adapter.UpdateCommand.Connection.Open();
  9946. }
  9947. try {
  9948. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9949. return returnValue;
  9950. }
  9951. finally {
  9952. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9953. this.Adapter.UpdateCommand.Connection.Close();
  9954. }
  9955. }
  9956. }
  9957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9959. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9960. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9961. public virtual int Update(
  9962. string Phomilia,
  9963. string Name,
  9964. string Otchestvo,
  9965. string Pol,
  9966. string Phone,
  9967. global::System.Nullable<global::System.DateTime> Birthday,
  9968. string Email,
  9969. global::System.Nullable<global::System.DateTime> Data_Registra,
  9970. long Original_ID_Client,
  9971. string Original_Phomilia,
  9972. string Original_Name,
  9973. string Original_Otchestvo,
  9974. string Original_Pol,
  9975. string Original_Phone,
  9976. global::System.Nullable<global::System.DateTime> Original_Birthday,
  9977. string Original_Email,
  9978. global::System.Nullable<global::System.DateTime> Original_Data_Registra) {
  9979. return this.Update(Original_ID_Client, Phomilia, Name, Otchestvo, Pol, Phone, Birthday, Email, Data_Registra, Original_ID_Client, Original_Phomilia, Original_Name, Original_Otchestvo, Original_Pol, Original_Phone, Original_Birthday, Original_Email, Original_Data_Registra);
  9980. }
  9981. }
  9982. /// <summary>
  9983. ///Represents the connection and commands used to retrieve and save data.
  9984. ///</summary>
  9985. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9986. [global::System.ComponentModel.ToolboxItem(true)]
  9987. [global::System.ComponentModel.DataObjectAttribute(true)]
  9988. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9989. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9990. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9991. public partial class ClientServiceTableAdapter : global::System.ComponentModel.Component {
  9992. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9993. private global::System.Data.SqlClient.SqlConnection _connection;
  9994. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9995. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9996. private bool _clearBeforeFill;
  9997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9998. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9999. public ClientServiceTableAdapter() {
  10000. this.ClearBeforeFill = true;
  10001. }
  10002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10004. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10005. get {
  10006. if ((this._adapter == null)) {
  10007. this.InitAdapter();
  10008. }
  10009. return this._adapter;
  10010. }
  10011. }
  10012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10014. internal global::System.Data.SqlClient.SqlConnection Connection {
  10015. get {
  10016. if ((this._connection == null)) {
  10017. this.InitConnection();
  10018. }
  10019. return this._connection;
  10020. }
  10021. set {
  10022. this._connection = value;
  10023. if ((this.Adapter.InsertCommand != null)) {
  10024. this.Adapter.InsertCommand.Connection = value;
  10025. }
  10026. if ((this.Adapter.DeleteCommand != null)) {
  10027. this.Adapter.DeleteCommand.Connection = value;
  10028. }
  10029. if ((this.Adapter.UpdateCommand != null)) {
  10030. this.Adapter.UpdateCommand.Connection = value;
  10031. }
  10032. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10033. if ((this.CommandCollection[i] != null)) {
  10034. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10035. }
  10036. }
  10037. }
  10038. }
  10039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10041. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10042. get {
  10043. return this._transaction;
  10044. }
  10045. set {
  10046. this._transaction = value;
  10047. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10048. this.CommandCollection[i].Transaction = this._transaction;
  10049. }
  10050. if (((this.Adapter != null)
  10051. && (this.Adapter.DeleteCommand != null))) {
  10052. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10053. }
  10054. if (((this.Adapter != null)
  10055. && (this.Adapter.InsertCommand != null))) {
  10056. this.Adapter.InsertCommand.Transaction = this._transaction;
  10057. }
  10058. if (((this.Adapter != null)
  10059. && (this.Adapter.UpdateCommand != null))) {
  10060. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10061. }
  10062. }
  10063. }
  10064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10066. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10067. get {
  10068. if ((this._commandCollection == null)) {
  10069. this.InitCommandCollection();
  10070. }
  10071. return this._commandCollection;
  10072. }
  10073. }
  10074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10076. public bool ClearBeforeFill {
  10077. get {
  10078. return this._clearBeforeFill;
  10079. }
  10080. set {
  10081. this._clearBeforeFill = value;
  10082. }
  10083. }
  10084. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10085. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10086. private void InitAdapter() {
  10087. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10088. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10089. tableMapping.SourceTable = "Table";
  10090. tableMapping.DataSetTable = "ClientService";
  10091. tableMapping.ColumnMappings.Add("ID", "ID");
  10092. tableMapping.ColumnMappings.Add("ClientID", "ClientID");
  10093. tableMapping.ColumnMappings.Add("ServiceID", "ServiceID");
  10094. tableMapping.ColumnMappings.Add("StartTime", "StartTime");
  10095. tableMapping.ColumnMappings.Add("Comment", "Comment");
  10096. this._adapter.TableMappings.Add(tableMapping);
  10097. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  10098. this._adapter.DeleteCommand.Connection = this.Connection;
  10099. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ClientService] WHERE (([ID] = @Original_ID) AND ([ClientID] = " +
  10100. "@Original_ClientID) AND ([ServiceID] = @Original_ServiceID) AND ([StartTime] = @" +
  10101. "Original_StartTime))";
  10102. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  10103. 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, "", "", ""));
  10104. 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, "", "", ""));
  10105. 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, "", "", ""));
  10106. 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, "", "", ""));
  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].[ClientService] ([ClientID], [ServiceID], [StartTime], [Comment" +
  10110. "]) VALUES (@ClientID, @ServiceID, @StartTime, @Comment);\r\nSELECT ID, ClientID, S" +
  10111. "erviceID, StartTime, Comment FROM ClientService WHERE (ID = SCOPE_IDENTITY())";
  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("@ServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ServiceID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10115. 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, "", "", ""));
  10116. 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, "", "", ""));
  10117. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  10118. this._adapter.UpdateCommand.Connection = this.Connection;
  10119. 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));
  10120. SELECT ID, ClientID, ServiceID, StartTime, Comment FROM ClientService WHERE (ID = @ID)";
  10121. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  10122. 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, "", "", ""));
  10123. 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, "", "", ""));
  10124. 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, "", "", ""));
  10125. 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, "", "", ""));
  10126. 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, "", "", ""));
  10127. 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, "", "", ""));
  10128. 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, "", "", ""));
  10129. 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, "", "", ""));
  10130. 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, "", "", ""));
  10131. }
  10132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10133. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10134. private void InitConnection() {
  10135. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10136. this._connection.ConnectionString = global::BB_Azizova.Properties.Settings.Default.BB_AzizovaConnectionString;
  10137. }
  10138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10140. private void InitCommandCollection() {
  10141. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10142. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10143. this._commandCollection[0].Connection = this.Connection;
  10144. this._commandCollection[0].CommandText = "SELECT ID, ClientID, ServiceID, StartTime, Comment FROM dbo.ClientService";
  10145. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10146. }
  10147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10149. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10150. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10151. public virtual int Fill(BB_AzizovaDataSet.ClientServiceDataTable dataTable) {
  10152. this.Adapter.SelectCommand = this.CommandCollection[0];
  10153. if ((this.ClearBeforeFill == true)) {
  10154. dataTable.Clear();
  10155. }
  10156. int returnValue = this.Adapter.Fill(dataTable);
  10157. return returnValue;
  10158. }
  10159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10161. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10162. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10163. public virtual BB_AzizovaDataSet.ClientServiceDataTable GetData() {
  10164. this.Adapter.SelectCommand = this.CommandCollection[0];
  10165. BB_AzizovaDataSet.ClientServiceDataTable dataTable = new BB_AzizovaDataSet.ClientServiceDataTable();
  10166. this.Adapter.Fill(dataTable);
  10167. return 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(BB_AzizovaDataSet.ClientServiceDataTable dataTable) {
  10173. return this.Adapter.Update(dataTable);
  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(BB_AzizovaDataSet dataSet) {
  10179. return this.Adapter.Update(dataSet, "ClientService");
  10180. }
  10181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10183. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10184. public virtual int Update(global::System.Data.DataRow dataRow) {
  10185. return this.Adapter.Update(new global::System.Data.DataRow[] {
  10186. dataRow});
  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. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  10192. return this.Adapter.Update(dataRows);
  10193. }
  10194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10196. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10197. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  10198. public virtual int Delete(int Original_ID, int Original_ClientID, int Original_ServiceID, System.DateTime Original_StartTime) {
  10199. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  10200. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ClientID));
  10201. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_ServiceID));
  10202. this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_StartTime));
  10203. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  10204. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10205. != global::System.Data.ConnectionState.Open)) {
  10206. this.Adapter.DeleteCommand.Connection.Open();
  10207. }
  10208. try {
  10209. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  10210. return returnValue;
  10211. }
  10212. finally {
  10213. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10214. this.Adapter.DeleteCommand.Connection.Close();
  10215. }
  10216. }
  10217. }
  10218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10220. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10221. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10222. public virtual int Insert(int ClientID, int ServiceID, System.DateTime StartTime, string Comment) {
  10223. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ClientID));
  10224. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ServiceID));
  10225. this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(StartTime));
  10226. if ((Comment == null)) {
  10227. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  10228. }
  10229. else {
  10230. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Comment));
  10231. }
  10232. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10233. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10234. != global::System.Data.ConnectionState.Open)) {
  10235. this.Adapter.InsertCommand.Connection.Open();
  10236. }
  10237. try {
  10238. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10239. return returnValue;
  10240. }
  10241. finally {
  10242. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10243. this.Adapter.InsertCommand.Connection.Close();
  10244. }
  10245. }
  10246. }
  10247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10249. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10250. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10251. 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) {
  10252. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ClientID));
  10253. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(ServiceID));
  10254. this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(StartTime));
  10255. if ((Comment == null)) {
  10256. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  10257. }
  10258. else {
  10259. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Comment));
  10260. }
  10261. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_ID));
  10262. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_ClientID));
  10263. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ServiceID));
  10264. this.Adapter.UpdateCommand.Parameters[7].Value = ((System.DateTime)(Original_StartTime));
  10265. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(ID));
  10266. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10267. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10268. != global::System.Data.ConnectionState.Open)) {
  10269. this.Adapter.UpdateCommand.Connection.Open();
  10270. }
  10271. try {
  10272. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10273. return returnValue;
  10274. }
  10275. finally {
  10276. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10277. this.Adapter.UpdateCommand.Connection.Close();
  10278. }
  10279. }
  10280. }
  10281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10282. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10283. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10284. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10285. 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) {
  10286. return this.Update(ClientID, ServiceID, StartTime, Comment, Original_ID, Original_ClientID, Original_ServiceID, Original_StartTime, Original_ID);
  10287. }
  10288. }
  10289. /// <summary>
  10290. ///Represents the connection and commands used to retrieve and save data.
  10291. ///</summary>
  10292. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10293. [global::System.ComponentModel.ToolboxItem(true)]
  10294. [global::System.ComponentModel.DataObjectAttribute(true)]
  10295. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  10296. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10297. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10298. public partial class DocumentByServiceTableAdapter : global::System.ComponentModel.Component {
  10299. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  10300. private global::System.Data.SqlClient.SqlConnection _connection;
  10301. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10302. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10303. private bool _clearBeforeFill;
  10304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10306. public DocumentByServiceTableAdapter() {
  10307. this.ClearBeforeFill = true;
  10308. }
  10309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10311. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10312. get {
  10313. if ((this._adapter == null)) {
  10314. this.InitAdapter();
  10315. }
  10316. return this._adapter;
  10317. }
  10318. }
  10319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10321. internal global::System.Data.SqlClient.SqlConnection Connection {
  10322. get {
  10323. if ((this._connection == null)) {
  10324. this.InitConnection();
  10325. }
  10326. return this._connection;
  10327. }
  10328. set {
  10329. this._connection = value;
  10330. if ((this.Adapter.InsertCommand != null)) {
  10331. this.Adapter.InsertCommand.Connection = value;
  10332. }
  10333. if ((this.Adapter.DeleteCommand != null)) {
  10334. this.Adapter.DeleteCommand.Connection = value;
  10335. }
  10336. if ((this.Adapter.UpdateCommand != null)) {
  10337. this.Adapter.UpdateCommand.Connection = value;
  10338. }
  10339. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10340. if ((this.CommandCollection[i] != null)) {
  10341. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10342. }
  10343. }
  10344. }
  10345. }
  10346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10348. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10349. get {
  10350. return this._transaction;
  10351. }
  10352. set {
  10353. this._transaction = value;
  10354. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10355. this.CommandCollection[i].Transaction = this._transaction;
  10356. }
  10357. if (((this.Adapter != null)
  10358. && (this.Adapter.DeleteCommand != null))) {
  10359. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10360. }
  10361. if (((this.Adapter != null)
  10362. && (this.Adapter.InsertCommand != null))) {
  10363. this.Adapter.InsertCommand.Transaction = this._transaction;
  10364. }
  10365. if (((this.Adapter != null)
  10366. && (this.Adapter.UpdateCommand != null))) {
  10367. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10368. }
  10369. }
  10370. }
  10371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10372. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10373. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10374. get {
  10375. if ((this._commandCollection == null)) {
  10376. this.InitCommandCollection();
  10377. }
  10378. return this._commandCollection;
  10379. }
  10380. }
  10381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10383. public bool ClearBeforeFill {
  10384. get {
  10385. return this._clearBeforeFill;
  10386. }
  10387. set {
  10388. this._clearBeforeFill = value;
  10389. }
  10390. }
  10391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10393. private void InitAdapter() {
  10394. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10395. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10396. tableMapping.SourceTable = "Table";
  10397. tableMapping.DataSetTable = "DocumentByService";
  10398. tableMapping.ColumnMappings.Add("ID", "ID");
  10399. tableMapping.ColumnMappings.Add("ClientServiceID", "ClientServiceID");
  10400. tableMapping.ColumnMappings.Add("DocumentPath", "DocumentPath");
  10401. this._adapter.TableMappings.Add(tableMapping);
  10402. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  10403. this._adapter.DeleteCommand.Connection = this.Connection;
  10404. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[DocumentByService] WHERE (([ID] = @Original_ID) AND ([ClientSe" +
  10405. "rviceID] = @Original_ClientServiceID) AND ([DocumentPath] = @Original_DocumentPa" +
  10406. "th))";
  10407. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  10408. 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, "", "", ""));
  10409. 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, "", "", ""));
  10410. 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, "", "", ""));
  10411. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  10412. this._adapter.InsertCommand.Connection = this.Connection;
  10413. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[DocumentByService] ([ClientServiceID], [DocumentPath]) VALUES " +
  10414. "(@ClientServiceID, @DocumentPath);\r\nSELECT ID, ClientServiceID, DocumentPath FRO" +
  10415. "M DocumentByService WHERE (ID = SCOPE_IDENTITY())";
  10416. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  10417. 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, "", "", ""));
  10418. 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, "", "", ""));
  10419. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  10420. this._adapter.UpdateCommand.Connection = this.Connection;
  10421. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[DocumentByService] SET [ClientServiceID] = @ClientServiceID, [DocumentPath] = @DocumentPath WHERE (([ID] = @Original_ID) AND ([ClientServiceID] = @Original_ClientServiceID) AND ([DocumentPath] = @Original_DocumentPath));
  10422. SELECT ID, ClientServiceID, DocumentPath FROM DocumentByService WHERE (ID = @ID)";
  10423. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  10424. 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, "", "", ""));
  10425. 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, "", "", ""));
  10426. 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, "", "", ""));
  10427. 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, "", "", ""));
  10428. 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, "", "", ""));
  10429. 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, "", "", ""));
  10430. }
  10431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10433. private void InitConnection() {
  10434. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10435. this._connection.ConnectionString = global::BB_Azizova.Properties.Settings.Default.BB_AzizovaConnectionString;
  10436. }
  10437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10439. private void InitCommandCollection() {
  10440. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10441. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10442. this._commandCollection[0].Connection = this.Connection;
  10443. this._commandCollection[0].CommandText = "SELECT ID, ClientServiceID, DocumentPath FROM dbo.DocumentByService";
  10444. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10445. }
  10446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10448. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10449. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10450. public virtual int Fill(BB_AzizovaDataSet.DocumentByServiceDataTable dataTable) {
  10451. this.Adapter.SelectCommand = this.CommandCollection[0];
  10452. if ((this.ClearBeforeFill == true)) {
  10453. dataTable.Clear();
  10454. }
  10455. int returnValue = this.Adapter.Fill(dataTable);
  10456. return returnValue;
  10457. }
  10458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10459. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10460. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10461. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10462. public virtual BB_AzizovaDataSet.DocumentByServiceDataTable GetData() {
  10463. this.Adapter.SelectCommand = this.CommandCollection[0];
  10464. BB_AzizovaDataSet.DocumentByServiceDataTable dataTable = new BB_AzizovaDataSet.DocumentByServiceDataTable();
  10465. this.Adapter.Fill(dataTable);
  10466. return dataTable;
  10467. }
  10468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10470. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10471. public virtual int Update(BB_AzizovaDataSet.DocumentByServiceDataTable dataTable) {
  10472. return this.Adapter.Update(dataTable);
  10473. }
  10474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10476. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10477. public virtual int Update(BB_AzizovaDataSet dataSet) {
  10478. return this.Adapter.Update(dataSet, "DocumentByService");
  10479. }
  10480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10482. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10483. public virtual int Update(global::System.Data.DataRow dataRow) {
  10484. return this.Adapter.Update(new global::System.Data.DataRow[] {
  10485. dataRow});
  10486. }
  10487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10489. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10490. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  10491. return this.Adapter.Update(dataRows);
  10492. }
  10493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10495. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10496. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  10497. public virtual int Delete(int Original_ID, int Original_ClientServiceID, string Original_DocumentPath) {
  10498. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  10499. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ClientServiceID));
  10500. if ((Original_DocumentPath == null)) {
  10501. throw new global::System.ArgumentNullException("Original_DocumentPath");
  10502. }
  10503. else {
  10504. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_DocumentPath));
  10505. }
  10506. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  10507. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10508. != global::System.Data.ConnectionState.Open)) {
  10509. this.Adapter.DeleteCommand.Connection.Open();
  10510. }
  10511. try {
  10512. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  10513. return returnValue;
  10514. }
  10515. finally {
  10516. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10517. this.Adapter.DeleteCommand.Connection.Close();
  10518. }
  10519. }
  10520. }
  10521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10523. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10524. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10525. public virtual int Insert(int ClientServiceID, string DocumentPath) {
  10526. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ClientServiceID));
  10527. if ((DocumentPath == null)) {
  10528. throw new global::System.ArgumentNullException("DocumentPath");
  10529. }
  10530. else {
  10531. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DocumentPath));
  10532. }
  10533. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10534. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10535. != global::System.Data.ConnectionState.Open)) {
  10536. this.Adapter.InsertCommand.Connection.Open();
  10537. }
  10538. try {
  10539. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10540. return returnValue;
  10541. }
  10542. finally {
  10543. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10544. this.Adapter.InsertCommand.Connection.Close();
  10545. }
  10546. }
  10547. }
  10548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10549. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10550. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10551. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10552. public virtual int Update(int ClientServiceID, string DocumentPath, int Original_ID, int Original_ClientServiceID, string Original_DocumentPath, int ID) {
  10553. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ClientServiceID));
  10554. if ((DocumentPath == null)) {
  10555. throw new global::System.ArgumentNullException("DocumentPath");
  10556. }
  10557. else {
  10558. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DocumentPath));
  10559. }
  10560. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  10561. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ClientServiceID));
  10562. if ((Original_DocumentPath == null)) {
  10563. throw new global::System.ArgumentNullException("Original_DocumentPath");
  10564. }
  10565. else {
  10566. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_DocumentPath));
  10567. }
  10568. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  10569. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10570. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10571. != global::System.Data.ConnectionState.Open)) {
  10572. this.Adapter.UpdateCommand.Connection.Open();
  10573. }
  10574. try {
  10575. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10576. return returnValue;
  10577. }
  10578. finally {
  10579. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10580. this.Adapter.UpdateCommand.Connection.Close();
  10581. }
  10582. }
  10583. }
  10584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10586. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10587. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10588. public virtual int Update(int ClientServiceID, string DocumentPath, int Original_ID, int Original_ClientServiceID, string Original_DocumentPath) {
  10589. return this.Update(ClientServiceID, DocumentPath, Original_ID, Original_ClientServiceID, Original_DocumentPath, Original_ID);
  10590. }
  10591. }
  10592. /// <summary>
  10593. ///Represents the connection and commands used to retrieve and save data.
  10594. ///</summary>
  10595. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10596. [global::System.ComponentModel.ToolboxItem(true)]
  10597. [global::System.ComponentModel.DataObjectAttribute(true)]
  10598. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  10599. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10600. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10601. public partial class GenderTableAdapter : global::System.ComponentModel.Component {
  10602. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  10603. private global::System.Data.SqlClient.SqlConnection _connection;
  10604. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10605. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10606. private bool _clearBeforeFill;
  10607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10609. public GenderTableAdapter() {
  10610. this.ClearBeforeFill = true;
  10611. }
  10612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10614. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10615. get {
  10616. if ((this._adapter == null)) {
  10617. this.InitAdapter();
  10618. }
  10619. return this._adapter;
  10620. }
  10621. }
  10622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10624. internal global::System.Data.SqlClient.SqlConnection Connection {
  10625. get {
  10626. if ((this._connection == null)) {
  10627. this.InitConnection();
  10628. }
  10629. return this._connection;
  10630. }
  10631. set {
  10632. this._connection = value;
  10633. if ((this.Adapter.InsertCommand != null)) {
  10634. this.Adapter.InsertCommand.Connection = value;
  10635. }
  10636. if ((this.Adapter.DeleteCommand != null)) {
  10637. this.Adapter.DeleteCommand.Connection = value;
  10638. }
  10639. if ((this.Adapter.UpdateCommand != null)) {
  10640. this.Adapter.UpdateCommand.Connection = value;
  10641. }
  10642. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10643. if ((this.CommandCollection[i] != null)) {
  10644. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10645. }
  10646. }
  10647. }
  10648. }
  10649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10651. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10652. get {
  10653. return this._transaction;
  10654. }
  10655. set {
  10656. this._transaction = value;
  10657. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10658. this.CommandCollection[i].Transaction = this._transaction;
  10659. }
  10660. if (((this.Adapter != null)
  10661. && (this.Adapter.DeleteCommand != null))) {
  10662. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10663. }
  10664. if (((this.Adapter != null)
  10665. && (this.Adapter.InsertCommand != null))) {
  10666. this.Adapter.InsertCommand.Transaction = this._transaction;
  10667. }
  10668. if (((this.Adapter != null)
  10669. && (this.Adapter.UpdateCommand != null))) {
  10670. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10671. }
  10672. }
  10673. }
  10674. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10676. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10677. get {
  10678. if ((this._commandCollection == null)) {
  10679. this.InitCommandCollection();
  10680. }
  10681. return this._commandCollection;
  10682. }
  10683. }
  10684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10686. public bool ClearBeforeFill {
  10687. get {
  10688. return this._clearBeforeFill;
  10689. }
  10690. set {
  10691. this._clearBeforeFill = value;
  10692. }
  10693. }
  10694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10696. private void InitAdapter() {
  10697. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10698. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10699. tableMapping.SourceTable = "Table";
  10700. tableMapping.DataSetTable = "Gender";
  10701. tableMapping.ColumnMappings.Add("Code", "Code");
  10702. tableMapping.ColumnMappings.Add("Name", "Name");
  10703. this._adapter.TableMappings.Add(tableMapping);
  10704. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  10705. this._adapter.DeleteCommand.Connection = this.Connection;
  10706. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Gender] WHERE (([Code] = @Original_Code) AND ((@IsNull_Name = " +
  10707. "1 AND [Name] IS NULL) OR ([Name] = @Original_Name)))";
  10708. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  10709. 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, "", "", ""));
  10710. 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, "", "", ""));
  10711. 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, "", "", ""));
  10712. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  10713. this._adapter.InsertCommand.Connection = this.Connection;
  10714. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Gender] ([Code], [Name]) VALUES (@Code, @Name);\r\nSELECT Code, " +
  10715. "Name FROM Gender WHERE (Code = @Code)";
  10716. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  10717. 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, "", "", ""));
  10718. 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, "", "", ""));
  10719. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  10720. this._adapter.UpdateCommand.Connection = this.Connection;
  10721. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Gender] SET [Code] = @Code, [Name] = @Name WHERE (([Code] = @Origin" +
  10722. "al_Code) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)" +
  10723. "));\r\nSELECT Code, Name FROM Gender WHERE (Code = @Code)";
  10724. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  10725. 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, "", "", ""));
  10726. 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, "", "", ""));
  10727. 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, "", "", ""));
  10728. 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, "", "", ""));
  10729. 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, "", "", ""));
  10730. }
  10731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10733. private void InitConnection() {
  10734. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10735. this._connection.ConnectionString = global::BB_Azizova.Properties.Settings.Default.BB_AzizovaConnectionString;
  10736. }
  10737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10739. private void InitCommandCollection() {
  10740. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10741. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10742. this._commandCollection[0].Connection = this.Connection;
  10743. this._commandCollection[0].CommandText = "SELECT Code, Name FROM dbo.Gender";
  10744. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10745. }
  10746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10748. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10749. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10750. public virtual int Fill(BB_AzizovaDataSet.GenderDataTable dataTable) {
  10751. this.Adapter.SelectCommand = this.CommandCollection[0];
  10752. if ((this.ClearBeforeFill == true)) {
  10753. dataTable.Clear();
  10754. }
  10755. int returnValue = this.Adapter.Fill(dataTable);
  10756. return returnValue;
  10757. }
  10758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10760. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10761. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10762. public virtual BB_AzizovaDataSet.GenderDataTable GetData() {
  10763. this.Adapter.SelectCommand = this.CommandCollection[0];
  10764. BB_AzizovaDataSet.GenderDataTable dataTable = new BB_AzizovaDataSet.GenderDataTable();
  10765. this.Adapter.Fill(dataTable);
  10766. return dataTable;
  10767. }
  10768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10770. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10771. public virtual int Update(BB_AzizovaDataSet.GenderDataTable dataTable) {
  10772. return this.Adapter.Update(dataTable);
  10773. }
  10774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10776. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10777. public virtual int Update(BB_AzizovaDataSet dataSet) {
  10778. return this.Adapter.Update(dataSet, "Gender");
  10779. }
  10780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10782. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10783. public virtual int Update(global::System.Data.DataRow dataRow) {
  10784. return this.Adapter.Update(new global::System.Data.DataRow[] {
  10785. dataRow});
  10786. }
  10787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10788. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10789. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10790. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  10791. return this.Adapter.Update(dataRows);
  10792. }
  10793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10795. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10796. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  10797. public virtual int Delete(string Original_Code, string Original_Name) {
  10798. if ((Original_Code == null)) {
  10799. throw new global::System.ArgumentNullException("Original_Code");
  10800. }
  10801. else {
  10802. this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_Code));
  10803. }
  10804. if ((Original_Name == null)) {
  10805. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  10806. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  10807. }
  10808. else {
  10809. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  10810. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Name));
  10811. }
  10812. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  10813. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10814. != global::System.Data.ConnectionState.Open)) {
  10815. this.Adapter.DeleteCommand.Connection.Open();
  10816. }
  10817. try {
  10818. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  10819. return returnValue;
  10820. }
  10821. finally {
  10822. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10823. this.Adapter.DeleteCommand.Connection.Close();
  10824. }
  10825. }
  10826. }
  10827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10829. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10830. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10831. public virtual int Insert(string Code, string Name) {
  10832. if ((Code == null)) {
  10833. throw new global::System.ArgumentNullException("Code");
  10834. }
  10835. else {
  10836. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Code));
  10837. }
  10838. if ((Name == null)) {
  10839. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  10840. }
  10841. else {
  10842. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Name));
  10843. }
  10844. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10845. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10846. != global::System.Data.ConnectionState.Open)) {
  10847. this.Adapter.InsertCommand.Connection.Open();
  10848. }
  10849. try {
  10850. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10851. return returnValue;
  10852. }
  10853. finally {
  10854. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10855. this.Adapter.InsertCommand.Connection.Close();
  10856. }
  10857. }
  10858. }
  10859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10861. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10862. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10863. public virtual int Update(string Code, string Name, string Original_Code, string Original_Name) {
  10864. if ((Code == null)) {
  10865. throw new global::System.ArgumentNullException("Code");
  10866. }
  10867. else {
  10868. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Code));
  10869. }
  10870. if ((Name == null)) {
  10871. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  10872. }
  10873. else {
  10874. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Name));
  10875. }
  10876. if ((Original_Code == null)) {
  10877. throw new global::System.ArgumentNullException("Original_Code");
  10878. }
  10879. else {
  10880. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_Code));
  10881. }
  10882. if ((Original_Name == null)) {
  10883. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  10884. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  10885. }
  10886. else {
  10887. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  10888. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Name));
  10889. }
  10890. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10891. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10892. != global::System.Data.ConnectionState.Open)) {
  10893. this.Adapter.UpdateCommand.Connection.Open();
  10894. }
  10895. try {
  10896. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10897. return returnValue;
  10898. }
  10899. finally {
  10900. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10901. this.Adapter.UpdateCommand.Connection.Close();
  10902. }
  10903. }
  10904. }
  10905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10907. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10908. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10909. public virtual int Update(string Name, string Original_Code, string Original_Name) {
  10910. return this.Update(Original_Code, Name, Original_Code, Original_Name);
  10911. }
  10912. }
  10913. /// <summary>
  10914. ///Represents the connection and commands used to retrieve and save data.
  10915. ///</summary>
  10916. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10917. [global::System.ComponentModel.ToolboxItem(true)]
  10918. [global::System.ComponentModel.DataObjectAttribute(true)]
  10919. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  10920. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10921. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10922. public partial class ManufacturerTableAdapter : global::System.ComponentModel.Component {
  10923. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  10924. private global::System.Data.SqlClient.SqlConnection _connection;
  10925. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10926. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10927. private bool _clearBeforeFill;
  10928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10930. public ManufacturerTableAdapter() {
  10931. this.ClearBeforeFill = true;
  10932. }
  10933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10934. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10935. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10936. get {
  10937. if ((this._adapter == null)) {
  10938. this.InitAdapter();
  10939. }
  10940. return this._adapter;
  10941. }
  10942. }
  10943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10945. internal global::System.Data.SqlClient.SqlConnection Connection {
  10946. get {
  10947. if ((this._connection == null)) {
  10948. this.InitConnection();
  10949. }
  10950. return this._connection;
  10951. }
  10952. set {
  10953. this._connection = value;
  10954. if ((this.Adapter.InsertCommand != null)) {
  10955. this.Adapter.InsertCommand.Connection = value;
  10956. }
  10957. if ((this.Adapter.DeleteCommand != null)) {
  10958. this.Adapter.DeleteCommand.Connection = value;
  10959. }
  10960. if ((this.Adapter.UpdateCommand != null)) {
  10961. this.Adapter.UpdateCommand.Connection = value;
  10962. }
  10963. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10964. if ((this.CommandCollection[i] != null)) {
  10965. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10966. }
  10967. }
  10968. }
  10969. }
  10970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10972. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10973. get {
  10974. return this._transaction;
  10975. }
  10976. set {
  10977. this._transaction = value;
  10978. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10979. this.CommandCollection[i].Transaction = this._transaction;
  10980. }
  10981. if (((this.Adapter != null)
  10982. && (this.Adapter.DeleteCommand != null))) {
  10983. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10984. }
  10985. if (((this.Adapter != null)
  10986. && (this.Adapter.InsertCommand != null))) {
  10987. this.Adapter.InsertCommand.Transaction = this._transaction;
  10988. }
  10989. if (((this.Adapter != null)
  10990. && (this.Adapter.UpdateCommand != null))) {
  10991. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10992. }
  10993. }
  10994. }
  10995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10997. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10998. get {
  10999. if ((this._commandCollection == null)) {
  11000. this.InitCommandCollection();
  11001. }
  11002. return this._commandCollection;
  11003. }
  11004. }
  11005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11007. public bool ClearBeforeFill {
  11008. get {
  11009. return this._clearBeforeFill;
  11010. }
  11011. set {
  11012. this._clearBeforeFill = value;
  11013. }
  11014. }
  11015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11017. private void InitAdapter() {
  11018. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  11019. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  11020. tableMapping.SourceTable = "Table";
  11021. tableMapping.DataSetTable = "Manufacturer";
  11022. tableMapping.ColumnMappings.Add("ID", "ID");
  11023. tableMapping.ColumnMappings.Add("Name", "Name");
  11024. tableMapping.ColumnMappings.Add("StartDate", "StartDate");
  11025. this._adapter.TableMappings.Add(tableMapping);
  11026. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  11027. this._adapter.DeleteCommand.Connection = this.Connection;
  11028. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Manufacturer] WHERE (([ID] = @Original_ID) AND ([Name] = @Orig" +
  11029. "inal_Name) AND ((@IsNull_StartDate = 1 AND [StartDate] IS NULL) OR ([StartDate] " +
  11030. "= @Original_StartDate)))";
  11031. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  11032. 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, "", "", ""));
  11033. 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, "", "", ""));
  11034. 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, "", "", ""));
  11035. 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, "", "", ""));
  11036. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  11037. this._adapter.InsertCommand.Connection = this.Connection;
  11038. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Manufacturer] ([Name], [StartDate]) VALUES (@Name, @StartDate)" +
  11039. ";\r\nSELECT ID, Name, StartDate FROM Manufacturer WHERE (ID = SCOPE_IDENTITY())";
  11040. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  11041. 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, "", "", ""));
  11042. 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, "", "", ""));
  11043. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  11044. this._adapter.UpdateCommand.Connection = this.Connection;
  11045. 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)));
  11046. SELECT ID, Name, StartDate FROM Manufacturer WHERE (ID = @ID)";
  11047. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  11048. 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, "", "", ""));
  11049. 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, "", "", ""));
  11050. 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, "", "", ""));
  11051. 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, "", "", ""));
  11052. 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, "", "", ""));
  11053. 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, "", "", ""));
  11054. 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, "", "", ""));
  11055. }
  11056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11057. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11058. private void InitConnection() {
  11059. this._connection = new global::System.Data.SqlClient.SqlConnection();
  11060. this._connection.ConnectionString = global::BB_Azizova.Properties.Settings.Default.BB_AzizovaConnectionString;
  11061. }
  11062. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11063. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11064. private void InitCommandCollection() {
  11065. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  11066. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  11067. this._commandCollection[0].Connection = this.Connection;
  11068. this._commandCollection[0].CommandText = "SELECT ID, Name, StartDate FROM dbo.Manufacturer";
  11069. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  11070. }
  11071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11073. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11074. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  11075. public virtual int Fill(BB_AzizovaDataSet.ManufacturerDataTable dataTable) {
  11076. this.Adapter.SelectCommand = this.CommandCollection[0];
  11077. if ((this.ClearBeforeFill == true)) {
  11078. dataTable.Clear();
  11079. }
  11080. int returnValue = this.Adapter.Fill(dataTable);
  11081. return returnValue;
  11082. }
  11083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11085. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11086. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  11087. public virtual BB_AzizovaDataSet.ManufacturerDataTable GetData() {
  11088. this.Adapter.SelectCommand = this.CommandCollection[0];
  11089. BB_AzizovaDataSet.ManufacturerDataTable dataTable = new BB_AzizovaDataSet.ManufacturerDataTable();
  11090. this.Adapter.Fill(dataTable);
  11091. return dataTable;
  11092. }
  11093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11095. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11096. public virtual int Update(BB_AzizovaDataSet.ManufacturerDataTable dataTable) {
  11097. return this.Adapter.Update(dataTable);
  11098. }
  11099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11101. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11102. public virtual int Update(BB_AzizovaDataSet dataSet) {
  11103. return this.Adapter.Update(dataSet, "Manufacturer");
  11104. }
  11105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11106. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11107. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11108. public virtual int Update(global::System.Data.DataRow dataRow) {
  11109. return this.Adapter.Update(new global::System.Data.DataRow[] {
  11110. dataRow});
  11111. }
  11112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11113. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11114. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11115. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  11116. return this.Adapter.Update(dataRows);
  11117. }
  11118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11120. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11121. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  11122. public virtual int Delete(int Original_ID, string Original_Name, global::System.Nullable<global::System.DateTime> Original_StartDate) {
  11123. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  11124. if ((Original_Name == null)) {
  11125. throw new global::System.ArgumentNullException("Original_Name");
  11126. }
  11127. else {
  11128. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Name));
  11129. }
  11130. if ((Original_StartDate.HasValue == true)) {
  11131. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  11132. this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_StartDate.Value));
  11133. }
  11134. else {
  11135. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  11136. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  11137. }
  11138. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  11139. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11140. != global::System.Data.ConnectionState.Open)) {
  11141. this.Adapter.DeleteCommand.Connection.Open();
  11142. }
  11143. try {
  11144. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  11145. return returnValue;
  11146. }
  11147. finally {
  11148. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11149. this.Adapter.DeleteCommand.Connection.Close();
  11150. }
  11151. }
  11152. }
  11153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11155. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11156. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  11157. public virtual int Insert(string Name, global::System.Nullable<global::System.DateTime> StartDate) {
  11158. if ((Name == null)) {
  11159. throw new global::System.ArgumentNullException("Name");
  11160. }
  11161. else {
  11162. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Name));
  11163. }
  11164. if ((StartDate.HasValue == true)) {
  11165. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(StartDate.Value));
  11166. }
  11167. else {
  11168. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  11169. }
  11170. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  11171. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11172. != global::System.Data.ConnectionState.Open)) {
  11173. this.Adapter.InsertCommand.Connection.Open();
  11174. }
  11175. try {
  11176. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  11177. return returnValue;
  11178. }
  11179. finally {
  11180. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11181. this.Adapter.InsertCommand.Connection.Close();
  11182. }
  11183. }
  11184. }
  11185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11187. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11188. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11189. 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) {
  11190. if ((Name == null)) {
  11191. throw new global::System.ArgumentNullException("Name");
  11192. }
  11193. else {
  11194. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Name));
  11195. }
  11196. if ((StartDate.HasValue == true)) {
  11197. this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(StartDate.Value));
  11198. }
  11199. else {
  11200. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  11201. }
  11202. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  11203. if ((Original_Name == null)) {
  11204. throw new global::System.ArgumentNullException("Original_Name");
  11205. }
  11206. else {
  11207. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Name));
  11208. }
  11209. if ((Original_StartDate.HasValue == true)) {
  11210. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  11211. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(Original_StartDate.Value));
  11212. }
  11213. else {
  11214. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  11215. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  11216. }
  11217. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(ID));
  11218. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  11219. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11220. != global::System.Data.ConnectionState.Open)) {
  11221. this.Adapter.UpdateCommand.Connection.Open();
  11222. }
  11223. try {
  11224. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  11225. return returnValue;
  11226. }
  11227. finally {
  11228. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11229. this.Adapter.UpdateCommand.Connection.Close();
  11230. }
  11231. }
  11232. }
  11233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11235. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11236. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11237. 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) {
  11238. return this.Update(Name, StartDate, Original_ID, Original_Name, Original_StartDate, Original_ID);
  11239. }
  11240. }
  11241. /// <summary>
  11242. ///Represents the connection and commands used to retrieve and save data.
  11243. ///</summary>
  11244. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  11245. [global::System.ComponentModel.ToolboxItem(true)]
  11246. [global::System.ComponentModel.DataObjectAttribute(true)]
  11247. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  11248. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  11249. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11250. public partial class ProductTableAdapter : global::System.ComponentModel.Component {
  11251. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  11252. private global::System.Data.SqlClient.SqlConnection _connection;
  11253. private global::System.Data.SqlClient.SqlTransaction _transaction;
  11254. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  11255. private bool _clearBeforeFill;
  11256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11258. public ProductTableAdapter() {
  11259. this.ClearBeforeFill = true;
  11260. }
  11261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11263. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  11264. get {
  11265. if ((this._adapter == null)) {
  11266. this.InitAdapter();
  11267. }
  11268. return this._adapter;
  11269. }
  11270. }
  11271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11272. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11273. internal global::System.Data.SqlClient.SqlConnection Connection {
  11274. get {
  11275. if ((this._connection == null)) {
  11276. this.InitConnection();
  11277. }
  11278. return this._connection;
  11279. }
  11280. set {
  11281. this._connection = value;
  11282. if ((this.Adapter.InsertCommand != null)) {
  11283. this.Adapter.InsertCommand.Connection = value;
  11284. }
  11285. if ((this.Adapter.DeleteCommand != null)) {
  11286. this.Adapter.DeleteCommand.Connection = value;
  11287. }
  11288. if ((this.Adapter.UpdateCommand != null)) {
  11289. this.Adapter.UpdateCommand.Connection = value;
  11290. }
  11291. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  11292. if ((this.CommandCollection[i] != null)) {
  11293. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  11294. }
  11295. }
  11296. }
  11297. }
  11298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11300. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  11301. get {
  11302. return this._transaction;
  11303. }
  11304. set {
  11305. this._transaction = value;
  11306. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  11307. this.CommandCollection[i].Transaction = this._transaction;
  11308. }
  11309. if (((this.Adapter != null)
  11310. && (this.Adapter.DeleteCommand != null))) {
  11311. this.Adapter.DeleteCommand.Transaction = this._transaction;
  11312. }
  11313. if (((this.Adapter != null)
  11314. && (this.Adapter.InsertCommand != null))) {
  11315. this.Adapter.InsertCommand.Transaction = this._transaction;
  11316. }
  11317. if (((this.Adapter != null)
  11318. && (this.Adapter.UpdateCommand != null))) {
  11319. this.Adapter.UpdateCommand.Transaction = this._transaction;
  11320. }
  11321. }
  11322. }
  11323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11325. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  11326. get {
  11327. if ((this._commandCollection == null)) {
  11328. this.InitCommandCollection();
  11329. }
  11330. return this._commandCollection;
  11331. }
  11332. }
  11333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11335. public bool ClearBeforeFill {
  11336. get {
  11337. return this._clearBeforeFill;
  11338. }
  11339. set {
  11340. this._clearBeforeFill = value;
  11341. }
  11342. }
  11343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11344. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11345. private void InitAdapter() {
  11346. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  11347. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  11348. tableMapping.SourceTable = "Table";
  11349. tableMapping.DataSetTable = "Product";
  11350. tableMapping.ColumnMappings.Add("ID", "ID");
  11351. tableMapping.ColumnMappings.Add("Title", "Title");
  11352. tableMapping.ColumnMappings.Add("Cost", "Cost");
  11353. tableMapping.ColumnMappings.Add("Description", "Description");
  11354. tableMapping.ColumnMappings.Add("MainImagePath", "MainImagePath");
  11355. tableMapping.ColumnMappings.Add("IsActive", "IsActive");
  11356. tableMapping.ColumnMappings.Add("ManufacturerID", "ManufacturerID");
  11357. this._adapter.TableMappings.Add(tableMapping);
  11358. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  11359. this._adapter.DeleteCommand.Connection = this.Connection;
  11360. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Product] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([Cost] = @Original_Cost) AND ((@IsNull_MainImagePath = 1 AND [MainImagePath] IS NULL) OR ([MainImagePath] = @Original_MainImagePath)) AND ([IsActive] = @Original_IsActive) AND ((@IsNull_ManufacturerID = 1 AND [ManufacturerID] IS NULL) OR ([ManufacturerID] = @Original_ManufacturerID)))";
  11361. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  11362. 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, "", "", ""));
  11363. 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, "", "", ""));
  11364. 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, "", "", ""));
  11365. 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, "", "", ""));
  11366. 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, "", "", ""));
  11367. 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, "", "", ""));
  11368. 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, "", "", ""));
  11369. 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, "", "", ""));
  11370. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  11371. this._adapter.InsertCommand.Connection = this.Connection;
  11372. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Product] ([Title], [Cost], [Description], [MainImagePath], [IsActive], [ManufacturerID]) VALUES (@Title, @Cost, @Description, @MainImagePath, @IsActive, @ManufacturerID);
  11373. SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM Product WHERE (ID = SCOPE_IDENTITY())";
  11374. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  11375. 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, "", "", ""));
  11376. 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, "", "", ""));
  11377. 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, "", "", ""));
  11378. 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, "", "", ""));
  11379. 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, "", "", ""));
  11380. 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, "", "", ""));
  11381. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  11382. this._adapter.UpdateCommand.Connection = this.Connection;
  11383. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Product] SET [Title] = @Title, [Cost] = @Cost, [Description] = @Description, [MainImagePath] = @MainImagePath, [IsActive] = @IsActive, [ManufacturerID] = @ManufacturerID WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([Cost] = @Original_Cost) AND ((@IsNull_MainImagePath = 1 AND [MainImagePath] IS NULL) OR ([MainImagePath] = @Original_MainImagePath)) AND ([IsActive] = @Original_IsActive) AND ((@IsNull_ManufacturerID = 1 AND [ManufacturerID] IS NULL) OR ([ManufacturerID] = @Original_ManufacturerID)));
  11384. SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM Product WHERE (ID = @ID)";
  11385. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  11386. 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, "", "", ""));
  11387. 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, "", "", ""));
  11388. 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, "", "", ""));
  11389. 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, "", "", ""));
  11390. 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, "", "", ""));
  11391. 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, "", "", ""));
  11392. 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, "", "", ""));
  11393. 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, "", "", ""));
  11394. 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, "", "", ""));
  11395. 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, "", "", ""));
  11396. 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, "", "", ""));
  11397. 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, "", "", ""));
  11398. 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, "", "", ""));
  11399. 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, "", "", ""));
  11400. 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, "", "", ""));
  11401. }
  11402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11403. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11404. private void InitConnection() {
  11405. this._connection = new global::System.Data.SqlClient.SqlConnection();
  11406. this._connection.ConnectionString = global::BB_Azizova.Properties.Settings.Default.BB_AzizovaConnectionString;
  11407. }
  11408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11410. private void InitCommandCollection() {
  11411. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  11412. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  11413. this._commandCollection[0].Connection = this.Connection;
  11414. this._commandCollection[0].CommandText = "SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM" +
  11415. " dbo.Product";
  11416. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  11417. }
  11418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11420. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11421. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  11422. public virtual int Fill(BB_AzizovaDataSet.ProductDataTable dataTable) {
  11423. this.Adapter.SelectCommand = this.CommandCollection[0];
  11424. if ((this.ClearBeforeFill == true)) {
  11425. dataTable.Clear();
  11426. }
  11427. int returnValue = this.Adapter.Fill(dataTable);
  11428. return returnValue;
  11429. }
  11430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11432. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11433. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  11434. public virtual BB_AzizovaDataSet.ProductDataTable GetData() {
  11435. this.Adapter.SelectCommand = this.CommandCollection[0];
  11436. BB_AzizovaDataSet.ProductDataTable dataTable = new BB_AzizovaDataSet.ProductDataTable();
  11437. this.Adapter.Fill(dataTable);
  11438. return dataTable;
  11439. }
  11440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11442. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11443. public virtual int Update(BB_AzizovaDataSet.ProductDataTable dataTable) {
  11444. return this.Adapter.Update(dataTable);
  11445. }
  11446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11448. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11449. public virtual int Update(BB_AzizovaDataSet dataSet) {
  11450. return this.Adapter.Update(dataSet, "Product");
  11451. }
  11452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11454. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11455. public virtual int Update(global::System.Data.DataRow dataRow) {
  11456. return this.Adapter.Update(new global::System.Data.DataRow[] {
  11457. dataRow});
  11458. }
  11459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11461. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11462. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  11463. return this.Adapter.Update(dataRows);
  11464. }
  11465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11467. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11468. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  11469. public virtual int Delete(int Original_ID, string Original_Title, decimal Original_Cost, string Original_MainImagePath, bool Original_IsActive, global::System.Nullable<int> Original_ManufacturerID) {
  11470. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  11471. if ((Original_Title == null)) {
  11472. throw new global::System.ArgumentNullException("Original_Title");
  11473. }
  11474. else {
  11475. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  11476. }
  11477. this.Adapter.DeleteCommand.Parameters[2].Value = ((decimal)(Original_Cost));
  11478. if ((Original_MainImagePath == null)) {
  11479. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  11480. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  11481. }
  11482. else {
  11483. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  11484. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_MainImagePath));
  11485. }
  11486. this.Adapter.DeleteCommand.Parameters[5].Value = ((bool)(Original_IsActive));
  11487. if ((Original_ManufacturerID.HasValue == true)) {
  11488. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
  11489. this.Adapter.DeleteCommand.Parameters[7].Value = ((int)(Original_ManufacturerID.Value));
  11490. }
  11491. else {
  11492. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
  11493. this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
  11494. }
  11495. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  11496. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11497. != global::System.Data.ConnectionState.Open)) {
  11498. this.Adapter.DeleteCommand.Connection.Open();
  11499. }
  11500. try {
  11501. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  11502. return returnValue;
  11503. }
  11504. finally {
  11505. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11506. this.Adapter.DeleteCommand.Connection.Close();
  11507. }
  11508. }
  11509. }
  11510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11512. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11513. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  11514. public virtual int Insert(string Title, decimal Cost, string Description, string MainImagePath, bool IsActive, global::System.Nullable<int> ManufacturerID) {
  11515. if ((Title == null)) {
  11516. throw new global::System.ArgumentNullException("Title");
  11517. }
  11518. else {
  11519. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  11520. }
  11521. this.Adapter.InsertCommand.Parameters[1].Value = ((decimal)(Cost));
  11522. if ((Description == null)) {
  11523. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  11524. }
  11525. else {
  11526. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Description));
  11527. }
  11528. if ((MainImagePath == null)) {
  11529. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  11530. }
  11531. else {
  11532. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(MainImagePath));
  11533. }
  11534. this.Adapter.InsertCommand.Parameters[4].Value = ((bool)(IsActive));
  11535. if ((ManufacturerID.HasValue == true)) {
  11536. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(ManufacturerID.Value));
  11537. }
  11538. else {
  11539. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  11540. }
  11541. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  11542. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11543. != global::System.Data.ConnectionState.Open)) {
  11544. this.Adapter.InsertCommand.Connection.Open();
  11545. }
  11546. try {
  11547. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  11548. return returnValue;
  11549. }
  11550. finally {
  11551. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11552. this.Adapter.InsertCommand.Connection.Close();
  11553. }
  11554. }
  11555. }
  11556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11558. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11559. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11560. public virtual int Update(string Title, decimal Cost, string Description, string MainImagePath, bool IsActive, global::System.Nullable<int> ManufacturerID, int Original_ID, string Original_Title, decimal Original_Cost, string Original_MainImagePath, bool Original_IsActive, global::System.Nullable<int> Original_ManufacturerID, int ID) {
  11561. if ((Title == null)) {
  11562. throw new global::System.ArgumentNullException("Title");
  11563. }
  11564. else {
  11565. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  11566. }
  11567. this.Adapter.UpdateCommand.Parameters[1].Value = ((decimal)(Cost));
  11568. if ((Description == null)) {
  11569. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  11570. }
  11571. else {
  11572. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Description));
  11573. }
  11574. if ((MainImagePath == null)) {
  11575. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  11576. }
  11577. else {
  11578. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(MainImagePath));
  11579. }
  11580. this.Adapter.UpdateCommand.Parameters[4].Value = ((bool)(IsActive));
  11581. if ((ManufacturerID.HasValue == true)) {
  11582. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ManufacturerID.Value));
  11583. }
  11584. else {
  11585. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  11586. }
  11587. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ID));
  11588. if ((Original_Title == null)) {
  11589. throw new global::System.ArgumentNullException("Original_Title");
  11590. }
  11591. else {
  11592. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Title));
  11593. }
  11594. this.Adapter.UpdateCommand.Parameters[8].Value = ((decimal)(Original_Cost));
  11595. if ((Original_MainImagePath == null)) {
  11596. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  11597. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  11598. }
  11599. else {
  11600. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  11601. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_MainImagePath));
  11602. }
  11603. this.Adapter.UpdateCommand.Parameters[11].Value = ((bool)(Original_IsActive));
  11604. if ((Original_ManufacturerID.HasValue == true)) {
  11605. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  11606. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_ManufacturerID.Value));
  11607. }
  11608. else {
  11609. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  11610. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  11611. }
  11612. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(ID));
  11613. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  11614. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11615. != global::System.Data.ConnectionState.Open)) {
  11616. this.Adapter.UpdateCommand.Connection.Open();
  11617. }
  11618. try {
  11619. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  11620. return returnValue;
  11621. }
  11622. finally {
  11623. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11624. this.Adapter.UpdateCommand.Connection.Close();
  11625. }
  11626. }
  11627. }
  11628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11630. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11631. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11632. public virtual int Update(string Title, decimal Cost, string Description, string MainImagePath, bool IsActive, global::System.Nullable<int> ManufacturerID, int Original_ID, string Original_Title, decimal Original_Cost, string Original_MainImagePath, bool Original_IsActive, global::System.Nullable<int> Original_ManufacturerID) {
  11633. return this.Update(Title, Cost, Description, MainImagePath, IsActive, ManufacturerID, Original_ID, Original_Title, Original_Cost, Original_MainImagePath, Original_IsActive, Original_ManufacturerID, Original_ID);
  11634. }
  11635. }
  11636. /// <summary>
  11637. ///Represents the connection and commands used to retrieve and save data.
  11638. ///</summary>
  11639. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  11640. [global::System.ComponentModel.ToolboxItem(true)]
  11641. [global::System.ComponentModel.DataObjectAttribute(true)]
  11642. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  11643. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  11644. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11645. public partial class ProductPhotoTableAdapter : global::System.ComponentModel.Component {
  11646. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  11647. private global::System.Data.SqlClient.SqlConnection _connection;
  11648. private global::System.Data.SqlClient.SqlTransaction _transaction;
  11649. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  11650. private bool _clearBeforeFill;
  11651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11653. public ProductPhotoTableAdapter() {
  11654. this.ClearBeforeFill = true;
  11655. }
  11656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11657. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11658. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  11659. get {
  11660. if ((this._adapter == null)) {
  11661. this.InitAdapter();
  11662. }
  11663. return this._adapter;
  11664. }
  11665. }
  11666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11668. internal global::System.Data.SqlClient.SqlConnection Connection {
  11669. get {
  11670. if ((this._connection == null)) {
  11671. this.InitConnection();
  11672. }
  11673. return this._connection;
  11674. }
  11675. set {
  11676. this._connection = value;
  11677. if ((this.Adapter.InsertCommand != null)) {
  11678. this.Adapter.InsertCommand.Connection = value;
  11679. }
  11680. if ((this.Adapter.DeleteCommand != null)) {
  11681. this.Adapter.DeleteCommand.Connection = value;
  11682. }
  11683. if ((this.Adapter.UpdateCommand != null)) {
  11684. this.Adapter.UpdateCommand.Connection = value;
  11685. }
  11686. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  11687. if ((this.CommandCollection[i] != null)) {
  11688. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  11689. }
  11690. }
  11691. }
  11692. }
  11693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11695. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  11696. get {
  11697. return this._transaction;
  11698. }
  11699. set {
  11700. this._transaction = value;
  11701. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  11702. this.CommandCollection[i].Transaction = this._transaction;
  11703. }
  11704. if (((this.Adapter != null)
  11705. && (this.Adapter.DeleteCommand != null))) {
  11706. this.Adapter.DeleteCommand.Transaction = this._transaction;
  11707. }
  11708. if (((this.Adapter != null)
  11709. && (this.Adapter.InsertCommand != null))) {
  11710. this.Adapter.InsertCommand.Transaction = this._transaction;
  11711. }
  11712. if (((this.Adapter != null)
  11713. && (this.Adapter.UpdateCommand != null))) {
  11714. this.Adapter.UpdateCommand.Transaction = this._transaction;
  11715. }
  11716. }
  11717. }
  11718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11720. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  11721. get {
  11722. if ((this._commandCollection == null)) {
  11723. this.InitCommandCollection();
  11724. }
  11725. return this._commandCollection;
  11726. }
  11727. }
  11728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11730. public bool ClearBeforeFill {
  11731. get {
  11732. return this._clearBeforeFill;
  11733. }
  11734. set {
  11735. this._clearBeforeFill = value;
  11736. }
  11737. }
  11738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11740. private void InitAdapter() {
  11741. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  11742. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  11743. tableMapping.SourceTable = "Table";
  11744. tableMapping.DataSetTable = "ProductPhoto";
  11745. tableMapping.ColumnMappings.Add("ID", "ID");
  11746. tableMapping.ColumnMappings.Add("ProductID", "ProductID");
  11747. tableMapping.ColumnMappings.Add("PhotoPath", "PhotoPath");
  11748. this._adapter.TableMappings.Add(tableMapping);
  11749. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  11750. this._adapter.DeleteCommand.Connection = this.Connection;
  11751. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ProductPhoto] WHERE (([ID] = @Original_ID) AND ([ProductID] = " +
  11752. "@Original_ProductID) AND ([PhotoPath] = @Original_PhotoPath))";
  11753. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  11754. 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, "", "", ""));
  11755. 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, "", "", ""));
  11756. 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, "", "", ""));
  11757. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  11758. this._adapter.InsertCommand.Connection = this.Connection;
  11759. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ProductPhoto] ([ProductID], [PhotoPath]) VALUES (@ProductID, @" +
  11760. "PhotoPath);\r\nSELECT ID, ProductID, PhotoPath FROM ProductPhoto WHERE (ID = SCOPE" +
  11761. "_IDENTITY())";
  11762. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  11763. 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, "", "", ""));
  11764. 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, "", "", ""));
  11765. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  11766. this._adapter.UpdateCommand.Connection = this.Connection;
  11767. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ProductPhoto] SET [ProductID] = @ProductID, [PhotoPath] = @PhotoPath WHERE (([ID] = @Original_ID) AND ([ProductID] = @Original_ProductID) AND ([PhotoPath] = @Original_PhotoPath));
  11768. SELECT ID, ProductID, PhotoPath FROM ProductPhoto WHERE (ID = @ID)";
  11769. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  11770. 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, "", "", ""));
  11771. 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, "", "", ""));
  11772. 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, "", "", ""));
  11773. 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, "", "", ""));
  11774. 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, "", "", ""));
  11775. 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, "", "", ""));
  11776. }
  11777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11779. private void InitConnection() {
  11780. this._connection = new global::System.Data.SqlClient.SqlConnection();
  11781. this._connection.ConnectionString = global::BB_Azizova.Properties.Settings.Default.BB_AzizovaConnectionString;
  11782. }
  11783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11785. private void InitCommandCollection() {
  11786. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  11787. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  11788. this._commandCollection[0].Connection = this.Connection;
  11789. this._commandCollection[0].CommandText = "SELECT ID, ProductID, PhotoPath FROM dbo.ProductPhoto";
  11790. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  11791. }
  11792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11794. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11795. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  11796. public virtual int Fill(BB_AzizovaDataSet.ProductPhotoDataTable dataTable) {
  11797. this.Adapter.SelectCommand = this.CommandCollection[0];
  11798. if ((this.ClearBeforeFill == true)) {
  11799. dataTable.Clear();
  11800. }
  11801. int returnValue = this.Adapter.Fill(dataTable);
  11802. return returnValue;
  11803. }
  11804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11806. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11807. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  11808. public virtual BB_AzizovaDataSet.ProductPhotoDataTable GetData() {
  11809. this.Adapter.SelectCommand = this.CommandCollection[0];
  11810. BB_AzizovaDataSet.ProductPhotoDataTable dataTable = new BB_AzizovaDataSet.ProductPhotoDataTable();
  11811. this.Adapter.Fill(dataTable);
  11812. return dataTable;
  11813. }
  11814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11816. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11817. public virtual int Update(BB_AzizovaDataSet.ProductPhotoDataTable dataTable) {
  11818. return this.Adapter.Update(dataTable);
  11819. }
  11820. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11821. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11822. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11823. public virtual int Update(BB_AzizovaDataSet dataSet) {
  11824. return this.Adapter.Update(dataSet, "ProductPhoto");
  11825. }
  11826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11828. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11829. public virtual int Update(global::System.Data.DataRow dataRow) {
  11830. return this.Adapter.Update(new global::System.Data.DataRow[] {
  11831. dataRow});
  11832. }
  11833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11835. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11836. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  11837. return this.Adapter.Update(dataRows);
  11838. }
  11839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11841. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11842. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  11843. public virtual int Delete(int Original_ID, int Original_ProductID, string Original_PhotoPath) {
  11844. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  11845. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ProductID));
  11846. if ((Original_PhotoPath == null)) {
  11847. throw new global::System.ArgumentNullException("Original_PhotoPath");
  11848. }
  11849. else {
  11850. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_PhotoPath));
  11851. }
  11852. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  11853. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11854. != global::System.Data.ConnectionState.Open)) {
  11855. this.Adapter.DeleteCommand.Connection.Open();
  11856. }
  11857. try {
  11858. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  11859. return returnValue;
  11860. }
  11861. finally {
  11862. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11863. this.Adapter.DeleteCommand.Connection.Close();
  11864. }
  11865. }
  11866. }
  11867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11868. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11869. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11870. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  11871. public virtual int Insert(int ProductID, string PhotoPath) {
  11872. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ProductID));
  11873. if ((PhotoPath == null)) {
  11874. throw new global::System.ArgumentNullException("PhotoPath");
  11875. }
  11876. else {
  11877. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(PhotoPath));
  11878. }
  11879. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  11880. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11881. != global::System.Data.ConnectionState.Open)) {
  11882. this.Adapter.InsertCommand.Connection.Open();
  11883. }
  11884. try {
  11885. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  11886. return returnValue;
  11887. }
  11888. finally {
  11889. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11890. this.Adapter.InsertCommand.Connection.Close();
  11891. }
  11892. }
  11893. }
  11894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11896. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11897. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11898. public virtual int Update(int ProductID, string PhotoPath, int Original_ID, int Original_ProductID, string Original_PhotoPath, int ID) {
  11899. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ProductID));
  11900. if ((PhotoPath == null)) {
  11901. throw new global::System.ArgumentNullException("PhotoPath");
  11902. }
  11903. else {
  11904. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(PhotoPath));
  11905. }
  11906. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  11907. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ProductID));
  11908. if ((Original_PhotoPath == null)) {
  11909. throw new global::System.ArgumentNullException("Original_PhotoPath");
  11910. }
  11911. else {
  11912. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_PhotoPath));
  11913. }
  11914. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  11915. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  11916. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11917. != global::System.Data.ConnectionState.Open)) {
  11918. this.Adapter.UpdateCommand.Connection.Open();
  11919. }
  11920. try {
  11921. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  11922. return returnValue;
  11923. }
  11924. finally {
  11925. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11926. this.Adapter.UpdateCommand.Connection.Close();
  11927. }
  11928. }
  11929. }
  11930. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11931. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11932. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11933. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11934. public virtual int Update(int ProductID, string PhotoPath, int Original_ID, int Original_ProductID, string Original_PhotoPath) {
  11935. return this.Update(ProductID, PhotoPath, Original_ID, Original_ProductID, Original_PhotoPath, Original_ID);
  11936. }
  11937. }
  11938. /// <summary>
  11939. ///Represents the connection and commands used to retrieve and save data.
  11940. ///</summary>
  11941. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  11942. [global::System.ComponentModel.ToolboxItem(true)]
  11943. [global::System.ComponentModel.DataObjectAttribute(true)]
  11944. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  11945. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  11946. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11947. public partial class ProductSaleTableAdapter : global::System.ComponentModel.Component {
  11948. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  11949. private global::System.Data.SqlClient.SqlConnection _connection;
  11950. private global::System.Data.SqlClient.SqlTransaction _transaction;
  11951. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  11952. private bool _clearBeforeFill;
  11953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11955. public ProductSaleTableAdapter() {
  11956. this.ClearBeforeFill = true;
  11957. }
  11958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11959. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11960. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  11961. get {
  11962. if ((this._adapter == null)) {
  11963. this.InitAdapter();
  11964. }
  11965. return this._adapter;
  11966. }
  11967. }
  11968. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11969. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11970. internal global::System.Data.SqlClient.SqlConnection Connection {
  11971. get {
  11972. if ((this._connection == null)) {
  11973. this.InitConnection();
  11974. }
  11975. return this._connection;
  11976. }
  11977. set {
  11978. this._connection = value;
  11979. if ((this.Adapter.InsertCommand != null)) {
  11980. this.Adapter.InsertCommand.Connection = value;
  11981. }
  11982. if ((this.Adapter.DeleteCommand != null)) {
  11983. this.Adapter.DeleteCommand.Connection = value;
  11984. }
  11985. if ((this.Adapter.UpdateCommand != null)) {
  11986. this.Adapter.UpdateCommand.Connection = value;
  11987. }
  11988. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  11989. if ((this.CommandCollection[i] != null)) {
  11990. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  11991. }
  11992. }
  11993. }
  11994. }
  11995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11997. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  11998. get {
  11999. return this._transaction;
  12000. }
  12001. set {
  12002. this._transaction = value;
  12003. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  12004. this.CommandCollection[i].Transaction = this._transaction;
  12005. }
  12006. if (((this.Adapter != null)
  12007. && (this.Adapter.DeleteCommand != null))) {
  12008. this.Adapter.DeleteCommand.Transaction = this._transaction;
  12009. }
  12010. if (((this.Adapter != null)
  12011. && (this.Adapter.InsertCommand != null))) {
  12012. this.Adapter.InsertCommand.Transaction = this._transaction;
  12013. }
  12014. if (((this.Adapter != null)
  12015. && (this.Adapter.UpdateCommand != null))) {
  12016. this.Adapter.UpdateCommand.Transaction = this._transaction;
  12017. }
  12018. }
  12019. }
  12020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12022. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  12023. get {
  12024. if ((this._commandCollection == null)) {
  12025. this.InitCommandCollection();
  12026. }
  12027. return this._commandCollection;
  12028. }
  12029. }
  12030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12032. public bool ClearBeforeFill {
  12033. get {
  12034. return this._clearBeforeFill;
  12035. }
  12036. set {
  12037. this._clearBeforeFill = value;
  12038. }
  12039. }
  12040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12042. private void InitAdapter() {
  12043. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  12044. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  12045. tableMapping.SourceTable = "Table";
  12046. tableMapping.DataSetTable = "ProductSale";
  12047. tableMapping.ColumnMappings.Add("ID", "ID");
  12048. tableMapping.ColumnMappings.Add("SaleDate", "SaleDate");
  12049. tableMapping.ColumnMappings.Add("ProductID", "ProductID");
  12050. tableMapping.ColumnMappings.Add("Quantity", "Quantity");
  12051. tableMapping.ColumnMappings.Add("ClientServiceID", "ClientServiceID");
  12052. this._adapter.TableMappings.Add(tableMapping);
  12053. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  12054. this._adapter.DeleteCommand.Connection = this.Connection;
  12055. 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)))";
  12056. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  12057. 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, "", "", ""));
  12058. 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, "", "", ""));
  12059. 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, "", "", ""));
  12060. 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, "", "", ""));
  12061. 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, "", "", ""));
  12062. 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, "", "", ""));
  12063. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  12064. this._adapter.InsertCommand.Connection = this.Connection;
  12065. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ProductSale] ([SaleDate], [ProductID], [Quantity], [ClientServ" +
  12066. "iceID]) VALUES (@SaleDate, @ProductID, @Quantity, @ClientServiceID);\r\nSELECT ID," +
  12067. " SaleDate, ProductID, Quantity, ClientServiceID FROM ProductSale WHERE (ID = SCO" +
  12068. "PE_IDENTITY())";
  12069. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  12070. 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, "", "", ""));
  12071. 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, "", "", ""));
  12072. 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, "", "", ""));
  12073. 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, "", "", ""));
  12074. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  12075. this._adapter.UpdateCommand.Connection = this.Connection;
  12076. 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)));
  12077. SELECT ID, SaleDate, ProductID, Quantity, ClientServiceID FROM ProductSale WHERE (ID = @ID)";
  12078. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  12079. 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, "", "", ""));
  12080. 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, "", "", ""));
  12081. 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, "", "", ""));
  12082. 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, "", "", ""));
  12083. 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, "", "", ""));
  12084. 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, "", "", ""));
  12085. 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, "", "", ""));
  12086. 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, "", "", ""));
  12087. 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, "", "", ""));
  12088. 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, "", "", ""));
  12089. 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, "", "", ""));
  12090. }
  12091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12093. private void InitConnection() {
  12094. this._connection = new global::System.Data.SqlClient.SqlConnection();
  12095. this._connection.ConnectionString = global::BB_Azizova.Properties.Settings.Default.BB_AzizovaConnectionString;
  12096. }
  12097. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12098. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12099. private void InitCommandCollection() {
  12100. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  12101. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  12102. this._commandCollection[0].Connection = this.Connection;
  12103. this._commandCollection[0].CommandText = "SELECT ID, SaleDate, ProductID, Quantity, ClientServiceID FROM dbo.ProductSale";
  12104. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  12105. }
  12106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12108. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12109. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  12110. public virtual int Fill(BB_AzizovaDataSet.ProductSaleDataTable dataTable) {
  12111. this.Adapter.SelectCommand = this.CommandCollection[0];
  12112. if ((this.ClearBeforeFill == true)) {
  12113. dataTable.Clear();
  12114. }
  12115. int returnValue = this.Adapter.Fill(dataTable);
  12116. return returnValue;
  12117. }
  12118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12120. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12121. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  12122. public virtual BB_AzizovaDataSet.ProductSaleDataTable GetData() {
  12123. this.Adapter.SelectCommand = this.CommandCollection[0];
  12124. BB_AzizovaDataSet.ProductSaleDataTable dataTable = new BB_AzizovaDataSet.ProductSaleDataTable();
  12125. this.Adapter.Fill(dataTable);
  12126. return dataTable;
  12127. }
  12128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12130. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12131. public virtual int Update(BB_AzizovaDataSet.ProductSaleDataTable dataTable) {
  12132. return this.Adapter.Update(dataTable);
  12133. }
  12134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12136. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12137. public virtual int Update(BB_AzizovaDataSet dataSet) {
  12138. return this.Adapter.Update(dataSet, "ProductSale");
  12139. }
  12140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12142. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12143. public virtual int Update(global::System.Data.DataRow dataRow) {
  12144. return this.Adapter.Update(new global::System.Data.DataRow[] {
  12145. dataRow});
  12146. }
  12147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12149. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12150. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  12151. return this.Adapter.Update(dataRows);
  12152. }
  12153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12155. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12156. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  12157. public virtual int Delete(int Original_ID, System.DateTime Original_SaleDate, int Original_ProductID, int Original_Quantity, global::System.Nullable<int> Original_ClientServiceID) {
  12158. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  12159. this.Adapter.DeleteCommand.Parameters[1].Value = ((System.DateTime)(Original_SaleDate));
  12160. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_ProductID));
  12161. this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_Quantity));
  12162. if ((Original_ClientServiceID.HasValue == true)) {
  12163. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  12164. this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_ClientServiceID.Value));
  12165. }
  12166. else {
  12167. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  12168. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  12169. }
  12170. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  12171. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12172. != global::System.Data.ConnectionState.Open)) {
  12173. this.Adapter.DeleteCommand.Connection.Open();
  12174. }
  12175. try {
  12176. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  12177. return returnValue;
  12178. }
  12179. finally {
  12180. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12181. this.Adapter.DeleteCommand.Connection.Close();
  12182. }
  12183. }
  12184. }
  12185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12187. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12188. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  12189. public virtual int Insert(System.DateTime SaleDate, int ProductID, int Quantity, global::System.Nullable<int> ClientServiceID) {
  12190. this.Adapter.InsertCommand.Parameters[0].Value = ((System.DateTime)(SaleDate));
  12191. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ProductID));
  12192. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Quantity));
  12193. if ((ClientServiceID.HasValue == true)) {
  12194. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(ClientServiceID.Value));
  12195. }
  12196. else {
  12197. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  12198. }
  12199. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  12200. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12201. != global::System.Data.ConnectionState.Open)) {
  12202. this.Adapter.InsertCommand.Connection.Open();
  12203. }
  12204. try {
  12205. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  12206. return returnValue;
  12207. }
  12208. finally {
  12209. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12210. this.Adapter.InsertCommand.Connection.Close();
  12211. }
  12212. }
  12213. }
  12214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12216. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12217. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  12218. 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) {
  12219. this.Adapter.UpdateCommand.Parameters[0].Value = ((System.DateTime)(SaleDate));
  12220. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(ProductID));
  12221. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Quantity));
  12222. if ((ClientServiceID.HasValue == true)) {
  12223. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(ClientServiceID.Value));
  12224. }
  12225. else {
  12226. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  12227. }
  12228. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_ID));
  12229. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(Original_SaleDate));
  12230. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ProductID));
  12231. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_Quantity));
  12232. if ((Original_ClientServiceID.HasValue == true)) {
  12233. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  12234. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_ClientServiceID.Value));
  12235. }
  12236. else {
  12237. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  12238. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  12239. }
  12240. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(ID));
  12241. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  12242. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12243. != global::System.Data.ConnectionState.Open)) {
  12244. this.Adapter.UpdateCommand.Connection.Open();
  12245. }
  12246. try {
  12247. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  12248. return returnValue;
  12249. }
  12250. finally {
  12251. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12252. this.Adapter.UpdateCommand.Connection.Close();
  12253. }
  12254. }
  12255. }
  12256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12258. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12259. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  12260. 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) {
  12261. return this.Update(SaleDate, ProductID, Quantity, ClientServiceID, Original_ID, Original_SaleDate, Original_ProductID, Original_Quantity, Original_ClientServiceID, Original_ID);
  12262. }
  12263. }
  12264. /// <summary>
  12265. ///Represents the connection and commands used to retrieve and save data.
  12266. ///</summary>
  12267. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  12268. [global::System.ComponentModel.ToolboxItem(true)]
  12269. [global::System.ComponentModel.DataObjectAttribute(true)]
  12270. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  12271. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  12272. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12273. public partial class ServiceTableAdapter : global::System.ComponentModel.Component {
  12274. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  12275. private global::System.Data.SqlClient.SqlConnection _connection;
  12276. private global::System.Data.SqlClient.SqlTransaction _transaction;
  12277. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  12278. private bool _clearBeforeFill;
  12279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12281. public ServiceTableAdapter() {
  12282. this.ClearBeforeFill = true;
  12283. }
  12284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12286. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  12287. get {
  12288. if ((this._adapter == null)) {
  12289. this.InitAdapter();
  12290. }
  12291. return this._adapter;
  12292. }
  12293. }
  12294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12296. internal global::System.Data.SqlClient.SqlConnection Connection {
  12297. get {
  12298. if ((this._connection == null)) {
  12299. this.InitConnection();
  12300. }
  12301. return this._connection;
  12302. }
  12303. set {
  12304. this._connection = value;
  12305. if ((this.Adapter.InsertCommand != null)) {
  12306. this.Adapter.InsertCommand.Connection = value;
  12307. }
  12308. if ((this.Adapter.DeleteCommand != null)) {
  12309. this.Adapter.DeleteCommand.Connection = value;
  12310. }
  12311. if ((this.Adapter.UpdateCommand != null)) {
  12312. this.Adapter.UpdateCommand.Connection = value;
  12313. }
  12314. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  12315. if ((this.CommandCollection[i] != null)) {
  12316. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  12317. }
  12318. }
  12319. }
  12320. }
  12321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12323. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  12324. get {
  12325. return this._transaction;
  12326. }
  12327. set {
  12328. this._transaction = value;
  12329. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  12330. this.CommandCollection[i].Transaction = this._transaction;
  12331. }
  12332. if (((this.Adapter != null)
  12333. && (this.Adapter.DeleteCommand != null))) {
  12334. this.Adapter.DeleteCommand.Transaction = this._transaction;
  12335. }
  12336. if (((this.Adapter != null)
  12337. && (this.Adapter.InsertCommand != null))) {
  12338. this.Adapter.InsertCommand.Transaction = this._transaction;
  12339. }
  12340. if (((this.Adapter != null)
  12341. && (this.Adapter.UpdateCommand != null))) {
  12342. this.Adapter.UpdateCommand.Transaction = this._transaction;
  12343. }
  12344. }
  12345. }
  12346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12348. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  12349. get {
  12350. if ((this._commandCollection == null)) {
  12351. this.InitCommandCollection();
  12352. }
  12353. return this._commandCollection;
  12354. }
  12355. }
  12356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12358. public bool ClearBeforeFill {
  12359. get {
  12360. return this._clearBeforeFill;
  12361. }
  12362. set {
  12363. this._clearBeforeFill = value;
  12364. }
  12365. }
  12366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12367. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12368. private void InitAdapter() {
  12369. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  12370. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  12371. tableMapping.SourceTable = "Table";
  12372. tableMapping.DataSetTable = "Service";
  12373. tableMapping.ColumnMappings.Add("ID", "ID");
  12374. tableMapping.ColumnMappings.Add("Title", "Title");
  12375. tableMapping.ColumnMappings.Add("Cost", "Cost");
  12376. tableMapping.ColumnMappings.Add("DurationInSeconds", "DurationInSeconds");
  12377. tableMapping.ColumnMappings.Add("Description", "Description");
  12378. tableMapping.ColumnMappings.Add("Discount", "Discount");
  12379. tableMapping.ColumnMappings.Add("MainImagePath", "MainImagePath");
  12380. this._adapter.TableMappings.Add(tableMapping);
  12381. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  12382. this._adapter.DeleteCommand.Connection = this.Connection;
  12383. 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)))";
  12384. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  12385. 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, "", "", ""));
  12386. 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, "", "", ""));
  12387. 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, "", "", ""));
  12388. 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, "", "", ""));
  12389. 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, "", "", ""));
  12390. 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, "", "", ""));
  12391. 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, "", "", ""));
  12392. 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, "", "", ""));
  12393. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  12394. this._adapter.InsertCommand.Connection = this.Connection;
  12395. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Service] ([Title], [Cost], [DurationInSeconds], [Description], [Discount], [MainImagePath]) VALUES (@Title, @Cost, @DurationInSeconds, @Description, @Discount, @MainImagePath);
  12396. SELECT ID, Title, Cost, DurationInSeconds, Description, Discount, MainImagePath FROM Service WHERE (ID = SCOPE_IDENTITY())";
  12397. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  12398. 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, "", "", ""));
  12399. 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, "", "", ""));
  12400. 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, "", "", ""));
  12401. 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, "", "", ""));
  12402. 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, "", "", ""));
  12403. 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, "", "", ""));
  12404. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  12405. this._adapter.UpdateCommand.Connection = this.Connection;
  12406. 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)));
  12407. SELECT ID, Title, Cost, DurationInSeconds, Description, Discount, MainImagePath FROM Service WHERE (ID = @ID)";
  12408. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  12409. 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, "", "", ""));
  12410. 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, "", "", ""));
  12411. 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, "", "", ""));
  12412. 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, "", "", ""));
  12413. 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, "", "", ""));
  12414. 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, "", "", ""));
  12415. 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, "", "", ""));
  12416. 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, "", "", ""));
  12417. 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, "", "", ""));
  12418. 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, "", "", ""));
  12419. 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, "", "", ""));
  12420. 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, "", "", ""));
  12421. 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, "", "", ""));
  12422. 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, "", "", ""));
  12423. 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, "", "", ""));
  12424. }
  12425. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12427. private void InitConnection() {
  12428. this._connection = new global::System.Data.SqlClient.SqlConnection();
  12429. this._connection.ConnectionString = global::BB_Azizova.Properties.Settings.Default.BB_AzizovaConnectionString;
  12430. }
  12431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12433. private void InitCommandCollection() {
  12434. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  12435. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  12436. this._commandCollection[0].Connection = this.Connection;
  12437. this._commandCollection[0].CommandText = "SELECT ID, Title, Cost, DurationInSeconds, Description, Discount, MainImagePath F" +
  12438. "ROM dbo.Service";
  12439. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  12440. }
  12441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12443. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12444. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  12445. public virtual int Fill(BB_AzizovaDataSet.ServiceDataTable dataTable) {
  12446. this.Adapter.SelectCommand = this.CommandCollection[0];
  12447. if ((this.ClearBeforeFill == true)) {
  12448. dataTable.Clear();
  12449. }
  12450. int returnValue = this.Adapter.Fill(dataTable);
  12451. return returnValue;
  12452. }
  12453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12454. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12455. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12456. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  12457. public virtual BB_AzizovaDataSet.ServiceDataTable GetData() {
  12458. this.Adapter.SelectCommand = this.CommandCollection[0];
  12459. BB_AzizovaDataSet.ServiceDataTable dataTable = new BB_AzizovaDataSet.ServiceDataTable();
  12460. this.Adapter.Fill(dataTable);
  12461. return dataTable;
  12462. }
  12463. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12464. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12465. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12466. public virtual int Update(BB_AzizovaDataSet.ServiceDataTable dataTable) {
  12467. return this.Adapter.Update(dataTable);
  12468. }
  12469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12471. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12472. public virtual int Update(BB_AzizovaDataSet dataSet) {
  12473. return this.Adapter.Update(dataSet, "Service");
  12474. }
  12475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12477. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12478. public virtual int Update(global::System.Data.DataRow dataRow) {
  12479. return this.Adapter.Update(new global::System.Data.DataRow[] {
  12480. dataRow});
  12481. }
  12482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12484. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12485. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  12486. return this.Adapter.Update(dataRows);
  12487. }
  12488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12490. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12491. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  12492. 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) {
  12493. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  12494. if ((Original_Title == null)) {
  12495. throw new global::System.ArgumentNullException("Original_Title");
  12496. }
  12497. else {
  12498. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  12499. }
  12500. this.Adapter.DeleteCommand.Parameters[2].Value = ((decimal)(Original_Cost));
  12501. this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_DurationInSeconds));
  12502. if ((Original_Discount.HasValue == true)) {
  12503. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  12504. this.Adapter.DeleteCommand.Parameters[5].Value = ((double)(Original_Discount.Value));
  12505. }
  12506. else {
  12507. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  12508. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  12509. }
  12510. if ((Original_MainImagePath == null)) {
  12511. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
  12512. this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
  12513. }
  12514. else {
  12515. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
  12516. this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_MainImagePath));
  12517. }
  12518. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  12519. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12520. != global::System.Data.ConnectionState.Open)) {
  12521. this.Adapter.DeleteCommand.Connection.Open();
  12522. }
  12523. try {
  12524. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  12525. return returnValue;
  12526. }
  12527. finally {
  12528. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12529. this.Adapter.DeleteCommand.Connection.Close();
  12530. }
  12531. }
  12532. }
  12533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12535. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12536. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  12537. public virtual int Insert(string Title, decimal Cost, int DurationInSeconds, string Description, global::System.Nullable<double> Discount, string MainImagePath) {
  12538. if ((Title == null)) {
  12539. throw new global::System.ArgumentNullException("Title");
  12540. }
  12541. else {
  12542. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  12543. }
  12544. this.Adapter.InsertCommand.Parameters[1].Value = ((decimal)(Cost));
  12545. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(DurationInSeconds));
  12546. if ((Description == null)) {
  12547. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  12548. }
  12549. else {
  12550. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Description));
  12551. }
  12552. if ((Discount.HasValue == true)) {
  12553. this.Adapter.InsertCommand.Parameters[4].Value = ((double)(Discount.Value));
  12554. }
  12555. else {
  12556. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  12557. }
  12558. if ((MainImagePath == null)) {
  12559. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  12560. }
  12561. else {
  12562. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(MainImagePath));
  12563. }
  12564. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  12565. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12566. != global::System.Data.ConnectionState.Open)) {
  12567. this.Adapter.InsertCommand.Connection.Open();
  12568. }
  12569. try {
  12570. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  12571. return returnValue;
  12572. }
  12573. finally {
  12574. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12575. this.Adapter.InsertCommand.Connection.Close();
  12576. }
  12577. }
  12578. }
  12579. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12580. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12581. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12582. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  12583. 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) {
  12584. if ((Title == null)) {
  12585. throw new global::System.ArgumentNullException("Title");
  12586. }
  12587. else {
  12588. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  12589. }
  12590. this.Adapter.UpdateCommand.Parameters[1].Value = ((decimal)(Cost));
  12591. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(DurationInSeconds));
  12592. if ((Description == null)) {
  12593. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  12594. }
  12595. else {
  12596. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Description));
  12597. }
  12598. if ((Discount.HasValue == true)) {
  12599. this.Adapter.UpdateCommand.Parameters[4].Value = ((double)(Discount.Value));
  12600. }
  12601. else {
  12602. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  12603. }
  12604. if ((MainImagePath == null)) {
  12605. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  12606. }
  12607. else {
  12608. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(MainImagePath));
  12609. }
  12610. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ID));
  12611. if ((Original_Title == null)) {
  12612. throw new global::System.ArgumentNullException("Original_Title");
  12613. }
  12614. else {
  12615. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Title));
  12616. }
  12617. this.Adapter.UpdateCommand.Parameters[8].Value = ((decimal)(Original_Cost));
  12618. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_DurationInSeconds));
  12619. if ((Original_Discount.HasValue == true)) {
  12620. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  12621. this.Adapter.UpdateCommand.Parameters[11].Value = ((double)(Original_Discount.Value));
  12622. }
  12623. else {
  12624. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  12625. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  12626. }
  12627. if ((Original_MainImagePath == null)) {
  12628. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  12629. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  12630. }
  12631. else {
  12632. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  12633. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_MainImagePath));
  12634. }
  12635. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(ID));
  12636. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  12637. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12638. != global::System.Data.ConnectionState.Open)) {
  12639. this.Adapter.UpdateCommand.Connection.Open();
  12640. }
  12641. try {
  12642. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  12643. return returnValue;
  12644. }
  12645. finally {
  12646. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12647. this.Adapter.UpdateCommand.Connection.Close();
  12648. }
  12649. }
  12650. }
  12651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12653. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12654. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  12655. 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) {
  12656. return this.Update(Title, Cost, DurationInSeconds, Description, Discount, MainImagePath, Original_ID, Original_Title, Original_Cost, Original_DurationInSeconds, Original_Discount, Original_MainImagePath, Original_ID);
  12657. }
  12658. }
  12659. /// <summary>
  12660. ///Represents the connection and commands used to retrieve and save data.
  12661. ///</summary>
  12662. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  12663. [global::System.ComponentModel.ToolboxItem(true)]
  12664. [global::System.ComponentModel.DataObjectAttribute(true)]
  12665. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  12666. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  12667. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12668. public partial class ServicePhotoTableAdapter : global::System.ComponentModel.Component {
  12669. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  12670. private global::System.Data.SqlClient.SqlConnection _connection;
  12671. private global::System.Data.SqlClient.SqlTransaction _transaction;
  12672. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  12673. private bool _clearBeforeFill;
  12674. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12676. public ServicePhotoTableAdapter() {
  12677. this.ClearBeforeFill = true;
  12678. }
  12679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12681. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  12682. get {
  12683. if ((this._adapter == null)) {
  12684. this.InitAdapter();
  12685. }
  12686. return this._adapter;
  12687. }
  12688. }
  12689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12690. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12691. internal global::System.Data.SqlClient.SqlConnection Connection {
  12692. get {
  12693. if ((this._connection == null)) {
  12694. this.InitConnection();
  12695. }
  12696. return this._connection;
  12697. }
  12698. set {
  12699. this._connection = value;
  12700. if ((this.Adapter.InsertCommand != null)) {
  12701. this.Adapter.InsertCommand.Connection = value;
  12702. }
  12703. if ((this.Adapter.DeleteCommand != null)) {
  12704. this.Adapter.DeleteCommand.Connection = value;
  12705. }
  12706. if ((this.Adapter.UpdateCommand != null)) {
  12707. this.Adapter.UpdateCommand.Connection = value;
  12708. }
  12709. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  12710. if ((this.CommandCollection[i] != null)) {
  12711. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  12712. }
  12713. }
  12714. }
  12715. }
  12716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12718. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  12719. get {
  12720. return this._transaction;
  12721. }
  12722. set {
  12723. this._transaction = value;
  12724. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  12725. this.CommandCollection[i].Transaction = this._transaction;
  12726. }
  12727. if (((this.Adapter != null)
  12728. && (this.Adapter.DeleteCommand != null))) {
  12729. this.Adapter.DeleteCommand.Transaction = this._transaction;
  12730. }
  12731. if (((this.Adapter != null)
  12732. && (this.Adapter.InsertCommand != null))) {
  12733. this.Adapter.InsertCommand.Transaction = this._transaction;
  12734. }
  12735. if (((this.Adapter != null)
  12736. && (this.Adapter.UpdateCommand != null))) {
  12737. this.Adapter.UpdateCommand.Transaction = this._transaction;
  12738. }
  12739. }
  12740. }
  12741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12742. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12743. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  12744. get {
  12745. if ((this._commandCollection == null)) {
  12746. this.InitCommandCollection();
  12747. }
  12748. return this._commandCollection;
  12749. }
  12750. }
  12751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12753. public bool ClearBeforeFill {
  12754. get {
  12755. return this._clearBeforeFill;
  12756. }
  12757. set {
  12758. this._clearBeforeFill = value;
  12759. }
  12760. }
  12761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12763. private void InitAdapter() {
  12764. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  12765. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  12766. tableMapping.SourceTable = "Table";
  12767. tableMapping.DataSetTable = "ServicePhoto";
  12768. tableMapping.ColumnMappings.Add("ID", "ID");
  12769. tableMapping.ColumnMappings.Add("ServiceID", "ServiceID");
  12770. tableMapping.ColumnMappings.Add("PhotoPath", "PhotoPath");
  12771. this._adapter.TableMappings.Add(tableMapping);
  12772. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  12773. this._adapter.DeleteCommand.Connection = this.Connection;
  12774. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ServicePhoto] WHERE (([ID] = @Original_ID) AND ([ServiceID] = " +
  12775. "@Original_ServiceID) AND ([PhotoPath] = @Original_PhotoPath))";
  12776. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  12777. 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, "", "", ""));
  12778. 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, "", "", ""));
  12779. 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, "", "", ""));
  12780. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  12781. this._adapter.InsertCommand.Connection = this.Connection;
  12782. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ServicePhoto] ([ServiceID], [PhotoPath]) VALUES (@ServiceID, @" +
  12783. "PhotoPath);\r\nSELECT ID, ServiceID, PhotoPath FROM ServicePhoto WHERE (ID = SCOPE" +
  12784. "_IDENTITY())";
  12785. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  12786. 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, "", "", ""));
  12787. 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, "", "", ""));
  12788. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  12789. this._adapter.UpdateCommand.Connection = this.Connection;
  12790. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ServicePhoto] SET [ServiceID] = @ServiceID, [PhotoPath] = @PhotoPath WHERE (([ID] = @Original_ID) AND ([ServiceID] = @Original_ServiceID) AND ([PhotoPath] = @Original_PhotoPath));
  12791. SELECT ID, ServiceID, PhotoPath FROM ServicePhoto WHERE (ID = @ID)";
  12792. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  12793. 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, "", "", ""));
  12794. 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, "", "", ""));
  12795. 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, "", "", ""));
  12796. 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, "", "", ""));
  12797. 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, "", "", ""));
  12798. 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, "", "", ""));
  12799. }
  12800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12802. private void InitConnection() {
  12803. this._connection = new global::System.Data.SqlClient.SqlConnection();
  12804. this._connection.ConnectionString = global::BB_Azizova.Properties.Settings.Default.BB_AzizovaConnectionString;
  12805. }
  12806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12808. private void InitCommandCollection() {
  12809. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  12810. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  12811. this._commandCollection[0].Connection = this.Connection;
  12812. this._commandCollection[0].CommandText = "SELECT ID, ServiceID, PhotoPath FROM dbo.ServicePhoto";
  12813. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  12814. }
  12815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12817. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12818. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  12819. public virtual int Fill(BB_AzizovaDataSet.ServicePhotoDataTable dataTable) {
  12820. this.Adapter.SelectCommand = this.CommandCollection[0];
  12821. if ((this.ClearBeforeFill == true)) {
  12822. dataTable.Clear();
  12823. }
  12824. int returnValue = this.Adapter.Fill(dataTable);
  12825. return returnValue;
  12826. }
  12827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12829. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12830. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  12831. public virtual BB_AzizovaDataSet.ServicePhotoDataTable GetData() {
  12832. this.Adapter.SelectCommand = this.CommandCollection[0];
  12833. BB_AzizovaDataSet.ServicePhotoDataTable dataTable = new BB_AzizovaDataSet.ServicePhotoDataTable();
  12834. this.Adapter.Fill(dataTable);
  12835. return dataTable;
  12836. }
  12837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12839. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12840. public virtual int Update(BB_AzizovaDataSet.ServicePhotoDataTable dataTable) {
  12841. return this.Adapter.Update(dataTable);
  12842. }
  12843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12845. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12846. public virtual int Update(BB_AzizovaDataSet dataSet) {
  12847. return this.Adapter.Update(dataSet, "ServicePhoto");
  12848. }
  12849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12851. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12852. public virtual int Update(global::System.Data.DataRow dataRow) {
  12853. return this.Adapter.Update(new global::System.Data.DataRow[] {
  12854. dataRow});
  12855. }
  12856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12858. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12859. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  12860. return this.Adapter.Update(dataRows);
  12861. }
  12862. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12863. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12864. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12865. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  12866. public virtual int Delete(int Original_ID, int Original_ServiceID, string Original_PhotoPath) {
  12867. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  12868. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ServiceID));
  12869. if ((Original_PhotoPath == null)) {
  12870. throw new global::System.ArgumentNullException("Original_PhotoPath");
  12871. }
  12872. else {
  12873. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_PhotoPath));
  12874. }
  12875. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  12876. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12877. != global::System.Data.ConnectionState.Open)) {
  12878. this.Adapter.DeleteCommand.Connection.Open();
  12879. }
  12880. try {
  12881. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  12882. return returnValue;
  12883. }
  12884. finally {
  12885. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12886. this.Adapter.DeleteCommand.Connection.Close();
  12887. }
  12888. }
  12889. }
  12890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12892. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12893. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  12894. public virtual int Insert(int ServiceID, string PhotoPath) {
  12895. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ServiceID));
  12896. if ((PhotoPath == null)) {
  12897. throw new global::System.ArgumentNullException("PhotoPath");
  12898. }
  12899. else {
  12900. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(PhotoPath));
  12901. }
  12902. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  12903. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12904. != global::System.Data.ConnectionState.Open)) {
  12905. this.Adapter.InsertCommand.Connection.Open();
  12906. }
  12907. try {
  12908. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  12909. return returnValue;
  12910. }
  12911. finally {
  12912. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12913. this.Adapter.InsertCommand.Connection.Close();
  12914. }
  12915. }
  12916. }
  12917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12919. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12920. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  12921. public virtual int Update(int ServiceID, string PhotoPath, int Original_ID, int Original_ServiceID, string Original_PhotoPath, int ID) {
  12922. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ServiceID));
  12923. if ((PhotoPath == null)) {
  12924. throw new global::System.ArgumentNullException("PhotoPath");
  12925. }
  12926. else {
  12927. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(PhotoPath));
  12928. }
  12929. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  12930. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ServiceID));
  12931. if ((Original_PhotoPath == null)) {
  12932. throw new global::System.ArgumentNullException("Original_PhotoPath");
  12933. }
  12934. else {
  12935. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_PhotoPath));
  12936. }
  12937. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  12938. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  12939. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12940. != global::System.Data.ConnectionState.Open)) {
  12941. this.Adapter.UpdateCommand.Connection.Open();
  12942. }
  12943. try {
  12944. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  12945. return returnValue;
  12946. }
  12947. finally {
  12948. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12949. this.Adapter.UpdateCommand.Connection.Close();
  12950. }
  12951. }
  12952. }
  12953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12955. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12956. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  12957. public virtual int Update(int ServiceID, string PhotoPath, int Original_ID, int Original_ServiceID, string Original_PhotoPath) {
  12958. return this.Update(ServiceID, PhotoPath, Original_ID, Original_ServiceID, Original_PhotoPath, Original_ID);
  12959. }
  12960. }
  12961. /// <summary>
  12962. ///Represents the connection and commands used to retrieve and save data.
  12963. ///</summary>
  12964. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  12965. [global::System.ComponentModel.ToolboxItem(true)]
  12966. [global::System.ComponentModel.DataObjectAttribute(true)]
  12967. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  12968. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  12969. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12970. public partial class SotrudnikTableAdapter : global::System.ComponentModel.Component {
  12971. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  12972. private global::System.Data.SqlClient.SqlConnection _connection;
  12973. private global::System.Data.SqlClient.SqlTransaction _transaction;
  12974. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  12975. private bool _clearBeforeFill;
  12976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12978. public SotrudnikTableAdapter() {
  12979. this.ClearBeforeFill = true;
  12980. }
  12981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12982. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12983. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  12984. get {
  12985. if ((this._adapter == null)) {
  12986. this.InitAdapter();
  12987. }
  12988. return this._adapter;
  12989. }
  12990. }
  12991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12993. internal global::System.Data.SqlClient.SqlConnection Connection {
  12994. get {
  12995. if ((this._connection == null)) {
  12996. this.InitConnection();
  12997. }
  12998. return this._connection;
  12999. }
  13000. set {
  13001. this._connection = value;
  13002. if ((this.Adapter.InsertCommand != null)) {
  13003. this.Adapter.InsertCommand.Connection = value;
  13004. }
  13005. if ((this.Adapter.DeleteCommand != null)) {
  13006. this.Adapter.DeleteCommand.Connection = value;
  13007. }
  13008. if ((this.Adapter.UpdateCommand != null)) {
  13009. this.Adapter.UpdateCommand.Connection = value;
  13010. }
  13011. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  13012. if ((this.CommandCollection[i] != null)) {
  13013. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  13014. }
  13015. }
  13016. }
  13017. }
  13018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13020. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  13021. get {
  13022. return this._transaction;
  13023. }
  13024. set {
  13025. this._transaction = value;
  13026. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  13027. this.CommandCollection[i].Transaction = this._transaction;
  13028. }
  13029. if (((this.Adapter != null)
  13030. && (this.Adapter.DeleteCommand != null))) {
  13031. this.Adapter.DeleteCommand.Transaction = this._transaction;
  13032. }
  13033. if (((this.Adapter != null)
  13034. && (this.Adapter.InsertCommand != null))) {
  13035. this.Adapter.InsertCommand.Transaction = this._transaction;
  13036. }
  13037. if (((this.Adapter != null)
  13038. && (this.Adapter.UpdateCommand != null))) {
  13039. this.Adapter.UpdateCommand.Transaction = this._transaction;
  13040. }
  13041. }
  13042. }
  13043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13045. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  13046. get {
  13047. if ((this._commandCollection == null)) {
  13048. this.InitCommandCollection();
  13049. }
  13050. return this._commandCollection;
  13051. }
  13052. }
  13053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13055. public bool ClearBeforeFill {
  13056. get {
  13057. return this._clearBeforeFill;
  13058. }
  13059. set {
  13060. this._clearBeforeFill = value;
  13061. }
  13062. }
  13063. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13064. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13065. private void InitAdapter() {
  13066. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  13067. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  13068. tableMapping.SourceTable = "Table";
  13069. tableMapping.DataSetTable = "Sotrudnik";
  13070. tableMapping.ColumnMappings.Add("ID_Sotrudnik", "ID_Sotrudnik");
  13071. tableMapping.ColumnMappings.Add("Phomilia", "Phomilia");
  13072. tableMapping.ColumnMappings.Add("Name", "Name");
  13073. tableMapping.ColumnMappings.Add("ID_Uslugi", "ID_Uslugi");
  13074. this._adapter.TableMappings.Add(tableMapping);
  13075. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  13076. this._adapter.DeleteCommand.Connection = this.Connection;
  13077. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Sotrudnik] WHERE (([ID_Sotrudnik] = @Original_ID_Sotrudnik) AND ((@IsNull_Phomilia = 1 AND [Phomilia] IS NULL) OR ([Phomilia] = @Original_Phomilia)) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_ID_Uslugi = 1 AND [ID_Uslugi] IS NULL) OR ([ID_Uslugi] = @Original_ID_Uslugi)))";
  13078. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  13079. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Sotrudnik", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Sotrudnik", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13080. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Phomilia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phomilia", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  13081. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Phomilia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phomilia", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13082. 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, "", "", ""));
  13083. 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, "", "", ""));
  13084. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_Uslugi", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Uslugi", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  13085. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Uslugi", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Uslugi", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13086. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  13087. this._adapter.InsertCommand.Connection = this.Connection;
  13088. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Sotrudnik] ([ID_Sotrudnik], [Phomilia], [Name], [ID_Uslugi]) V" +
  13089. "ALUES (@ID_Sotrudnik, @Phomilia, @Name, @ID_Uslugi);\r\nSELECT ID_Sotrudnik, Phomi" +
  13090. "lia, Name, ID_Uslugi FROM Sotrudnik WHERE (ID_Sotrudnik = @ID_Sotrudnik)";
  13091. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  13092. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Sotrudnik", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Sotrudnik", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13093. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Phomilia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phomilia", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13094. 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, "", "", ""));
  13095. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Uslugi", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Uslugi", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13096. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  13097. this._adapter.UpdateCommand.Connection = this.Connection;
  13098. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Sotrudnik] SET [ID_Sotrudnik] = @ID_Sotrudnik, [Phomilia] = @Phomilia, [Name] = @Name, [ID_Uslugi] = @ID_Uslugi WHERE (([ID_Sotrudnik] = @Original_ID_Sotrudnik) AND ((@IsNull_Phomilia = 1 AND [Phomilia] IS NULL) OR ([Phomilia] = @Original_Phomilia)) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_ID_Uslugi = 1 AND [ID_Uslugi] IS NULL) OR ([ID_Uslugi] = @Original_ID_Uslugi)));
  13099. SELECT ID_Sotrudnik, Phomilia, Name, ID_Uslugi FROM Sotrudnik WHERE (ID_Sotrudnik = @ID_Sotrudnik)";
  13100. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  13101. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Sotrudnik", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Sotrudnik", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13102. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Phomilia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phomilia", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13103. 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, "", "", ""));
  13104. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Uslugi", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Uslugi", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13105. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Sotrudnik", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Sotrudnik", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13106. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Phomilia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phomilia", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  13107. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Phomilia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phomilia", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13108. 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, "", "", ""));
  13109. 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, "", "", ""));
  13110. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_Uslugi", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Uslugi", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  13111. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Uslugi", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Uslugi", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13112. }
  13113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13115. private void InitConnection() {
  13116. this._connection = new global::System.Data.SqlClient.SqlConnection();
  13117. this._connection.ConnectionString = global::BB_Azizova.Properties.Settings.Default.BB_AzizovaConnectionString;
  13118. }
  13119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13121. private void InitCommandCollection() {
  13122. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  13123. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  13124. this._commandCollection[0].Connection = this.Connection;
  13125. this._commandCollection[0].CommandText = "SELECT ID_Sotrudnik, Phomilia, Name, ID_Uslugi FROM dbo.Sotrudnik";
  13126. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  13127. }
  13128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13130. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13131. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  13132. public virtual int Fill(BB_AzizovaDataSet.SotrudnikDataTable dataTable) {
  13133. this.Adapter.SelectCommand = this.CommandCollection[0];
  13134. if ((this.ClearBeforeFill == true)) {
  13135. dataTable.Clear();
  13136. }
  13137. int returnValue = this.Adapter.Fill(dataTable);
  13138. return returnValue;
  13139. }
  13140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13142. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13143. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  13144. public virtual BB_AzizovaDataSet.SotrudnikDataTable GetData() {
  13145. this.Adapter.SelectCommand = this.CommandCollection[0];
  13146. BB_AzizovaDataSet.SotrudnikDataTable dataTable = new BB_AzizovaDataSet.SotrudnikDataTable();
  13147. this.Adapter.Fill(dataTable);
  13148. return dataTable;
  13149. }
  13150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13152. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13153. public virtual int Update(BB_AzizovaDataSet.SotrudnikDataTable dataTable) {
  13154. return this.Adapter.Update(dataTable);
  13155. }
  13156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13158. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13159. public virtual int Update(BB_AzizovaDataSet dataSet) {
  13160. return this.Adapter.Update(dataSet, "Sotrudnik");
  13161. }
  13162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13164. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13165. public virtual int Update(global::System.Data.DataRow dataRow) {
  13166. return this.Adapter.Update(new global::System.Data.DataRow[] {
  13167. dataRow});
  13168. }
  13169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13171. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13172. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  13173. return this.Adapter.Update(dataRows);
  13174. }
  13175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13177. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13178. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  13179. public virtual int Delete(long Original_ID_Sotrudnik, string Original_Phomilia, string Original_Name, global::System.Nullable<long> Original_ID_Uslugi) {
  13180. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_ID_Sotrudnik));
  13181. if ((Original_Phomilia == null)) {
  13182. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  13183. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  13184. }
  13185. else {
  13186. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  13187. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Phomilia));
  13188. }
  13189. if ((Original_Name == null)) {
  13190. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  13191. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  13192. }
  13193. else {
  13194. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  13195. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Name));
  13196. }
  13197. if ((Original_ID_Uslugi.HasValue == true)) {
  13198. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  13199. this.Adapter.DeleteCommand.Parameters[6].Value = ((long)(Original_ID_Uslugi.Value));
  13200. }
  13201. else {
  13202. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  13203. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  13204. }
  13205. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  13206. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  13207. != global::System.Data.ConnectionState.Open)) {
  13208. this.Adapter.DeleteCommand.Connection.Open();
  13209. }
  13210. try {
  13211. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  13212. return returnValue;
  13213. }
  13214. finally {
  13215. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  13216. this.Adapter.DeleteCommand.Connection.Close();
  13217. }
  13218. }
  13219. }
  13220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13222. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13223. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  13224. public virtual int Insert(long ID_Sotrudnik, string Phomilia, string Name, global::System.Nullable<long> ID_Uslugi) {
  13225. this.Adapter.InsertCommand.Parameters[0].Value = ((long)(ID_Sotrudnik));
  13226. if ((Phomilia == null)) {
  13227. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  13228. }
  13229. else {
  13230. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Phomilia));
  13231. }
  13232. if ((Name == null)) {
  13233. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  13234. }
  13235. else {
  13236. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Name));
  13237. }
  13238. if ((ID_Uslugi.HasValue == true)) {
  13239. this.Adapter.InsertCommand.Parameters[3].Value = ((long)(ID_Uslugi.Value));
  13240. }
  13241. else {
  13242. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  13243. }
  13244. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  13245. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  13246. != global::System.Data.ConnectionState.Open)) {
  13247. this.Adapter.InsertCommand.Connection.Open();
  13248. }
  13249. try {
  13250. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  13251. return returnValue;
  13252. }
  13253. finally {
  13254. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  13255. this.Adapter.InsertCommand.Connection.Close();
  13256. }
  13257. }
  13258. }
  13259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13261. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13262. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  13263. public virtual int Update(long ID_Sotrudnik, string Phomilia, string Name, global::System.Nullable<long> ID_Uslugi, long Original_ID_Sotrudnik, string Original_Phomilia, string Original_Name, global::System.Nullable<long> Original_ID_Uslugi) {
  13264. this.Adapter.UpdateCommand.Parameters[0].Value = ((long)(ID_Sotrudnik));
  13265. if ((Phomilia == null)) {
  13266. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  13267. }
  13268. else {
  13269. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Phomilia));
  13270. }
  13271. if ((Name == null)) {
  13272. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  13273. }
  13274. else {
  13275. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Name));
  13276. }
  13277. if ((ID_Uslugi.HasValue == true)) {
  13278. this.Adapter.UpdateCommand.Parameters[3].Value = ((long)(ID_Uslugi.Value));
  13279. }
  13280. else {
  13281. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  13282. }
  13283. this.Adapter.UpdateCommand.Parameters[4].Value = ((long)(Original_ID_Sotrudnik));
  13284. if ((Original_Phomilia == null)) {
  13285. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  13286. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  13287. }
  13288. else {
  13289. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  13290. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_Phomilia));
  13291. }
  13292. if ((Original_Name == null)) {
  13293. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  13294. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  13295. }
  13296. else {
  13297. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  13298. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Name));
  13299. }
  13300. if ((Original_ID_Uslugi.HasValue == true)) {
  13301. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  13302. this.Adapter.UpdateCommand.Parameters[10].Value = ((long)(Original_ID_Uslugi.Value));
  13303. }
  13304. else {
  13305. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  13306. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  13307. }
  13308. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  13309. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  13310. != global::System.Data.ConnectionState.Open)) {
  13311. this.Adapter.UpdateCommand.Connection.Open();
  13312. }
  13313. try {
  13314. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  13315. return returnValue;
  13316. }
  13317. finally {
  13318. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  13319. this.Adapter.UpdateCommand.Connection.Close();
  13320. }
  13321. }
  13322. }
  13323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13325. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13326. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  13327. public virtual int Update(string Phomilia, string Name, global::System.Nullable<long> ID_Uslugi, long Original_ID_Sotrudnik, string Original_Phomilia, string Original_Name, global::System.Nullable<long> Original_ID_Uslugi) {
  13328. return this.Update(Original_ID_Sotrudnik, Phomilia, Name, ID_Uslugi, Original_ID_Sotrudnik, Original_Phomilia, Original_Name, Original_ID_Uslugi);
  13329. }
  13330. }
  13331. /// <summary>
  13332. ///Represents the connection and commands used to retrieve and save data.
  13333. ///</summary>
  13334. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  13335. [global::System.ComponentModel.ToolboxItem(true)]
  13336. [global::System.ComponentModel.DataObjectAttribute(true)]
  13337. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  13338. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  13339. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13340. public partial class TagTableAdapter : global::System.ComponentModel.Component {
  13341. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  13342. private global::System.Data.SqlClient.SqlConnection _connection;
  13343. private global::System.Data.SqlClient.SqlTransaction _transaction;
  13344. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  13345. private bool _clearBeforeFill;
  13346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13348. public TagTableAdapter() {
  13349. this.ClearBeforeFill = true;
  13350. }
  13351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13352. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13353. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  13354. get {
  13355. if ((this._adapter == null)) {
  13356. this.InitAdapter();
  13357. }
  13358. return this._adapter;
  13359. }
  13360. }
  13361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13363. internal global::System.Data.SqlClient.SqlConnection Connection {
  13364. get {
  13365. if ((this._connection == null)) {
  13366. this.InitConnection();
  13367. }
  13368. return this._connection;
  13369. }
  13370. set {
  13371. this._connection = value;
  13372. if ((this.Adapter.InsertCommand != null)) {
  13373. this.Adapter.InsertCommand.Connection = value;
  13374. }
  13375. if ((this.Adapter.DeleteCommand != null)) {
  13376. this.Adapter.DeleteCommand.Connection = value;
  13377. }
  13378. if ((this.Adapter.UpdateCommand != null)) {
  13379. this.Adapter.UpdateCommand.Connection = value;
  13380. }
  13381. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  13382. if ((this.CommandCollection[i] != null)) {
  13383. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  13384. }
  13385. }
  13386. }
  13387. }
  13388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13390. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  13391. get {
  13392. return this._transaction;
  13393. }
  13394. set {
  13395. this._transaction = value;
  13396. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  13397. this.CommandCollection[i].Transaction = this._transaction;
  13398. }
  13399. if (((this.Adapter != null)
  13400. && (this.Adapter.DeleteCommand != null))) {
  13401. this.Adapter.DeleteCommand.Transaction = this._transaction;
  13402. }
  13403. if (((this.Adapter != null)
  13404. && (this.Adapter.InsertCommand != null))) {
  13405. this.Adapter.InsertCommand.Transaction = this._transaction;
  13406. }
  13407. if (((this.Adapter != null)
  13408. && (this.Adapter.UpdateCommand != null))) {
  13409. this.Adapter.UpdateCommand.Transaction = this._transaction;
  13410. }
  13411. }
  13412. }
  13413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13415. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  13416. get {
  13417. if ((this._commandCollection == null)) {
  13418. this.InitCommandCollection();
  13419. }
  13420. return this._commandCollection;
  13421. }
  13422. }
  13423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13425. public bool ClearBeforeFill {
  13426. get {
  13427. return this._clearBeforeFill;
  13428. }
  13429. set {
  13430. this._clearBeforeFill = value;
  13431. }
  13432. }
  13433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13434. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13435. private void InitAdapter() {
  13436. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  13437. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  13438. tableMapping.SourceTable = "Table";
  13439. tableMapping.DataSetTable = "Tag";
  13440. tableMapping.ColumnMappings.Add("ID", "ID");
  13441. tableMapping.ColumnMappings.Add("Title", "Title");
  13442. tableMapping.ColumnMappings.Add("Color", "Color");
  13443. this._adapter.TableMappings.Add(tableMapping);
  13444. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  13445. this._adapter.DeleteCommand.Connection = this.Connection;
  13446. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Tag] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Tit" +
  13447. "le) AND ([Color] = @Original_Color))";
  13448. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  13449. 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, "", "", ""));
  13450. 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, "", "", ""));
  13451. 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, "", "", ""));
  13452. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  13453. this._adapter.InsertCommand.Connection = this.Connection;
  13454. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Tag] ([Title], [Color]) VALUES (@Title, @Color);\r\nSELECT ID, T" +
  13455. "itle, Color FROM Tag WHERE (ID = SCOPE_IDENTITY())";
  13456. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  13457. 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, "", "", ""));
  13458. 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, "", "", ""));
  13459. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  13460. this._adapter.UpdateCommand.Connection = this.Connection;
  13461. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Tag] SET [Title] = @Title, [Color] = @Color WHERE (([ID] = @Origina" +
  13462. "l_ID) AND ([Title] = @Original_Title) AND ([Color] = @Original_Color));\r\nSELECT " +
  13463. "ID, Title, Color FROM Tag WHERE (ID = @ID)";
  13464. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  13465. 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, "", "", ""));
  13466. 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, "", "", ""));
  13467. 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, "", "", ""));
  13468. 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, "", "", ""));
  13469. 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, "", "", ""));
  13470. 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, "", "", ""));
  13471. }
  13472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13474. private void InitConnection() {
  13475. this._connection = new global::System.Data.SqlClient.SqlConnection();
  13476. this._connection.ConnectionString = global::BB_Azizova.Properties.Settings.Default.BB_AzizovaConnectionString;
  13477. }
  13478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13479. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13480. private void InitCommandCollection() {
  13481. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  13482. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  13483. this._commandCollection[0].Connection = this.Connection;
  13484. this._commandCollection[0].CommandText = "SELECT ID, Title, Color FROM dbo.Tag";
  13485. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  13486. }
  13487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13489. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13490. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  13491. public virtual int Fill(BB_AzizovaDataSet.TagDataTable dataTable) {
  13492. this.Adapter.SelectCommand = this.CommandCollection[0];
  13493. if ((this.ClearBeforeFill == true)) {
  13494. dataTable.Clear();
  13495. }
  13496. int returnValue = this.Adapter.Fill(dataTable);
  13497. return returnValue;
  13498. }
  13499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13500. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13501. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13502. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  13503. public virtual BB_AzizovaDataSet.TagDataTable GetData() {
  13504. this.Adapter.SelectCommand = this.CommandCollection[0];
  13505. BB_AzizovaDataSet.TagDataTable dataTable = new BB_AzizovaDataSet.TagDataTable();
  13506. this.Adapter.Fill(dataTable);
  13507. return dataTable;
  13508. }
  13509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13511. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13512. public virtual int Update(BB_AzizovaDataSet.TagDataTable dataTable) {
  13513. return this.Adapter.Update(dataTable);
  13514. }
  13515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13516. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13517. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13518. public virtual int Update(BB_AzizovaDataSet dataSet) {
  13519. return this.Adapter.Update(dataSet, "Tag");
  13520. }
  13521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13523. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13524. public virtual int Update(global::System.Data.DataRow dataRow) {
  13525. return this.Adapter.Update(new global::System.Data.DataRow[] {
  13526. dataRow});
  13527. }
  13528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13530. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13531. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  13532. return this.Adapter.Update(dataRows);
  13533. }
  13534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13536. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13537. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  13538. public virtual int Delete(int Original_ID, string Original_Title, string Original_Color) {
  13539. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  13540. if ((Original_Title == null)) {
  13541. throw new global::System.ArgumentNullException("Original_Title");
  13542. }
  13543. else {
  13544. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  13545. }
  13546. if ((Original_Color == null)) {
  13547. throw new global::System.ArgumentNullException("Original_Color");
  13548. }
  13549. else {
  13550. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Color));
  13551. }
  13552. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  13553. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  13554. != global::System.Data.ConnectionState.Open)) {
  13555. this.Adapter.DeleteCommand.Connection.Open();
  13556. }
  13557. try {
  13558. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  13559. return returnValue;
  13560. }
  13561. finally {
  13562. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  13563. this.Adapter.DeleteCommand.Connection.Close();
  13564. }
  13565. }
  13566. }
  13567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13569. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13570. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  13571. public virtual int Insert(string Title, string Color) {
  13572. if ((Title == null)) {
  13573. throw new global::System.ArgumentNullException("Title");
  13574. }
  13575. else {
  13576. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  13577. }
  13578. if ((Color == null)) {
  13579. throw new global::System.ArgumentNullException("Color");
  13580. }
  13581. else {
  13582. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Color));
  13583. }
  13584. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  13585. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  13586. != global::System.Data.ConnectionState.Open)) {
  13587. this.Adapter.InsertCommand.Connection.Open();
  13588. }
  13589. try {
  13590. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  13591. return returnValue;
  13592. }
  13593. finally {
  13594. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  13595. this.Adapter.InsertCommand.Connection.Close();
  13596. }
  13597. }
  13598. }
  13599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13600. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13601. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13602. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  13603. public virtual int Update(string Title, string Color, int Original_ID, string Original_Title, string Original_Color, int ID) {
  13604. if ((Title == null)) {
  13605. throw new global::System.ArgumentNullException("Title");
  13606. }
  13607. else {
  13608. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  13609. }
  13610. if ((Color == null)) {
  13611. throw new global::System.ArgumentNullException("Color");
  13612. }
  13613. else {
  13614. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Color));
  13615. }
  13616. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  13617. if ((Original_Title == null)) {
  13618. throw new global::System.ArgumentNullException("Original_Title");
  13619. }
  13620. else {
  13621. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Title));
  13622. }
  13623. if ((Original_Color == null)) {
  13624. throw new global::System.ArgumentNullException("Original_Color");
  13625. }
  13626. else {
  13627. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Color));
  13628. }
  13629. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  13630. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  13631. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  13632. != global::System.Data.ConnectionState.Open)) {
  13633. this.Adapter.UpdateCommand.Connection.Open();
  13634. }
  13635. try {
  13636. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  13637. return returnValue;
  13638. }
  13639. finally {
  13640. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  13641. this.Adapter.UpdateCommand.Connection.Close();
  13642. }
  13643. }
  13644. }
  13645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13647. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13648. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  13649. public virtual int Update(string Title, string Color, int Original_ID, string Original_Title, string Original_Color) {
  13650. return this.Update(Title, Color, Original_ID, Original_Title, Original_Color, Original_ID);
  13651. }
  13652. }
  13653. /// <summary>
  13654. ///Represents the connection and commands used to retrieve and save data.
  13655. ///</summary>
  13656. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  13657. [global::System.ComponentModel.ToolboxItem(true)]
  13658. [global::System.ComponentModel.DataObjectAttribute(true)]
  13659. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  13660. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  13661. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13662. public partial class TagOfClientTableAdapter : global::System.ComponentModel.Component {
  13663. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  13664. private global::System.Data.SqlClient.SqlConnection _connection;
  13665. private global::System.Data.SqlClient.SqlTransaction _transaction;
  13666. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  13667. private bool _clearBeforeFill;
  13668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13670. public TagOfClientTableAdapter() {
  13671. this.ClearBeforeFill = true;
  13672. }
  13673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13675. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  13676. get {
  13677. if ((this._adapter == null)) {
  13678. this.InitAdapter();
  13679. }
  13680. return this._adapter;
  13681. }
  13682. }
  13683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13685. internal global::System.Data.SqlClient.SqlConnection Connection {
  13686. get {
  13687. if ((this._connection == null)) {
  13688. this.InitConnection();
  13689. }
  13690. return this._connection;
  13691. }
  13692. set {
  13693. this._connection = value;
  13694. if ((this.Adapter.InsertCommand != null)) {
  13695. this.Adapter.InsertCommand.Connection = value;
  13696. }
  13697. if ((this.Adapter.DeleteCommand != null)) {
  13698. this.Adapter.DeleteCommand.Connection = value;
  13699. }
  13700. if ((this.Adapter.UpdateCommand != null)) {
  13701. this.Adapter.UpdateCommand.Connection = value;
  13702. }
  13703. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  13704. if ((this.CommandCollection[i] != null)) {
  13705. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  13706. }
  13707. }
  13708. }
  13709. }
  13710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13711. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13712. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  13713. get {
  13714. return this._transaction;
  13715. }
  13716. set {
  13717. this._transaction = value;
  13718. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  13719. this.CommandCollection[i].Transaction = this._transaction;
  13720. }
  13721. if (((this.Adapter != null)
  13722. && (this.Adapter.DeleteCommand != null))) {
  13723. this.Adapter.DeleteCommand.Transaction = this._transaction;
  13724. }
  13725. if (((this.Adapter != null)
  13726. && (this.Adapter.InsertCommand != null))) {
  13727. this.Adapter.InsertCommand.Transaction = this._transaction;
  13728. }
  13729. if (((this.Adapter != null)
  13730. && (this.Adapter.UpdateCommand != null))) {
  13731. this.Adapter.UpdateCommand.Transaction = this._transaction;
  13732. }
  13733. }
  13734. }
  13735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13737. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  13738. get {
  13739. if ((this._commandCollection == null)) {
  13740. this.InitCommandCollection();
  13741. }
  13742. return this._commandCollection;
  13743. }
  13744. }
  13745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13747. public bool ClearBeforeFill {
  13748. get {
  13749. return this._clearBeforeFill;
  13750. }
  13751. set {
  13752. this._clearBeforeFill = value;
  13753. }
  13754. }
  13755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13757. private void InitAdapter() {
  13758. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  13759. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  13760. tableMapping.SourceTable = "Table";
  13761. tableMapping.DataSetTable = "TagOfClient";
  13762. tableMapping.ColumnMappings.Add("ClientID", "ClientID");
  13763. tableMapping.ColumnMappings.Add("TagID", "TagID");
  13764. this._adapter.TableMappings.Add(tableMapping);
  13765. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  13766. this._adapter.DeleteCommand.Connection = this.Connection;
  13767. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[TagOfClient] WHERE (([ClientID] = @Original_ClientID) AND ([Ta" +
  13768. "gID] = @Original_TagID))";
  13769. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  13770. 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, "", "", ""));
  13771. 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, "", "", ""));
  13772. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  13773. this._adapter.InsertCommand.Connection = this.Connection;
  13774. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[TagOfClient] ([ClientID], [TagID]) VALUES (@ClientID, @TagID);" +
  13775. "\r\nSELECT ClientID, TagID FROM TagOfClient WHERE (ClientID = @ClientID) AND (TagI" +
  13776. "D = @TagID)";
  13777. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  13778. 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, "", "", ""));
  13779. 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, "", "", ""));
  13780. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  13781. this._adapter.UpdateCommand.Connection = this.Connection;
  13782. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[TagOfClient] SET [ClientID] = @ClientID, [TagID] = @TagID WHERE (([" +
  13783. "ClientID] = @Original_ClientID) AND ([TagID] = @Original_TagID));\r\nSELECT Client" +
  13784. "ID, TagID FROM TagOfClient WHERE (ClientID = @ClientID) AND (TagID = @TagID)";
  13785. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  13786. 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, "", "", ""));
  13787. 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, "", "", ""));
  13788. 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, "", "", ""));
  13789. 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, "", "", ""));
  13790. }
  13791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13793. private void InitConnection() {
  13794. this._connection = new global::System.Data.SqlClient.SqlConnection();
  13795. this._connection.ConnectionString = global::BB_Azizova.Properties.Settings.Default.BB_AzizovaConnectionString;
  13796. }
  13797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13799. private void InitCommandCollection() {
  13800. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  13801. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  13802. this._commandCollection[0].Connection = this.Connection;
  13803. this._commandCollection[0].CommandText = "SELECT ClientID, TagID FROM dbo.TagOfClient";
  13804. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  13805. }
  13806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13808. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13809. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  13810. public virtual int Fill(BB_AzizovaDataSet.TagOfClientDataTable dataTable) {
  13811. this.Adapter.SelectCommand = this.CommandCollection[0];
  13812. if ((this.ClearBeforeFill == true)) {
  13813. dataTable.Clear();
  13814. }
  13815. int returnValue = this.Adapter.Fill(dataTable);
  13816. return returnValue;
  13817. }
  13818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13820. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13821. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  13822. public virtual BB_AzizovaDataSet.TagOfClientDataTable GetData() {
  13823. this.Adapter.SelectCommand = this.CommandCollection[0];
  13824. BB_AzizovaDataSet.TagOfClientDataTable dataTable = new BB_AzizovaDataSet.TagOfClientDataTable();
  13825. this.Adapter.Fill(dataTable);
  13826. return dataTable;
  13827. }
  13828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13830. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13831. public virtual int Update(BB_AzizovaDataSet.TagOfClientDataTable dataTable) {
  13832. return this.Adapter.Update(dataTable);
  13833. }
  13834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13836. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13837. public virtual int Update(BB_AzizovaDataSet dataSet) {
  13838. return this.Adapter.Update(dataSet, "TagOfClient");
  13839. }
  13840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13841. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13842. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13843. public virtual int Update(global::System.Data.DataRow dataRow) {
  13844. return this.Adapter.Update(new global::System.Data.DataRow[] {
  13845. dataRow});
  13846. }
  13847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13849. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13850. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  13851. return this.Adapter.Update(dataRows);
  13852. }
  13853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13855. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13856. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  13857. public virtual int Delete(int Original_ClientID, int Original_TagID) {
  13858. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ClientID));
  13859. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_TagID));
  13860. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  13861. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  13862. != global::System.Data.ConnectionState.Open)) {
  13863. this.Adapter.DeleteCommand.Connection.Open();
  13864. }
  13865. try {
  13866. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  13867. return returnValue;
  13868. }
  13869. finally {
  13870. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  13871. this.Adapter.DeleteCommand.Connection.Close();
  13872. }
  13873. }
  13874. }
  13875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13877. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13878. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  13879. public virtual int Insert(int ClientID, int TagID) {
  13880. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ClientID));
  13881. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(TagID));
  13882. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  13883. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  13884. != global::System.Data.ConnectionState.Open)) {
  13885. this.Adapter.InsertCommand.Connection.Open();
  13886. }
  13887. try {
  13888. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  13889. return returnValue;
  13890. }
  13891. finally {
  13892. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  13893. this.Adapter.InsertCommand.Connection.Close();
  13894. }
  13895. }
  13896. }
  13897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13899. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13900. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  13901. public virtual int Update(int ClientID, int TagID, int Original_ClientID, int Original_TagID) {
  13902. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ClientID));
  13903. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(TagID));
  13904. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ClientID));
  13905. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_TagID));
  13906. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  13907. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  13908. != global::System.Data.ConnectionState.Open)) {
  13909. this.Adapter.UpdateCommand.Connection.Open();
  13910. }
  13911. try {
  13912. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  13913. return returnValue;
  13914. }
  13915. finally {
  13916. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  13917. this.Adapter.UpdateCommand.Connection.Close();
  13918. }
  13919. }
  13920. }
  13921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13923. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13924. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  13925. public virtual int Update(int Original_ClientID, int Original_TagID) {
  13926. return this.Update(Original_ClientID, Original_TagID, Original_ClientID, Original_TagID);
  13927. }
  13928. }
  13929. /// <summary>
  13930. ///Represents the connection and commands used to retrieve and save data.
  13931. ///</summary>
  13932. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  13933. [global::System.ComponentModel.ToolboxItem(true)]
  13934. [global::System.ComponentModel.DataObjectAttribute(true)]
  13935. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  13936. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  13937. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13938. public partial class UslugiTableAdapter : global::System.ComponentModel.Component {
  13939. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  13940. private global::System.Data.SqlClient.SqlConnection _connection;
  13941. private global::System.Data.SqlClient.SqlTransaction _transaction;
  13942. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  13943. private bool _clearBeforeFill;
  13944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13946. public UslugiTableAdapter() {
  13947. this.ClearBeforeFill = true;
  13948. }
  13949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13950. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13951. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  13952. get {
  13953. if ((this._adapter == null)) {
  13954. this.InitAdapter();
  13955. }
  13956. return this._adapter;
  13957. }
  13958. }
  13959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13961. internal global::System.Data.SqlClient.SqlConnection Connection {
  13962. get {
  13963. if ((this._connection == null)) {
  13964. this.InitConnection();
  13965. }
  13966. return this._connection;
  13967. }
  13968. set {
  13969. this._connection = value;
  13970. if ((this.Adapter.InsertCommand != null)) {
  13971. this.Adapter.InsertCommand.Connection = value;
  13972. }
  13973. if ((this.Adapter.DeleteCommand != null)) {
  13974. this.Adapter.DeleteCommand.Connection = value;
  13975. }
  13976. if ((this.Adapter.UpdateCommand != null)) {
  13977. this.Adapter.UpdateCommand.Connection = value;
  13978. }
  13979. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  13980. if ((this.CommandCollection[i] != null)) {
  13981. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  13982. }
  13983. }
  13984. }
  13985. }
  13986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13987. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13988. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  13989. get {
  13990. return this._transaction;
  13991. }
  13992. set {
  13993. this._transaction = value;
  13994. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  13995. this.CommandCollection[i].Transaction = this._transaction;
  13996. }
  13997. if (((this.Adapter != null)
  13998. && (this.Adapter.DeleteCommand != null))) {
  13999. this.Adapter.DeleteCommand.Transaction = this._transaction;
  14000. }
  14001. if (((this.Adapter != null)
  14002. && (this.Adapter.InsertCommand != null))) {
  14003. this.Adapter.InsertCommand.Transaction = this._transaction;
  14004. }
  14005. if (((this.Adapter != null)
  14006. && (this.Adapter.UpdateCommand != null))) {
  14007. this.Adapter.UpdateCommand.Transaction = this._transaction;
  14008. }
  14009. }
  14010. }
  14011. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14012. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14013. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  14014. get {
  14015. if ((this._commandCollection == null)) {
  14016. this.InitCommandCollection();
  14017. }
  14018. return this._commandCollection;
  14019. }
  14020. }
  14021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14023. public bool ClearBeforeFill {
  14024. get {
  14025. return this._clearBeforeFill;
  14026. }
  14027. set {
  14028. this._clearBeforeFill = value;
  14029. }
  14030. }
  14031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14032. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14033. private void InitAdapter() {
  14034. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  14035. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  14036. tableMapping.SourceTable = "Table";
  14037. tableMapping.DataSetTable = "Uslugi";
  14038. tableMapping.ColumnMappings.Add("ID_Uslugi", "ID_Uslugi");
  14039. tableMapping.ColumnMappings.Add("Наименование_услуги", "Наименование_услуги");
  14040. tableMapping.ColumnMappings.Add("Главное_изображение", "Главное_изображение");
  14041. tableMapping.ColumnMappings.Add("Длительность", "Длительность");
  14042. tableMapping.ColumnMappings.Add("Стоимость", "Стоимость");
  14043. tableMapping.ColumnMappings.Add("Действующая_скидка", "Действующая_скидка");
  14044. this._adapter.TableMappings.Add(tableMapping);
  14045. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  14046. this._adapter.DeleteCommand.Connection = this.Connection;
  14047. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Uslugi] WHERE (([ID_Uslugi] = @Original_ID_Uslugi) AND ((@IsNull_Наименование_услуги = 1 AND [Наименование_услуги] IS NULL) OR ([Наименование_услуги] = @Original_Наименование_услуги)) AND ((@IsNull_Главное_изображение = 1 AND [Главное_изображение] IS NULL) OR ([Главное_изображение] = @Original_Главное_изображение)) AND ((@IsNull_Длительность = 1 AND [Длительность] IS NULL) OR ([Длительность] = @Original_Длительность)) AND ((@IsNull_Стоимость = 1 AND [Стоимость] IS NULL) OR ([Стоимость] = @Original_Стоимость)) AND ((@IsNull_Действующая_скидка = 1 AND [Действующая_скидка] IS NULL) OR ([Действующая_скидка] = @Original_Действующая_скидка)))";
  14048. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  14049. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Uslugi", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Uslugi", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  14050. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Наименование_услуги", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование_услуги", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  14051. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Наименование_услуги", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование_услуги", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  14052. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Главное_изображение", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Главное_изображение", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  14053. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Главное_изображение", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Главное_изображение", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  14054. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Длительность", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Длительность", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  14055. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Длительность", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Длительность", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  14056. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Стоимость", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  14057. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Стоимость", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  14058. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Действующая_скидка", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_скидка", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  14059. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Действующая_скидка", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_скидка", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  14060. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  14061. this._adapter.InsertCommand.Connection = this.Connection;
  14062. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Uslugi] ([ID_Uslugi], [Наименование_услуги], [Главное_изображение], [Длительность], [Стоимость], [Действующая_скидка]) VALUES (@ID_Uslugi, @Наименование_услуги, @Главное_изображение, @Длительность, @Стоимость, @Действующая_скидка);
  14063. SELECT ID_Uslugi, Наименование_услуги, Главное_изображение, Длительность, Стоимость, Действующая_скидка FROM Uslugi WHERE (ID_Uslugi = @ID_Uslugi)";
  14064. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  14065. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Uslugi", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Uslugi", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  14066. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Наименование_услуги", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование_услуги", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  14067. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Главное_изображение", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Главное_изображение", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  14068. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Длительность", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Длительность", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  14069. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Стоимость", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  14070. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Действующая_скидка", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_скидка", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  14071. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  14072. this._adapter.UpdateCommand.Connection = this.Connection;
  14073. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Uslugi] SET [ID_Uslugi] = @ID_Uslugi, [Наименование_услуги] = @Наименование_услуги, [Главное_изображение] = @Главное_изображение, [Длительность] = @Длительность, [Стоимость] = @Стоимость, [Действующая_скидка] = @Действующая_скидка WHERE (([ID_Uslugi] = @Original_ID_Uslugi) AND ((@IsNull_Наименование_услуги = 1 AND [Наименование_услуги] IS NULL) OR ([Наименование_услуги] = @Original_Наименование_услуги)) AND ((@IsNull_Главное_изображение = 1 AND [Главное_изображение] IS NULL) OR ([Главное_изображение] = @Original_Главное_изображение)) AND ((@IsNull_Длительность = 1 AND [Длительность] IS NULL) OR ([Длительность] = @Original_Длительность)) AND ((@IsNull_Стоимость = 1 AND [Стоимость] IS NULL) OR ([Стоимость] = @Original_Стоимость)) AND ((@IsNull_Действующая_скидка = 1 AND [Действующая_скидка] IS NULL) OR ([Действующая_скидка] = @Original_Действующая_скидка)));
  14074. SELECT ID_Uslugi, Наименование_услуги, Главное_изображение, Длительность, Стоимость, Действующая_скидка FROM Uslugi WHERE (ID_Uslugi = @ID_Uslugi)";
  14075. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  14076. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Uslugi", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Uslugi", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  14077. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Наименование_услуги", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование_услуги", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  14078. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Главное_изображение", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Главное_изображение", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  14079. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Длительность", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Длительность", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  14080. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Стоимость", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  14081. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Действующая_скидка", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_скидка", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  14082. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Uslugi", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Uslugi", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  14083. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Наименование_услуги", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование_услуги", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  14084. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Наименование_услуги", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование_услуги", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  14085. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Главное_изображение", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Главное_изображение", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  14086. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Главное_изображение", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Главное_изображение", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  14087. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Длительность", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Длительность", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  14088. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Длительность", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Длительность", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  14089. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Стоимость", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  14090. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Стоимость", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  14091. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Действующая_скидка", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_скидка", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  14092. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Действующая_скидка", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_скидка", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  14093. }
  14094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14095. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14096. private void InitConnection() {
  14097. this._connection = new global::System.Data.SqlClient.SqlConnection();
  14098. this._connection.ConnectionString = global::BB_Azizova.Properties.Settings.Default.BB_AzizovaConnectionString;
  14099. }
  14100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14101. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14102. private void InitCommandCollection() {
  14103. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  14104. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  14105. this._commandCollection[0].Connection = this.Connection;
  14106. this._commandCollection[0].CommandText = "SELECT ID_Uslugi, Наименование_услуги, Главное_изображение, Длительность, Стоимос" +
  14107. "ть, Действующая_скидка FROM dbo.Uslugi";
  14108. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  14109. }
  14110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14112. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14113. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  14114. public virtual int Fill(BB_AzizovaDataSet.UslugiDataTable dataTable) {
  14115. this.Adapter.SelectCommand = this.CommandCollection[0];
  14116. if ((this.ClearBeforeFill == true)) {
  14117. dataTable.Clear();
  14118. }
  14119. int returnValue = this.Adapter.Fill(dataTable);
  14120. return returnValue;
  14121. }
  14122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14123. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14124. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14125. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  14126. public virtual BB_AzizovaDataSet.UslugiDataTable GetData() {
  14127. this.Adapter.SelectCommand = this.CommandCollection[0];
  14128. BB_AzizovaDataSet.UslugiDataTable dataTable = new BB_AzizovaDataSet.UslugiDataTable();
  14129. this.Adapter.Fill(dataTable);
  14130. return dataTable;
  14131. }
  14132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14133. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14134. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14135. public virtual int Update(BB_AzizovaDataSet.UslugiDataTable dataTable) {
  14136. return this.Adapter.Update(dataTable);
  14137. }
  14138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14140. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14141. public virtual int Update(BB_AzizovaDataSet dataSet) {
  14142. return this.Adapter.Update(dataSet, "Uslugi");
  14143. }
  14144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14146. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14147. public virtual int Update(global::System.Data.DataRow dataRow) {
  14148. return this.Adapter.Update(new global::System.Data.DataRow[] {
  14149. dataRow});
  14150. }
  14151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14153. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14154. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  14155. return this.Adapter.Update(dataRows);
  14156. }
  14157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14159. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14160. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  14161. public virtual int Delete(long Original_ID_Uslugi, string Original_Наименование_услуги, string Original_Главное_изображение, string Original_Длительность, string Original_Стоимость, string Original_Действующая_скидка) {
  14162. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_ID_Uslugi));
  14163. if ((Original_Наименование_услуги == null)) {
  14164. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  14165. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  14166. }
  14167. else {
  14168. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  14169. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Наименование_услуги));
  14170. }
  14171. if ((Original_Главное_изображение == null)) {
  14172. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  14173. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  14174. }
  14175. else {
  14176. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  14177. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Главное_изображение));
  14178. }
  14179. if ((Original_Длительность == null)) {
  14180. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  14181. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  14182. }
  14183. else {
  14184. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  14185. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Длительность));
  14186. }
  14187. if ((Original_Стоимость == null)) {
  14188. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  14189. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  14190. }
  14191. else {
  14192. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  14193. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Стоимость));
  14194. }
  14195. if ((Original_Действующая_скидка == null)) {
  14196. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  14197. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  14198. }
  14199. else {
  14200. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  14201. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Действующая_скидка));
  14202. }
  14203. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  14204. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  14205. != global::System.Data.ConnectionState.Open)) {
  14206. this.Adapter.DeleteCommand.Connection.Open();
  14207. }
  14208. try {
  14209. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  14210. return returnValue;
  14211. }
  14212. finally {
  14213. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  14214. this.Adapter.DeleteCommand.Connection.Close();
  14215. }
  14216. }
  14217. }
  14218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14220. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14221. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  14222. public virtual int Insert(long ID_Uslugi, string Наименование_услуги, string Главное_изображение, string Длительность, string Стоимость, string Действующая_скидка) {
  14223. this.Adapter.InsertCommand.Parameters[0].Value = ((long)(ID_Uslugi));
  14224. if ((Наименование_услуги == null)) {
  14225. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  14226. }
  14227. else {
  14228. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Наименование_услуги));
  14229. }
  14230. if ((Главное_изображение == null)) {
  14231. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  14232. }
  14233. else {
  14234. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Главное_изображение));
  14235. }
  14236. if ((Длительность == null)) {
  14237. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  14238. }
  14239. else {
  14240. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Длительность));
  14241. }
  14242. if ((Стоимость == null)) {
  14243. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  14244. }
  14245. else {
  14246. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Стоимость));
  14247. }
  14248. if ((Действующая_скидка == null)) {
  14249. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  14250. }
  14251. else {
  14252. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Действующая_скидка));
  14253. }
  14254. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  14255. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  14256. != global::System.Data.ConnectionState.Open)) {
  14257. this.Adapter.InsertCommand.Connection.Open();
  14258. }
  14259. try {
  14260. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  14261. return returnValue;
  14262. }
  14263. finally {
  14264. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  14265. this.Adapter.InsertCommand.Connection.Close();
  14266. }
  14267. }
  14268. }
  14269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14270. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14271. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14272. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  14273. public virtual int Update(long ID_Uslugi, string Наименование_услуги, string Главное_изображение, string Длительность, string Стоимость, string Действующая_скидка, long Original_ID_Uslugi, string Original_Наименование_услуги, string Original_Главное_изображение, string Original_Длительность, string Original_Стоимость, string Original_Действующая_скидка) {
  14274. this.Adapter.UpdateCommand.Parameters[0].Value = ((long)(ID_Uslugi));
  14275. if ((Наименование_услуги == null)) {
  14276. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  14277. }
  14278. else {
  14279. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Наименование_услуги));
  14280. }
  14281. if ((Главное_изображение == null)) {
  14282. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  14283. }
  14284. else {
  14285. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Главное_изображение));
  14286. }
  14287. if ((Длительность == null)) {
  14288. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  14289. }
  14290. else {
  14291. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Длительность));
  14292. }
  14293. if ((Стоимость == null)) {
  14294. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  14295. }
  14296. else {
  14297. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Стоимость));
  14298. }
  14299. if ((Действующая_скидка == null)) {
  14300. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  14301. }
  14302. else {
  14303. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Действующая_скидка));
  14304. }
  14305. this.Adapter.UpdateCommand.Parameters[6].Value = ((long)(Original_ID_Uslugi));
  14306. if ((Original_Наименование_услуги == null)) {
  14307. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  14308. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  14309. }
  14310. else {
  14311. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  14312. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Наименование_услуги));
  14313. }
  14314. if ((Original_Главное_изображение == null)) {
  14315. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  14316. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  14317. }
  14318. else {
  14319. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  14320. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Главное_изображение));
  14321. }
  14322. if ((Original_Длительность == null)) {
  14323. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  14324. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  14325. }
  14326. else {
  14327. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  14328. this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_Длительность));
  14329. }
  14330. if ((Original_Стоимость == null)) {
  14331. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  14332. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  14333. }
  14334. else {
  14335. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  14336. this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_Стоимость));
  14337. }
  14338. if ((Original_Действующая_скидка == null)) {
  14339. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  14340. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  14341. }
  14342. else {
  14343. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  14344. this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_Действующая_скидка));
  14345. }
  14346. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  14347. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  14348. != global::System.Data.ConnectionState.Open)) {
  14349. this.Adapter.UpdateCommand.Connection.Open();
  14350. }
  14351. try {
  14352. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  14353. return returnValue;
  14354. }
  14355. finally {
  14356. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  14357. this.Adapter.UpdateCommand.Connection.Close();
  14358. }
  14359. }
  14360. }
  14361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14363. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14364. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  14365. public virtual int Update(string Наименование_услуги, string Главное_изображение, string Длительность, string Стоимость, string Действующая_скидка, long Original_ID_Uslugi, string Original_Наименование_услуги, string Original_Главное_изображение, string Original_Длительность, string Original_Стоимость, string Original_Действующая_скидка) {
  14366. return this.Update(Original_ID_Uslugi, Наименование_услуги, Главное_изображение, Длительность, Стоимость, Действующая_скидка, Original_ID_Uslugi, Original_Наименование_услуги, Original_Главное_изображение, Original_Длительность, Original_Стоимость, Original_Действующая_скидка);
  14367. }
  14368. }
  14369. /// <summary>
  14370. ///Represents the connection and commands used to retrieve and save data.
  14371. ///</summary>
  14372. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  14373. [global::System.ComponentModel.ToolboxItem(true)]
  14374. [global::System.ComponentModel.DataObjectAttribute(true)]
  14375. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  14376. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  14377. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14378. public partial class Uslugi_i_KlientTableAdapter : global::System.ComponentModel.Component {
  14379. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  14380. private global::System.Data.SqlClient.SqlConnection _connection;
  14381. private global::System.Data.SqlClient.SqlTransaction _transaction;
  14382. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  14383. private bool _clearBeforeFill;
  14384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14386. public Uslugi_i_KlientTableAdapter() {
  14387. this.ClearBeforeFill = true;
  14388. }
  14389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14391. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  14392. get {
  14393. if ((this._adapter == null)) {
  14394. this.InitAdapter();
  14395. }
  14396. return this._adapter;
  14397. }
  14398. }
  14399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14401. internal global::System.Data.SqlClient.SqlConnection Connection {
  14402. get {
  14403. if ((this._connection == null)) {
  14404. this.InitConnection();
  14405. }
  14406. return this._connection;
  14407. }
  14408. set {
  14409. this._connection = value;
  14410. if ((this.Adapter.InsertCommand != null)) {
  14411. this.Adapter.InsertCommand.Connection = value;
  14412. }
  14413. if ((this.Adapter.DeleteCommand != null)) {
  14414. this.Adapter.DeleteCommand.Connection = value;
  14415. }
  14416. if ((this.Adapter.UpdateCommand != null)) {
  14417. this.Adapter.UpdateCommand.Connection = value;
  14418. }
  14419. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  14420. if ((this.CommandCollection[i] != null)) {
  14421. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  14422. }
  14423. }
  14424. }
  14425. }
  14426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14428. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  14429. get {
  14430. return this._transaction;
  14431. }
  14432. set {
  14433. this._transaction = value;
  14434. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  14435. this.CommandCollection[i].Transaction = this._transaction;
  14436. }
  14437. if (((this.Adapter != null)
  14438. && (this.Adapter.DeleteCommand != null))) {
  14439. this.Adapter.DeleteCommand.Transaction = this._transaction;
  14440. }
  14441. if (((this.Adapter != null)
  14442. && (this.Adapter.InsertCommand != null))) {
  14443. this.Adapter.InsertCommand.Transaction = this._transaction;
  14444. }
  14445. if (((this.Adapter != null)
  14446. && (this.Adapter.UpdateCommand != null))) {
  14447. this.Adapter.UpdateCommand.Transaction = this._transaction;
  14448. }
  14449. }
  14450. }
  14451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14453. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  14454. get {
  14455. if ((this._commandCollection == null)) {
  14456. this.InitCommandCollection();
  14457. }
  14458. return this._commandCollection;
  14459. }
  14460. }
  14461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14463. public bool ClearBeforeFill {
  14464. get {
  14465. return this._clearBeforeFill;
  14466. }
  14467. set {
  14468. this._clearBeforeFill = value;
  14469. }
  14470. }
  14471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14473. private void InitAdapter() {
  14474. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  14475. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  14476. tableMapping.SourceTable = "Table";
  14477. tableMapping.DataSetTable = "Uslugi_i_Klient";
  14478. tableMapping.ColumnMappings.Add("ID", "ID");
  14479. tableMapping.ColumnMappings.Add("Услуга", "Услуга");
  14480. tableMapping.ColumnMappings.Add("Начало_оказания_услуги", "Начало_оказания_услуги");
  14481. tableMapping.ColumnMappings.Add("Клиент", "Клиент");
  14482. tableMapping.ColumnMappings.Add("ID_Client", "ID_Client");
  14483. tableMapping.ColumnMappings.Add("ID_Uslugi", "ID_Uslugi");
  14484. this._adapter.TableMappings.Add(tableMapping);
  14485. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  14486. this._adapter.DeleteCommand.Connection = this.Connection;
  14487. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Uslugi_i_Klient] WHERE (([ID] = @Original_ID) AND ((@IsNull_Начало_оказания_услуги = 1 AND [Начало_оказания_услуги] IS NULL) OR ([Начало_оказания_услуги] = @Original_Начало_оказания_услуги)) AND ((@IsNull_Клиент = 1 AND [Клиент] IS NULL) OR ([Клиент] = @Original_Клиент)) AND ((@IsNull_ID_Client = 1 AND [ID_Client] IS NULL) OR ([ID_Client] = @Original_ID_Client)) AND ((@IsNull_ID_Uslugi = 1 AND [ID_Uslugi] IS NULL) OR ([ID_Uslugi] = @Original_ID_Uslugi)))";
  14488. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  14489. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  14490. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Начало_оказания_услуги", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Начало_оказания_услуги", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  14491. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Начало_оказания_услуги", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Начало_оказания_услуги", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  14492. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Клиент", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Клиент", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  14493. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Клиент", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Клиент", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  14494. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_Client", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Client", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  14495. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Client", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Client", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  14496. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_Uslugi", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Uslugi", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  14497. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Uslugi", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Uslugi", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  14498. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  14499. this._adapter.InsertCommand.Connection = this.Connection;
  14500. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Uslugi_i_Klient] ([ID], [Услуга], [Начало_оказания_услуги], [Клиент], [ID_Client], [ID_Uslugi]) VALUES (@ID, @Услуга, @Начало_оказания_услуги, @Клиент, @ID_Client, @ID_Uslugi);
  14501. SELECT ID, Услуга, Начало_оказания_услуги, Клиент, ID_Client, ID_Uslugi FROM Uslugi_i_Klient WHERE (ID = @ID)";
  14502. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  14503. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  14504. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Услуга", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Услуга", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  14505. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Начало_оказания_услуги", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Начало_оказания_услуги", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  14506. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Клиент", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Клиент", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  14507. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Client", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Client", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  14508. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Uslugi", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Uslugi", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  14509. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  14510. this._adapter.UpdateCommand.Connection = this.Connection;
  14511. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Uslugi_i_Klient] SET [ID] = @ID, [Услуга] = @Услуга, [Начало_оказания_услуги] = @Начало_оказания_услуги, [Клиент] = @Клиент, [ID_Client] = @ID_Client, [ID_Uslugi] = @ID_Uslugi WHERE (([ID] = @Original_ID) AND ((@IsNull_Начало_оказания_услуги = 1 AND [Начало_оказания_услуги] IS NULL) OR ([Начало_оказания_услуги] = @Original_Начало_оказания_услуги)) AND ((@IsNull_Клиент = 1 AND [Клиент] IS NULL) OR ([Клиент] = @Original_Клиент)) AND ((@IsNull_ID_Client = 1 AND [ID_Client] IS NULL) OR ([ID_Client] = @Original_ID_Client)) AND ((@IsNull_ID_Uslugi = 1 AND [ID_Uslugi] IS NULL) OR ([ID_Uslugi] = @Original_ID_Uslugi)));
  14512. SELECT ID, Услуга, Начало_оказания_услуги, Клиент, ID_Client, ID_Uslugi FROM Uslugi_i_Klient WHERE (ID = @ID)";
  14513. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  14514. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  14515. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Услуга", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Услуга", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  14516. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Начало_оказания_услуги", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Начало_оказания_услуги", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  14517. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Клиент", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Клиент", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  14518. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Client", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Client", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  14519. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Uslugi", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Uslugi", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  14520. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  14521. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Начало_оказания_услуги", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Начало_оказания_услуги", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  14522. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Начало_оказания_услуги", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Начало_оказания_услуги", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  14523. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Клиент", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Клиент", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  14524. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Клиент", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Клиент", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  14525. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_Client", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Client", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  14526. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Client", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Client", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  14527. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_Uslugi", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Uslugi", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  14528. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Uslugi", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Uslugi", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  14529. }
  14530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14532. private void InitConnection() {
  14533. this._connection = new global::System.Data.SqlClient.SqlConnection();
  14534. this._connection.ConnectionString = global::BB_Azizova.Properties.Settings.Default.BB_AzizovaConnectionString;
  14535. }
  14536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14538. private void InitCommandCollection() {
  14539. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  14540. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  14541. this._commandCollection[0].Connection = this.Connection;
  14542. this._commandCollection[0].CommandText = "SELECT ID, Услуга, Начало_оказания_услуги, Клиент, ID_Client, ID_Uslugi FROM dbo." +
  14543. "Uslugi_i_Klient";
  14544. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  14545. }
  14546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14548. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14549. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  14550. public virtual int Fill(BB_AzizovaDataSet.Uslugi_i_KlientDataTable dataTable) {
  14551. this.Adapter.SelectCommand = this.CommandCollection[0];
  14552. if ((this.ClearBeforeFill == true)) {
  14553. dataTable.Clear();
  14554. }
  14555. int returnValue = this.Adapter.Fill(dataTable);
  14556. return returnValue;
  14557. }
  14558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14559. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14560. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14561. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  14562. public virtual BB_AzizovaDataSet.Uslugi_i_KlientDataTable GetData() {
  14563. this.Adapter.SelectCommand = this.CommandCollection[0];
  14564. BB_AzizovaDataSet.Uslugi_i_KlientDataTable dataTable = new BB_AzizovaDataSet.Uslugi_i_KlientDataTable();
  14565. this.Adapter.Fill(dataTable);
  14566. return dataTable;
  14567. }
  14568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14570. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14571. public virtual int Update(BB_AzizovaDataSet.Uslugi_i_KlientDataTable dataTable) {
  14572. return this.Adapter.Update(dataTable);
  14573. }
  14574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14576. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14577. public virtual int Update(BB_AzizovaDataSet dataSet) {
  14578. return this.Adapter.Update(dataSet, "Uslugi_i_Klient");
  14579. }
  14580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14582. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14583. public virtual int Update(global::System.Data.DataRow dataRow) {
  14584. return this.Adapter.Update(new global::System.Data.DataRow[] {
  14585. dataRow});
  14586. }
  14587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14589. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14590. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  14591. return this.Adapter.Update(dataRows);
  14592. }
  14593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14595. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14596. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  14597. public virtual int Delete(long Original_ID, global::System.Nullable<global::System.DateTime> Original_Начало_оказания_услуги, string Original_Клиент, global::System.Nullable<long> Original_ID_Client, global::System.Nullable<long> Original_ID_Uslugi) {
  14598. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_ID));
  14599. if ((Original_Начало_оказания_услуги.HasValue == true)) {
  14600. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  14601. this.Adapter.DeleteCommand.Parameters[2].Value = ((System.DateTime)(Original_Начало_оказания_услуги.Value));
  14602. }
  14603. else {
  14604. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  14605. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  14606. }
  14607. if ((Original_Клиент == null)) {
  14608. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  14609. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  14610. }
  14611. else {
  14612. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  14613. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Клиент));
  14614. }
  14615. if ((Original_ID_Client.HasValue == true)) {
  14616. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  14617. this.Adapter.DeleteCommand.Parameters[6].Value = ((long)(Original_ID_Client.Value));
  14618. }
  14619. else {
  14620. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  14621. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  14622. }
  14623. if ((Original_ID_Uslugi.HasValue == true)) {
  14624. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  14625. this.Adapter.DeleteCommand.Parameters[8].Value = ((long)(Original_ID_Uslugi.Value));
  14626. }
  14627. else {
  14628. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  14629. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  14630. }
  14631. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  14632. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  14633. != global::System.Data.ConnectionState.Open)) {
  14634. this.Adapter.DeleteCommand.Connection.Open();
  14635. }
  14636. try {
  14637. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  14638. return returnValue;
  14639. }
  14640. finally {
  14641. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  14642. this.Adapter.DeleteCommand.Connection.Close();
  14643. }
  14644. }
  14645. }
  14646. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14648. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14649. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  14650. public virtual int Insert(long ID, string Услуга, global::System.Nullable<global::System.DateTime> Начало_оказания_услуги, string Клиент, global::System.Nullable<long> ID_Client, global::System.Nullable<long> ID_Uslugi) {
  14651. this.Adapter.InsertCommand.Parameters[0].Value = ((long)(ID));
  14652. if ((Услуга == null)) {
  14653. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  14654. }
  14655. else {
  14656. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Услуга));
  14657. }
  14658. if ((Начало_оказания_услуги.HasValue == true)) {
  14659. this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(Начало_оказания_услуги.Value));
  14660. }
  14661. else {
  14662. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  14663. }
  14664. if ((Клиент == null)) {
  14665. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  14666. }
  14667. else {
  14668. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Клиент));
  14669. }
  14670. if ((ID_Client.HasValue == true)) {
  14671. this.Adapter.InsertCommand.Parameters[4].Value = ((long)(ID_Client.Value));
  14672. }
  14673. else {
  14674. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  14675. }
  14676. if ((ID_Uslugi.HasValue == true)) {
  14677. this.Adapter.InsertCommand.Parameters[5].Value = ((long)(ID_Uslugi.Value));
  14678. }
  14679. else {
  14680. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  14681. }
  14682. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  14683. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  14684. != global::System.Data.ConnectionState.Open)) {
  14685. this.Adapter.InsertCommand.Connection.Open();
  14686. }
  14687. try {
  14688. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  14689. return returnValue;
  14690. }
  14691. finally {
  14692. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  14693. this.Adapter.InsertCommand.Connection.Close();
  14694. }
  14695. }
  14696. }
  14697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14699. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14700. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  14701. public virtual int Update(long ID, string Услуга, global::System.Nullable<global::System.DateTime> Начало_оказания_услуги, string Клиент, global::System.Nullable<long> ID_Client, global::System.Nullable<long> ID_Uslugi, long Original_ID, global::System.Nullable<global::System.DateTime> Original_Начало_оказания_услуги, string Original_Клиент, global::System.Nullable<long> Original_ID_Client, global::System.Nullable<long> Original_ID_Uslugi) {
  14702. this.Adapter.UpdateCommand.Parameters[0].Value = ((long)(ID));
  14703. if ((Услуга == null)) {
  14704. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  14705. }
  14706. else {
  14707. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Услуга));
  14708. }
  14709. if ((Начало_оказания_услуги.HasValue == true)) {
  14710. this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(Начало_оказания_услуги.Value));
  14711. }
  14712. else {
  14713. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  14714. }
  14715. if ((Клиент == null)) {
  14716. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  14717. }
  14718. else {
  14719. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Клиент));
  14720. }
  14721. if ((ID_Client.HasValue == true)) {
  14722. this.Adapter.UpdateCommand.Parameters[4].Value = ((long)(ID_Client.Value));
  14723. }
  14724. else {
  14725. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  14726. }
  14727. if ((ID_Uslugi.HasValue == true)) {
  14728. this.Adapter.UpdateCommand.Parameters[5].Value = ((long)(ID_Uslugi.Value));
  14729. }
  14730. else {
  14731. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  14732. }
  14733. this.Adapter.UpdateCommand.Parameters[6].Value = ((long)(Original_ID));
  14734. if ((Original_Начало_оказания_услуги.HasValue == true)) {
  14735. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  14736. this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(Original_Начало_оказания_услуги.Value));
  14737. }
  14738. else {
  14739. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  14740. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  14741. }
  14742. if ((Original_Клиент == null)) {
  14743. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  14744. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  14745. }
  14746. else {
  14747. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  14748. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Клиент));
  14749. }
  14750. if ((Original_ID_Client.HasValue == true)) {
  14751. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  14752. this.Adapter.UpdateCommand.Parameters[12].Value = ((long)(Original_ID_Client.Value));
  14753. }
  14754. else {
  14755. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  14756. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  14757. }
  14758. if ((Original_ID_Uslugi.HasValue == true)) {
  14759. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  14760. this.Adapter.UpdateCommand.Parameters[14].Value = ((long)(Original_ID_Uslugi.Value));
  14761. }
  14762. else {
  14763. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  14764. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  14765. }
  14766. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  14767. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  14768. != global::System.Data.ConnectionState.Open)) {
  14769. this.Adapter.UpdateCommand.Connection.Open();
  14770. }
  14771. try {
  14772. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  14773. return returnValue;
  14774. }
  14775. finally {
  14776. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  14777. this.Adapter.UpdateCommand.Connection.Close();
  14778. }
  14779. }
  14780. }
  14781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14783. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14784. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  14785. public virtual int Update(string Услуга, global::System.Nullable<global::System.DateTime> Начало_оказания_услуги, string Клиент, global::System.Nullable<long> ID_Client, global::System.Nullable<long> ID_Uslugi, long Original_ID, global::System.Nullable<global::System.DateTime> Original_Начало_оказания_услуги, string Original_Клиент, global::System.Nullable<long> Original_ID_Client, global::System.Nullable<long> Original_ID_Uslugi) {
  14786. return this.Update(Original_ID, Услуга, Начало_оказания_услуги, Клиент, ID_Client, ID_Uslugi, Original_ID, Original_Начало_оказания_услуги, Original_Клиент, Original_ID_Client, Original_ID_Uslugi);
  14787. }
  14788. }
  14789. /// <summary>
  14790. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  14791. ///</summary>
  14792. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  14793. [global::System.ComponentModel.ToolboxItem(true)]
  14794. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  14795. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  14796. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  14797. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  14798. private UpdateOrderOption _updateOrder;
  14799. private AdministratorTableAdapter _administratorTableAdapter;
  14800. private AttachedProductTableAdapter _attachedProductTableAdapter;
  14801. private ClientTableAdapter _clientTableAdapter;
  14802. private ClientsTableAdapter _clientsTableAdapter;
  14803. private ClientServiceTableAdapter _clientServiceTableAdapter;
  14804. private DocumentByServiceTableAdapter _documentByServiceTableAdapter;
  14805. private GenderTableAdapter _genderTableAdapter;
  14806. private ManufacturerTableAdapter _manufacturerTableAdapter;
  14807. private ProductTableAdapter _productTableAdapter;
  14808. private ProductPhotoTableAdapter _productPhotoTableAdapter;
  14809. private ProductSaleTableAdapter _productSaleTableAdapter;
  14810. private ServiceTableAdapter _serviceTableAdapter;
  14811. private ServicePhotoTableAdapter _servicePhotoTableAdapter;
  14812. private SotrudnikTableAdapter _sotrudnikTableAdapter;
  14813. private TagTableAdapter _tagTableAdapter;
  14814. private TagOfClientTableAdapter _tagOfClientTableAdapter;
  14815. private UslugiTableAdapter _uslugiTableAdapter;
  14816. private Uslugi_i_KlientTableAdapter _uslugi_i_KlientTableAdapter;
  14817. private bool _backupDataSetBeforeUpdate;
  14818. private global::System.Data.IDbConnection _connection;
  14819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14821. public UpdateOrderOption UpdateOrder {
  14822. get {
  14823. return this._updateOrder;
  14824. }
  14825. set {
  14826. this._updateOrder = value;
  14827. }
  14828. }
  14829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14831. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  14832. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  14833. "a", "System.Drawing.Design.UITypeEditor")]
  14834. public AdministratorTableAdapter AdministratorTableAdapter {
  14835. get {
  14836. return this._administratorTableAdapter;
  14837. }
  14838. set {
  14839. this._administratorTableAdapter = value;
  14840. }
  14841. }
  14842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14844. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  14845. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  14846. "a", "System.Drawing.Design.UITypeEditor")]
  14847. public AttachedProductTableAdapter AttachedProductTableAdapter {
  14848. get {
  14849. return this._attachedProductTableAdapter;
  14850. }
  14851. set {
  14852. this._attachedProductTableAdapter = value;
  14853. }
  14854. }
  14855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14857. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  14858. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  14859. "a", "System.Drawing.Design.UITypeEditor")]
  14860. public ClientTableAdapter ClientTableAdapter {
  14861. get {
  14862. return this._clientTableAdapter;
  14863. }
  14864. set {
  14865. this._clientTableAdapter = value;
  14866. }
  14867. }
  14868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14870. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  14871. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  14872. "a", "System.Drawing.Design.UITypeEditor")]
  14873. public ClientsTableAdapter ClientsTableAdapter {
  14874. get {
  14875. return this._clientsTableAdapter;
  14876. }
  14877. set {
  14878. this._clientsTableAdapter = value;
  14879. }
  14880. }
  14881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14883. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  14884. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  14885. "a", "System.Drawing.Design.UITypeEditor")]
  14886. public ClientServiceTableAdapter ClientServiceTableAdapter {
  14887. get {
  14888. return this._clientServiceTableAdapter;
  14889. }
  14890. set {
  14891. this._clientServiceTableAdapter = value;
  14892. }
  14893. }
  14894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14896. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  14897. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  14898. "a", "System.Drawing.Design.UITypeEditor")]
  14899. public DocumentByServiceTableAdapter DocumentByServiceTableAdapter {
  14900. get {
  14901. return this._documentByServiceTableAdapter;
  14902. }
  14903. set {
  14904. this._documentByServiceTableAdapter = value;
  14905. }
  14906. }
  14907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14909. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  14910. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  14911. "a", "System.Drawing.Design.UITypeEditor")]
  14912. public GenderTableAdapter GenderTableAdapter {
  14913. get {
  14914. return this._genderTableAdapter;
  14915. }
  14916. set {
  14917. this._genderTableAdapter = value;
  14918. }
  14919. }
  14920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14921. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14922. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  14923. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  14924. "a", "System.Drawing.Design.UITypeEditor")]
  14925. public ManufacturerTableAdapter ManufacturerTableAdapter {
  14926. get {
  14927. return this._manufacturerTableAdapter;
  14928. }
  14929. set {
  14930. this._manufacturerTableAdapter = value;
  14931. }
  14932. }
  14933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14934. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14935. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  14936. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  14937. "a", "System.Drawing.Design.UITypeEditor")]
  14938. public ProductTableAdapter ProductTableAdapter {
  14939. get {
  14940. return this._productTableAdapter;
  14941. }
  14942. set {
  14943. this._productTableAdapter = value;
  14944. }
  14945. }
  14946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14947. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14948. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  14949. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  14950. "a", "System.Drawing.Design.UITypeEditor")]
  14951. public ProductPhotoTableAdapter ProductPhotoTableAdapter {
  14952. get {
  14953. return this._productPhotoTableAdapter;
  14954. }
  14955. set {
  14956. this._productPhotoTableAdapter = value;
  14957. }
  14958. }
  14959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14961. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  14962. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  14963. "a", "System.Drawing.Design.UITypeEditor")]
  14964. public ProductSaleTableAdapter ProductSaleTableAdapter {
  14965. get {
  14966. return this._productSaleTableAdapter;
  14967. }
  14968. set {
  14969. this._productSaleTableAdapter = value;
  14970. }
  14971. }
  14972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14974. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  14975. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  14976. "a", "System.Drawing.Design.UITypeEditor")]
  14977. public ServiceTableAdapter ServiceTableAdapter {
  14978. get {
  14979. return this._serviceTableAdapter;
  14980. }
  14981. set {
  14982. this._serviceTableAdapter = value;
  14983. }
  14984. }
  14985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14987. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  14988. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  14989. "a", "System.Drawing.Design.UITypeEditor")]
  14990. public ServicePhotoTableAdapter ServicePhotoTableAdapter {
  14991. get {
  14992. return this._servicePhotoTableAdapter;
  14993. }
  14994. set {
  14995. this._servicePhotoTableAdapter = value;
  14996. }
  14997. }
  14998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15000. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  15001. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  15002. "a", "System.Drawing.Design.UITypeEditor")]
  15003. public SotrudnikTableAdapter SotrudnikTableAdapter {
  15004. get {
  15005. return this._sotrudnikTableAdapter;
  15006. }
  15007. set {
  15008. this._sotrudnikTableAdapter = value;
  15009. }
  15010. }
  15011. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15012. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15013. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  15014. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  15015. "a", "System.Drawing.Design.UITypeEditor")]
  15016. public TagTableAdapter TagTableAdapter {
  15017. get {
  15018. return this._tagTableAdapter;
  15019. }
  15020. set {
  15021. this._tagTableAdapter = value;
  15022. }
  15023. }
  15024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15026. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  15027. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  15028. "a", "System.Drawing.Design.UITypeEditor")]
  15029. public TagOfClientTableAdapter TagOfClientTableAdapter {
  15030. get {
  15031. return this._tagOfClientTableAdapter;
  15032. }
  15033. set {
  15034. this._tagOfClientTableAdapter = value;
  15035. }
  15036. }
  15037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15039. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  15040. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  15041. "a", "System.Drawing.Design.UITypeEditor")]
  15042. public UslugiTableAdapter UslugiTableAdapter {
  15043. get {
  15044. return this._uslugiTableAdapter;
  15045. }
  15046. set {
  15047. this._uslugiTableAdapter = value;
  15048. }
  15049. }
  15050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15052. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  15053. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  15054. "a", "System.Drawing.Design.UITypeEditor")]
  15055. public Uslugi_i_KlientTableAdapter Uslugi_i_KlientTableAdapter {
  15056. get {
  15057. return this._uslugi_i_KlientTableAdapter;
  15058. }
  15059. set {
  15060. this._uslugi_i_KlientTableAdapter = value;
  15061. }
  15062. }
  15063. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15064. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15065. public bool BackupDataSetBeforeUpdate {
  15066. get {
  15067. return this._backupDataSetBeforeUpdate;
  15068. }
  15069. set {
  15070. this._backupDataSetBeforeUpdate = value;
  15071. }
  15072. }
  15073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15075. [global::System.ComponentModel.Browsable(false)]
  15076. public global::System.Data.IDbConnection Connection {
  15077. get {
  15078. if ((this._connection != null)) {
  15079. return this._connection;
  15080. }
  15081. if (((this._administratorTableAdapter != null)
  15082. && (this._administratorTableAdapter.Connection != null))) {
  15083. return this._administratorTableAdapter.Connection;
  15084. }
  15085. if (((this._attachedProductTableAdapter != null)
  15086. && (this._attachedProductTableAdapter.Connection != null))) {
  15087. return this._attachedProductTableAdapter.Connection;
  15088. }
  15089. if (((this._clientTableAdapter != null)
  15090. && (this._clientTableAdapter.Connection != null))) {
  15091. return this._clientTableAdapter.Connection;
  15092. }
  15093. if (((this._clientsTableAdapter != null)
  15094. && (this._clientsTableAdapter.Connection != null))) {
  15095. return this._clientsTableAdapter.Connection;
  15096. }
  15097. if (((this._clientServiceTableAdapter != null)
  15098. && (this._clientServiceTableAdapter.Connection != null))) {
  15099. return this._clientServiceTableAdapter.Connection;
  15100. }
  15101. if (((this._documentByServiceTableAdapter != null)
  15102. && (this._documentByServiceTableAdapter.Connection != null))) {
  15103. return this._documentByServiceTableAdapter.Connection;
  15104. }
  15105. if (((this._genderTableAdapter != null)
  15106. && (this._genderTableAdapter.Connection != null))) {
  15107. return this._genderTableAdapter.Connection;
  15108. }
  15109. if (((this._manufacturerTableAdapter != null)
  15110. && (this._manufacturerTableAdapter.Connection != null))) {
  15111. return this._manufacturerTableAdapter.Connection;
  15112. }
  15113. if (((this._productTableAdapter != null)
  15114. && (this._productTableAdapter.Connection != null))) {
  15115. return this._productTableAdapter.Connection;
  15116. }
  15117. if (((this._productPhotoTableAdapter != null)
  15118. && (this._productPhotoTableAdapter.Connection != null))) {
  15119. return this._productPhotoTableAdapter.Connection;
  15120. }
  15121. if (((this._productSaleTableAdapter != null)
  15122. && (this._productSaleTableAdapter.Connection != null))) {
  15123. return this._productSaleTableAdapter.Connection;
  15124. }
  15125. if (((this._serviceTableAdapter != null)
  15126. && (this._serviceTableAdapter.Connection != null))) {
  15127. return this._serviceTableAdapter.Connection;
  15128. }
  15129. if (((this._servicePhotoTableAdapter != null)
  15130. && (this._servicePhotoTableAdapter.Connection != null))) {
  15131. return this._servicePhotoTableAdapter.Connection;
  15132. }
  15133. if (((this._sotrudnikTableAdapter != null)
  15134. && (this._sotrudnikTableAdapter.Connection != null))) {
  15135. return this._sotrudnikTableAdapter.Connection;
  15136. }
  15137. if (((this._tagTableAdapter != null)
  15138. && (this._tagTableAdapter.Connection != null))) {
  15139. return this._tagTableAdapter.Connection;
  15140. }
  15141. if (((this._tagOfClientTableAdapter != null)
  15142. && (this._tagOfClientTableAdapter.Connection != null))) {
  15143. return this._tagOfClientTableAdapter.Connection;
  15144. }
  15145. if (((this._uslugiTableAdapter != null)
  15146. && (this._uslugiTableAdapter.Connection != null))) {
  15147. return this._uslugiTableAdapter.Connection;
  15148. }
  15149. if (((this._uslugi_i_KlientTableAdapter != null)
  15150. && (this._uslugi_i_KlientTableAdapter.Connection != null))) {
  15151. return this._uslugi_i_KlientTableAdapter.Connection;
  15152. }
  15153. return null;
  15154. }
  15155. set {
  15156. this._connection = value;
  15157. }
  15158. }
  15159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15161. [global::System.ComponentModel.Browsable(false)]
  15162. public int TableAdapterInstanceCount {
  15163. get {
  15164. int count = 0;
  15165. if ((this._administratorTableAdapter != null)) {
  15166. count = (count + 1);
  15167. }
  15168. if ((this._attachedProductTableAdapter != null)) {
  15169. count = (count + 1);
  15170. }
  15171. if ((this._clientTableAdapter != null)) {
  15172. count = (count + 1);
  15173. }
  15174. if ((this._clientsTableAdapter != null)) {
  15175. count = (count + 1);
  15176. }
  15177. if ((this._clientServiceTableAdapter != null)) {
  15178. count = (count + 1);
  15179. }
  15180. if ((this._documentByServiceTableAdapter != null)) {
  15181. count = (count + 1);
  15182. }
  15183. if ((this._genderTableAdapter != null)) {
  15184. count = (count + 1);
  15185. }
  15186. if ((this._manufacturerTableAdapter != null)) {
  15187. count = (count + 1);
  15188. }
  15189. if ((this._productTableAdapter != null)) {
  15190. count = (count + 1);
  15191. }
  15192. if ((this._productPhotoTableAdapter != null)) {
  15193. count = (count + 1);
  15194. }
  15195. if ((this._productSaleTableAdapter != null)) {
  15196. count = (count + 1);
  15197. }
  15198. if ((this._serviceTableAdapter != null)) {
  15199. count = (count + 1);
  15200. }
  15201. if ((this._servicePhotoTableAdapter != null)) {
  15202. count = (count + 1);
  15203. }
  15204. if ((this._sotrudnikTableAdapter != null)) {
  15205. count = (count + 1);
  15206. }
  15207. if ((this._tagTableAdapter != null)) {
  15208. count = (count + 1);
  15209. }
  15210. if ((this._tagOfClientTableAdapter != null)) {
  15211. count = (count + 1);
  15212. }
  15213. if ((this._uslugiTableAdapter != null)) {
  15214. count = (count + 1);
  15215. }
  15216. if ((this._uslugi_i_KlientTableAdapter != null)) {
  15217. count = (count + 1);
  15218. }
  15219. return count;
  15220. }
  15221. }
  15222. /// <summary>
  15223. ///Update rows in top-down order.
  15224. ///</summary>
  15225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15227. private int UpdateUpdatedRows(BB_AzizovaDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  15228. int result = 0;
  15229. if ((this._genderTableAdapter != null)) {
  15230. global::System.Data.DataRow[] updatedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  15231. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  15232. if (((updatedRows != null)
  15233. && (0 < updatedRows.Length))) {
  15234. result = (result + this._genderTableAdapter.Update(updatedRows));
  15235. allChangedRows.AddRange(updatedRows);
  15236. }
  15237. }
  15238. if ((this._clientTableAdapter != null)) {
  15239. global::System.Data.DataRow[] updatedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  15240. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  15241. if (((updatedRows != null)
  15242. && (0 < updatedRows.Length))) {
  15243. result = (result + this._clientTableAdapter.Update(updatedRows));
  15244. allChangedRows.AddRange(updatedRows);
  15245. }
  15246. }
  15247. if ((this._manufacturerTableAdapter != null)) {
  15248. global::System.Data.DataRow[] updatedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  15249. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  15250. if (((updatedRows != null)
  15251. && (0 < updatedRows.Length))) {
  15252. result = (result + this._manufacturerTableAdapter.Update(updatedRows));
  15253. allChangedRows.AddRange(updatedRows);
  15254. }
  15255. }
  15256. if ((this._serviceTableAdapter != null)) {
  15257. global::System.Data.DataRow[] updatedRows = dataSet.Service.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  15258. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  15259. if (((updatedRows != null)
  15260. && (0 < updatedRows.Length))) {
  15261. result = (result + this._serviceTableAdapter.Update(updatedRows));
  15262. allChangedRows.AddRange(updatedRows);
  15263. }
  15264. }
  15265. if ((this._productTableAdapter != null)) {
  15266. global::System.Data.DataRow[] updatedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  15267. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  15268. if (((updatedRows != null)
  15269. && (0 < updatedRows.Length))) {
  15270. result = (result + this._productTableAdapter.Update(updatedRows));
  15271. allChangedRows.AddRange(updatedRows);
  15272. }
  15273. }
  15274. if ((this._clientsTableAdapter != null)) {
  15275. global::System.Data.DataRow[] updatedRows = dataSet.Clients.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  15276. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  15277. if (((updatedRows != null)
  15278. && (0 < updatedRows.Length))) {
  15279. result = (result + this._clientsTableAdapter.Update(updatedRows));
  15280. allChangedRows.AddRange(updatedRows);
  15281. }
  15282. }
  15283. if ((this._clientServiceTableAdapter != null)) {
  15284. global::System.Data.DataRow[] updatedRows = dataSet.ClientService.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  15285. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  15286. if (((updatedRows != null)
  15287. && (0 < updatedRows.Length))) {
  15288. result = (result + this._clientServiceTableAdapter.Update(updatedRows));
  15289. allChangedRows.AddRange(updatedRows);
  15290. }
  15291. }
  15292. if ((this._tagTableAdapter != null)) {
  15293. global::System.Data.DataRow[] updatedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  15294. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  15295. if (((updatedRows != null)
  15296. && (0 < updatedRows.Length))) {
  15297. result = (result + this._tagTableAdapter.Update(updatedRows));
  15298. allChangedRows.AddRange(updatedRows);
  15299. }
  15300. }
  15301. if ((this._uslugiTableAdapter != null)) {
  15302. global::System.Data.DataRow[] updatedRows = dataSet.Uslugi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  15303. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  15304. if (((updatedRows != null)
  15305. && (0 < updatedRows.Length))) {
  15306. result = (result + this._uslugiTableAdapter.Update(updatedRows));
  15307. allChangedRows.AddRange(updatedRows);
  15308. }
  15309. }
  15310. if ((this._tagOfClientTableAdapter != null)) {
  15311. global::System.Data.DataRow[] updatedRows = dataSet.TagOfClient.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  15312. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  15313. if (((updatedRows != null)
  15314. && (0 < updatedRows.Length))) {
  15315. result = (result + this._tagOfClientTableAdapter.Update(updatedRows));
  15316. allChangedRows.AddRange(updatedRows);
  15317. }
  15318. }
  15319. if ((this._sotrudnikTableAdapter != null)) {
  15320. global::System.Data.DataRow[] updatedRows = dataSet.Sotrudnik.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  15321. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  15322. if (((updatedRows != null)
  15323. && (0 < updatedRows.Length))) {
  15324. result = (result + this._sotrudnikTableAdapter.Update(updatedRows));
  15325. allChangedRows.AddRange(updatedRows);
  15326. }
  15327. }
  15328. if ((this._servicePhotoTableAdapter != null)) {
  15329. global::System.Data.DataRow[] updatedRows = dataSet.ServicePhoto.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  15330. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  15331. if (((updatedRows != null)
  15332. && (0 < updatedRows.Length))) {
  15333. result = (result + this._servicePhotoTableAdapter.Update(updatedRows));
  15334. allChangedRows.AddRange(updatedRows);
  15335. }
  15336. }
  15337. if ((this._administratorTableAdapter != null)) {
  15338. global::System.Data.DataRow[] updatedRows = dataSet.Administrator.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  15339. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  15340. if (((updatedRows != null)
  15341. && (0 < updatedRows.Length))) {
  15342. result = (result + this._administratorTableAdapter.Update(updatedRows));
  15343. allChangedRows.AddRange(updatedRows);
  15344. }
  15345. }
  15346. if ((this._productPhotoTableAdapter != null)) {
  15347. global::System.Data.DataRow[] updatedRows = dataSet.ProductPhoto.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  15348. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  15349. if (((updatedRows != null)
  15350. && (0 < updatedRows.Length))) {
  15351. result = (result + this._productPhotoTableAdapter.Update(updatedRows));
  15352. allChangedRows.AddRange(updatedRows);
  15353. }
  15354. }
  15355. if ((this._documentByServiceTableAdapter != null)) {
  15356. global::System.Data.DataRow[] updatedRows = dataSet.DocumentByService.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  15357. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  15358. if (((updatedRows != null)
  15359. && (0 < updatedRows.Length))) {
  15360. result = (result + this._documentByServiceTableAdapter.Update(updatedRows));
  15361. allChangedRows.AddRange(updatedRows);
  15362. }
  15363. }
  15364. if ((this._attachedProductTableAdapter != null)) {
  15365. global::System.Data.DataRow[] updatedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  15366. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  15367. if (((updatedRows != null)
  15368. && (0 < updatedRows.Length))) {
  15369. result = (result + this._attachedProductTableAdapter.Update(updatedRows));
  15370. allChangedRows.AddRange(updatedRows);
  15371. }
  15372. }
  15373. if ((this._productSaleTableAdapter != null)) {
  15374. global::System.Data.DataRow[] updatedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  15375. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  15376. if (((updatedRows != null)
  15377. && (0 < updatedRows.Length))) {
  15378. result = (result + this._productSaleTableAdapter.Update(updatedRows));
  15379. allChangedRows.AddRange(updatedRows);
  15380. }
  15381. }
  15382. if ((this._uslugi_i_KlientTableAdapter != null)) {
  15383. global::System.Data.DataRow[] updatedRows = dataSet.Uslugi_i_Klient.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  15384. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  15385. if (((updatedRows != null)
  15386. && (0 < updatedRows.Length))) {
  15387. result = (result + this._uslugi_i_KlientTableAdapter.Update(updatedRows));
  15388. allChangedRows.AddRange(updatedRows);
  15389. }
  15390. }
  15391. return result;
  15392. }
  15393. /// <summary>
  15394. ///Insert rows in top-down order.
  15395. ///</summary>
  15396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15398. private int UpdateInsertedRows(BB_AzizovaDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  15399. int result = 0;
  15400. if ((this._genderTableAdapter != null)) {
  15401. global::System.Data.DataRow[] addedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.Added);
  15402. if (((addedRows != null)
  15403. && (0 < addedRows.Length))) {
  15404. result = (result + this._genderTableAdapter.Update(addedRows));
  15405. allAddedRows.AddRange(addedRows);
  15406. }
  15407. }
  15408. if ((this._clientTableAdapter != null)) {
  15409. global::System.Data.DataRow[] addedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.Added);
  15410. if (((addedRows != null)
  15411. && (0 < addedRows.Length))) {
  15412. result = (result + this._clientTableAdapter.Update(addedRows));
  15413. allAddedRows.AddRange(addedRows);
  15414. }
  15415. }
  15416. if ((this._manufacturerTableAdapter != null)) {
  15417. global::System.Data.DataRow[] addedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.Added);
  15418. if (((addedRows != null)
  15419. && (0 < addedRows.Length))) {
  15420. result = (result + this._manufacturerTableAdapter.Update(addedRows));
  15421. allAddedRows.AddRange(addedRows);
  15422. }
  15423. }
  15424. if ((this._serviceTableAdapter != null)) {
  15425. global::System.Data.DataRow[] addedRows = dataSet.Service.Select(null, null, global::System.Data.DataViewRowState.Added);
  15426. if (((addedRows != null)
  15427. && (0 < addedRows.Length))) {
  15428. result = (result + this._serviceTableAdapter.Update(addedRows));
  15429. allAddedRows.AddRange(addedRows);
  15430. }
  15431. }
  15432. if ((this._productTableAdapter != null)) {
  15433. global::System.Data.DataRow[] addedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Added);
  15434. if (((addedRows != null)
  15435. && (0 < addedRows.Length))) {
  15436. result = (result + this._productTableAdapter.Update(addedRows));
  15437. allAddedRows.AddRange(addedRows);
  15438. }
  15439. }
  15440. if ((this._clientsTableAdapter != null)) {
  15441. global::System.Data.DataRow[] addedRows = dataSet.Clients.Select(null, null, global::System.Data.DataViewRowState.Added);
  15442. if (((addedRows != null)
  15443. && (0 < addedRows.Length))) {
  15444. result = (result + this._clientsTableAdapter.Update(addedRows));
  15445. allAddedRows.AddRange(addedRows);
  15446. }
  15447. }
  15448. if ((this._clientServiceTableAdapter != null)) {
  15449. global::System.Data.DataRow[] addedRows = dataSet.ClientService.Select(null, null, global::System.Data.DataViewRowState.Added);
  15450. if (((addedRows != null)
  15451. && (0 < addedRows.Length))) {
  15452. result = (result + this._clientServiceTableAdapter.Update(addedRows));
  15453. allAddedRows.AddRange(addedRows);
  15454. }
  15455. }
  15456. if ((this._tagTableAdapter != null)) {
  15457. global::System.Data.DataRow[] addedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.Added);
  15458. if (((addedRows != null)
  15459. && (0 < addedRows.Length))) {
  15460. result = (result + this._tagTableAdapter.Update(addedRows));
  15461. allAddedRows.AddRange(addedRows);
  15462. }
  15463. }
  15464. if ((this._uslugiTableAdapter != null)) {
  15465. global::System.Data.DataRow[] addedRows = dataSet.Uslugi.Select(null, null, global::System.Data.DataViewRowState.Added);
  15466. if (((addedRows != null)
  15467. && (0 < addedRows.Length))) {
  15468. result = (result + this._uslugiTableAdapter.Update(addedRows));
  15469. allAddedRows.AddRange(addedRows);
  15470. }
  15471. }
  15472. if ((this._tagOfClientTableAdapter != null)) {
  15473. global::System.Data.DataRow[] addedRows = dataSet.TagOfClient.Select(null, null, global::System.Data.DataViewRowState.Added);
  15474. if (((addedRows != null)
  15475. && (0 < addedRows.Length))) {
  15476. result = (result + this._tagOfClientTableAdapter.Update(addedRows));
  15477. allAddedRows.AddRange(addedRows);
  15478. }
  15479. }
  15480. if ((this._sotrudnikTableAdapter != null)) {
  15481. global::System.Data.DataRow[] addedRows = dataSet.Sotrudnik.Select(null, null, global::System.Data.DataViewRowState.Added);
  15482. if (((addedRows != null)
  15483. && (0 < addedRows.Length))) {
  15484. result = (result + this._sotrudnikTableAdapter.Update(addedRows));
  15485. allAddedRows.AddRange(addedRows);
  15486. }
  15487. }
  15488. if ((this._servicePhotoTableAdapter != null)) {
  15489. global::System.Data.DataRow[] addedRows = dataSet.ServicePhoto.Select(null, null, global::System.Data.DataViewRowState.Added);
  15490. if (((addedRows != null)
  15491. && (0 < addedRows.Length))) {
  15492. result = (result + this._servicePhotoTableAdapter.Update(addedRows));
  15493. allAddedRows.AddRange(addedRows);
  15494. }
  15495. }
  15496. if ((this._administratorTableAdapter != null)) {
  15497. global::System.Data.DataRow[] addedRows = dataSet.Administrator.Select(null, null, global::System.Data.DataViewRowState.Added);
  15498. if (((addedRows != null)
  15499. && (0 < addedRows.Length))) {
  15500. result = (result + this._administratorTableAdapter.Update(addedRows));
  15501. allAddedRows.AddRange(addedRows);
  15502. }
  15503. }
  15504. if ((this._productPhotoTableAdapter != null)) {
  15505. global::System.Data.DataRow[] addedRows = dataSet.ProductPhoto.Select(null, null, global::System.Data.DataViewRowState.Added);
  15506. if (((addedRows != null)
  15507. && (0 < addedRows.Length))) {
  15508. result = (result + this._productPhotoTableAdapter.Update(addedRows));
  15509. allAddedRows.AddRange(addedRows);
  15510. }
  15511. }
  15512. if ((this._documentByServiceTableAdapter != null)) {
  15513. global::System.Data.DataRow[] addedRows = dataSet.DocumentByService.Select(null, null, global::System.Data.DataViewRowState.Added);
  15514. if (((addedRows != null)
  15515. && (0 < addedRows.Length))) {
  15516. result = (result + this._documentByServiceTableAdapter.Update(addedRows));
  15517. allAddedRows.AddRange(addedRows);
  15518. }
  15519. }
  15520. if ((this._attachedProductTableAdapter != null)) {
  15521. global::System.Data.DataRow[] addedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.Added);
  15522. if (((addedRows != null)
  15523. && (0 < addedRows.Length))) {
  15524. result = (result + this._attachedProductTableAdapter.Update(addedRows));
  15525. allAddedRows.AddRange(addedRows);
  15526. }
  15527. }
  15528. if ((this._productSaleTableAdapter != null)) {
  15529. global::System.Data.DataRow[] addedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.Added);
  15530. if (((addedRows != null)
  15531. && (0 < addedRows.Length))) {
  15532. result = (result + this._productSaleTableAdapter.Update(addedRows));
  15533. allAddedRows.AddRange(addedRows);
  15534. }
  15535. }
  15536. if ((this._uslugi_i_KlientTableAdapter != null)) {
  15537. global::System.Data.DataRow[] addedRows = dataSet.Uslugi_i_Klient.Select(null, null, global::System.Data.DataViewRowState.Added);
  15538. if (((addedRows != null)
  15539. && (0 < addedRows.Length))) {
  15540. result = (result + this._uslugi_i_KlientTableAdapter.Update(addedRows));
  15541. allAddedRows.AddRange(addedRows);
  15542. }
  15543. }
  15544. return result;
  15545. }
  15546. /// <summary>
  15547. ///Delete rows in bottom-up order.
  15548. ///</summary>
  15549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15551. private int UpdateDeletedRows(BB_AzizovaDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  15552. int result = 0;
  15553. if ((this._uslugi_i_KlientTableAdapter != null)) {
  15554. global::System.Data.DataRow[] deletedRows = dataSet.Uslugi_i_Klient.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  15555. if (((deletedRows != null)
  15556. && (0 < deletedRows.Length))) {
  15557. result = (result + this._uslugi_i_KlientTableAdapter.Update(deletedRows));
  15558. allChangedRows.AddRange(deletedRows);
  15559. }
  15560. }
  15561. if ((this._productSaleTableAdapter != null)) {
  15562. global::System.Data.DataRow[] deletedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  15563. if (((deletedRows != null)
  15564. && (0 < deletedRows.Length))) {
  15565. result = (result + this._productSaleTableAdapter.Update(deletedRows));
  15566. allChangedRows.AddRange(deletedRows);
  15567. }
  15568. }
  15569. if ((this._attachedProductTableAdapter != null)) {
  15570. global::System.Data.DataRow[] deletedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  15571. if (((deletedRows != null)
  15572. && (0 < deletedRows.Length))) {
  15573. result = (result + this._attachedProductTableAdapter.Update(deletedRows));
  15574. allChangedRows.AddRange(deletedRows);
  15575. }
  15576. }
  15577. if ((this._documentByServiceTableAdapter != null)) {
  15578. global::System.Data.DataRow[] deletedRows = dataSet.DocumentByService.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  15579. if (((deletedRows != null)
  15580. && (0 < deletedRows.Length))) {
  15581. result = (result + this._documentByServiceTableAdapter.Update(deletedRows));
  15582. allChangedRows.AddRange(deletedRows);
  15583. }
  15584. }
  15585. if ((this._productPhotoTableAdapter != null)) {
  15586. global::System.Data.DataRow[] deletedRows = dataSet.ProductPhoto.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  15587. if (((deletedRows != null)
  15588. && (0 < deletedRows.Length))) {
  15589. result = (result + this._productPhotoTableAdapter.Update(deletedRows));
  15590. allChangedRows.AddRange(deletedRows);
  15591. }
  15592. }
  15593. if ((this._administratorTableAdapter != null)) {
  15594. global::System.Data.DataRow[] deletedRows = dataSet.Administrator.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  15595. if (((deletedRows != null)
  15596. && (0 < deletedRows.Length))) {
  15597. result = (result + this._administratorTableAdapter.Update(deletedRows));
  15598. allChangedRows.AddRange(deletedRows);
  15599. }
  15600. }
  15601. if ((this._servicePhotoTableAdapter != null)) {
  15602. global::System.Data.DataRow[] deletedRows = dataSet.ServicePhoto.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  15603. if (((deletedRows != null)
  15604. && (0 < deletedRows.Length))) {
  15605. result = (result + this._servicePhotoTableAdapter.Update(deletedRows));
  15606. allChangedRows.AddRange(deletedRows);
  15607. }
  15608. }
  15609. if ((this._sotrudnikTableAdapter != null)) {
  15610. global::System.Data.DataRow[] deletedRows = dataSet.Sotrudnik.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  15611. if (((deletedRows != null)
  15612. && (0 < deletedRows.Length))) {
  15613. result = (result + this._sotrudnikTableAdapter.Update(deletedRows));
  15614. allChangedRows.AddRange(deletedRows);
  15615. }
  15616. }
  15617. if ((this._tagOfClientTableAdapter != null)) {
  15618. global::System.Data.DataRow[] deletedRows = dataSet.TagOfClient.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  15619. if (((deletedRows != null)
  15620. && (0 < deletedRows.Length))) {
  15621. result = (result + this._tagOfClientTableAdapter.Update(deletedRows));
  15622. allChangedRows.AddRange(deletedRows);
  15623. }
  15624. }
  15625. if ((this._uslugiTableAdapter != null)) {
  15626. global::System.Data.DataRow[] deletedRows = dataSet.Uslugi.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  15627. if (((deletedRows != null)
  15628. && (0 < deletedRows.Length))) {
  15629. result = (result + this._uslugiTableAdapter.Update(deletedRows));
  15630. allChangedRows.AddRange(deletedRows);
  15631. }
  15632. }
  15633. if ((this._tagTableAdapter != null)) {
  15634. global::System.Data.DataRow[] deletedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  15635. if (((deletedRows != null)
  15636. && (0 < deletedRows.Length))) {
  15637. result = (result + this._tagTableAdapter.Update(deletedRows));
  15638. allChangedRows.AddRange(deletedRows);
  15639. }
  15640. }
  15641. if ((this._clientServiceTableAdapter != null)) {
  15642. global::System.Data.DataRow[] deletedRows = dataSet.ClientService.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  15643. if (((deletedRows != null)
  15644. && (0 < deletedRows.Length))) {
  15645. result = (result + this._clientServiceTableAdapter.Update(deletedRows));
  15646. allChangedRows.AddRange(deletedRows);
  15647. }
  15648. }
  15649. if ((this._clientsTableAdapter != null)) {
  15650. global::System.Data.DataRow[] deletedRows = dataSet.Clients.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  15651. if (((deletedRows != null)
  15652. && (0 < deletedRows.Length))) {
  15653. result = (result + this._clientsTableAdapter.Update(deletedRows));
  15654. allChangedRows.AddRange(deletedRows);
  15655. }
  15656. }
  15657. if ((this._productTableAdapter != null)) {
  15658. global::System.Data.DataRow[] deletedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  15659. if (((deletedRows != null)
  15660. && (0 < deletedRows.Length))) {
  15661. result = (result + this._productTableAdapter.Update(deletedRows));
  15662. allChangedRows.AddRange(deletedRows);
  15663. }
  15664. }
  15665. if ((this._serviceTableAdapter != null)) {
  15666. global::System.Data.DataRow[] deletedRows = dataSet.Service.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  15667. if (((deletedRows != null)
  15668. && (0 < deletedRows.Length))) {
  15669. result = (result + this._serviceTableAdapter.Update(deletedRows));
  15670. allChangedRows.AddRange(deletedRows);
  15671. }
  15672. }
  15673. if ((this._manufacturerTableAdapter != null)) {
  15674. global::System.Data.DataRow[] deletedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  15675. if (((deletedRows != null)
  15676. && (0 < deletedRows.Length))) {
  15677. result = (result + this._manufacturerTableAdapter.Update(deletedRows));
  15678. allChangedRows.AddRange(deletedRows);
  15679. }
  15680. }
  15681. if ((this._clientTableAdapter != null)) {
  15682. global::System.Data.DataRow[] deletedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  15683. if (((deletedRows != null)
  15684. && (0 < deletedRows.Length))) {
  15685. result = (result + this._clientTableAdapter.Update(deletedRows));
  15686. allChangedRows.AddRange(deletedRows);
  15687. }
  15688. }
  15689. if ((this._genderTableAdapter != null)) {
  15690. global::System.Data.DataRow[] deletedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  15691. if (((deletedRows != null)
  15692. && (0 < deletedRows.Length))) {
  15693. result = (result + this._genderTableAdapter.Update(deletedRows));
  15694. allChangedRows.AddRange(deletedRows);
  15695. }
  15696. }
  15697. return result;
  15698. }
  15699. /// <summary>
  15700. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  15701. ///</summary>
  15702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15703. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15704. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  15705. if (((updatedRows == null)
  15706. || (updatedRows.Length < 1))) {
  15707. return updatedRows;
  15708. }
  15709. if (((allAddedRows == null)
  15710. || (allAddedRows.Count < 1))) {
  15711. return updatedRows;
  15712. }
  15713. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  15714. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  15715. global::System.Data.DataRow row = updatedRows[i];
  15716. if ((allAddedRows.Contains(row) == false)) {
  15717. realUpdatedRows.Add(row);
  15718. }
  15719. }
  15720. return realUpdatedRows.ToArray();
  15721. }
  15722. /// <summary>
  15723. ///Update all changes to the dataset.
  15724. ///</summary>
  15725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15727. public virtual int UpdateAll(BB_AzizovaDataSet dataSet) {
  15728. if ((dataSet == null)) {
  15729. throw new global::System.ArgumentNullException("dataSet");
  15730. }
  15731. if ((dataSet.HasChanges() == false)) {
  15732. return 0;
  15733. }
  15734. if (((this._administratorTableAdapter != null)
  15735. && (this.MatchTableAdapterConnection(this._administratorTableAdapter.Connection) == false))) {
  15736. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  15737. "r, должны использовать одинаковую строку подключения.");
  15738. }
  15739. if (((this._attachedProductTableAdapter != null)
  15740. && (this.MatchTableAdapterConnection(this._attachedProductTableAdapter.Connection) == false))) {
  15741. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  15742. "r, должны использовать одинаковую строку подключения.");
  15743. }
  15744. if (((this._clientTableAdapter != null)
  15745. && (this.MatchTableAdapterConnection(this._clientTableAdapter.Connection) == false))) {
  15746. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  15747. "r, должны использовать одинаковую строку подключения.");
  15748. }
  15749. if (((this._clientsTableAdapter != null)
  15750. && (this.MatchTableAdapterConnection(this._clientsTableAdapter.Connection) == false))) {
  15751. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  15752. "r, должны использовать одинаковую строку подключения.");
  15753. }
  15754. if (((this._clientServiceTableAdapter != null)
  15755. && (this.MatchTableAdapterConnection(this._clientServiceTableAdapter.Connection) == false))) {
  15756. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  15757. "r, должны использовать одинаковую строку подключения.");
  15758. }
  15759. if (((this._documentByServiceTableAdapter != null)
  15760. && (this.MatchTableAdapterConnection(this._documentByServiceTableAdapter.Connection) == false))) {
  15761. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  15762. "r, должны использовать одинаковую строку подключения.");
  15763. }
  15764. if (((this._genderTableAdapter != null)
  15765. && (this.MatchTableAdapterConnection(this._genderTableAdapter.Connection) == false))) {
  15766. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  15767. "r, должны использовать одинаковую строку подключения.");
  15768. }
  15769. if (((this._manufacturerTableAdapter != null)
  15770. && (this.MatchTableAdapterConnection(this._manufacturerTableAdapter.Connection) == false))) {
  15771. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  15772. "r, должны использовать одинаковую строку подключения.");
  15773. }
  15774. if (((this._productTableAdapter != null)
  15775. && (this.MatchTableAdapterConnection(this._productTableAdapter.Connection) == false))) {
  15776. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  15777. "r, должны использовать одинаковую строку подключения.");
  15778. }
  15779. if (((this._productPhotoTableAdapter != null)
  15780. && (this.MatchTableAdapterConnection(this._productPhotoTableAdapter.Connection) == false))) {
  15781. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  15782. "r, должны использовать одинаковую строку подключения.");
  15783. }
  15784. if (((this._productSaleTableAdapter != null)
  15785. && (this.MatchTableAdapterConnection(this._productSaleTableAdapter.Connection) == false))) {
  15786. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  15787. "r, должны использовать одинаковую строку подключения.");
  15788. }
  15789. if (((this._serviceTableAdapter != null)
  15790. && (this.MatchTableAdapterConnection(this._serviceTableAdapter.Connection) == false))) {
  15791. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  15792. "r, должны использовать одинаковую строку подключения.");
  15793. }
  15794. if (((this._servicePhotoTableAdapter != null)
  15795. && (this.MatchTableAdapterConnection(this._servicePhotoTableAdapter.Connection) == false))) {
  15796. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  15797. "r, должны использовать одинаковую строку подключения.");
  15798. }
  15799. if (((this._sotrudnikTableAdapter != null)
  15800. && (this.MatchTableAdapterConnection(this._sotrudnikTableAdapter.Connection) == false))) {
  15801. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  15802. "r, должны использовать одинаковую строку подключения.");
  15803. }
  15804. if (((this._tagTableAdapter != null)
  15805. && (this.MatchTableAdapterConnection(this._tagTableAdapter.Connection) == false))) {
  15806. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  15807. "r, должны использовать одинаковую строку подключения.");
  15808. }
  15809. if (((this._tagOfClientTableAdapter != null)
  15810. && (this.MatchTableAdapterConnection(this._tagOfClientTableAdapter.Connection) == false))) {
  15811. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  15812. "r, должны использовать одинаковую строку подключения.");
  15813. }
  15814. if (((this._uslugiTableAdapter != null)
  15815. && (this.MatchTableAdapterConnection(this._uslugiTableAdapter.Connection) == false))) {
  15816. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  15817. "r, должны использовать одинаковую строку подключения.");
  15818. }
  15819. if (((this._uslugi_i_KlientTableAdapter != null)
  15820. && (this.MatchTableAdapterConnection(this._uslugi_i_KlientTableAdapter.Connection) == false))) {
  15821. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  15822. "r, должны использовать одинаковую строку подключения.");
  15823. }
  15824. global::System.Data.IDbConnection workConnection = this.Connection;
  15825. if ((workConnection == null)) {
  15826. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  15827. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  15828. }
  15829. bool workConnOpened = false;
  15830. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  15831. == global::System.Data.ConnectionState.Broken)) {
  15832. workConnection.Close();
  15833. }
  15834. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  15835. workConnection.Open();
  15836. workConnOpened = true;
  15837. }
  15838. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  15839. if ((workTransaction == null)) {
  15840. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  15841. "и или текущее состояние не позволяет начать транзакцию.");
  15842. }
  15843. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  15844. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  15845. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  15846. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  15847. int result = 0;
  15848. global::System.Data.DataSet backupDataSet = null;
  15849. if (this.BackupDataSetBeforeUpdate) {
  15850. backupDataSet = new global::System.Data.DataSet();
  15851. backupDataSet.Merge(dataSet);
  15852. }
  15853. try {
  15854. // ---- Prepare for update -----------
  15855. //
  15856. if ((this._administratorTableAdapter != null)) {
  15857. revertConnections.Add(this._administratorTableAdapter, this._administratorTableAdapter.Connection);
  15858. this._administratorTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  15859. this._administratorTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  15860. if (this._administratorTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  15861. this._administratorTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  15862. adaptersWithAcceptChangesDuringUpdate.Add(this._administratorTableAdapter.Adapter);
  15863. }
  15864. }
  15865. if ((this._attachedProductTableAdapter != null)) {
  15866. revertConnections.Add(this._attachedProductTableAdapter, this._attachedProductTableAdapter.Connection);
  15867. this._attachedProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  15868. this._attachedProductTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  15869. if (this._attachedProductTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  15870. this._attachedProductTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  15871. adaptersWithAcceptChangesDuringUpdate.Add(this._attachedProductTableAdapter.Adapter);
  15872. }
  15873. }
  15874. if ((this._clientTableAdapter != null)) {
  15875. revertConnections.Add(this._clientTableAdapter, this._clientTableAdapter.Connection);
  15876. this._clientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  15877. this._clientTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  15878. if (this._clientTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  15879. this._clientTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  15880. adaptersWithAcceptChangesDuringUpdate.Add(this._clientTableAdapter.Adapter);
  15881. }
  15882. }
  15883. if ((this._clientsTableAdapter != null)) {
  15884. revertConnections.Add(this._clientsTableAdapter, this._clientsTableAdapter.Connection);
  15885. this._clientsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  15886. this._clientsTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  15887. if (this._clientsTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  15888. this._clientsTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  15889. adaptersWithAcceptChangesDuringUpdate.Add(this._clientsTableAdapter.Adapter);
  15890. }
  15891. }
  15892. if ((this._clientServiceTableAdapter != null)) {
  15893. revertConnections.Add(this._clientServiceTableAdapter, this._clientServiceTableAdapter.Connection);
  15894. this._clientServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  15895. this._clientServiceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  15896. if (this._clientServiceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  15897. this._clientServiceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  15898. adaptersWithAcceptChangesDuringUpdate.Add(this._clientServiceTableAdapter.Adapter);
  15899. }
  15900. }
  15901. if ((this._documentByServiceTableAdapter != null)) {
  15902. revertConnections.Add(this._documentByServiceTableAdapter, this._documentByServiceTableAdapter.Connection);
  15903. this._documentByServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  15904. this._documentByServiceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  15905. if (this._documentByServiceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  15906. this._documentByServiceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  15907. adaptersWithAcceptChangesDuringUpdate.Add(this._documentByServiceTableAdapter.Adapter);
  15908. }
  15909. }
  15910. if ((this._genderTableAdapter != null)) {
  15911. revertConnections.Add(this._genderTableAdapter, this._genderTableAdapter.Connection);
  15912. this._genderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  15913. this._genderTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  15914. if (this._genderTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  15915. this._genderTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  15916. adaptersWithAcceptChangesDuringUpdate.Add(this._genderTableAdapter.Adapter);
  15917. }
  15918. }
  15919. if ((this._manufacturerTableAdapter != null)) {
  15920. revertConnections.Add(this._manufacturerTableAdapter, this._manufacturerTableAdapter.Connection);
  15921. this._manufacturerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  15922. this._manufacturerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  15923. if (this._manufacturerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  15924. this._manufacturerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  15925. adaptersWithAcceptChangesDuringUpdate.Add(this._manufacturerTableAdapter.Adapter);
  15926. }
  15927. }
  15928. if ((this._productTableAdapter != null)) {
  15929. revertConnections.Add(this._productTableAdapter, this._productTableAdapter.Connection);
  15930. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  15931. this._productTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  15932. if (this._productTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  15933. this._productTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  15934. adaptersWithAcceptChangesDuringUpdate.Add(this._productTableAdapter.Adapter);
  15935. }
  15936. }
  15937. if ((this._productPhotoTableAdapter != null)) {
  15938. revertConnections.Add(this._productPhotoTableAdapter, this._productPhotoTableAdapter.Connection);
  15939. this._productPhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  15940. this._productPhotoTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  15941. if (this._productPhotoTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  15942. this._productPhotoTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  15943. adaptersWithAcceptChangesDuringUpdate.Add(this._productPhotoTableAdapter.Adapter);
  15944. }
  15945. }
  15946. if ((this._productSaleTableAdapter != null)) {
  15947. revertConnections.Add(this._productSaleTableAdapter, this._productSaleTableAdapter.Connection);
  15948. this._productSaleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  15949. this._productSaleTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  15950. if (this._productSaleTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  15951. this._productSaleTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  15952. adaptersWithAcceptChangesDuringUpdate.Add(this._productSaleTableAdapter.Adapter);
  15953. }
  15954. }
  15955. if ((this._serviceTableAdapter != null)) {
  15956. revertConnections.Add(this._serviceTableAdapter, this._serviceTableAdapter.Connection);
  15957. this._serviceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  15958. this._serviceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  15959. if (this._serviceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  15960. this._serviceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  15961. adaptersWithAcceptChangesDuringUpdate.Add(this._serviceTableAdapter.Adapter);
  15962. }
  15963. }
  15964. if ((this._servicePhotoTableAdapter != null)) {
  15965. revertConnections.Add(this._servicePhotoTableAdapter, this._servicePhotoTableAdapter.Connection);
  15966. this._servicePhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  15967. this._servicePhotoTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  15968. if (this._servicePhotoTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  15969. this._servicePhotoTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  15970. adaptersWithAcceptChangesDuringUpdate.Add(this._servicePhotoTableAdapter.Adapter);
  15971. }
  15972. }
  15973. if ((this._sotrudnikTableAdapter != null)) {
  15974. revertConnections.Add(this._sotrudnikTableAdapter, this._sotrudnikTableAdapter.Connection);
  15975. this._sotrudnikTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  15976. this._sotrudnikTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  15977. if (this._sotrudnikTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  15978. this._sotrudnikTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  15979. adaptersWithAcceptChangesDuringUpdate.Add(this._sotrudnikTableAdapter.Adapter);
  15980. }
  15981. }
  15982. if ((this._tagTableAdapter != null)) {
  15983. revertConnections.Add(this._tagTableAdapter, this._tagTableAdapter.Connection);
  15984. this._tagTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  15985. this._tagTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  15986. if (this._tagTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  15987. this._tagTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  15988. adaptersWithAcceptChangesDuringUpdate.Add(this._tagTableAdapter.Adapter);
  15989. }
  15990. }
  15991. if ((this._tagOfClientTableAdapter != null)) {
  15992. revertConnections.Add(this._tagOfClientTableAdapter, this._tagOfClientTableAdapter.Connection);
  15993. this._tagOfClientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  15994. this._tagOfClientTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  15995. if (this._tagOfClientTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  15996. this._tagOfClientTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  15997. adaptersWithAcceptChangesDuringUpdate.Add(this._tagOfClientTableAdapter.Adapter);
  15998. }
  15999. }
  16000. if ((this._uslugiTableAdapter != null)) {
  16001. revertConnections.Add(this._uslugiTableAdapter, this._uslugiTableAdapter.Connection);
  16002. this._uslugiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  16003. this._uslugiTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  16004. if (this._uslugiTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  16005. this._uslugiTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  16006. adaptersWithAcceptChangesDuringUpdate.Add(this._uslugiTableAdapter.Adapter);
  16007. }
  16008. }
  16009. if ((this._uslugi_i_KlientTableAdapter != null)) {
  16010. revertConnections.Add(this._uslugi_i_KlientTableAdapter, this._uslugi_i_KlientTableAdapter.Connection);
  16011. this._uslugi_i_KlientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  16012. this._uslugi_i_KlientTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  16013. if (this._uslugi_i_KlientTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  16014. this._uslugi_i_KlientTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  16015. adaptersWithAcceptChangesDuringUpdate.Add(this._uslugi_i_KlientTableAdapter.Adapter);
  16016. }
  16017. }
  16018. //
  16019. //---- Perform updates -----------
  16020. //
  16021. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  16022. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  16023. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  16024. }
  16025. else {
  16026. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  16027. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  16028. }
  16029. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  16030. //
  16031. //---- Commit updates -----------
  16032. //
  16033. workTransaction.Commit();
  16034. if ((0 < allAddedRows.Count)) {
  16035. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  16036. allAddedRows.CopyTo(rows);
  16037. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  16038. global::System.Data.DataRow row = rows[i];
  16039. row.AcceptChanges();
  16040. }
  16041. }
  16042. if ((0 < allChangedRows.Count)) {
  16043. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  16044. allChangedRows.CopyTo(rows);
  16045. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  16046. global::System.Data.DataRow row = rows[i];
  16047. row.AcceptChanges();
  16048. }
  16049. }
  16050. }
  16051. catch (global::System.Exception ex) {
  16052. workTransaction.Rollback();
  16053. // ---- Restore the dataset -----------
  16054. if (this.BackupDataSetBeforeUpdate) {
  16055. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  16056. dataSet.Clear();
  16057. dataSet.Merge(backupDataSet);
  16058. }
  16059. else {
  16060. if ((0 < allAddedRows.Count)) {
  16061. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  16062. allAddedRows.CopyTo(rows);
  16063. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  16064. global::System.Data.DataRow row = rows[i];
  16065. row.AcceptChanges();
  16066. row.SetAdded();
  16067. }
  16068. }
  16069. }
  16070. throw ex;
  16071. }
  16072. finally {
  16073. if (workConnOpened) {
  16074. workConnection.Close();
  16075. }
  16076. if ((this._administratorTableAdapter != null)) {
  16077. this._administratorTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._administratorTableAdapter]));
  16078. this._administratorTableAdapter.Transaction = null;
  16079. }
  16080. if ((this._attachedProductTableAdapter != null)) {
  16081. this._attachedProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._attachedProductTableAdapter]));
  16082. this._attachedProductTableAdapter.Transaction = null;
  16083. }
  16084. if ((this._clientTableAdapter != null)) {
  16085. this._clientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._clientTableAdapter]));
  16086. this._clientTableAdapter.Transaction = null;
  16087. }
  16088. if ((this._clientsTableAdapter != null)) {
  16089. this._clientsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._clientsTableAdapter]));
  16090. this._clientsTableAdapter.Transaction = null;
  16091. }
  16092. if ((this._clientServiceTableAdapter != null)) {
  16093. this._clientServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._clientServiceTableAdapter]));
  16094. this._clientServiceTableAdapter.Transaction = null;
  16095. }
  16096. if ((this._documentByServiceTableAdapter != null)) {
  16097. this._documentByServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._documentByServiceTableAdapter]));
  16098. this._documentByServiceTableAdapter.Transaction = null;
  16099. }
  16100. if ((this._genderTableAdapter != null)) {
  16101. this._genderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._genderTableAdapter]));
  16102. this._genderTableAdapter.Transaction = null;
  16103. }
  16104. if ((this._manufacturerTableAdapter != null)) {
  16105. this._manufacturerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._manufacturerTableAdapter]));
  16106. this._manufacturerTableAdapter.Transaction = null;
  16107. }
  16108. if ((this._productTableAdapter != null)) {
  16109. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productTableAdapter]));
  16110. this._productTableAdapter.Transaction = null;
  16111. }
  16112. if ((this._productPhotoTableAdapter != null)) {
  16113. this._productPhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productPhotoTableAdapter]));
  16114. this._productPhotoTableAdapter.Transaction = null;
  16115. }
  16116. if ((this._productSaleTableAdapter != null)) {
  16117. this._productSaleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productSaleTableAdapter]));
  16118. this._productSaleTableAdapter.Transaction = null;
  16119. }
  16120. if ((this._serviceTableAdapter != null)) {
  16121. this._serviceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._serviceTableAdapter]));
  16122. this._serviceTableAdapter.Transaction = null;
  16123. }
  16124. if ((this._servicePhotoTableAdapter != null)) {
  16125. this._servicePhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._servicePhotoTableAdapter]));
  16126. this._servicePhotoTableAdapter.Transaction = null;
  16127. }
  16128. if ((this._sotrudnikTableAdapter != null)) {
  16129. this._sotrudnikTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._sotrudnikTableAdapter]));
  16130. this._sotrudnikTableAdapter.Transaction = null;
  16131. }
  16132. if ((this._tagTableAdapter != null)) {
  16133. this._tagTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tagTableAdapter]));
  16134. this._tagTableAdapter.Transaction = null;
  16135. }
  16136. if ((this._tagOfClientTableAdapter != null)) {
  16137. this._tagOfClientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tagOfClientTableAdapter]));
  16138. this._tagOfClientTableAdapter.Transaction = null;
  16139. }
  16140. if ((this._uslugiTableAdapter != null)) {
  16141. this._uslugiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._uslugiTableAdapter]));
  16142. this._uslugiTableAdapter.Transaction = null;
  16143. }
  16144. if ((this._uslugi_i_KlientTableAdapter != null)) {
  16145. this._uslugi_i_KlientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._uslugi_i_KlientTableAdapter]));
  16146. this._uslugi_i_KlientTableAdapter.Transaction = null;
  16147. }
  16148. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  16149. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  16150. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  16151. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  16152. global::System.Data.Common.DataAdapter adapter = adapters[i];
  16153. adapter.AcceptChangesDuringUpdate = true;
  16154. }
  16155. }
  16156. }
  16157. return result;
  16158. }
  16159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16161. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  16162. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  16163. }
  16164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16166. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  16167. if ((this._connection != null)) {
  16168. return true;
  16169. }
  16170. if (((this.Connection == null)
  16171. || (inputConnection == null))) {
  16172. return true;
  16173. }
  16174. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  16175. return true;
  16176. }
  16177. return false;
  16178. }
  16179. /// <summary>
  16180. ///Update Order Option
  16181. ///</summary>
  16182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16183. public enum UpdateOrderOption {
  16184. InsertUpdateDelete = 0,
  16185. UpdateInsertDelete = 1,
  16186. }
  16187. /// <summary>
  16188. ///Used to sort self-referenced table's rows
  16189. ///</summary>
  16190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16191. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  16192. private global::System.Data.DataRelation _relation;
  16193. private int _childFirst;
  16194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16196. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  16197. this._relation = relation;
  16198. if (childFirst) {
  16199. this._childFirst = -1;
  16200. }
  16201. else {
  16202. this._childFirst = 1;
  16203. }
  16204. }
  16205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16207. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  16208. global::System.Diagnostics.Debug.Assert((row != null));
  16209. global::System.Data.DataRow root = row;
  16210. distance = 0;
  16211. 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>();
  16212. traversedRows[row] = row;
  16213. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  16214. for (
  16215. ; ((parent != null)
  16216. && (traversedRows.ContainsKey(parent) == false));
  16217. ) {
  16218. distance = (distance + 1);
  16219. root = parent;
  16220. traversedRows[parent] = parent;
  16221. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  16222. }
  16223. if ((distance == 0)) {
  16224. traversedRows.Clear();
  16225. traversedRows[row] = row;
  16226. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  16227. for (
  16228. ; ((parent != null)
  16229. && (traversedRows.ContainsKey(parent) == false));
  16230. ) {
  16231. distance = (distance + 1);
  16232. root = parent;
  16233. traversedRows[parent] = parent;
  16234. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  16235. }
  16236. }
  16237. return root;
  16238. }
  16239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16241. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  16242. if (object.ReferenceEquals(row1, row2)) {
  16243. return 0;
  16244. }
  16245. if ((row1 == null)) {
  16246. return -1;
  16247. }
  16248. if ((row2 == null)) {
  16249. return 1;
  16250. }
  16251. int distance1 = 0;
  16252. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  16253. int distance2 = 0;
  16254. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  16255. if (object.ReferenceEquals(root1, root2)) {
  16256. return (this._childFirst * distance1.CompareTo(distance2));
  16257. }
  16258. else {
  16259. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  16260. && (root2.Table != null)));
  16261. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  16262. return -1;
  16263. }
  16264. else {
  16265. return 1;
  16266. }
  16267. }
  16268. }
  16269. }
  16270. }
  16271. }
  16272. #pragma warning restore 1591